:root {
    /* Modern Premium Palette - German Flag Theme */
    --bg-gradient: linear-gradient(135deg, #F6F0FB 0%, #FBF8FE 50%, #F1E8F8 100%);
    --surface-glass: rgba(255, 255, 255, 0.75);
    --surface-glass-heavy: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.8);
    --text-primary: #2A114B;
    --text-secondary: #5E5AA8;
    --accent-red: #0EA5A4;
    --accent-red-glow: rgba(14, 165, 164, 0.35);
    --accent-gold: #7C5CFC;
    --accent-black: #4C4F7D;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 20px;
    --border-radius-lg: 30px;
    --shadow-soft: 0 15px 40px -10px rgba(0,0,0,0.08);
    --shadow-glow: 0 20px 40px -10px var(--accent-red-glow);
    --input-bg: #fff;
    --input-border: #D1D5DB;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Modern Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-red), var(--accent-gold));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0B8C8A, #5B4AE6);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red) rgba(0, 0, 0, 0.03);
}

/* Background Animated Orbs (Optional aesthetic touch) */
body::before, body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(120px);
    opacity: 0.5;
    animation: drift 20s infinite alternate;
}

body::before {
    background: rgba(224, 242, 254, 0.8);
    top: -200px;
    left: -200px;
}

body::after {
    background: rgba(204, 251, 241, 0.8);
    bottom: -200px;
    right: -200px;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.1); }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glass Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--surface-glass-heavy);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px; /* Increased header height for larger logo */
}

.logo {
    margin-left: -50px; /* Shifts the logo further to the left */
    display: flex;
    align-items: center;
}

.logo img {
    height: 90px; /* Massively increased from 50px */
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
    transition: transform 0.3s ease;
    mix-blend-mode: multiply; /* Removes white background from image */
}

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

.nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
    transition: var(--transition);
    border-radius: 3px;
}

.nav-link:hover {
    color: var(--accent-red);
}

.nav-link:hover::after {
    width: 100%;
}

.custom-dropdown {
    position: relative;
    font-family: 'Inter', sans-serif;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid transparent;
    background: #ffffff;
    color: #4C4F7D;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    outline: none;
    min-width: 140px;
    justify-content: space-between;
}

.dropdown-toggle:hover, .dropdown-toggle:focus {
    border-color: var(--accent-red);
    box-shadow: 0 4px 15px rgba(14, 165, 164, 0.15);
    color: var(--text-primary);
}

.dropdown-toggle .lang-code {
    font-size: 11px;
    text-transform: uppercase;
    color: #4C4F7D;
    font-weight: 800;
}

.dropdown-toggle .lang-name {
    color: #4C4F7D;
}

.dropdown-toggle .chevron {
    width: 16px;
    height: 16px;
    color: #4C4F7D;
    transition: transform 0.3s ease;
}

.custom-dropdown.open .chevron {
    transform: rotate(180deg);
}

.custom-dropdown.open .dropdown-toggle {
    border-color: var(--accent-red);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--accent-red);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 2000;
    max-height: 350px;
    overflow-y: auto;
    display: block;
}

.dropdown-menu[hidden] {
    display: none !important;
}

.custom-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4C4F7D;
    transition: background 0.2s ease;
}

.dropdown-menu li:hover, .dropdown-menu li.active {
    background: #1A56DB;
    color: #ffffff;
}

.dropdown-menu li .lang-code {
    font-size: 10px;
    font-weight: 800;
    color: #6B7280;
    width: 20px;
    text-transform: uppercase;
}

.dropdown-menu li:hover .lang-code, .dropdown-menu li.active .lang-code {
    color: #E0E7FF;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Screen reader only utility class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    color: var(--accent-black);
    letter-spacing: -0.02em;
}

