/* ====================== INTER (self-hosted) ====================== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/inter-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/inter-400-latin.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/inter-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/inter-500-latin.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/inter-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/inter-600-latin.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/inter-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/inter-700-latin.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('assets/fonts/inter-800-latin-ext.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('assets/fonts/inter-800-latin.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ====================== BASE STYLES ====================== */
        body {
            font-family: 'Inter', sans-serif;
            color: #220f60;
            overflow-x: hidden;
        }

        .bg-primary {
            background-color: #220f60;
        }

        .text-primary {
            color: #220f60;
        }

/* ====================== HERO SECTION ====================== */
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: brightness(0.75) blur(1px);
}

.hero-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 20% 30%, rgba(255, 255, 255, 0.05),
        transparent 60%
    ), radial-gradient(
        circle at 80% 70%, rgba(255, 255, 255, 0.05),
        transparent 60%
    );
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px); /* Safari için */    
    z-index: 1;
}


/* Hero Content stilleri */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.hero-header {
    font-size: clamp(2.15rem, 5vw, 3.7rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
    animation: fadeIn 1.5s ease-in-out;
}

@media (min-width: 640px) {
    .hero-header {
        font-size: clamp(2.65rem, 4.8vw, 3.9rem);
    }
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.45vw, 1.14rem);
    font-weight: 400;
    line-height: 1.62;
    max-width: 820px;
    margin: 0 auto;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1.5s ease-in-out 0.5s backwards;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: clamp(1rem, 1.35vw, 1.16rem);
    }
}

/* Genel hero-badge stilleri (Masaüstünde de geçerli olacak temel stiller) */
.hero-badge {
    z-index: 3; /* Z-index'i genel badge stilinde bırakın */
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    color: #220f60;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background-color: #f3f4f6;
}

/* Hero Badges Wrapper için stil (hem mobil hem masaüstü varsayılanları) */
.hero-badges-wrapper {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; /* Ensures badges wrap on smaller screens */
    justify-content: center;
    z-index: 10;
}


