/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-section) 0;
}

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-family);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-block {
    width: 100%;
}

.btn:disabled, .btn.disabled {
    background-color: var(--locked-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Header & Nav */
.header {
    background-color: var(--surface-color);
    box-shadow: var(--box-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

/* Logo Image style */
.logo img, .logo-img {
    height: 52px;
    max-height: 56px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.logo:hover img {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-links-menu {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.nav-links-menu li.has-dropdown > .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: var(--border-radius-md);
    padding: 8px 0;
    min-width: 190px;
    z-index: 1000;
    list-style: none;
    margin: 10px 0 0 0;
}

.nav-links-menu li.has-dropdown:hover > .submenu {
    display: block;
}

.nav-links-menu .submenu li {
    display: block;
    width: 100%;
}

.nav-links-menu .submenu a {
    display: block;
    padding: 8px 16px;
    color: var(--text-primary);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links-menu .submenu a:hover {
    background: var(--surface-color);
    color: var(--primary-color);
}

.nav-link {
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    min-height: max(560px, 80vh);
    display: flex;
    align-items: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    z-index: 2;
}

.mySwiper {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    color: #fff;
}

.hero-title {
    font-size: clamp(26px, 3.6vw, 50px);
    margin-bottom: 12px;
    line-height: 1.22;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    overflow-wrap: break-word;
    margin-left: auto;
    margin-right: auto;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: clamp(14px, 1.3vw, 18px);
    color: #e0e0e0;
    margin-bottom: 16px;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    max-width: min(860px, 92vw);
    margin-left: auto;
    margin-right: auto;
}

/* Cards (Lessons, Tests) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.card {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card.locked {
    opacity: 0.7;
}
.card.locked:hover {
    transform: none;
    box-shadow: var(--box-shadow-sm);
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semi);
    margin-bottom: var(--spacing-sm);
}

.tag-video { background: rgba(33, 150, 243, 0.1); color: var(--accent-color); }
.tag-locked { background: rgba(158, 158, 158, 0.1); color: var(--locked-color); }
.tag-success { background: rgba(76, 175, 80, 0.1); color: var(--success-color); }

.card-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
}

.card-desc {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-sm);
    margin-top: auto;
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-medium);
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

/* Alert Messages */
.alert {
    padding: 16px;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #B28704;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

/* Video Player Wrapper (Custom UI for YouTube) */
.custom-video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-md);
    cursor: pointer;
}

.custom-video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; /* Prevents clicking on youtube UI elements if overlaid, but we will control it via JS */
}

.custom-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.custom-video-overlay:hover {
    background: rgba(0,0,0,0.15);
}

.play-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    pointer-events: none;
}

.play-button {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.45);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    position: relative;
}

.play-button::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.6);
    animation: tg-play-pulse 2.2s infinite ease-out;
    pointer-events: none;
}

@keyframes tg-play-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.custom-video-overlay:hover .play-button {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(234, 88, 12, 0.65);
}

.play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}



/* ==========================================================================
   Cinema Mode Video Popup Modal
   ========================================================================== */
body.cinema-mode-active {
    overflow: hidden !important;
}

.tg-cinema-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.tg-cinema-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Cinematic Deep Theater Backdrop */
.tg-cinema-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.94) 0%, rgba(5, 8, 15, 0.98) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
}

/* Modal Content Container */
.tg-cinema-container {
    position: relative;
    z-index: 10;
    width: 92vw;
    max-width: 1100px;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tg-cinema-modal.active .tg-cinema-container {
    transform: scale(1) translateY(0);
}

/* Header Bar */
.tg-cinema-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 4px 14px 4px;
}

.tg-cinema-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.tg-cinema-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.tg-cinema-pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #ef4444;
    animation: tg-pulse-live 1.5s infinite;
}

@keyframes tg-pulse-live {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.tg-cinema-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.tg-cinema-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tg-cinema-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: scale(1.04);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.tg-close-hint {
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    letter-spacing: 0.5px;
    font-family: monospace;
}

/* Video Stage with Ambient Cinema Glow */
.tg-cinema-screen-wrap {
    position: relative;
    width: 100%;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.45) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(245, 158, 11, 0.25) 100%);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 50px rgba(245, 158, 11, 0.25);
}

