/* Royal Turkish Schools - Master Styles */
:root {
    --primary-red: #E31E24;
    --primary-navy: #0F1B2D;
    --text-dark: #1A1A1A;
    --text-muted: #6B7280;
    --white: #FFFFFF;
    --bg-light: #F5F6F8;
    --border-light: #E5E7EB;

    --font-main: 'Inter', sans-serif;

    --container-width: 1200px;

    /* RTS Brand Expansion */
    --primary-red-light: rgba(227, 30, 36, 0.1);
    --primary-red-hover: #c4181d;
    --navy-light: rgba(15, 27, 45, 0.05);
    --success-green: #10B981;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease;
}

::selection {
    background: var(--primary-red);
    color: white;
}

/* Accessibility Focus */
:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.4s ease-out forwards;
}

.hover-scale {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Utilities */
.glass {
    background: rgba(255, 255, 255, 0.85);
    /* Increased opacity for better readability */
    backdrop-filter: blur(16px);
    /* Stronger blur for "frosted" look */
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.shadow-soft {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 4px 12px -3px rgba(0, 0, 0, 0.02);
}

.shadow-premium {
    box-shadow: 0 20px 40px -15px rgba(15, 27, 45, 0.1);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.small {
    font-size: 0.875rem;
}

.text-muted {
    color: var(--text-muted);
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.section {
    padding: 100px 0;
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
    /* Starts hidden, fadeIn makes it visible */
    animation-delay: 0.2s;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-white {
    background-color: var(--white);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.75rem;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.2);
}

.btn-primary:hover {
    background-color: #c4181d;
    border-color: #c4181d;
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-navy);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

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

.btn-white:hover {
    color: #c4181d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Header */
.header {
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 64px;
    /* Slightly larger as per the visual scale of the provided logo */
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-navy);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Reduced gap */
}

/* Responsive Header Refinements */
@media (max-width: 1350px) {
    .nav-menu {
        gap: 20px;
    }

    .header-actions {
        gap: 12px;
    }
}

/* Hero Section */
/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 160px;
    background-color: var(--primary-navy);
    color: white;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
    /* Slight zoom effect start */
    animation: slowZoom 20s infinite alternate;
}

.slide.active {
    opacity: 1;
}

@keyframes slowZoom {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Adjusted for better image visibility + text contrast */
    background: linear-gradient(135deg, rgba(15, 27, 45, 0.85) 0%, rgba(15, 27, 45, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.hero h1 {
    color: white;
    /* Force white color to override global H1 style */
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* Added shadow for readability */
}

.hero-sub {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.trust-strip {
    display: flex;
    gap: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trust-item i {
    font-size: 24px;
    color: var(--primary-red);
}

.trust-item strong {
    display: block;
    font-size: 0.95rem;
}

.trust-item span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* No replacement, just checking */
.stats-section {
    background: white;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 8px;
}

.stat-label {
    font-weight: 600;
    color: var(--primary-navy);
}

/* Modern Grids & Utilities */
.grid {
    display: grid;
}

.flex {
    display: flex;
}

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

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Spacing */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-24 {
    margin-bottom: 6rem;
}

.mt-4 {
    margin-top: 1rem;
}

.pt-4 {
    padding-top: 1rem;
}

.p-12 {
    padding: 3rem;
}

/* Layout */
.max-w-2xl {
    max-width: 42rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.overflow-hidden {
    overflow: hidden;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

/* Typography Extras */
.text-xs {
    font-size: 0.75rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.leading-relaxed {
    line-height: 1.625;
}

/* RTS Brand Variants */
.bg-red-50 {
    background-color: #FEF2F2;
}

.text-red-600 {
    color: #DC2626;
}

.bg-blue-50 {
    background-color: #EFF6FF;
}

.bg-green-50 {
    background-color: #F0FDF4;
}

.bg-gray-100 {
    background-color: #F3F4F6;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

/* Feature Cards (Why Us) */
.feature-card {
    text-align: center;
    padding: 20px;
}

.feature-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 24px;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--bg-light);
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 16px;
    /* slightly rounder */
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* softer border */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* premium curve */
    position: relative;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(15, 27, 45, 0.12);
    /* richer shadow */
}

.course-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 20px;
}

.course-tag {
    background: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.course-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-body h3 {
    margin-bottom: 12px;
    min-height: 50px;
    /* align heights */
}

.course-features {
    list-style: none;
    margin: 24px 0;
    flex: 1;
}

.course-features li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #4B5563;
}

.course-features i {
    color: var(--primary-red);
    margin-right: 10px;
    font-size: 0.8rem;
}

.course-footer {
    margin-top: auto;
}

.popular-card {
    border: 2px solid var(--primary-red);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-red);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

/* Page Header */
.page-header {
    background: var(--primary-navy);
    color: white !important;
    padding: 160px 0;
    /* Increased height significantly */
    margin-top: 80px;
    text-align: center;
    /* Centered text */
    position: relative;
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    font-size: 3.5rem;
    /* Larger Title */
    margin-bottom: 20px;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Better readability */
    font-weight: 800;
}

.page-header p {
    font-size: 1.4rem;
    /* Larger Subtitle */
    opacity: 1;
    /* Full opacity */
    color: white !important;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.micro-note {
    font-size: 0.75rem;
    text-align: center;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.4;
}

/* Support Services */
.support-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.support-item {
    text-align: center;
    max-width: 250px;
}

.support-icon-circle {
    width: 64px;
    height: 64px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--primary-red);
}

.support-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.support-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Reviews Carousel */
.reviews-carousel-container {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    width: 100%;
}

.reviews-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scrollReviews 40s linear infinite;
}

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

/* Review Cards */
.review-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 350px;
    /* Fixed width for carousel items */
    flex-shrink: 0;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.google-icon {
    width: 24px;
    height: 24px;
}

.stars {
    color: #FFB400;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.review-text {
    font-size: 0.95rem;
    color: #4B5563;
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
    /* Pushes author down */
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.country {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Scrolls half-way since we duplicate content */
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-red);
    color: white;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

/* Footer */
.footer {
    background-color: var(--primary-navy);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-contact strong {
    color: white;
}

.footer-partner {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
}

.footer-partner h4 {
    opacity: 0.7;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-partner strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.footer-partner p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.partner-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    /* Explicitly removed border */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Newsletter & Social */
.newsletter-form {
    display: flex;
    gap: 0;
    /* Connected input and button */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    /* Pill shape */
    padding: 4px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.newsletter-form:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.newsletter-input {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: white;
    font-size: 0.95rem;
    outline: none;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
    border-radius: 50px;
    padding: 8px 24px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
}

.social-links a:hover {
    opacity: 1;
    background: var(--primary-red);
    transform: translateY(-2px);
}

/* Newsletter & Social */
.newsletter-form {
    display: flex;
    gap: 0;
    /* Connected input and button */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    /* Pill shape */
    padding: 4px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

/* Reverted to safe state */


/* Mobile Menu Button - Hidden on Desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-navy);
    cursor: pointer;
    margin-left: 15px;
}

/* Page Header - Inner Pages Fix */
.page-header h1,
.page-header h2,
.page-header h3 {
    color: white !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Subtle Patterns */
.bg-pattern {
    background-image: radial-gradient(var(--border-light) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    background-color: #fcfdfe;
    /* Slightly warmer white for contrast */
}

/* Accessibility Widget Styles */
#a11y-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-navy);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 10000;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#a11y-toggle:hover {
    transform: scale(1.1);
}

#a11y-menu {
    position: fixed;
    bottom: 90px;
    left: 30px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    width: 250px;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#a11y-menu.visible {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

#a11y-menu h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-navy);
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 8px;
}

#a11y-menu button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: var(--text-dark);
}

#a11y-menu button:hover {
    background: #f5f5f5;
}

#a11y-menu button.active {
    background: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
}

#a11y-menu button i {
    width: 24px;
    text-align: center;
    margin-right: 8px;
}

#a11y-menu .reset-btn {
    margin-top: 12px;
    text-align: center;
    background: #f0f0f0;
    font-weight: 600;
}

/* Accessibility Modes */
body.a11y-large-text {
    font-size: 120%;
}

body.a11y-high-contrast {
    filter: invert(1) hue-rotate(180deg);
    background-color: black;
}

body.a11y-high-contrast img,
body.a11y-high-contrast video,
body.a11y-high-contrast .hero-overlay {
    filter: invert(1) hue-rotate(180deg);
}

body.a11y-highlight-links a {
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
}

body.a11y-dyslexia-font {
    font-family: 'Verdana', 'Arial', sans-serif !important;
    line-height: 2 !important;
    letter-spacing: 0.05em !important;
}

/* Skip to Content */
.skip-link {
    position: absolute;
    top: -100px;
    /* Hidden off-screen, fixed from -40px */
    left: 0;
    background: var(--primary-red);
    color: white;
    padding: 8px;
    z-index: 10001;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Footer Adjustments */
.footer-trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for badges */
    gap: 20px;
    padding-top: 10px;
    grid-column: 2 / -1;
    /* Spans from column 2 to the end (wider) */
}

/* Fix for formatting trust badges properly */
.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-badge-item i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    width: 30px;
    text-align: center;
}

.trust-badge-item img {
    height: 38px;
    /* Slightly larger */
    width: auto;
    min-width: 40px;
    /* Ensure they have presence */
    max-width: 90px;
    background-color: #FFFFFF;
    padding: 3px;
    border-radius: 4px;
    display: block;
    object-fit: contain;
    filter: none;
    /* Explicitly remove any filters */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Subtle shadow to distinguish from white backgrounds */
}

.trust-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.trust-badge-text strong {
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
}

.trust-badge-text span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer Payments */
.footer-payments {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-payments i {
    font-size: 42px;
    /* Increased from 32px */
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-payments i:hover {
    color: white;
}

.ssl-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #10B981;
    /* Green for secure */
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.ssl-secure i {
    font-size: 1rem;
    /* Reset for SSL lock icon */
    color: #10B981;
}

/* Ensure footer grid allows flow */
.footer-grid {
    grid-auto-flow: row dense;
}

/* Dil Seçici Premium Stil (Language Switcher) */
.lang-dropdown-container {
    position: relative;
    margin-right: 15px;
    display: inline-block;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(26, 43, 75, 0.2);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--primary-navy);
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

/* Adjust for header background */
.header .lang-btn {
    border-color: rgba(26, 43, 75, 0.2);
}

.lang-btn:hover {
    border-color: var(--primary-red);
    background: rgba(0, 0, 0, 0.02);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #0F1B2D;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 10px;
    display: none;
    /* Toggled via JS .show */
    min-width: 250px;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.2s ease-out;
}

.lang-dropdown-menu.show {
    display: block;
}

.mobile-only {
    display: none;
    /* Hide mobile elements on desktop */
}

.lang-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.lang-item {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    color: white;
}

.lang-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.lang-flag {
    font-size: 1.2rem;
}

.lang-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

/* RTL Specifics */
[dir="rtl"] .lang-dropdown-container {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .lang-dropdown-menu {
    right: auto;
    left: 0;
    text-align: right;
}

[dir="rtl"] .lang-item {
    flex-direction: row-reverse;
}

/* Layout Stability for Dynamic Content */
.reviews-carousel-container {
    min-height: 250px;
}

/* Mobile Responsiveness */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--primary-navy);
    cursor: pointer;
    margin-left: 10px;
}

@media (max-width: 1150px) {
    .header-container {
        padding: 0 16px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 27, 45, 0.98);
        direction: ltr;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        gap: 24px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        transform: translateY(-100%);
        z-index: 2000;
        display: none;
        /* Hide by default on mobile breakpoint */
    }

    .nav-menu.active {
        display: flex !important;
        /* Show when active */
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    .nav-menu a {
        padding: 12px 0;
        color: white !important;
        font-size: 1.5rem;
        font-weight: 700;
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .nav-menu.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active a:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-menu.active a:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-menu.active a:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-menu.active a:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-menu.active a:nth-child(6) {
        transition-delay: 0.35s;
    }

    .mobile-menu-btn {
        display: block !important;
        position: relative;
        z-index: 2001;
    }

    .mobile-menu-btn.active {
        color: white;
    }

    .header-actions {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .header-actions .btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .lang-name {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 52px;
    }

    .header-actions .btn {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}





/* --- Mobile Fixes for Homepage Sections --- */
@media (max-width: 992px) {

    /* 1. Why Students Choose (Grid-5) */
    .grid-5 {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 20px;
    }

    /* 2. Course Options (Grid-3) */
    .grid-3 {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 24px;
    }

    .course-card {
        margin-bottom: 15px;
    }

    /* 3. Footer Grid */
    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack all footer columns */
        text-align: center;
        gap: 30px;
    }

    .footer-links a,
    .footer-brand p,
    .footer-partner p {
        text-align: center;
    }

    .footer-trust-badges {
        grid-template-columns: 1fr;
        /* Stack trust badges too */
        justify-items: center;
        padding-top: 20px;
    }

    .social-links {
        justify-content: center;
    }
}

/* Mobile Logo Fix (Appended) */
@media (max-width: 992px) {
    .logo img {
        height: 40px;
    }
}

/* --- Comprehensive Mobile Fixes (Step 1344) --- */
@media (max-width: 992px) {

    /* 1. Language Switcher Fix */
    .lang-dropdown-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 2000;
        overflow-y: auto;
    }

    .lang-dropdown-menu.show {
        display: flex;
        /* Centered modal style for mobile */
    }

    .lang-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 80%;
        background: white;
        padding: 20px;
        border-radius: 12px;
    }

    /* 2. Trust Badges (Header Info) */
    .hero-trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
    }

    .trust-item {
        width: 100%;
        justify-content: center;
        text-align: left;
        /* Keep text left aligned but centered block */
        border-right: none;
        /* Remove dividers */
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 10px;
    }

    .trust-item:last-child {
        border-bottom: none;
    }

    /* 3. Stats Section */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        /* 2x2 grid is better than 1x4 stack for stats */
        gap: 30px;
    }

    /* 4. Footer Fixes (Explicit) */
    .footer-grid {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer-links {
        align-items: center;
    }

    .footer-trust-badges {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

/* --- Mobile Fixes Correction (Step 1352) --- */
@media (max-width: 992px) {

    /* Fix Trust Strip Selector (Header) */
    .trust-strip {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
    }

    /* Disable Desktop Hover on Mobile to prevent conflict */
    .lang-dropdown-container:hover .lang-dropdown-menu {
        display: none;
    }

    /* Enable Mobile Toggle Class */
    .lang-dropdown-menu.show {
        display: flex !important;
        /* Force override */
    }
}

/* --- FINAL Mobile Refinements (Step 1363) --- */
@media (max-width: 992px) {

    /* 1. Language Dropdown Modern Mobile Overlay */
    .lang-dropdown-menu {
        /* Reset any desktop styles */
    }

    .lang-dropdown-menu.show {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        inset: 0 !important;
        background: rgba(15, 27, 45, 0.98) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 99999 !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        /* Space for header */
        animation: fadeIn 0.3s ease-out;
    }

    .mobile-only {
        display: flex !important;
        width: 100%;
        max-width: 340px;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
    }

    .mobile-only h3 {
        font-size: 1.25rem;
        font-weight: 700;
        margin: 0;
    }

    .lang-close-btn {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lang-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        max-width: 340px;
        background: transparent !important;
        /* Remove white bg */
        padding: 0;
        border-radius: 0;
    }

    .lang-item {
        background: rgba(255, 255, 255, 0.08);
        /* Dark glass items */
        border: 1px solid rgba(255, 255, 255, 0.05);
        color: white;
        /* Text white */
        padding: 16px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 15px;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 1.1rem;
        font-weight: 500;
    }

    .lang-item:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }

    .lang-name {
        display: block !important;
        /* Force show name */
        font-size: 1rem;
        color: white !important;
    }

    .lang-flag {
        font-size: 1.5rem;
    }

    /* 2. Footer Overflow Fix */
    .footer {
        overflow-x: hidden;
        width: 100%;
    }

    .footer-grid,
    .footer-trust-badges {
        width: 100%;
        box-sizing: border-box;
        padding: 0 10px;
        /* Prevent edge touching */
    }

    .footer-trust-badges {
        grid-template-columns: 1fr;
        /* Force stack */
        justify-items: center;
    }

    .trust-badge-item img {
        max-width: 80px;
        /* Limit image width to prevent blow-out */
    }
}

/* --- Royal Chat Mobile Fix (Step 1383) --- */
@media (max-width: 768px) {
    .royal-chat-window.active {
        width: 100% !important;
        height: 100% !important;
        /* Fallback */
        height: 100dvh !important;
        /* Dynamic view port height for modern browsers */
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 999999 !important;
        /* Ensure it's on top */
    }

    .royal-chat-body {
        flex: 1;
        /* Take available space */
        height: auto !important;
        /* Override fixed heights */
        overflow-y: auto !important;
    }

    .royal-chat-footer {
        flex-shrink: 0;
        /* Keep footer visible */
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
}

/* --- Fix Footer Logo Size (Step 1411) --- */
.footer-brand img {
    height: 32px !important;
    width: auto !important;
    max-width: 200px !important;
}

/* Course Card Micro-UX Improvements */
.course-card {
    position: relative;
    overflow: hidden;
    /* Ensure overlay stays within card */
}

/* Base state for overlay - hidden by default */
.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 27, 45, 0.95);
    /* Deep Navy opacity */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    padding: 2rem;
    text-align: center;
    z-index: 10;
    transform: translateY(10px);
}

/* Hover state - show overlay */
.course-card:hover .course-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Content inside overlay */
.course-overlay h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.course-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.course-overlay .btn-overlay {
    background-color: var(--primary-red);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.4);
}

.course-overlay .btn-overlay:hover {
    transform: scale(1.05);
    background-color: #c4181d;
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.6);
}

/* A/B Test Animations */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}