html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* === Hizmet kartları için sabit yükseklik & ellipsis === */
.service-card {
    background: #101426;
    border-radius: 18px;
    padding: 28px 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #f9fafb;
}

    .service-card .icon {
        margin-bottom: 14px;
    }

.service-card-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.service-card-summary {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* max 3 satır */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Hizmet kartları aynı yükseklik + özet kesme --- */
.services .service-item {
    height: 100%;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Proje kartları (anasayfa + Projeler sayfası) === */
.project-card {
    background: #0b1020;
    color: #f9fafb;
    border-radius: 18px;
    overflow: hidden;
}

    /* Kart içi tüm yazılar için varsayılan renkler */
    .project-card .card-body {
        color: #f9fafb;
    }

        .project-card .card-body .card-text,
        .project-card .card-body p {
            color: rgba(249, 250, 251, 0.88);
        }

        /* text-muted olanları da koyu göster */
        .project-card .card-body .text-muted {
            color: rgba(249, 250, 251, 0.75) !important;
        }

.project-card-title {
    font-size: 1.05rem;
    color: #f9fafb;
}

/* Özet metin */
.project-card-summary {
    font-size: 0.92rem;
    color: #d1d5db;
}

/* Kurum - şehir satırı için istersen bu class'ı da kullanabilirsin */
.project-meta {
    font-size: 0.9rem;
    color: rgba(249, 250, 251, 0.9);
    font-weight: 500;
}

/* Proje kartı görsel oranı (anasayfa + Projeler sayfası) */
.project-card-image-wrapper {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.project-card-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

/* === Referans logosu kutuları === */
.reference-logo-box {
    width: 160px;
    height: 80px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
}

.reference-logo-img {
    max-width: 140px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.85;
    transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.reference-logo-box:hover .reference-logo-img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.03);
}

.reference-logo-text {
    font-size: 0.85rem;
    color: #e5e7eb;
    text-align: center;
}

/* Referans logoları sabit boyut (clients slider) */
.clients .reference-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-logo {
    width: 140px;
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

    .reference-logo:hover {
        opacity: 1;
        transform: scale(1.05);
    }

/* Proje detay sayfasındaki galeri görselleri aynı oran */
#projectGallery .carousel-item img,
.project-gallery-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.site-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 38px;
    width: auto;
    margin-bottom: 10px;
}

/* === Public site logo boyutları === */

/* Navbar logosu */
.site-logo-img {
    height: 92px;
    width: auto;
    display: block;
}

@media (min-width: 992px) {
    .site-logo-img {
        height: 90px; /* büyük ekranlarda biraz daha büyük */
    }
}

/* Footer logosu */
.footer-logo-img {
    height: 120px;
    width: auto;
    display: block;
}

@media (min-width: 992px) {
    .footer-logo-img {
        height: 100px;
    }
}

/* Newsletter başarı / hata mesajları */
.footer-newsletter .php-email-form .sent-message {
    margin-top: 10px;
    background: #16a34a; /* yeşil bar */
    color: #ffffff !important; /* yazı beyaz, zorla :) */
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    opacity: 1 !important;
}

.footer-newsletter .php-email-form .error-message {
    margin-top: 10px;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    text-align: center;
}

/* Newsletter form görünümü */
.footer-newsletter .newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 4px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 999px;
    display: flex; /* önemli: flex olsun */
    align-items: center; /* input ve butonu dikey ortala */
}

    .footer-newsletter .newsletter-form .form-control {
        border: none;
        background: transparent;
        color: #e5e7eb;
        height: 46px;
        border-radius: 999px;
        box-shadow: none;
    }

        .footer-newsletter .newsletter-form .form-control::placeholder {
            color: #6b7280;
        }

    .footer-newsletter .newsletter-form button {
        height: 46px; /* input ile aynı yükseklik */
        padding: 0 24px;
        border-radius: 999px;
        border: none;
        font-weight: 500;
        white-space: nowrap;
        margin-left: 6px;
    }
/* Newsletter başarı / hata mesajları */
.footer-newsletter .sent-message {
    margin-top: 10px;
    background: #16a34a !important; /* Yeşil */
    color: #ffffff !important;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.footer-newsletter .error-message {
    margin-top: 10px;
    background: #dc2626 !important; /* Koyu kırmızı */
    color: #ffffff !important;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}
/* Blog content readability */
.content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.content h1, .content h2, .content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
}

.content p {
    line-height: 1.75;
    margin-bottom: 12px;
}

.content ul, .content ol {
    padding-left: 1.25rem;
}