.tg-cinema-player {
    position: relative;
    width: 100%;
    background: #000000;
    border-radius: 16px;
    overflow: hidden;
    min-height: 240px;
}

.tg-cinema-player-container {
    position: relative;
    width: 100%;
}

/* Custom Plyr Theme Skin */
:root {
    --plyr-color-main: #ea580c;
    --plyr-video-background: #000000;
    --plyr-video-control-color: #ffffff;
    --plyr-video-control-color-hover: #ffffff;
    --plyr-video-control-background-hover: #ea580c;
    --plyr-range-thumb-background: #ea580c;
    --plyr-range-fill-background: #ea580c;
    --plyr-menu-background: rgba(15, 23, 42, 0.95);
    --plyr-menu-color: #ffffff;
    --plyr-badge-background: #ea580c;
    --plyr-badge-text-color: #ffffff;
    --plyr-control-radius: 6px;
}

.tg-cinema-player .plyr {
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.tg-cinema-player .plyr--video {
    background: #000000;
}

.tg-cinema-player .plyr__control--overlaid {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.5) !important;
    border-radius: 50% !important;
    padding: 20px !important;
}

.tg-cinema-player .plyr__control--overlaid:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 15px 35px rgba(234, 88, 12, 0.7) !important;
}

.tg-cinema-player .plyr__controls {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.88)) !important;
    padding: 16px 20px !important;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* Footer / Cinema Info */
.tg-cinema-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px 0 4px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.tg-cinema-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tg-cinema-info-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--success-color, #10b981);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.tg-cinema-hint {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
}

@media (max-width: 768px) {
    .tg-cinema-container {
        width: 96vw;
    }
    .tg-cinema-title {
        font-size: 14px;
        max-width: 180px;
    }
    .tg-cinema-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: 40px;
}

.footer h3 {
    color: #fff;
    margin-bottom: var(--spacing-md);
}

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

.footer-links li {
    list-style: none;
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: #B0B0B0;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #B0B0B0;
    font-size: var(--font-size-sm);
}

/* Auth Layout */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
    padding: var(--spacing-md);
}

.auth-card {
    background: var(--surface-color);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--box-shadow-lg);
}

/* Admin Dashboard */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--secondary-color);
    color: #fff;
    padding: var(--spacing-lg);
}

.admin-sidebar .logo {
    color: #fff;
    margin-bottom: var(--spacing-xl);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.admin-nav-link {
    padding: 10px 15px;
    border-radius: var(--border-radius-md);
    color: #B0B0B0;
}

.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.admin-content {
    flex: 1;
    padding: var(--spacing-xl);
    background: var(--background-color);
}

/* Table */
.table-responsive {
    overflow-x: auto;
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: var(--font-weight-semi);
    color: var(--secondary-color);
    background: rgba(0,0,0,0.02);
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}
.pricing-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.pricing-card.popular {
    border-color: var(--primary-color);
    position: relative;
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.15);
}
.pricing-card.popular:hover {
    box-shadow: 0 20px 40px rgba(255, 152, 0, 0.25);
}
.pricing-card.popular .popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
}
.pricing-price {
    font-size: 48px;
    font-weight: var(--font-weight-bold);
    color: var(--secondary-color);
    margin: 24px 0 16px;
}
.pricing-features {
    text-align: left;
    margin: 32px 0;
}
.pricing-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.pricing-features li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
}
.pricing-features li.disabled {
    color: var(--text-secondary);
    opacity: 0.6;
}
.pricing-features li.disabled::before {
    content: '✕';
    color: var(--error-color);
}

