/* ================================================
   "Cause I am" - Менторлық мектеп
   Стиль: Harmony School референсі
   Доминант: Синий | Акцент: Розовый
   Шрифт: Gilroy, Arial, sans-serif
   ================================================ */

/* Gilroy Font (via CDN fallback) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap&subset=cyrillic-ext');

/* CSS Variables */
:root {
    --primary-color: #1B3A6B;
    --primary-dark: #122850;
    --primary-light: #2A5CAD;
    --accent-color: #E16183;
    --accent-dark: #c94d6a;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --text-color: #2D3748;
    --gradient-bg: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    --shadow: 0 4px 20px rgba(27, 58, 107, 0.08);
    --shadow-hover: 0 8px 30px rgba(27, 58, 107, 0.16);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Gilroy', 'Inter', Arial, sans-serif;
    color: var(--text-color);
    background: var(--white);
    line-height: 1.7;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Gilroy', 'Inter', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
}

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

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================
   HEADER — Harmony Style (тёмно-синий)
   ================================================ */
.header {
    background: var(--primary-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0;
}

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

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

.logo img {
    height: 35px;
    width: auto;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
    /* Make logo white */
}

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

.logo-text {
    font-family: 'Gilroy', 'Inter', Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

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

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ================================================
   HERO SECTION — Harmony Style (с фото-фоном)
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, rgba(27, 58, 107, 0.85) 0%, rgba(18, 40, 80, 0.9) 100%),
        url('img/IMG_7964.JPG') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.youtube-hero {
    background: linear-gradient(135deg, rgba(27, 58, 107, 0.6) 0%, rgba(18, 40, 80, 0.7) 100%), url('img/IMG_7960.JPG');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.theater-hero {
    background: linear-gradient(135deg, rgba(27, 58, 107, 0.6) 0%, rgba(18, 40, 80, 0.7) 100%), url('img/IMG_7970.JPG');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}



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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 18px;
    color: var(--white);
    animation: fadeInUp 0.8s ease;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent-color);
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--white);
    /* Changed from rgba(255, 255, 255, 0.8) to remove grayness */
    margin-bottom: 35px;
    animation: fadeInUp 0.8s ease 0.2s both;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.hero-tagline strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 36px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-family: 'Gilroy', 'Inter', Arial, sans-serif;
    text-align: center;
}

.btn-primary {
    background: var(--primary-light);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(42, 92, 173, 0.3);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 97, 131, 0.4);
}

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

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

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

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

/* ================================================
   SECTIONS
   ================================================ */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 800;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* Specific fix for Contact Section Title */
.contact .section-title h2 {
    color: var(--primary-color) !important;
}

/* ================================================
   UNIVERSITIES GRID
   ================================================ */
.universities {
    background: var(--white);
}

.universities-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.universities-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* Smooth touch scrolling on iOS */
    scroll-snap-type: x mandatory;
    /* Snap to cards */
}

.universities-grid::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.uni-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    flex: 0 0 280px;
    min-width: 280px;
    scroll-snap-align: start;
    /* Snap each card */
}

.uni-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.uni-card img {
    height: 80px;
    width: auto;
    margin: 0 auto 15px;
    object-fit: contain;
}

.uni-card h4 {
    font-size: 1rem;
    color: var(--primary-color);
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    border: 1px solid var(--gray);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    color: var(--primary-color);
    font-size: 1.5rem;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        display: none;
        /* Hide buttons on mobile, swipe is better */
    }
}

/* ================================================
   ABOUT SECTION — Harmony Style
   ================================================ */
/* ================================================
   ABOUT SECTION — Harmony Style Redesign
   ================================================ */
.about-harmony {
    background: var(--white);
    padding: 100px 0;
}

.about-harmony-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 60px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.about-harmony-title span {
    color: var(--accent-color);
}

/* Stats Row - Grid of 3 separate boxes */
.about-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.harmony-box {
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    padding: 40px 25px;
    background: var(--white);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: var(--transition);
}

.harmony-box:hover {
    box-shadow: 0 10px 30px rgba(225, 97, 131, 0.15);
    transform: translateY(-5px);
}

.harmony-box .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 10px;
    line-height: 1.1;
}

.harmony-box .stat-label {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.4;
}

/* Main Content Grid */
.about-main-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text-content {
    order: 2;
}

.about-image-content {
    order: 1;
}