@media (max-width: 768px) {
    .hero-badges-wrapper {
        flex-direction: column; /* Stack badges vertically on smaller screens */
        gap: 0.5rem;
    }

    .hero-badge {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        text-align: center;
    }
}
/* ====================== PRODUCT CARDS ====================== */
        .flip-card {
            perspective: 1000px;
            width: 100%;
            height: 100%;
            cursor: pointer;
            touch-action: manipulation;
        }

        .flip-inner {
            position: relative;
            width: 100%;
            height: 100%;
            transition: transform 0.6s;
            transform-style: preserve-3d;
        }

        .flip-front,
        .flip-back {
            position: absolute;
            width: 100%;
            height: 100%;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            border-radius: 1rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem;
            box-sizing: border-box;
        }

        /* Erişim altta, 1. aksiyon hemen üstünde; 2 ve 3 sırayla yukarıda. */
        .card-back-toolbar,
        .bg-video-container > .card-back-toolbar {
            position: absolute;
            z-index: 21;
            right: 0.75rem;
            bottom: 0.75rem;
            left: 0.75rem;
            width: auto;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 0.375rem;
            box-sizing: border-box;
        }

        .card-actions {
            display: flex;
            flex-direction: column-reverse;
            align-items: flex-end;
            gap: 0.375rem;
            width: 100%;
        }

        .card-bottom-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            width: 100%;
            gap: 0.375rem;
        }

        .card-actions[hidden] {
            display: none;
        }

        .flip-back .card-action-link {
            display: block;
            max-width: 100%;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            font-size: 0.75rem;
            line-height: 1rem;
            background-color: rgba(34, 15, 96, 0.92);
            color: #ffffff;
            text-align: center;
            overflow-wrap: anywhere;
            text-decoration: none;
            border: 1px solid white;
            transition: background-color 0.2s ease, transform 0.2s ease;
        }

        .flip-back .card-action-link:hover,
        .flip-back .card-action-link:focus-visible {
            background-color: #220f60;
            transform: translateY(-1px);
        }

        /* JS henüz çalışmadığında statik erişim bağlantısı yine sağ alttadır. */
        .flip-back > .card-access-link,
        .flip-back > div > .card-access-link,
        .flip-back .card-access-link {
            position: absolute;
            z-index: 21;
            right: 0.75rem;
            bottom: 0.75rem;
            margin-top: 0;
        }

        .flip-back .card-back-toolbar .card-access-link {
            position: static;
            flex: none;
            /* Alt satırda tek öğe kaldığında space-between onu sola yapıştırıyordu. */
            margin-left: auto;
        }

        .flip-front {
            background-color: white;
            border-top: 4px solid;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            z-index: 1;
            pointer-events: auto;
        }

        .flip-back {
            transform: rotateY(180deg);
        }

        @media (hover: hover) {
            .flip-card:hover .flip-inner {
                transform: rotateY(180deg);
            }
            
            .flip-card:hover .flip-front {
                pointer-events: none;
                z-index: 0;
            }
            
            .flip-card:hover .flip-back {
                pointer-events: auto;
                z-index: 2;
            }
        }

        /* Manuel flip durumu */
        .flip-inner.flipped {
            transform: rotateY(180deg) !important;
        }

        .flip-card.flipped .flip-front {
            pointer-events: none;
            z-index: 0;
        }

        .flip-card.flipped .flip-back {
            pointer-events: auto;
            z-index: 2;
        }

        /* Tüm kartları flip etme durumu */
        .flip-all-cards .flip-inner {
            transform: rotateY(180deg);
        }

        .flip-all-cards .flip-front {
            pointer-events: none;
            z-index: 0;
        }

        .flip-all-cards .flip-back {
            pointer-events: auto;
            z-index: 2;
        }

        .flip-back a {
            pointer-events: auto;
            border: 1px solid white
        }

        .border-blue-400 { border-top-color: #60A5FA; }
        .border-red-400 { border-top-color: #F87171; }
        .border-purple-400 { border-top-color: #C084FC; }
        .border-teal-400 { border-top-color: #2DD4BF; }
        .border-indigo-400 { border-top-color: #A78BFA; }
        .border-gray-400 { border-top-color: #9CA3AF; }

        .bg-blue-50 { background-color: #EFF6FF; }
        .bg-red-50 { background-color: #FEF2F2; }
        .bg-purple-50 { background-color: #FAF5FF; }
        .bg-teal-50 { background-color: #F0FDFA; }
        .bg-indigo-50 { background-color: #EEF2FF; }
        .bg-gray-50 { background-color: #F9FAFB; }

        .text-blue-800 { color: #1E40AF; }
        .text-red-800 { color: #991B1B; }
        .text-purple-800 { color: #6B21A8; }
        .text-teal-800 { color: #0E7490; }
        .text-indigo-800 { color: #4338CA; }
        .text-gray-800 { color: #374151; }

/* ====================== PRODUCT FILTERS AND BADGES ====================== */
        .badge-container {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            width: 100%;
            margin-top: auto;
            padding: 0 0.5rem;
        }

        .badge-label {
            font-size: 0.625rem;
            font-weight: 500;
            color: #220f60;
            margin-bottom: 0.25rem;
        }

        .badge-turkey {
            background: #e1f5fe;
            color: #026aa2;
            padding: 0.125rem 0.375rem;
            border-radius: 0.75rem;
            font-size: 0.625rem;
            font-weight: 500;
            margin-bottom: 0.25rem;
        }

        .badge-middleeast {
            background: #fff3e0;
            color: #b45309;
            padding: 0.125rem 0.375rem;
            border-radius: 0.75rem;
            font-size: 0.625rem;
            font-weight: 500;
            margin-bottom: 0.25rem;
        }

        .subject-btn {
            background-color: white;
            color: #220f60;
            padding: 0.4rem 0.8rem;
            border-radius: 1.25rem;
            text-decoration: none;
            font-size: 0.75rem;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 2px solid #220f60;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
            font-weight: 500;
            flex-shrink: 0;
        }

        @media (min-width: 640px) {
            .subject-btn {
                padding: 0.5rem 1rem;
                font-size: 0.875rem;
            }
        }

        .subject-btn:hover {
            background-color: #220f60;
            color: white;
        }

        .subject-btn.active {
            background-color: #220f60;
            color: white;
            font-weight: 600;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .tools-grid {
            display: grid;
            grid-template-columns: repeat(1, 1fr);
            gap: 1.875rem;
            margin-top: 1.25rem;
        }

        @media (min-width: 640px) {
            .tools-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (min-width: 1024px) {
            .tools-grid { grid-template-columns: repeat(5, 1fr); }
        }

        .no-results-message {
            color: #d9534f;
            text-align: center;
            font-size: 1.1rem;
            margin-top: 1.25rem;
            grid-column: 1 / -1;
        }

        .nav-logo {
            margin-right: auto;
            margin-left: 0;
        }

        .products-header {
            font-size: 1.875rem;
            font-weight: 600;
            margin-bottom: 1rem;
            padding-bottom: 0.375rem;
            border-bottom: 2px solid #220f60;
        }

        .filter-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .product-card-container {
            display: block;
            height: 340px;
            overflow: hidden;
        }

        .product-image {
            height: 6rem;
            margin-bottom: 1rem;
            object-fit: contain;
            width: 100%;
        }

/* ====================== HEADER AND NAVIGATION ====================== */
        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            color: #220f60;
            font-size: 1.5rem;
            z-index: 1002;
            padding: 0.5rem;
            position: relative;
        }

        @media (max-width: 639px) {
            .hamburger {
                display: flex;
            }
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            font-weight: 500;
            color: #4b5563;
        }

@media (max-width: 639px) {
    .nav-glass {
        position: sticky;
        top: 0;
        z-index: 1001;
    }

    .nav-glass .max-w-7xl {
        min-height: 56px;
    }

    .nav-logo {
        max-width: calc(100vw - 72px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        max-height: -webkit-fill-available;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 70px 0 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
}
        .nav-links .group {
            position: relative;
            width: 100%;
        }

        .nav-links .group>a {
            display: block;
            width: 100%;
            padding: 0.5rem 0;
            color: #220f60;
            text-decoration: none;
            font-weight: 500;
            font-size: 0.9rem;
            cursor: pointer;
        }
        .nav-links a {
        padding: 0.5rem 0;
        text-align: center;
    }

        .nav-links a:hover,
        .nav-links .group>a:hover {
            color: #6C63FF;
        }

        .nav-links .group .dropdown {
            position: absolute;
            left: 0;
            margin-top: 0.5rem;
            min-width: 200px;
            background-color: white;
            border-radius: 0.5rem;
            box-shadow: 0px 10px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1);
            border: 1px solid #f3f4f6;
            z-index: 52;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px) scale(0.98);
            transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            max-height: 300px;
            overflow-y: auto;
        }

        .nav-links .group .dropdown a {
            display: block;
            padding: 0.75rem 1.5rem;
            font-size: 0.9rem;
            color: #220f60;
            font-weight: 500;
            text-decoration: none;
            transition: background-color 0.2s ease, color 0.2s ease;
            white-space: nowrap;
        }

        .nav-links .group .dropdown a:hover {
            background-color: #eef2ff;
            color: #1e0e50;
        }

        .nav-links .group>a .fa-chevron-down {
            transition: transform 0.3s ease;
            font-size: 0.7rem;
            margin-left: 0.5rem;
        }

        @media (min-width: 640px) {

            .nav-links .group:hover .dropdown,
            .nav-links .group>a:focus+.dropdown,
            .nav-links .group .dropdown:hover {
                opacity: 1;
                visibility: visible;
                transform: translateY(0) scale(1);
            }

            .nav-links .group:hover>a .fa-chevron-down,
            .nav-links .group>a:focus .fa-chevron-down {
                transform: rotate(180deg);
            }
        }

        @media (max-width: 639px) {
    .nav-links .group .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: transparent !important;
        border: none !important;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem; /* Alt boşluk eklendi */
        transform: none;
        border-radius: 0.25rem;
        border: 1px solid #e9ecef; /* Hafif border ekle */
        max-height: 0; /* Başlangıçta yüksekliği 0 yap */
        opacity: 0; /* Başlangıçta görünmez yap */
        visibility: hidden; /* Erişilebilirlik ve olaylar için gizle */
        overflow: hidden; /* max-height animasyonu için gerekli */
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease-out, margin-bottom 0.3s ease-out; /* Geçiş ekle */
        /* Başlangıçta margin olmasın */
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
            }

            .nav-links .group.active .dropdown {
                opacity: 1;
                visibility: visible;
        /* Açıldığında margin'leri geri getir */
                overflow-y: auto; /* Dikey kaydırmayı etkinleştir */
                -webkit-overflow-scrolling: touch; /* iOS cihazlarda daha pürüzsüz kaydırma deneyimi için */
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
                max-height: 500px;
            }

            .nav-links .group.active>a .fa-chevron-down {
                transform: rotate(180deg);
            }

            .nav-links .group .dropdown a {
                padding: 0.5rem 1rem;
                font-size: 0.85rem;
                border-bottom: 1px solid #e9ecef;
            }

            .nav-links .group .dropdown a:last-child {
                border-bottom: none;
            }
        }

/* ====================== PAGE UTILITIES ====================== */
        #backToTop {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background-color: #220f60;
            color: white;
            width: 3rem;
            height: 3rem;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 999;
            border: none;
            cursor: pointer;
        }

        #backToTop.visible {
            opacity: 1;
            visibility: visible;
        }

        #backToTop:hover {
            transform: translateY(-3px);
            background-color: #1a0a4a;
        }

        .company-logo {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            height: 70px;
            width: auto;
        }

        @media (max-width: 1024px) {
            .company-logo {
                display: none;
            }
        }

        .social-container {
            position: relative;
            width: 100%;
            display: flex;
            justify-content: flex-end;
        }

        .flip-inner.flipped {
            transform: rotateY(180deg) !important;
            z-index: 1;
        }

        @media (hover: hover) {
            .flip-card:hover .flip-inner:not(.flip-all-cards) {
                transform: rotateY(180deg);
            }
        }

        .flip-all-cards .flip-front,
        .flip-all-cards .flip-back {
            overflow: hidden;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }

        .flip-back h4 {
            text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8), 0 0 2px rgba(255, 255, 255, 0.6);
        }

        .flip-back ul {
            padding-left: 0.3rem;
            margin: 0.5rem 0;
            max-height: 60%;
            overflow-y: auto;
            list-style-position: inside;
        }

        .flip-back li {
            text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7), 0 0 2px rgba(255, 255, 255, 0.5);
        }

        /* Koyu arka plan görseli olan kartlar (text-color beyaz) için koyu text-shadow */
        .flip-back li[style*="color: rgb(255, 255, 255)"],
        .flip-back li[style*="color:#ffffff"],
        .flip-back li[style*="color: #ffffff"] {
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 0 2px rgba(0, 0, 0, 0.5);
        }

        .flip-back h4[style*="color: rgb(255, 255, 255)"],
        .flip-back h4[style*="color:#ffffff"],
        .flip-back h4[style*="color: #ffffff"] {
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.6);
        }

        .no-scroll {
            overflow: hidden;
        }

        .aspect-w-16 {
            position: relative;
            width: 100%;
            padding-bottom: 56.25%;
        }

        .aspect-w-16 iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .glide__slide img.partner-logo {
            height: 4rem;
            width: auto;
            object-fit: contain;
            margin: auto;
        }

        .glide__slide {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0 10px;
        }

        .glide__slides {
            margin: 0;
            padding: 0;
            list-style: none;
        }

/* ====================== PRODUCT-SPECIFIC CARD BACKGROUNDS ====================== */
#primal-pictures .flip-back {
    background: linear-gradient(to bottom, rgba(254, 242, 242, 0.3), transparent), url('assets/images/anatomy.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#caz-koleksiyonu .flip-back {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent), url('assets/images/jazz.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#klasik-muzik .flip-back {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent), url('assets/images/classic.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#lecturio .flip-back {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent), url('assets/images/lect_back.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#nejmhealer .flip-back {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent), url('assets/images/nejm.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


#imachek .flip-back {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent), url('assets/images/imachek0.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#assistin .flip-back {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent), url('assets/images/assistin.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#jove-education .flip-back {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent), url('assets/images/educa.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#jove-business .flip-back {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent), url('assets/images/business.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#pangram .flip-back {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent), url('assets/images/pangram.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#chatpdf .flip-back {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent), url('assets/images/chat.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff; /* Beyaz metin */       
}

#biorender .flip-back {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent), url('assets/images/bio.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#wonders .flip-back {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent), url('assets/images/wond.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff; /* Beyaz metin */
}

#piri-discovery .flip-back {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent), url('assets/images/piri.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#transleyt .flip-back {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent), url('assets/images/transl.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

        .bg-video-container {
            position: relative;
            overflow: hidden;
        }

        .bg-video-container video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 0;
            opacity: 0.7;
        }

        .bg-video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.3);
            z-index: 10;
        }

        .bg-video-content {
            position: relative;
            z-index: 20;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            height: 100%;
            width: 100%;
            padding: 0.5rem 1rem;
        }

        .social-container .flex a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
        }

        .nav-logo .lib-bold {
            font-weight: 700 !important;
        }

.dropdown.translating,
.dropdown-list.translating {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Add to your existing styles */
#mapModal iframe {
  border-radius: 0.5rem;
}

.no-scroll {
  overflow: hidden;
}


        /* Yeni Eklenen Form Stilleri */
        #contact form input,
        #contact form textarea {
            transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        }

        #contact form input:focus,
        #contact form textarea:focus {
            outline: none;
            border-color: #4F46E5; /* Tailwind indigo-600 */
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.4); /* Daha belirgin ring */
        }

        .dark #contact form input:focus,
        .dark #contact form textarea:focus {
            border-color: #818CF8; /* Tailwind indigo-400 */
            box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.4);
        }

/* Footer iyileştirmeleri */
footer h3 {
    position: relative;
    padding-bottom: 8px;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #6C63FF, #C084FC);
    border-radius: 1px;
}

/* Footer hover efektleri */
footer a:hover {
    text-decoration: none;
}

/* Footer responsive iyileştirmeleri */
@media (max-width: 768px) {
    footer .grid {
        text-align: center;
    }
    
    footer .flex.items-start {
        justify-content: center;
    }
    
    footer .space-x-4 {
        justify-content: center;
    }
}
@media (max-width: 639px) {
    .nav-links .group .dropdown {
        background-color: transparent !important; /* Şeffaf arkaplan */
        border: none !important; /* Border'ı kaldır */
        box-shadow: none !important; /* Gölgeyi kaldır */
        padding: 0 !important;
        display: block !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .nav-links .group .dropdown a {
        background-color: rgba(255,255,255,0.9) !important; /* Yarı şeffaf beyaz */
        margin: 2px 0; /* Öğeler arası boşluk */
        border-radius: 4px; /* Hafif yuvarlak köşeler */
        border: none !important;
    }

    .nav-links .group.active .dropdown {
        max-height: 500px; /* Yeterli maksimum yükseklik */
    }
}

/* Çeviri yükleniyor durumu için stil */
#translateBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* style.css */
body.translating * {
    transition: opacity 0.3s ease;
    opacity: 0.7;
}

/* Çeviri animasyonu */
.translatable {
    transition: opacity 0.3s ease;
}

.translating {
    opacity: 0.7;
}

/* --- Mega Menü Düzenlemesi (sadece masaüstü için) --- */
@media (min-width: 640px) {
  .nav-links .group .dropdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 sütun */
    gap: 1rem; /* sütunlar arası boşluk */
    padding: 1rem;
    width: 500px; /* menü genişliği (isteğe göre artırılabilir) */
  }

  /* Başlık (kategori ismi) tüm sütunları kaplasın */
  .nav-links .group .dropdown h4 {
    grid-column: span 2;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  /* Linkleri düzenle */
  .nav-links .group .dropdown a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 0.25rem;
  }

  .nav-links .group .dropdown a:hover {
    background-color: #eef2ff;
    color: #220f60;
  }
}

/* Modern Marquey Stilleri */
.modern-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 1.5rem 0;
}

.marquee-container {
    width: 100%;
    overflow: hidden !important;
    position: relative;
    max-width: 100vw;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
    padding: 1rem 0;
    will-change: transform;
    width: 200%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

.marquee-item {
    box-sizing: border-box;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem;
    justify-content: center;
    width: 160px;
    height: 100px;
    margin: 0 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    vertical-align: top;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.marquee-logo {
    display: block;
    max-width: 90%;
    max-height: 70px;
    object-fit: contain;
    margin: auto;
    filter: grayscale(25%) brightness(100%);
    transition: filter 0.3s ease;
}

.marquee-item:hover .marquee-logo {
    filter: grayscale(0%) brightness(100%);
}

.marquee-track:hover {
  animation-play-state: paused;
}

.partner-link {
    display: none;
}


@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .modern-marquee {
        padding: 1rem 0;
    }
    
    .marquee-container {
        overflow-x: hidden;
    }
    
    .marquee-track {
        width: auto;
        animation: marqueeScrollMobile 15s linear infinite;
    }
    
    .marquee-item {
        width: 140px;
        height: 90px;
        margin: 0 0.75rem;
        background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
        border: 1.5px solid rgba(255, 255, 255, 0.25);
    }
    
    .marquee-logo {
        max-width: 95%;
        max-height: 65px;
        filter: grayscale(50%) brightness(140%);
    }
    
    .partner-link {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    @keyframes marqueeScrollMobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 480px) {
    .marquee-item {
        width: 125px;
        height: 85px;
        margin: 0 0.5rem;
    }
    
    .marquee-logo {
        max-width: 100%;
        max-height: 60px;
        filter: grayscale(30%) brightness(150%);
    }
    
    .marquee-track {
        animation-duration: 12s;

    }
    
    /* Filtre butonları taşmasını önle */
    .filter-container {
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .subject-btn {
        white-space: nowrap;
    }
}

/* iOS özel düzeltmeler */
@supports (-webkit-touch-callout: none) {
    .marquee-track {
        animation-duration: 40s; /* iOS'ta daha yavaş animasyon */
    }
}
/* Hero Slider Container */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: clamp(430px, 58vh, 620px);
    overflow: hidden; /* Kayma sırasında taşan slide'ları gizle */
}

.hero-slider {
    display: flex; /* Slide'ları yan yana dizer */
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.hero-slide {
    flex: 0 0 100%;   /* Her slide tam genişlik */
    max-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Hero arkaplan görüntüsü için (video yoksa) */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.7);
}

/* Navigation Buttons */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Safari için */
}

.slider-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Slider Dots */
.slider-dots-container {
    position: absolute;
    bottom: 68px; /* Badges'in üstüne gelecek şekilde */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Autoplay Toggle */
.autoplay-toggle {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Bu satır eklenmeli */
}

.autoplay-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Badges wrapper */
.hero-slide .hero-badges-wrapper {
    position: absolute;
    bottom: 0.95rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .hero-slider-container {
        height: clamp(360px, 55vh, 500px);
    }

    .slider-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .autoplay-toggle {
        bottom: 20px;
        right: 20px;
        width: 35px;
        height: 35px;
    }
    
    .slider-dots-container {
        bottom: 64px;
    }
}

/* Çeviri sistemi için loading stilleri */
body.translating {
    pointer-events: none;
    user-select: none;
}

/* Form validation stilleri */
.form-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.form-success {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1) !important;
}

/* ====================== KULLANICI MENÜSÜ HOVER DROPDOWN ====================== */
#userMenuButton {
    transition: all 0.2s ease;
}

#userMenuButton:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#userDropdown {
    transform-origin: top right;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
/* BU SATIRLARI SİLİN VEYA YORUM YAPIN 
#authLoggedIn:hover #userDropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
*/

/* Kullanıcı Menüsü - Hover Efekti */
#authLoggedIn {
    position: relative;
}