/* FAQ Layout */
.faq-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}
.faq-header-side {
    position: sticky;
    top: 100px;
}
.faq-title {
    font-size: clamp(24px, 3.8vw, 38px);
    line-height: 1.25;
    letter-spacing: -0.015em;
    font-weight: 800;
    color: var(--secondary-color, #0f172a);
    margin-bottom: 18px;
}
.faq-desc {
    color: var(--text-secondary, #64748b);
    margin-bottom: 28px;
    font-size: 15.5px;
    line-height: 1.65;
    max-width: 90%;
}
@media (max-width: 991.98px) {
    .faq-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .faq-header-side {
        position: static !important;
        top: auto !important;
        margin-bottom: 8px;
    }
    .faq-desc {
        max-width: 100%;
        margin-bottom: 22px;
    }
}
.faq-q-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}
.faq-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.faq-item.active {
    border-color: rgba(255, 152, 0, 0.3);
}
.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    font-size: 16.5px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary-color, #0f172a);
    background: #fff;
    transition: all 0.3s ease;
    gap: 14px;
}
@media (max-width: 767.98px) {
    .faq-question {
        padding: 16px 18px;
        font-size: 15px;
    }
}
.faq-item.active .faq-question {
    color: var(--primary-color);
}
.faq-question::after {
    content: '+';
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 152, 0, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-weight: normal;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
    background: var(--primary-color);
    color: #fff;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: var(--text-secondary);
    padding: 0 24px;
    opacity: 0;
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 24px;
    opacity: 1;
}

/* Top Campaign Banner */
.top-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    padding: 10px 0;
    font-size: 13.5px;
    position: relative;
    z-index: 1001;
    transition: all 0.3s ease;
}

.top-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-right: 48px;
    padding-left: 16px;
}

.top-banner-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    text-align: center;
    line-height: 1.5;
}

.top-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #f59e0b);
    font-size: 16px;
    animation: bannerPulse 2s infinite ease-in-out;
}

@keyframes bannerPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
}

.top-banner-text {
    font-weight: 500;
    color: #f1f5f9;
}

.top-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color, #f59e0b);
    color: #111827 !important;
    font-weight: 700;
    font-size: 12.5px;
    padding: 4px 14px;
    border-radius: 20px;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-banner-btn:hover {
    background: var(--primary-hover, #d97706);
    color: #000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.top-banner-btn svg, .top-banner-btn i {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.top-banner-btn:hover svg, .top-banner-btn:hover i {
    transform: translateX(3px);
}

.top-banner .close-banner {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #94a3b8;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.top-banner .close-banner:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.top-banner .close-banner svg, .top-banner .close-banner i {
    width: 15px;
    height: 15px;
}

@media (max-width: 768px) {
    .top-banner {
        padding: 9px 0;
        font-size: 12.5px;
    }
    .top-banner .container {
        padding-right: 42px;
        padding-left: 12px;
    }
    .top-banner-content {
        gap: 8px;
    }
    .top-banner-btn {
        padding: 3px 10px;
        font-size: 11.5px;
    }
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform var(--transition-fast);
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

/* Dark Mode Toggle & Notifications */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.icon-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: color var(--transition-fast);
    position: relative;
}
.icon-btn:hover {
    color: var(--primary-color);
}
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--error-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Discussion / Q&A Area */
.discussion-area {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}
.comment {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--secondary-color);
    flex-shrink: 0;
}
.comment-content {
    background: var(--surface-color);
    padding: 16px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    flex: 1;
}
.comment-content.admin-reply {
    border-color: var(--primary-color);
    background: rgba(255, 152, 0, 0.02);
}
.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: var(--font-size-sm);
}

/* Test Analytics Radar (Mock style) */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}
.analytics-bar {
    margin-bottom: 16px;
}
.analytics-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}
.analytics-progress {
    width: 100%;
    height: 8px;
    background: #E0E0E0;
    border-radius: 4px;
}
.analytics-fill {
    height: 100%;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--surface-color);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--box-shadow-md);
        gap: var(--spacing-md);
    }
    
    .nav-links.show {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links-menu {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-md);
        text-align: center;
    }

    .nav-links-menu li {
        width: 100%;
        justify-content: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
}
/* Feature Cards */
.feature-card {
    padding: 48px 32px;
    border-top: 4px solid var(--primary-color);
}

.feature-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 152, 0, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 40px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-card-icon {
    transform: scale(1.1);
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 10px 20px rgba(255, 152, 0, 0.2);
}

/* Sample Lesson Premium Layout */
.sample-lesson-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.sample-lesson-content h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.sample-lesson-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.sample-lesson-content ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.sample-lesson-video {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 4px solid #fff;
}