/* Image Shapes */
.img-curve-bottom-right img {
    border-radius: 20px 20px 100px 20px;
    width: 100%;
    height: 350px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.img-curve-top-left img {
    border-radius: 100px 20px 20px 20px;
    width: 100%;
    height: 350px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

/* Text Styling */
.about-text-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text-content p {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-text-content strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* Secondary Content Row (Reverse) */
.about-secondary-run {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 900px) {
    .about-harmony-title {
        font-size: 2rem;
    }

    .about-stats-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-main-content,
    .about-secondary-run {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text-content {
        order: 1;
    }

    .about-image-content {
        order: 2;
    }
}

/* ================================================
   LOGO SECTION
   ================================================ */
.logo-section {
    background: var(--white);
}

.logo-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.logo-large {
    flex: 0 0 135px;
}

.logo-large img {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(27, 58, 107, 0.2));
}

.logo-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

/* ================================================
    WHY US SECTION
    ================================================ */
.why-us {
    background: var(--light-gray);
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.benefit-icon {
    flex: 0 0 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.benefit-item h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* ================================================
   VALUES SECTION
   ================================================ */
.values {
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background: var(--light-gray);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-light);
    transform: scaleX(0);
    transition: var(--transition);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--white);
}

.value-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--gray);
    font-size: 1rem;
}

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.contact .section-title h2 {
    color: var(--white);
}

.contact .section-title h2::after {
    background: var(--accent-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Gilroy', 'Inter', Arial, sans-serif;
    font-weight: 400;
}

.contact-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border: none;
}

.contact-final {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-final p {
    font-size: 1.2rem;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* ================================================
   YOUTUBE PAGE STYLES
   ================================================ */
.youtube-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #2d4a63 100%);
    color: var(--white);
    padding-top: 120px;
}

.youtube-hero .hero-content {
    max-width: 700px;
}

.youtube-hero h1 {
    color: var(--white);
}

.hero .hero-tagline {
    color: rgba(255, 255, 255, 0.85);
}

.hero .about-mission {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 4px solid var(--accent-color);
}

.hero .about-mission h3 {
    color: var(--accent-color);
}

/* ================================================
   PREMIUM FOOTER STYLES
   ================================================ */
.footer-premium {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #e0e6ed;
    padding: 40px 0 40px;
    /* Reduced top padding, increased bottom padding */
    font-size: 0.9rem;
    /* Slightly smaller text */
    position: relative;
    overflow: hidden;
}

/* Decorative top border */
.footer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-light), var(--accent-color));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 30px;
    margin-bottom: 30px;
    /* Reduced from 50px */
}

/* Column 1: Brand */
.footer-brand p {
    margin-top: 15px;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 300px;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Make logo white */
}

/* Column Headers */
.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Links List */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b8c1;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(225, 97, 131, 0.3);
    border-color: var(--accent-color);
}

/* Contact Info in Footer */
.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.footer-contact-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 2px;
}

.footer-contact-text p {
    color: #b0b8c1;
    margin: 0;
    line-height: 1.5;
}

.footer-contact-text strong {
    color: #fff;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-left: 20px;
}

.footer-legal a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .footer-legal a {
        margin: 0 10px;
    }
}

.about-mission p {
    color: rgba(255, 255, 255, 0.9);
}

.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 30px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.youtube-link:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--accent-color);
    background: var(--white);
}

/* Directions */
.directions {
    background: var(--white);
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.direction-card {
    padding: 30px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-left: 4px solid var(--primary-light);
}

.direction-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.direction-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.direction-card p {
    color: var(--gray);
}

/* Gallery */
.gallery {
    background: var(--light-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hidden-gallery-item {
    display: none;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1001;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    border: 2px solid var(--white);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1002;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

/* Suggestions */
.suggestions {
    background: var(--white);
}

.suggestion-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.suggestion-box p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--dark-gray);
}

/* ================================================
   THEATER PAGE STYLES
   ================================================ */
.theater-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(27, 58, 107, 0.9) 0%, rgba(18, 40, 80, 0.95) 100%),
        url('img/IMG_4456.PNG') center/cover no-repeat;
    color: var(--white);
    padding-top: 100px;
}

.soon-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 40px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.theater-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.theater-story {
    background: var(--white);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--dark-gray);
}

.theater-cta {
    background: var(--light-gray);
}

.cta-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--dark-gray);
}

/* ================================================
   CONSULTATION FORM
   ================================================ */
.consultation {
    background: var(--white);
    padding: 80px 0;
}

.consultation-box {
    max-width: 550px;
    margin: 0 auto;
    padding: 50px 40px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(27, 58, 107, 0.12);
}

.consultation-box h2 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
}

.consultation-box .subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 35px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Gilroy', 'Inter', Arial, sans-serif;
    color: var(--dark-gray);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(42, 92, 173, 0.1);
}

.form-group input::placeholder {
    color: #adb5bd;
}

/* Phone Input with Flag */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    background: var(--white);
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(42, 92, 173, 0.1);
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 15px;
    background: #f8f9fa;
    border-right: 2px solid #e8e8e8;
    cursor: default;
    flex-shrink: 0;
}

.phone-prefix .flag {
    width: 28px;
    height: 20px;
    background: linear-gradient(180deg, #00afca 33.33%, #00afca 33.33%, #fff 33.33%, #fff 66.66%, #fff 66.66%);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.phone-prefix .flag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    background: #00afca;
}

.phone-prefix .flag::after {
    content: '☀';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: #ffc61e;
}

/* Kazakhstan Flag SVG Alternative */
.kz-flag {
    width: 28px;
    height: 20px;
    background: #00afca;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.kz-flag svg {
    width: 100%;
    height: 100%;
}

.phone-prefix span {
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 1rem;
}

.phone-prefix .dropdown-arrow {
    color: #adb5bd;
    font-size: 0.6rem;
    margin-left: 2px;
}

.phone-input-wrapper input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: 'Gilroy', 'Inter', Arial, sans-serif;
    color: var(--dark-gray);
    background: transparent;
}