h1 { font-size: 64px; font-weight: 800; margin-bottom: 24px; background: linear-gradient(135deg, var(--accent-black) 0%, var(--accent-red) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: 48px; font-weight: 800; margin-bottom: 20px; }
h3 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
p { font-size: 19px; color: var(--text-secondary); margin-bottom: 32px; font-weight: 400; }

.section-header h2 {
    color: #6B5B95;
}

.section-header p {
    font-size: 22px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.value-prop .section-header p {
    white-space: pre-line;
}

.text-center { text-align: center; }
.section-header { margin-bottom: 80px; }

/* Glowing Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #9D4EDD 0%, #7209B7 100%);
    color: #fff;
    box-shadow: 0 10px 25px rgba(157, 78, 221, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.btn-primary:hover::after {
    left: 100%;
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px rgba(157, 78, 221, 0.5);
    background: linear-gradient(135deg, #7209B7 0%, #560BAD 100%);
}

.btn-secondary {
    background: #E6E6FA;
    backdrop-filter: blur(10px);
    border-color: #E6E6FA;
    color: var(--accent-black);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5E5AA8 0%, #7C5CFC 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(92, 92, 180, 0.25);
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(157, 78, 221, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(157, 78, 221, 0); }
    100% { box-shadow: 0 0 0 0 rgba(157, 78, 221, 0); }
}

.pulse {
    animation: pulse-glow 2s infinite;
}

/* Floating Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Hero Banner Section */
.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1467269204594-9661b134dd2b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); /* Neuschwanstein Castle, Germany */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30,58,95,0.7) 0%, rgba(30,58,95,0.85) 100%);
    z-index: 1;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0 0 0;
    background: var(--bg-gradient);
}

/* Hero Slideshow Section */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transform: scale(1.12);
    filter: none;
    transition: opacity 0.8s ease-in-out, transform 3.8s ease-out, filter 0.8s ease-in-out;
    z-index: 1;
    will-change: opacity, transform, filter;
}

.slide:first-child {
    opacity: 1;
    transform: scale(1);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .slide {
        transform: none;
        transition: opacity 0.45s ease-in-out;
        filter: none;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
    pointer-events: none;
}

.hero-content-centered {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content-centered h1 {
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    background: none;
    -webkit-text-fill-color: #fff;
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero-content-centered p {
    color: rgba(255,255,255,0.9);
    font-size: 22px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Value Prop / Features - Glassmorphism Cards */
.value-prop { padding: 120px 0; }

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

.feature-card {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, background 0.5s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8), transparent);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: -1;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(236, 72, 153, 0.6));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.15), 0 15px 25px rgba(0,0,0,0.05);
    background: #ffffff;
}

.feature-card:hover::before {
    animation: proShine 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes proShine {
    0% { left: -100%; }
    100% { left: 200%; }
}

.feature-card:hover::after { opacity: 1; }

.icon-box {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 88px;
    padding: 16px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    color: var(--accent-black);
}

.icon-box.red {
    color: var(--accent-red);
}

.icon-box.gold {
    color: #6D5CE8;
}

.icon-box.black {
    color: var(--accent-black);
}

.icon-box svg {
    width: 42px;
    height: 42px;
    display: block;
}

.feature-card:hover .icon-box {
    transform: translateY(-8px) scale(1.15) rotate(5deg);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.25);
    background: linear-gradient(135deg, #F5F3FF, #EDE9FE);
    color: #8B5CF6;
}

/* Services Section */
.services-section { padding: 120px 0; }

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

.service-card {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    padding: 52px 36px;
    min-height: 380px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, background 0.5s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8), transparent);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: -1;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(236, 72, 153, 0.6));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.15), 0 15px 25px rgba(0,0,0,0.05);
    background: #ffffff;
}

.service-card:hover::before {
    animation: proShine 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.service-card:hover::after { opacity: 1; }

.service-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 28px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    font-size: 40px;
    line-height: 1;
    color: var(--accent-gold);
}

.service-icon svg {
    width: 40px;
    height: 40px;
    display: block;
    stroke: currentColor;
}

.service-card:hover .service-icon {
    transform: translateY(-8px) scale(1.15) rotate(5deg);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.25);
    background: linear-gradient(135deg, #F5F3FF, #EDE9FE);
    color: #8B5CF6;
}

.service-card h3 { font-size: 26px; margin-bottom: 16px; }
.service-card p { font-size: 17px; margin: 0; line-height: 1.7; }

