/* ==========================================================================
   1. GENEL & SIFIRLAMA AYARLARI
   ========================================================================== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    padding-top: 56px !important; /* Navbar yüksekliği kadar üst boşluk */
    margin-bottom: 60px;
}

/* ==========================================================================
   2. SAYFA İÇERİK ARKA PLANI & SABİT BANNER İÇİN BOŞLUK
   ========================================================================== */
main[role="main"] {
    background-color: #F1F5F9 !important;
    padding-top: 50px !important; /* Navbar + Sabit Hero Banner altı boşluk */
    padding-bottom: 2.5rem;
}

/* ==========================================================================
   3. NAVBAR
   ========================================================================== */
.navbar-custom {
    background-color: #D1D5DB !important;
    border-bottom: 1px solid #E4E4E7 !important;
}

.navbar-nav .nav-link {
    position: relative !important;
    padding: 6px 12px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #18181B !important;
    transition: color 0.3s ease !important;
    text-decoration: none !important;
}

    .navbar-nav .nav-link::after {
        content: '' !important;
        position: absolute !important;
        width: 0% !important;
        height: 2px !important;
        bottom: 2px !important;
        left: 50% !important;
        background-color: #2563EB !important;
        transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        border-radius: 2px !important;
    }

    .navbar-nav .nav-link:hover::after {
        width: 80% !important;
        left: 10% !important;
    }

    .navbar-nav .nav-link:hover {
        color: #2563EB !important;
    }

.navbar-brand img {
    height: 42px !important;
    width: auto;
}

/* ==========================================================================
   4. SABİT HERO BANNER
   ========================================================================== */
.hero-banner-main {
    background-color: #18181B !important;
    width: 100% !important;
    position: fixed !important;
    top: 62px !important; /* Navbar bittiği yer */
    left: 0 !important;
    right: 0 !important;
    z-index: 1020 !important;
    padding: 12px 15px 10px 15px !important;
    margin: 0 !important;
    text-align: center;
    box-sizing: border-box !important;
    border-bottom: 1px solid #27272A;
}

    .hero-banner-main h1 {
        margin-top: 0 !important;
        margin-bottom: 2px !important;
        font-size: 1.15rem !important;
        font-weight: 700;
        color: #FAFAFA !important;
        line-height: 1.2 !important;
        max-width: 850px;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-banner-main h6 {
        color: #A1A1AA !important;
        font-size: 0.82rem !important;
        max-width: 750px;
        margin: 0 auto 6px auto !important;
        line-height: 1.2 !important;
    }

    .hero-banner-main .btn-primary {
        background-color: #2563EB !important;
        border-color: #2563EB !important;
        color: #FFFFFF !important;
        padding: 2px 14px !important;
        font-size: 0.78rem !important;
        line-height: 1.3 !important;
        font-weight: 500;
    }

        .hero-banner-main .btn-primary:hover {
            background-color: #1D4ED8 !important;
            border-color: #1D4ED8 !important;
        }

/* ==========================================================================
   5. TRUST BADGES
   ========================================================================== */
.trust-badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-sizing: border-box;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 200px;
    max-width: 260px;
}

    .trust-badge-item .badge-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background-color: #f8f9fa;
        border-radius: 50%;
        color: #2563EB;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        flex-shrink: 0;
    }

    .trust-badge-item .badge-content {
        display: flex;
        flex-direction: column;
    }

        .trust-badge-item .badge-content strong {
            font-size: 0.85rem;
            font-weight: 600;
            color: #212529;
            line-height: 1.2;
        }

        .trust-badge-item .badge-content span {
            font-size: 0.75rem;
            color: #6c757d;
            margin-top: 2px;
            line-height: 1.2;
        }

/* ==========================================================================
   6. ANA CAROUSEL
   ========================================================================== */
#carouselMain {
    width: 100% !important;
    max-width: 1320px;
    margin: 0 auto !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

    #carouselMain .carousel-inner {
        position: relative;
        width: 100% !important;
        overflow: hidden;
    }

    #carouselMain .carousel-item {
        position: relative;
        display: none;
        float: left;
        width: 100% !important;
        margin-right: -100%;
        backface-visibility: hidden;
        transition: transform .6s ease-in-out;
    }

        #carouselMain .carousel-item.active {
            display: block !important;
        }

        #carouselMain .carousel-item img {
            width: 100% !important;
            height: auto !important;
            max-height: 500px !important;
            object-fit: contain !important;
            background-color: #f8f9fa;
            display: block !important;
        }

/* ==========================================================================
   7. 3D KARTLAR & KARE GÖRSELLER
   ========================================================================== */
.card-clickable {
    background-color: #FFFFFF !important;
    border: 2px solid #CBD5E1 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 20px -3px rgba(15, 23, 42, 0.15), 0 4px 6px -4px rgba(15, 23, 42, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

    .card-clickable .card-body {
        background: linear-gradient(135deg, #1E293B 0%, #334155 100%) !important;
        padding: 12px 16px !important;
        border-bottom: 2px solid #0F172A !important;
    }

    .card-clickable .card-title {
        color: #FFFFFF !important;
        font-weight: 700 !important;
        letter-spacing: 0.3px;
    }

    .card-clickable .card-text {
        color: #94A3B8 !important;
    }

    .card-clickable:hover {
        transform: translateY(-8px) scale(1.01) !important;
        border-color: #2563EB !important;
        box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.25), 0 8px 10px -6px rgba(15, 23, 42, 0.2) !important;
    }

        .card-clickable:hover .square-card-img {
            transform: scale(1.05);
        }

.square-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-top: 1px solid #F3F4F6;
    transition: transform 0.5s ease !important;
}

/* ==========================================================================
   8. SERTİFİKA GÖRSELLERİ
   ========================================================================== */
.cert-badges-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 1.5rem;
}

.cert-badge-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
    transition: transform 0.2s ease;
}

    .cert-badge-img:hover {
        transform: translateY(-3px);
    }

/* ==========================================================================
   9. MOBİL UYUM (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        padding-top: 50px !important;
    }

    main[role="main"] {
        padding-top: 115px !important; /* Mobilde çift satırlı başlıklar için dengeli boşluk */
    }

    .hero-banner-main {
        top: 50px !important;
        padding: 10px 12px 9px 12px !important;
    }

        .hero-banner-main h1 {
            font-size: 1.05rem !important;
        }

        .hero-banner-main h6 {
            font-size: 0.78rem !important;
        }

        .hero-banner-main .btn-primary {
            font-size: 0.75rem !important;
            padding: 2px 12px !important;
        }

    #carouselMain .carousel-item img {
        max-height: 300px !important;
    }

    .trust-badge-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   10. ÇOK KÜÇÜK EKRANLAR
   ========================================================================== */
@media (max-width: 480px) {
    main[role="main"] {
        padding-top: 45px !important;
    }

    .hero-banner-main {
        padding: 8px 10px 8px 10px !important;
    }

        .hero-banner-main h1 {
            font-size: 0.98rem !important;
            line-height: 1.15 !important;
        }

        .hero-banner-main h6 {
            font-size: 0.72rem !important;
            line-height: 1.15 !important;
            margin-bottom: 5px !important;
        }

        .hero-banner-main .btn-primary {
            font-size: 0.72rem !important;
            padding: 2px 10px !important;
        }
}
.has-hero-banner {
    position: relative !important;
    z-index: 1 !important;
    margin-top: 115px !important;
}

@media (max-width: 768px) {
    .has-hero-banner {
        margin-top: 125px !important; /* Mobilde çift satırlı başlıklar için */
    }
}