@media (max-width: 768px) {
    .sample-lesson-wrapper {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

/* Academic Course List */
.academic-course-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.academic-course-row {
    display: flex;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.academic-course-row:hover {
    border-color: #9ca3af;
}
.academic-course-img {
    width: 240px;
    background: #1f2937;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    border-right: 1px solid #d1d5db;
}
.academic-course-img i {
    opacity: 0.5;
    margin-bottom: 8px;
}
.academic-course-img span {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}
.academic-course-body {
    padding: 24px 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.academic-course-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}
.academic-course-desc {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 800px;
}
.academic-course-meta {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: #6b7280;
    align-items: center;
}
.academic-course-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.academic-course-action {
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #f3f4f6;
    background: #f9fafb;
    min-width: 240px;
}
.academic-course-row.locked {
    background: #f9fafb;
}
.academic-course-row.locked .academic-course-img {
    background: #e5e7eb;
    color: #9ca3af;
}
.academic-course-row.locked .academic-course-title {
    color: #6b7280;
}
.academic-course-row.locked .academic-course-desc {
    color: #9ca3af;
}
.academic-course-row.locked .academic-course-action {
    background: #f3f4f6;
}

@media (max-width: 768px) {
    .academic-course-row {
        flex-direction: column;
    }
    .academic-course-img {
        width: 100%;
        height: 140px;
        border-right: none;
        border-bottom: 1px solid #d1d5db;
    }
    .academic-course-action {
        border-left: none;
        border-top: 1px solid #f3f4f6;
    }
}

/* Academic Document Cards (Vesaitler) */
.academic-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.academic-doc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    border-top: 4px solid #1f2937;
}
.academic-doc-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: #d1d5db;
}
.academic-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.academic-doc-icon {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.academic-doc-size {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    background: #f9fafb;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.academic-doc-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
}
.academic-doc-desc {
    font-size: 14px;
    color: #6b7280;
    flex-grow: 1;
    margin-bottom: 24px;
}
.academic-doc-footer {
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}
.academic-doc-card.locked {
    background: #f9fafb;
    border-top-color: #9ca3af;
}
.academic-doc-card.locked .academic-doc-icon {
    background: #e5e7eb;
}
.academic-doc-card.locked .academic-doc-title, 
.academic-doc-card.locked .academic-doc-desc {
    color: #9ca3af;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.hero-image img { animation: float 6s ease-in-out infinite; }
.floating-whatsapp { animation: float 4s ease-in-out infinite; }


/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}


/* Blog Card Component */
.card.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 !important;
    overflow: hidden;
    background: var(--surface-color, #ffffff);
    border: 1px solid var(--border-color-light, #f1f5f9);
    border-radius: var(--border-radius-lg, 16px);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    border-color: rgba(255, 152, 0, 0.25);
}
.card.blog-card .blog-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 190px;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    border-radius: 0;
    transition: transform 0.3s ease;
}
.card.blog-card:hover .blog-img {
    transform: scale(1.03);
}
.blog-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    margin-bottom: 10px;
}
.card.blog-card .card-title {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--secondary-color, #0f172a);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.card.blog-card:hover .card-title {
    color: var(--primary-color, #FF9800);
}
.card.blog-card .card-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary, #64748b);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-read-more {
    margin-top: auto;
    color: var(--primary-color, #FF9800);
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease, color 0.2s ease;
}
.blog-read-more:hover {
    color: var(--primary-hover, #F57C00);
    gap: 9px;
}

/* Extracted from 404.html */
.error-page {
            min-height: 70vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 80px 20px;
        }
        .error-content h1 {
            font-size: 120px;
            font-weight: 800;
            color: var(--primary-color);
            line-height: 1;
            margin-bottom: 16px;
            text-shadow: 0 10px 30px rgba(234, 88, 12, 0.2);
        }
        .error-content h2 {
            font-size: 32px;
            color: var(--text-color);
            margin-bottom: 16px;
        }
        .error-content p {
            font-size: 18px;
            color: var(--text-secondary);
            margin-bottom: 32px;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }
        .error-icon {
            font-size: 80px;
            color: #d1d5db;
            margin-bottom: 24px;
            display: inline-block;
        }
        .error-actions {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
        }

/* Auth pages - Modern Premium UI */
.auth-page, .auth-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0b0f19;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    padding: 60px 20px;
    overflow: hidden;
}

.auth-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 20%, rgba(255, 152, 0, 0.12) 0%, transparent 60%),
                radial-gradient(circle at 90% 80%, rgba(33, 150, 243, 0.08) 0%, transparent 50%),
                linear-gradient(180deg, rgba(11, 15, 25, 0.88) 0%, rgba(15, 23, 42, 0.94) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1;
}

.auth-card {
    background: #ffffff;
    width: 100%;
    max-width: 620px;
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    padding: 44px 44px 36px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 28px 20px 24px;
        border-radius: 20px;
    }
    .auth-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.auth-logo-badge {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 152, 0, 0.05) 100%);
    border: 1.5px solid rgba(255, 152, 0, 0.25);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #FF9800);
    box-shadow: 0 8px 20px -6px rgba(255, 152, 0, 0.25);
}