.services-section .section-header p {
    font-size: 22px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Reviews Section */
.reviews-section { padding: 120px 0; }

.reviews-section .container {
    max-width: 1900px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: stretch;
    max-width: 800px;
    margin: 0 auto;
}

.review-card {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: rgba(14,165,164,0.08);
    line-height: 1;
}

.review-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    background: #fff;
}

.stars { color: #FACC15; font-size: 24px; letter-spacing: 2px; margin-top: auto; padding-top: 16px;}

.review-text {
    font-size: 18px;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.reviewer { display: flex; align-items: center; gap: 16px; margin-bottom: 20px;}
.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}
.reviewer-info h4 { margin: 0; font-size: 16px; font-weight: 700; }

/* Levels & Exams */
.levels-exams { padding: 120px 0; }

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.level-card {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 30px 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.level-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-glow);
    background: rgba(255,255,255,0.9);
}

.level-badge {
    background: white;
    color: var(--accent-black);
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    transition: var(--transition);
}

.level-card:hover .level-badge {
    border-color: var(--accent-red);
    transform: scale(1.1);
}

.level-card.expert {
    background: linear-gradient(135deg, #5E5AA8 0%, #7C5CFC 100%);
    color: white;
}

.level-card.expert .level-badge {
    background: linear-gradient(135deg, var(--accent-gold), #5B4AE6);
    color: white;
    border: none;
}

.level-card.expert h4, .level-card.expert p {
    color: rgba(255,255,255,0.9);
}

.level-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.level-card p {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.exam-prep-card {
    background: linear-gradient(135deg, #FDF2F8 0%, #FFFFFF 50%, #EDE9FE 100%);
    color: var(--text-primary);
    padding: 60px;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(255,255,255,1), inset 0 4px 25px rgba(255,255,255,1);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    z-index: 1;
}

.exam-prep-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(139, 92, 246, 0.2), inset 0 0 0 1px rgba(255,255,255,1), inset 0 6px 30px rgba(255,255,255,1);
}

.exam-prep-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(236, 72, 153, 0.6));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.exam-prep-card:hover::after {
    opacity: 1;
}

@keyframes sweepShine {
    0% { left: -100%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

.exam-prep-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8), transparent);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: -1;
}

.exam-prep-card:hover::before {
    animation: proShine 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}



.exam-prep-card h3 {
    color: var(--text-primary);
    font-size: 38px;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #2D3748, #6B5B95);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.exam-prep-card p {
    color: var(--text-secondary);
    font-size: 20px;
    max-width: 800px;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

.exam-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 45px;
    position: relative;
    z-index: 2;
}

.exam-features li {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 18px 26px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    backdrop-filter: blur(15px);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(-2px);
}

.exam-features li:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

/* Ultra Premium Card Styles */
.exam-prep-card.ultra-premium {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F3FF 50%, #EDE9FE 100%);
    color: var(--text-primary);
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 1), inset 0 4px 25px rgba(255, 255, 255, 1);
}

.exam-prep-card.ultra-premium:hover {
    box-shadow: 0 40px 80px rgba(139, 92, 246, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 1), inset 0 6px 30px rgba(255, 255, 255, 1);
}

.exam-prep-card.ultra-premium::after {
    /* Retain gradient border outline on hover */
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(236, 72, 153, 0.8));
}

.exam-prep-card.ultra-premium::before {
    /* Keep the sweeping light effect setup */
    background: linear-gradient(to right, transparent, rgba(139, 92, 246, 0.3), transparent);
}

.exam-prep-card.ultra-premium h3 {
    background: linear-gradient(135deg, #4C1D95, #7C3AED, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.exam-prep-card.ultra-premium p {
    color: var(--text-secondary);
}

.exam-prep-card.ultra-premium .exam-features li {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-primary);
}

.exam-prep-card.ultra-premium .exam-features li:hover {
    background: #FFFFFF;
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.15);
}

.exam-prep-card.ultra-premium .check-icon {
    color: #ffffff;
    background-color: #8B5CF6;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    position: relative;
    z-index: 2;
}