#userDropdown {
    transform-origin: top right;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

#authLoggedIn:hover #userDropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Avatar renkleri */
.avatar-purple { background: linear-gradient(135deg, #220f60, #4c3d8c); }
.avatar-blue { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.avatar-green { background: linear-gradient(135deg, #065f46, #10b981); }
.avatar-orange { background: linear-gradient(135deg, #c2410c, #f97316); }
.avatar-pink { background: linear-gradient(135deg, #9d174d, #ec489a); }
.avatar-cyan { background: linear-gradient(135deg, #0e7490, #06b6d4); }

/* Dropdown içindeki link hover efektleri */
#userDropdown a:hover i {
    transform: translateX(2px);
}

#userDropdown a i {
    transition: transform 0.2s ease;
}

/* Avatar renkleri */
.avatar-purple { background: linear-gradient(135deg, #220f60, #4c3d8c); }
.avatar-blue { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.avatar-green { background: linear-gradient(135deg, #065f46, #10b981); }
.avatar-orange { background: linear-gradient(135deg, #c2410c, #f97316); }
.avatar-pink { background: linear-gradient(135deg, #9d174d, #ec489a); }
.avatar-cyan { background: linear-gradient(135deg, #0e7490, #06b6d4); }

/* Dropdown içindeki link hover efektleri */
#userDropdown a:hover i {
    transform: translateX(2px);
}

#userDropdown a i {
    transition: transform 0.2s ease;
}

.requires-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

#authLoading, #authNotLoggedIn, #authLoggedIn {
    transition: opacity 0.2s ease-in-out;
}

/* ====================== BİLDİRİM MERKEZİ ====================== */
.notif-bell-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, color 0.15s ease;
    position: relative;
}
.notif-bell-btn:hover { transform: translateY(-1px); }
.notif-bell-btn:focus-visible {
    outline: 2px solid rgba(168, 85, 247, 0.6);
    outline-offset: 2px;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #220f60;
    animation: notifPulse 2s infinite;
}
@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.notif-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 24px);
    max-height: 520px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    z-index: 10001;
    /*display: flex; */
    flex-direction: column;
    animation: notifSlideDown 0.18s ease-out;
}

.notif-panel:not(.hidden) {
    display: flex;
}

@keyframes notifSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    background: linear-gradient(135deg, #220f60 0%, #6366f1 100%);
    color: #fff;
}
.notif-panel-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}
.notif-mark-all {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.notif-mark-all:hover { background: rgba(255, 255, 255, 0.25); }

.notif-list {
    flex: 1;
    overflow-y: auto;
    min-height: 140px;
    max-height: 400px;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}
.notif-list::-webkit-scrollbar { width: 6px; }
.notif-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
    position: relative;
}
.notif-item:hover { background: #f9fafb; }
.notif-item:last-child { border-bottom: none; }
.notif-item.notif-unread { background: #eef2ff; }
.notif-item.notif-unread:hover { background: #e0e7ff; }

.notif-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
}
.notif-type-file         { background: #3b82f6; }
.notif-type-announcement { background: #8b5cf6; }
.notif-type-system       { background: #6b7280; }
.notif-type-support      { background: #f59e0b; }
.notif-type-info         { background: #10b981; }

.notif-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.notif-title {
    font-weight: 600;
    color: #111827;
    font-size: 0.88rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.notif-text {
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.notif-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    font-size: 0.68rem;
}
.notif-type-badge {
    padding: 1px 6px;
    border-radius: 3px;
    color: #fff;
    font-weight: 500;
    text-transform: lowercase;
    font-size: 0.65rem;
    letter-spacing: 0.02em;
}
.notif-time { color: #9ca3af; }

.notif-dot {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff;
}

.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    text-align: center;
}

.notif-panel-footer {
    padding: 10px 16px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
    background: #f9fafb;
}
.notif-see-all {
    color: #220f60;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}
.notif-see-all:hover { color: #6366f1; }

@media (max-width: 480px) {
    .notif-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        max-height: 80vh;
        border-radius: 12px 12px 0 0;
    }
}

/* ====================== MOBİL UYUMLULUK - REVİZE ====================== */
/* Bu kodlar mevcut style.css ile çakışmaz, sadece mobil için ek stiller ekler */

/* Viewport değişkeni */
:root {
    --vh: 1vh;
}

/* Filtre scroll göstergesi */
.subject-filter-container {
    position: relative;
}

.subject-filter-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, #f9fafb);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subject-filter-container.has-scroll::after {
    opacity: 1;
}

/* Menü overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Menü açıkken scroll engelleme - POSITION FIXED KULLANMA! */
html.menu-open,
body.menu-open {
    overflow: hidden !important;
    touch-action: none;
    height: 100vh;
    height: 100dvh;
    overscroll-behavior: none;
}

/* Mobil menü geliştirmeleri */

/* Hero slider mobil */
@media (max-width: 768px) {
    .hero-content {
        padding-bottom: 5.5rem;
    }

    .hero-header {
        font-size: 2rem !important;
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        padding: 0 1.5rem;
    }
    
    .hero-badges-wrapper {
        bottom: 5rem;
        width: 90%;
        max-width: 350px;
    }
}

/* Filtre container mobil */
@media (max-width: 640px) {
    .filter-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.75rem;
    }
    
    .filter-container::-webkit-scrollbar {
        display: none;
    }
    
    .subject-btn {
        scroll-snap-align: start;
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Form elemanları mobil */
@media (max-width: 640px) {
    input:not([type="checkbox"]):not([type="radio"]),
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Footer mobil */
@media (max-width: 768px) {
    footer .grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    footer .flex.space-x-4 {
        justify-content: center;
    }
}

/* Safe area desteği */
@supports (padding-top: env(safe-area-inset-top)) {
    .has-safe-area .nav-links {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .has-safe-area footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
}

/* Touch hedefleri - sadece mobil */
@media (max-width: 640px) and (hover: none) {
    .nav-links a,
    .hero-badge,
    .subject-btn,
    #backToTop {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Karanlık mod için filtre göstergesi */
@media (prefers-color-scheme: dark) {
    .subject-filter-container::after {
        background: linear-gradient(to right, transparent, #1f2937);
    }
}

/* ====================== NAV GLASS & HERO SCROLL ====================== */

/* Başlangıç: beyaz (normal görünüm) */
.nav-glass {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

/* Sticky olduktan sonra: saydam cam — arkası görünür */
.nav-glass.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.10);
}

/* Hero scroll shrink desteği */
.hero-slider-container {
    will-change: transform;
    transform-origin: top center;
    transition: transform 0.12s linear;
}

/* Hero'nun altındaki içerik ona yaslanır */
.hero-slider-container + * {
    position: relative;
    z-index: 1;
}

/* ====================== ERİŞİLEBİLİRLİK ====================== */
/* Tailwind gray-400 (#9ca3af) beyaz üzerinde 2,54:1 kalıyor; placeholder
 * metni bilgi taşıdığı için 4,8:1 veren gray-500 tonuna çekildi. */
input::placeholder,
textarea::placeholder {
    color: #6b7280;
    opacity: 1;
}

/* Hareket tercihine saygı (WCAG 2.2.2, 2.3.3) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .marquee-track {
        animation: none !important;
    }
}

/* ====================== ATLAMA LİNKİ ====================== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: #220f60;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 0 0 0.5rem 0;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ====================== BROŞÜR OKUYUCU ====================== */
/* Belge paylaşımındaki (profile.html) panelin site geneli sürümü. */
#brochureViewerOverlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 400;
    display: none;
}
#brochureViewerOverlay.open { display: block; }

#brochureViewer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: 45%;
    background: #fff;
    z-index: 401;
    display: none;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
}
#brochureViewer.open { display: flex; }

.bv-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}
.bv-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0.25rem;
    border-radius: 0.375rem;
}
.bv-close:hover,
.bv-close:focus-visible { color: #374151; }
.bv-title {
    flex: 1;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bv-action {
    color: #9ca3af;
    padding: 0.25rem;
    border-radius: 0.375rem;
    text-decoration: none;
}
.bv-action:hover,
.bv-action:focus-visible { color: #220f60; }
.bv-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: #f9fafb;
}
.bv-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.bv-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 100%;
    padding: 2rem 1.5rem;
    text-align: center;
}
.bv-fallback-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}
.bv-fallback-note {
    margin: 0;
    max-width: 26rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #4b5563;
}
.bv-fallback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}
.bv-fallback-btn {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}
.bv-fallback-btn:hover,
.bv-fallback-btn:focus-visible { background: #e5e7eb; }
.bv-fallback-btn-primary {
    background: #220f60;
    color: #ffffff;
}
.bv-fallback-btn-primary:hover,
.bv-fallback-btn-primary:focus-visible { background: #2f1a80; }

@media (max-width: 768px) {
    #brochureViewer { width: 100%; }
}