.auth-logo-badge i, .auth-logo-badge svg {
    width: 28px;
    height: 28px;
}

.auth-header {
    text-align: center;
    margin-bottom: 26px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    margin-bottom: 16px;
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 8px 0;
}

.auth-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.auth-form-group {
    margin-bottom: 18px;
}

.auth-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
}

.auth-forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color, #FF9800);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.auth-forgot-link:hover {
    color: var(--primary-hover, #F57C00);
    text-decoration: underline;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-input {
    width: 100%;
    padding: 13px 44px 13px 44px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 14px;
    color: #0f172a;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.auth-input:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.auth-input:focus {
    background: #ffffff;
    border-color: var(--primary-color, #FF9800);
    box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.12);
}

.auth-input-wrapper:focus-within .auth-input-icon {
    color: var(--primary-color, #FF9800);
}

.auth-input.is-invalid {
    border-color: #ef4444;
    background: #fffafa;
}

.auth-input.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.auth-input.is-valid {
    border-color: #10b981;
    background: #f0fdf4;
}

.auth-input.is-valid:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 0.8125rem;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.form-text.text-danger {
    color: #ef4444;
    font-weight: 500;
}

.form-text.text-success {
    color: #10b981;
    font-weight: 500;
}

.form-text.text-muted {
    color: #64748b;
}

.form-text.text-warning {
    color: #f59e0b;
    font-weight: 500;
}

.auth-direction-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-direction-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.auth-direction-card:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.auth-direction-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-direction-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: #ffffff;
}

.auth-direction-check svg {
    width: 12px;
    height: 12px;
    stroke: #ffffff;
    stroke-width: 3;
    display: none;
}

.auth-direction-title {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    transition: color 0.2s ease;
}

.auth-direction-card.is-selected,
.auth-direction-card:has(input[type="radio"]:checked) {
    border-color: var(--primary-color, #FF9800);
    background: rgba(255, 152, 0, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.12);
}

.auth-direction-card.is-selected .auth-direction-check,
.auth-direction-card:has(input[type="radio"]:checked) .auth-direction-check {
    background: var(--primary-color, #FF9800);
    border-color: var(--primary-color, #FF9800);
}

.auth-direction-card.is-selected .auth-direction-check svg,
.auth-direction-card:has(input[type="radio"]:checked) .auth-direction-check svg {
    display: block;
}

.auth-direction-card.is-selected .auth-direction-title,
.auth-direction-card:has(input[type="radio"]:checked) .auth-direction-title {
    color: var(--primary-color, #FF9800);
}

.auth-toggle-pass {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    padding: 6px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.auth-toggle-pass:hover {
    color: #475569;
    background-color: #f1f5f9;
}

.auth-toggle-pass svg, .auth-toggle-pass i {
    width: 18px;
    height: 18px;
}

.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color, #FF9800);
    cursor: pointer;
    border-radius: 4px;
}

.auth-btn-primary {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--primary-color, #FF9800) 0%, var(--primary-hover, #F57C00) 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px -4px rgba(255, 152, 0, 0.35);
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(255, 152, 0, 0.45);
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 22px 0 18px;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
    padding: 0 14px;
    color: #94a3b8;
}

.auth-btn-google {
    width: 100%;
    padding: 12px 18px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.auth-btn-google:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.auth-register-banner {
    margin-top: 24px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-align: center;
}

.auth-register-text {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 10px;
}

.btn-register-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 18px;
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #0f172a;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-register-cta:hover {
    background: #0f172a;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.auth-security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.auth-security-badge svg, .auth-security-badge i {
    width: 14px;
    height: 14px;
    color: #10b981;
}

.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.auth-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer { margin-top: 0 !important; }
/* Blog Single Page */
.blog-header {
    background-color: var(--surface-color, #ffffff);
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border-color-light, #f1f5f9);
    margin-bottom: 40px;
}
.blog-header-content {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
}
.blog-single-title {
    font-size: clamp(23px, 3.8vw, 36px);
    line-height: 1.35;
    letter-spacing: -0.015em;
    font-weight: 800;
    color: var(--secondary-color, #0f172a);
    margin-bottom: 20px;
    word-break: break-word;
}
.blog-meta-single {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    color: var(--text-secondary, #64748b);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0;
}
.blog-meta-single span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.blog-hero-img {
    width: 100%;
    max-height: 480px;
    aspect-ratio: 16/9;
    background-color: #f1f5f9;
    border-radius: var(--border-radius-lg, 16px);
    object-fit: cover;
    margin: 0 auto 36px auto;
    max-width: 1000px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    display: block;
}
.blog-content {
    max-width: 820px;
    margin: 0 auto;
    font-family: var(--font-family-body, 'Inter', sans-serif);
    font-size: clamp(15.5px, 1.15vw, 17px);
    line-height: 1.8;
    color: var(--text-primary, #334155);
    letter-spacing: normal;
    word-break: break-word;
}
.blog-content h1,
.blog-content h2 {
    font-family: var(--font-family, sans-serif);
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--secondary-color, #0f172a);
}
.blog-content h3 {
    font-family: var(--font-family, sans-serif);
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: clamp(17.5px, 2.2vw, 21px);
    font-weight: 600;
    line-height: 1.4;
    color: var(--secondary-color, #0f172a);
}
.blog-content h4 {
    font-family: var(--font-family, sans-serif);
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 16.5px;
    font-weight: 600;
    color: var(--secondary-color, #0f172a);
}
.blog-content p {
    margin-bottom: 22px;
}
.blog-content strong,
.blog-content b {
    color: #0f172a;
    font-weight: 600;
}
.blog-content ul {
    list-style-type: disc;
    padding-left: 24px;
    margin-bottom: 22px;
}
.blog-content ol {
    list-style-type: decimal;
    padding-left: 24px;
    margin-bottom: 22px;
}
.blog-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.blog-content blockquote {
    border-left: 4px solid var(--primary-color, #FF9800);
    padding: 14px 22px;
    background: rgba(255, 152, 0, 0.05);
    border-radius: 0 12px 12px 0;
    margin: 28px 0;
    font-style: italic;
    color: #475569;
    font-size: 1.05em;
    line-height: 1.7;
}
.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--surface-color, #ffffff);
    padding: 24px 28px;
    border-radius: var(--border-radius-lg, 16px);
    margin-top: 48px;
    border: 1px solid var(--border-color-light, #f1f5f9);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.author-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-light, rgba(255, 152, 0, 0.1));
    color: var(--primary-color, #FF9800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

/* Extracted from testler.html */
/* Custom hover for radio buttons */
        label:hover {
            border-color: var(--primary-color) !important;
            background-color: rgba(255, 152, 0, 0.02);
        }
        input[type="radio"]:checked + span {
            font-weight: var(--font-weight-semi);
            color: var(--primary-color);
        }
        input[type="radio"]:checked {
            accent-color: var(--primary-color);
        }

/* Extracted from ders-single.html */
.lesson-header {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
            color: #fff;
            padding: 40px 0;
            margin-top: 80px;
        }
        .breadcrumb {
            font-size: var(--font-size-sm);
            opacity: 0.8;
            margin-bottom: 16px;
        }
        .breadcrumb a {
            color: #fff;
            text-decoration: underline;
        }
        .lesson-video-container {
            max-width: 900px;
            margin: 0 auto 40px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            border-radius: 16px;
            overflow: hidden;
            background: #000;
            position: relative;
            z-index: 10;
        }
        
        .lesson-tabs {
            display: flex;
            gap: 16px;
            border-bottom: 2px solid #E0E0E0;
            margin-bottom: 32px;
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
            overflow-x: auto;
        }
        .tab-btn {
            background: none;
            border: none;
            padding: 12px 24px;
            font-size: var(--font-size-md);
            font-weight: var(--font-weight-semi);
            color: var(--text-secondary);
            cursor: pointer;
            border-bottom: 3px solid transparent;
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        .tab-btn.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
        }
        .tab-btn:hover:not(.active) {
            color: var(--text-primary);
        }
        
        .tab-content {
            display: none;
            max-width: 900px;
            margin: 0 auto 60px;
            animation: fadeIn 0.3s ease;
        }
        .tab-content.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .review-card {
            background: var(--surface-color);
            padding: 24px;
            border-radius: 12px;
            margin-bottom: 16px;
            border: 1px solid rgba(0,0,0,0.05);
        }
        .review-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }
        .review-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--primary-color);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        .review-stars {
            color: #FFC107;
            font-size: 14px;
        }
        
        .resource-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--surface-color);
            padding: 16px 24px;
            border-radius: 12px;
            border: 1px solid rgba(0,0,0,0.05);
            margin-bottom: 12px;
        }
        .resource-info {
            display: flex;
            align-items: center;
            gap: 16px;
        }

/* ==========================================================================
   Fiziki Terbiye Theme Pagination Styles
   ========================================================================== */
.ft-pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 48px auto 0;
    width: 100%;
}

/* --- Mobile Pagination Controls (< 640px) --- */
.ft-pagination-mobile {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 6px 8px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid #edf2f7;
    gap: 8px;
}

.ft-mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 12px;
    font-family: var(--font-family, 'Montserrat', sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-color, #1A1A1A);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.ft-mobile-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color, #FF9800), var(--primary-hover, #F57C00));
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
    transform: translateY(-1px);
}

.ft-mobile-btn.disabled {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.ft-mobile-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 14px;
    background: rgba(255, 152, 0, 0.08);
    border: 1px solid rgba(255, 152, 0, 0.22);
    border-radius: 20px;
    font-family: var(--font-family, 'Montserrat', sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-hover, #F57C00);
}

.ft-mobile-label {
    display: none;
}

.ft-mobile-divider {
    color: #cbd5e1;
    font-weight: 400;
}

.ft-mobile-total {
    color: var(--text-secondary, #64748b);
}

/* --- Desktop Pagination Controls (>= 640px) --- */
.ft-pagination-desktop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid #edf2f7;
    list-style: none;
    margin: 0;
}

.ft-page-item {
    display: inline-flex;
    align-items: center;
}

.ft-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-family: var(--font-family, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color, #1A1A1A);
    background: transparent;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    gap: 6px;
}

.ft-page-link:hover {
    color: var(--primary-color, #FF9800);
    background: rgba(255, 152, 0, 0.08);
    transform: translateY(-2px);
}

.ft-page-item.active .ft-page-link {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color, #FF9800), var(--primary-hover, #F57C00));
    box-shadow: 0 4px 14px rgba(255, 152, 0, 0.38);
    pointer-events: none;
    transform: none;
}

.ft-page-item.disabled .ft-page-link {
    color: #a0aec0;
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    background: transparent;
    transform: none;
}

.ft-page-dots .ft-page-link {
    min-width: 32px;
    padding: 0 4px;
    color: #a0aec0;
    font-size: 16px;
    letter-spacing: 2px;
    cursor: default;
    pointer-events: none;
    background: transparent;
}

.ft-page-prev,
.ft-page-next {
    font-weight: 600;
    padding: 0 14px;
}

.ft-page-prev svg,
.ft-page-next svg {
    transition: transform 0.2s ease;
}

.ft-page-prev:hover svg {
    transform: translateX(-3px);
}

.ft-page-next:hover svg {
    transform: translateX(3px);
}

/* --- Media Queries for Responsive Switching --- */
@media (max-width: 639.98px) {
    .ft-pagination-desktop {
        display: none !important;
    }
    .ft-pagination-mobile {
        display: flex !important;
    }
}

@media (min-width: 640px) {
    .ft-pagination-mobile {
        display: none !important;
    }
    .ft-pagination-desktop {
        display: inline-flex !important;
    }
}

/* Fallback for standard Laravel bootstrap-5 pagination */
.pagination {
    display: inline-flex;
    gap: 6px;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
    list-style: none;
    margin: 30px auto 0;
}
.pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary-color, #1A1A1A);
    border: none;
    background: transparent;
    transition: all 0.2s ease;
}
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color, #FF9800), var(--primary-hover, #F57C00));
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 152, 0, 0.35);
}
.pagination .page-item .page-link:hover {
    color: var(--primary-color, #FF9800);
    background: rgba(255, 152, 0, 0.08);
}
.pagination .page-item.disabled .page-link {
    color: #a0aec0;
    opacity: 0.45;
}

/* ================================================== */
/* Comprehensive Responsive & UI/UX Typography Enhancements */
/* ================================================== */

@media (max-width: 991.98px) {
    .grid-3 {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
    .blog-hero-img {
        max-height: 360px;
        margin-bottom: 28px;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 15px;
        line-height: 1.68;
    }

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 40px 0;
    }

    /* Grid & Cards on Mobile */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card.blog-card .blog-img {
        height: 180px;
    }

    .blog-card-content {
        padding: 16px 18px;
    }

    .card.blog-card .card-title {
        font-size: 15.5px;
        margin-bottom: 8px;
    }

    .card.blog-card .card-desc {
        font-size: 13px;
        line-height: 1.55;
        margin-bottom: 12px;
    }

    .blog-meta {
        font-size: 12px;
        gap: 10px;
        margin-bottom: 8px;
    }

    /* Blog Header & Title */
    .blog-header {
        padding: 32px 0 20px;
        margin-bottom: 24px;
    }

    .blog-single-title {
        font-size: 21px;
        line-height: 1.35;
        letter-spacing: -0.01em;
        margin-bottom: 14px;
    }

    .blog-meta-single {
        font-size: 12.5px;
        gap: 8px 14px;
        line-height: 1.4;
    }

    .blog-hero-img {
        max-height: 220px;
        aspect-ratio: 16/9;
        margin-bottom: 22px;
        border-radius: 12px;
    }

    /* Blog Reading Text */
    .blog-content {
        font-size: 15px;
        line-height: 1.75;
    }

    .blog-content p {
        margin-bottom: 18px;
    }

    .blog-content h1,
    .blog-content h2 {
        font-size: 18.5px;
        margin-top: 28px;
        margin-bottom: 12px;
        line-height: 1.35;
    }

    .blog-content h3 {
        font-size: 16.5px;
        margin-top: 22px;
        margin-bottom: 10px;
    }

    .blog-content h4 {
        font-size: 15px;
        margin-top: 18px;
        margin-bottom: 8px;
    }

    .blog-content ul,
    .blog-content ol {
        padding-left: 18px;
        margin-bottom: 18px;
    }

    .blog-content li {
        margin-bottom: 6px;
    }

    .blog-content blockquote {
        padding: 10px 16px;
        margin: 20px 0;
        font-size: 14.5px;
        border-radius: 0 8px 8px 0;
    }

    /* Author box */
    .author-box {
        padding: 18px;
        gap: 14px;
        margin-top: 36px;
        border-radius: 12px;
    }

    .author-img {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    /* Floating WhatsApp */
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }
}

@media (max-width: 480px) {
    .blog-single-title {
        font-size: 19.5px;
    }

    .blog-meta-single {
        font-size: 12px;
        gap: 6px 10px;
    }

    .blog-content {
        font-size: 14.5px;
        line-height: 1.72;
    }
}

/* Page Specific Styles */
@media (min-width: 992px) {
    .about-image-wrapper {
        position: sticky;
        top: 120px;
        z-index: 10;
    }
}