.premium-badge .star-icon {
    font-size: 16px;
    animation: spinStar 4s linear infinite;
}

@keyframes spinStar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* FAQ Accordion */
.faq-section { padding: 120px 0; }

.faq-accordion { max-width: 900px; margin: 0 auto; }

.accordion-item {
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    background: rgba(255,255,255,0.9);
    box-shadow: var(--shadow-soft);
    transform: scale(1.01);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 24px 30px;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.accordion-header .icon {
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.accordion-header:hover { color: var(--accent-red); }
.accordion-header:hover .icon { background: var(--accent-red-glow); color: var(--accent-red); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content p {
    padding: 0 30px 24px;
    margin: 0;
    color: var(--text-secondary);
}

.accordion-item.active .accordion-content { max-height: 500px; }
.accordion-item.active .icon { transform: rotate(45deg); background: var(--accent-red); color: white; }

/* Contact Section */
.contact-section { padding: 120px 0; }

.form-container {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px;
}

.custom-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 24px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius);
    background: var(--input-bg);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px var(--accent-red-glow);
}
.form-group textarea { resize: vertical; }
.btn-full { width: 100%; justify-content: center; }
.form-note { text-align: center; font-size: 14px; color: var(--text-secondary); margin-top: 16px; margin-bottom: 0; }



/* Footer */
.footer {
    background:
        radial-gradient(circle at top left, rgba(124, 92, 252, 0.12), transparent 42%),
        radial-gradient(circle at top right, rgba(14, 165, 164, 0.10), transparent 38%),
        linear-gradient(135deg, #F6F0FB 0%, #EEF9F8 50%, #F3EEFF 100%);
    color: var(--text-primary);
    padding: 90px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
}

.footer::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(76, 79, 125, 0.14);
    border-radius: 28px;
    pointer-events: none;
}

.footer-shell {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

.footer-brand-block {
    max-width: 460px;
}

.footer-logo {
    display: inline-block;
    color: var(--accent-black);
    text-decoration: none;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.footer-column h4 {
    color: var(--accent-black);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 14px 24px;
}

.footer-links a,
.footer-contact a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-contact a {
    font-weight: 700;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-red);
    transform: translateX(4px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-inline-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    margin: 0;
    opacity: 0.95;
    color: #8B5CF6;
}

.footer-inline-icon svg {
    width: 100%;
    height: 100%;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-red), #0B8C8A 100%);
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 14px 30px rgba(14,165,164,0.25);
}

.footer-cta:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 18px 36px rgba(14,165,164,0.35);
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.social-link {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent-black);
    text-decoration: none;
    background: rgba(76, 79, 125, 0.10);
    border: 1px solid rgba(76, 79, 125, 0.22);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: 0 10px 24px rgba(76, 79, 125, 0.18);
}

.social-link svg {
    width: 20px;
    height: 20px;
    display: block;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.06);
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 16px 30px rgba(124, 92, 252, 0.28);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-bottom p,
.footer-bottom-note {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Animations - Scroll Reveal */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Make sure hero content (above the fold) is immediately visible
   in case intersection observer doesn't trigger on page load. */
.hero-banner .fade-in-up {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}
/* Team Section */
.team-section { padding: 120px 0; }

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-top: 40px;
}

.team-card {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    align-items: stretch;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.92);
}

.team-card::after {
    content: none;
}

.team-card-reverse {
    grid-template-columns: 1fr minmax(280px, 420px);
}

.team-card-reverse .team-media {
    order: 2;
}

.team-card-reverse .team-info {
    order: 1;
}

.team-media {
    min-height: 420px;
    height: 100%;
}