.phone-input-wrapper input:focus {
    outline: none;
    box-shadow: none;
}

.btn-submit {
    width: 100%;
    padding: 18px 36px;
    background: var(--primary-light);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Gilroy', 'Inter', Arial, sans-serif;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 58, 107, 0.4);
}

/* ================================================
   CONSULTATION SECTION (Toggle Style)
   ================================================ */
.consultation {
    background: var(--light-gray);
    padding: 80px 0;
}

.consultation-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 300px;
}

/* CTA Card */
.consultation-cta {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(27, 58, 107, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top center;
}

.consultation-cta.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.consultation-cta-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 50%;
    color: var(--primary-color);
}

.consultation-cta h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.consultation-cta p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Container */
.consultation-form-container {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(27, 58, 107, 0.15);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.consultation-form-container.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    position: relative;
}

.consultation-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--primary-color);
    color: var(--white);
}

.consultation-form-header h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0;
}

.consultation-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.consultation-close-btn:hover {
    background: var(--accent-color);
}

/* ================================================
   FORM POPUP MODAL
   ================================================ */
.form-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.form-popup-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.form-popup-box {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.form-popup-box h2 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.form-popup-box .subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.form-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.form-popup-close:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 60px;
    filter: brightness(1.2);
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in {
    animation: fadeInUp 0.8s ease both;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .logo-content {
        flex-direction: column;
        text-align: center;
    }

    .consultation-cta {
        padding: 40px 30px;
    }

    .consultation-cta h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        gap: 5px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        animation: slideDown 0.3s ease forwards;
    }

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

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

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle span {
        background: var(--white);
        height: 3px;
        border-radius: 4px;
    }

    /* Hero */
    .hero {
        min-height: 80vh;
        padding: 100px 15px 50px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    /* Section Titles */
    .section-title h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 50px 0;
    }

    /* Universities Carousel — Mobile */
    .universities-wrapper {
        padding: 0 10px;
    }

    .universities-grid {
        gap: 15px;
        padding: 15px 10px;
        scroll-snap-type: x mandatory;
    }

    .uni-card {
        flex: 0 0 220px;
        min-width: 220px;
        padding: 20px;
    }

    .uni-card img {
        height: 60px;
    }

    .uni-card h4 {
        font-size: 0.9rem;
    }

    .carousel-btn {
        display: none;
    }

    /* About Section */
    .about-harmony {
        padding: 60px 0;
    }

    .about-harmony-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .about-main-content,
    .about-secondary-run {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text-content {
        order: 1;
    }

    .about-image-content {
        order: 2;
    }

    .about-text-content h3 {
        font-size: 1.4rem;
    }

    .about-text-content p {
        font-size: 1rem;
    }

    .img-curve-bottom-right img,
    .img-curve-top-left img {
        height: 250px;
    }

    /* Mission Block */
    .hero .about-mission {
        padding: 20px 15px;
        margin: 20px 10px 0;
    }

    .hero .about-mission h3 {
        font-size: 1.1rem;
    }

    .hero .about-mission p {
        font-size: 0.95rem;
    }

    /* Grids */
    .benefits-list,
    .values-grid,
    .directions-grid {
        grid-template-columns: 1fr;
    }

    /* Logo */
    .logo img {
        height: 50px;
        filter: brightness(0) invert(1);
    }

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

    .footer-premium {
        padding: 30px 0 30px;
    }

    /* Consultation */
    .consultation-cta {
        padding: 30px 20px;
    }

    .consultation-cta h2 {
        font-size: 1.5rem;
    }

    .consultation-cta p {
        font-size: 1rem;
    }

    /* Form Popup */
    .form-popup-box {
        padding: 25px 20px;
    }

    .form-popup-box h2 {
        font-size: 1.5rem;
    }

    /* YouTube Link */
    .youtube-link {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Hero Buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Logo Section */
    .logo-large img {
        max-width: 250px;
        margin: 0 auto;
    }

    .logo-content {
        gap: 20px;
    }

    .logo-description p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
        padding: 90px 10px 40px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    /* Universities — Extra Small */
    .uni-card {
        flex: 0 0 180px;
        min-width: 180px;
        padding: 15px;
    }

    .uni-card img {
        height: 50px;
    }

    .uni-card h4 {
        font-size: 0.85rem;
    }

    /* About */
    .about-harmony-title {
        font-size: 1.3rem;
    }

    .about-text-content h3 {
        font-size: 1.2rem;
    }

    .img-curve-bottom-right img,
    .img-curve-top-left img {
        height: 200px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    .logo img {
        height: 40px;
    }

    /* Container */
    .container {
        padding: 0 15px;
    }
}