.team-img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.team-info {
    position: static;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.team-info h3 {
    margin-bottom: 8px;
    font-size: 36px;
}

.team-role {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.team-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-points li {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    h1, .hero-content-centered h1 { font-size: 52px; }
    h2 { font-size: 40px; }
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 60px; }
    .hero-content-centered p { font-size: 18px; }
    .hero-buttons { justify-content: center; }
    .hero-images { justify-content: center; }
    .teacher-2 { margin-top: 40px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .team-card { grid-template-columns: 1fr; }
    .team-media, .team-img { min-height: 350px; height: 350px; }
    .team-media { border-right: none; border-bottom: 1px solid var(--glass-border); }
    .team-card-reverse .team-media { order: -1; }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-block {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .value-prop, .services-section, .reviews-section, .faq-section, .team-section, .contact-section, .levels-exams { padding: 60px 0; }
    .gallery-section { padding: 60px 0 0 0; }
    .section-header { margin-bottom: 40px; }
    .header-content { height: 80px; }
    .logo { margin-left: 0; }
    .logo img { height: 60px; }
    .lang-switcher { margin-left: auto; }
    .dropdown-toggle { padding: 8px 14px; min-width: auto; gap: 6px; }
    .nav {
        display: none;
        position: absolute;
        top: 80px; left: 0; width: 100%;
        background: var(--surface-glass-heavy);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border-bottom: 1px solid var(--glass-border);
    }
    .nav.active { display: flex; }
    .mobile-menu-btn { display: none; }
    h1, .hero-content-centered h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    p { font-size: 16px; margin-bottom: 24px; }
    .section-header p { font-size: 18px; }
    .hero-content-centered p { font-size: 16px; }
    .hero-buttons { flex-direction: column; gap: 15px; }
    .features-grid { grid-template-columns: 1fr; gap: 24px; }
    .feature-card { padding: 30px 24px; }
    .services-grid { grid-template-columns: 1fr; gap: 24px; }
    .service-card { padding: 30px 24px; min-height: auto; }
    .exam-prep-card { padding: 30px 24px; }
    .review-card { padding: 24px; }
    .team-grid { gap: 24px; }
    .team-media, .team-img { min-height: 240px; height: 240px; }
    .team-info { padding: 24px 20px; }
    .custom-form .form-row { grid-template-columns: 1fr; }
    .form-container { padding: 30px; }
    .levels-grid { grid-template-columns: 1fr; gap: 16px; }
    .footer {
        padding: 72px 0 24px;
    }

    .footer::after {
        inset: 10px;
        border-radius: 22px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 36px;
    }

    .footer-logo {
        font-size: 28px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .container { padding: 0 16px; }
    .value-prop, .services-section, .reviews-section, .faq-section, .team-section, .contact-section, .levels-exams { padding: 40px 0; }
    .gallery-section { padding: 40px 0 0 0; }
    .section-header { margin-bottom: 30px; }
    h1, .hero-content-centered h1 { font-size: 30px; }
    h2 { font-size: 26px; }
    h3 { font-size: 20px; }
    p { font-size: 15px; margin-bottom: 20px; }
    .section-header p { font-size: 16px; line-height: 1.5; }
    .form-container { padding: 20px; }
    .hero-slideshow { height: 50vh; min-height: 300px; }
    .hero-buttons { flex-direction: column; gap: 12px; }
    .hero-buttons .btn { width: 100%; font-size: 16px; padding: 14px 20px; }
    
    .dropdown-toggle { padding: 6px 10px; font-size: 14px; }
    .dropdown-toggle .chevron { width: 14px; height: 14px; }
    
    /* Card Size Fixes for Mobile */
    .features-grid, .services-grid, .levels-grid, .team-grid { gap: 16px; }
    .feature-card { padding: 20px 16px; }
    .service-card { padding: 20px 16px; min-height: auto; }
    .review-card { padding: 16px; }
    .level-card { padding: 16px 12px; }
    .exam-prep-card { padding: 20px 16px; }
    
    /* FAQ Size Fixes for Mobile */
    .accordion-header { padding: 16px 20px; font-size: 16px; }
    .accordion-header .icon { width: 24px; height: 24px; }
    .accordion-content p { padding: 0 20px 16px; font-size: 14px; }
    
    .icon-box, .service-icon { 
        min-width: 48px; min-height: 48px; 
        width: 48px; height: 48px; 
        margin-bottom: 12px; 
        padding: 10px;
    }
    .icon-box svg, .service-icon svg { width: 24px; height: 24px; }
    .service-card h3, .feature-card h3, .level-card h4, .exam-prep-card h3 { font-size: 18px; margin-bottom: 8px; }
    .service-card p, .feature-card p, .level-card p, .exam-prep-card p { font-size: 14px; line-height: 1.5; }
    .exam-features { margin-top: 20px; gap: 12px; }
    .exam-features li { padding: 12px 16px; font-size: 14px; margin-bottom: 8px; }
    
    .review-card::before { font-size: 40px; top: 10px; right: 10px; }
    .review-top .reviewer { font-size: 16px; }
    .review-text { font-size: 14px; margin-bottom: 16px; }
    
    .team-media, .team-img { min-height: 200px; height: 200px; }
    .team-info { padding: 20px 16px; }
    .team-info h3 { font-size: 24px; }
    .team-role { font-size: 16px; margin-bottom: 12px; }
    .team-points li { font-size: 14px; gap: 8px; }
    .team-points li svg { width: 18px; height: 18px; min-width: 18px; }

    .footer-links {
        grid-template-columns: 1fr;
    }

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

    .footer-brand-block,
    .footer-column,
    .footer-contact {
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-cta {
        width: 100%;
    }
}
/* Reviews UI Update */
.reviews-ui-container {
    display: flex;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    border-radius: var(--border-radius-lg);
    padding: 30px 28px;
    gap: 28px;
    align-items: center; /* center summary and carousel vertically */
    min-height: 320px; /* smaller, neater height */
    width: 100%;
    max-width: 1820px;
    margin: 0 auto;
    overflow: hidden;
}

.reviews-summary-panel {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid #e6e6ea;
    padding-right: 20px;
    position: relative;
    gap: 8px;
}

.summary-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--accent-black);
}

.summary-stars {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.summary-star { display: inline-block; width: 18px; height: 18px; }

.summary-rating, .summary-count {
    font-size: 14px;
    margin: 2px 0;
    color: var(--text-primary);
}

.summary-logo {
    margin-top: 6px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.carousel-controls {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.carousel-btn {
    background: none;
    border: none;
    color: #f97316;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.carousel-btn:hover {
    transform: scale(1.1);
}

.reviews-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    flex-grow: 1;
    scrollbar-width: none; /* Firefox */
}

.reviews-carousel::-webkit-scrollbar {
    display: none; /* Chrome */
}

.review-card {
    flex: 0 0 360px;
    scroll-snap-align: start;
    background: transparent;
    padding: 12px 12px; /* tighten vertical padding */
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: none;
    height: auto; /* don't force stretch - keep natural height */
}
.review-card:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}
.review-card::before { display: none; }

.review-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.review-top .reviewer {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--accent-black);
}

.review-top .stars {
    font-size: 14px;
    color: #111827;
    margin: 0;
    letter-spacing: 1px;
    padding: 0;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.review-course {
    font-size: 14px;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 12px;
    margin-top: 0;
}

.review-text {
    font-size: 15px;
    font-style: normal;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.review-date {
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: auto;
}

@media (max-width: 900px) {
    .reviews-ui-container {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    .reviews-summary-panel {
        border-right: none;
        border-bottom: 1px solid #d1d5db;
        padding-right: 0;
        padding-bottom: 20px;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    .reviews-summary-panel h3 { width: 100%; }
    .carousel-controls {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    .reviews-carousel {
        width: 100%;
    }
    .review-card {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 0; /* Prevents flex items from overflowing */
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }
}

/* Location Inputs in Form */
.location-group {
    display: flex;
    gap: 15px;
}

.location-group input {
    flex: 1;
    min-width: 0;
}

@media (max-width: 600px) {
    .location-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Review Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
}
.close-modal:hover {
    color: var(--accent-red);
}
.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}
.modal-header h4 {
    font-size: 22px;
    margin: 0;
    color: var(--accent-black);
}
.modal-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-top: 20px;
    text-align: justify;
}
.see-more-btn {
    background: none;
    border: none;
    color: var(--accent-red);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
}
.see-more-btn:hover {
    text-decoration: underline;
}
.review-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}
