@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;500;600;700&family=Nunito+Sans:wght@400;500;600;700&display=swap');

/* --- Global Styles & Variables --- */
:root {
    --primary-color: #00c8e8;
    --secondary-color: #0d1625;
    --accent-color: #d4a843;
    --neon-purple: #a855f7;
    --heading-color: #e2eaf5;
    --text-color: #c8d6e8;
    --light-text-color: #6b84a0;
    --white-color: #ffffff;
    --background-color: #080c14;
    --light-grey: #0d1625;
    --border-color: rgba(0, 200, 232, 0.12);
    --card-bg: #0d1625;
    --color-gold: #d4a843;
    --color-muted: #6b84a0;
    --color-surface: #111d2e;

    --font-family-display: 'Bebas Neue', 'Arial Black', sans-serif;
    --font-family-heading: 'Rajdhani', 'Arial', sans-serif;
    --font-family-sans: 'Nunito Sans', 'Arial', sans-serif;
    --font-family-serif: 'Georgia', serif;

    --border-radius: 10px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 200, 232, 0.06);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

h1, h2 {
    font-family: var(--font-family-display);
    color: var(--heading-color);
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}
h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform 0.2s ease;
    font-family: var(--font-family-heading);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.section-content {
    background-color: var(--white-color);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: -80px; /* Накладываем на hero-секцию */
    position: relative;
    z-index: 10; /* Убедимся, что контент выше hero-overlay */
    margin-bottom: 50px;
}

/* Add background to alternating sections to break up white space */
.section-features, .section-partners, .cta-section {
    padding-top: 50px;
    padding-bottom: 50px;
}
.section-features, .section-partners {
    background-color: var(--light-grey);
    border-radius: var(--border-radius);
    padding: 40px;
}


.section-subtitle {
    font-size: 2.2em;
    font-family: var(--font-family-heading);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-subtitle::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.subsection-title {
    font-size: 1.8em;
    color: var(--heading-color);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--light-grey);
    padding-bottom: 10px;
}


/* --- Header --- */
.main-header {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 168, 67, 0.35);
    transition: padding 0.3s ease, box-shadow 0.3s ease, border-bottom-color 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Для мобильной адаптации */
}

.logo {
    display: flex;
    align-items: center;
    animation: logoGlow 2s ease-out forwards;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 0px transparent); }
    50% { filter: drop-shadow(0 0 12px rgba(0, 200, 232, 0.6)); }
    100% { filter: drop-shadow(0 0 4px rgba(0, 200, 232, 0.2)); }
}

.logo a {
    display: flex; /* Чтобы лого и текст были в одну линию */
    align-items: center;
    color: var(--white-color);
}

.college-logo {
    height: 50px; /* Высота логотипа */
    margin-right: 10px;
    border-radius: 50%; /* Если лого круглое */
}

.logo-text {
    font-size: 1.8em;
    font-weight: bold;
    white-space: nowrap; /* Чтобы текст не переносился */
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav ul li a {
    color: var(--white-color);
    font-size: 0.85em;
    padding: 5px 0;
    position: relative;
    white-space: nowrap;
    font-family: var(--font-family-heading);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul li a.active,
.main-nav ul li a[aria-current="page"] {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
}

.main-nav ul li a.active::before,
.main-nav ul li a[aria-current="page"]::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
}

.main-header.header-scrolled {
    padding: 8px 0;
    backdrop-filter: blur(32px);
    border-bottom-color: rgba(212, 168, 67, 0.55);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.language-switcher select {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 8px 10px 8px 35px; /* Отступ для флага */
    font-size: 0.9em;
    cursor: pointer;
    appearance: none; /* Убираем стандартные стрелки селекта */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23ffcc00" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>'); /* Кастомная стрелка */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
}

.language-switcher select:focus {
    outline: none;
    border-color: var(--white-color);
}

#selected-flag {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 15px;
    border-radius: 2px;
    pointer-events: none;
}

/* --- Custom language dropdown --- */
.lang-custom-dropdown {
    position: relative;
    user-select: none;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    padding: 6px 11px;
    cursor: pointer;
    color: var(--white-color);
    font-size: 0.88em;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.lang-btn:hover {
    background: rgba(255,255,255,0.14);
    border-color: var(--accent-color);
}

.lang-flag {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.lang-chevron {
    opacity: 0.7;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.lang-custom-dropdown.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-options {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--secondary-color);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    min-width: 150px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    list-style: none;
    padding: 4px 0;
    margin: 0;
}
.lang-custom-dropdown.open .lang-options {
    display: block;
}

.lang-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 0.9em;
    color: var(--text-color);
    transition: background 0.15s;
}
.lang-opt:hover {
    background: rgba(0, 212, 255, 0.08);
}
.lang-opt.active {
    color: var(--accent-color);
    font-weight: 500;
}

[data-theme="light"] .lang-btn {
    background: rgba(0,0,0,0.08);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}
[data-theme="light"] .lang-btn:hover {
    background: rgba(0,0,0,0.15);
}
[data-theme="light"] .lang-options {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
[data-theme="light"] .lang-opt {
    color: var(--secondary-color);
}
[data-theme="light"] .lang-opt:hover {
    background: rgba(0,0,0,0.04);
}

.hamburger-menu {
    display: none; /* Скрыть на больших экранах */
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 1.8em;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(8, 12, 20, 0.82) 0%,
        rgba(8, 12, 20, 0.60) 50%,
        rgba(8, 12, 20, 0.75) 100%
    );
    z-index: 0;
}

.hero-split-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 60px 0;
}

/* Left column */
.hero-left {
    padding-right: 48px;
}

.hero-eyebrow {
    display: block;
    font-family: var(--font-family-heading);
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 20px;
    opacity: 0;
    animation: heroRise 0.7s 0.1s ease forwards;
    text-shadow: 2px 4px 0px rgba(255, 255, 255, 0.18);
}

.hero-title {
    font-family: var(--font-family-display);
    font-size: 4.5em;
    line-height: 1.0;
    letter-spacing: 0.03em;
    color: var(--white-color);
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    animation: heroRise 0.85s 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    text-shadow: 2px 5px 0px rgba(255, 255, 255, 0.15);
}

.hero-slogan {
    font-family: var(--font-family-sans);
    font-size: 1.15em;
    color: var(--text-color);
    margin-bottom: 36px;
    max-width: 420px;
    line-height: 1.6;
    opacity: 0;
    animation: heroRise 0.85s 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroRise 0.85s 0.58s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Vertical divider line */
.hero-divider-line {
    width: 1px;
    height: 300px;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    opacity: 0.5;
    flex-shrink: 0;
    animation: dividerGrow 1s 0.6s ease forwards;
    transform: scaleY(0);
    transform-origin: center;
}

@keyframes dividerGrow {
    to { transform: scaleY(1); opacity: 0.5; }
}

/* Right column visual */
.hero-right {
    padding-left: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero photo (right panel) */
.hero-photo-wrap {
    position: relative;
    width: 100%;
    max-width: 420px;
    opacity: 0;
    animation: heroRise 1s 0.5s ease forwards;
}

.hero-photo {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 4px;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
    transition: clip-path 0.5s ease;
    box-shadow: -8px 8px 40px rgba(0, 0, 0, 0.5);
}

.hero-photo-wrap:hover .hero-photo {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.hero-photo-badge {
    position: absolute;
    bottom: -16px;
    left: 8%;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-color);
    padding: 10px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-photo-num {
    font-family: var(--font-family-display);
    font-size: 2.2em;
    line-height: 1;
    color: var(--accent-color);
    letter-spacing: 0.04em;
}

.hero-photo-label {
    font-family: var(--font-family-heading);
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--light-text-color);
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}

@keyframes spinRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Page Hero Sections (for inner pages) --- */
.page-hero-section {
    position: relative;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: var(--secondary-color);
    background-image: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    padding: 0 20px;
    margin-bottom: 50px; /* Отступ до секции контента */
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-title {
    font-size: 3em;
    color: var(--white-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


/* --- About Section (Home Page) --- */
.about-short {
    text-align: center;
    margin-bottom: 40px;
}

.about-short .btn {
    margin-top: 20px;
}

/* --- Features Section (Home Page) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.feature-item {
    background-color: var(--light-grey);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05); /* Внутренняя тень */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
}

.feature-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.95em;
    color: var(--light-text-color);
}

/* --- Partners Section --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.partner-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px 24px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 200, 232, 0.15);
    border-color: var(--primary-color);
}

.partner-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 200, 232, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    border: 1px solid rgba(0, 200, 232, 0.2);
}

.partner-icon-wrap i {
    font-size: 1.8em;
    color: var(--primary-color);
}

.partner-name {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.partner-desc {
    font-size: 0.9em;
    color: var(--light-text-color);
    margin: 0;
    line-height: 1.5;
}

.partner-type {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.78em;
    font-weight: 600;
    background: rgba(168, 85, 247, 0.15);
    color: var(--neon-purple);
    border: 1px solid rgba(168, 85, 247, 0.3);
    letter-spacing: 0.03em;
}

/* --- Call to Action (Home Page) --- */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 60px 0;
    text-align: center;
    margin-top: 50px; /* Отступ от предыдущего контента */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.cta-section h2 {
    color: var(--white-color);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px;
}


/* --- Footer --- */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--light-grey);
    padding: 50px 0 20px;
    margin-top: auto; /* Прижимает футер к низу страницы */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-col p, .footer-col ul li {
    font-size: 0.95em;
    line-height: 1.8;
}

.footer-col ul {
    padding: 0;
}

.footer-col ul li a {
    color: var(--light-grey);
    transition: color var(--transition-speed) ease;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--light-grey);
    font-size: 1.5em;
    transition: color var(--transition-speed) ease;
}

.social-links a:hover {
    color: var(--white-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

/* --- About Page Specific Styles --- */
.about-hero {
    /* Можно добавить специфичные стили или просто использовать .page-hero-section */
}

.about-intro-text {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    gap: 40px;
    margin-bottom: 40px;
    align-items: start; /* Выравнивание по верхнему краю */
}

.about-image-block {
    text-align: center;
}

.about-image-block img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: block; /* Убирает лишний пробел под изображением */
    margin: 0 auto;
}

.about-text-content {
    display: flex;
    flex-direction: column;
}

.about-text-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.mission-card, .vision-card {
    background-color: var(--light-grey);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.mission-card h3, .vision-card h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.mission-card i, .vision-card i {
    font-size: 2.5em;
    color: var(--accent-color);
    display: block;
    text-align: center;
    margin-bottom: 15px;
}

/* --- Leadership Section --- */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.leader-card {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-8px);
}

.leader-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
}

.leader-card h4 {
    font-size: 1.4em;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.leader-card p {
    font-size: 0.95em;
    color: var(--light-text-color);
    margin-bottom: 0; /* Убираем лишний отступ у последнего параграфа */
}


/* --- Applicants Page Specific Styles --- */
.applicants-hero {
    /* Можно добавить специфичные стили или просто использовать .page-hero-section */
}

.faq-section {
    margin-top: 40px;
    margin-bottom: 60px;
}

.faq-item {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.faq-question {
    padding: 18px 25px;
    background-color: var(--light-grey);
    color: var(--secondary-color);
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e0e7ee;
}

.faq-question .icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    background-color: var(--white-color);
}

.faq-answer p {
    padding-top: 15px;
    padding-bottom: 15px;
    color: var(--text-color);
}

/* JavaScript class for active accordion item */
.faq-item.active .faq-question {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-bottom: 1px solid var(--primary-color);
}

.faq-item.active .faq-question .icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* --- Form Styles --- */
.contact-form-section {
    background-color: var(--light-grey);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 40px;
    margin-bottom: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1em;
    color: var(--text-color);
    background-color: var(--white-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

.form-group textarea {
    resize: vertical; /* Разрешить изменение размера по вертикали */
    min-height: 100px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-align: center;
    display: none; /* Скрыто по умолчанию */
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Programs Page Specific Styles --- */
.programs-hero {
    /* Можно добавить специфичные стили или просто использовать .page-hero-section */
}

/* --- Program Cards (Horizontal List) --- */
.programs-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.programs-level-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 40px 0 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 200, 232, 0.25);
}

.program-card {
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.program-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 20, 0.88);
    z-index: 0;
    transition: background 0.35s ease;
}

.program-card:last-child {
    border-bottom: none;
}

.program-card:hover {
    transform: translateX(6px);
}

.program-card:hover::before {
    background: rgba(8, 12, 20, 0.68);
}

.program-card-inner {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: start;
    gap: 0;
    padding: 32px 36px;
    position: relative;
    z-index: 1;
}

.program-num {
    font-family: var(--font-family-display);
    font-size: 3.5em;
    line-height: 1;
    color: var(--accent-color);
    opacity: 0.5;
    letter-spacing: 0.04em;
    padding-top: 4px;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.program-card:hover .program-num {
    opacity: 1;
}

.program-info {
    padding: 0;
}

.program-title {
    font-family: var(--font-family-heading);
    font-size: 1.25em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--heading-color);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.program-card:hover .program-title {
    color: var(--primary-color);
}

.program-description {
    color: var(--light-text-color);
    font-size: 0.9em;
    margin-bottom: 16px;
    max-width: 600px;
    line-height: 1.6;
}

.program-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 16px;
    list-style: none;
    padding: 0;
}

.program-details li {
    font-family: var(--font-family-heading);
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--light-text-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.program-details li::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Hide program-img (now removed from HTML but keep rule in case) */
.program-img {
    display: none;
}

.program-card .btn-secondary {
    display: inline-block;
    margin-top: auto;
}

.all-programs-link {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: var(--text-color);
}

.all-programs-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.all-programs-link a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* --- Student Life Page Specific Styles --- */
.student-life-hero {
    /* Можно добавить специфичные стили или просто использовать .page-hero-section */
}

.activity-list {
    margin-top: 15px;
    margin-bottom: 30px;
    padding-left: 25px; /* Отступ для маркеров */
    list-style: disc; /* Маркеры-точки */
    color: var(--text-color);
}

.activity-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
    line-height: 1.5;
}

/* --- Clubs Grid --- */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 60px;
}

.club-item {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.club-item:hover {
    transform: translateY(-5px);
}

.club-icon {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.club-item h4 {
    font-size: 1.3em;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.club-item p {
    font-size: 0.9em;
    color: var(--secondary-color);
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 60px;
}

.gallery-item {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 15px;
    font-size: 0.95em;
    color: var(--text-color);
    text-align: center;
    background-color: var(--background-color);
    border-top: 1px solid var(--light-grey);
}

/* --- Contacts Page Specific Styles --- */
.contacts-hero {
    /* Можно добавить специфичные стили или просто использовать .page-hero-section */
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.contact-item {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.contact-item p {
    font-size: 0.9em;
    color: var(--text-color);
    line-height: 1.6;
    word-break: break-all;
    overflow-wrap: break-word;
    margin-bottom: 5px;
}

.map-container {
    margin-top: 40px;
    margin-bottom: 60px;
    border-radius: var(--border-radius);
    overflow: hidden; /* Для скругления углов iframe */
    box-shadow: var(--box-shadow);
    background-color: var(--light-grey); /* Заглушка, если карта не загрузится */
    min-height: 300px; /* Минимальная высота для контейнера карты */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary-color);
    font-style: italic;
}

.map-container iframe {
    width: 100%;
    height: 400px; /* Высота карты */
    border: none;
}


/* --- Responsive Styles --- */

/* --- Tablet (Medium Screens) --- */
@media (max-width: 992px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .main-nav ul {
        gap: 15px;
    }
    .main-nav ul li a {
        font-size: 1em;
    }

    .logo-text {
        font-size: 1.5em;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }

    .page-title {
        font-size: 2.5em;
    }

    .section-content {
        padding: 40px;
    }

    .about-grid, .mission-vision-grid {
        grid-template-columns: 1fr;
    }

}


/* --- Mobile (Small Screens) --- */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block; /* Показать гамбургер-меню */
        z-index: 1002; /* Выше чем лого и другие элементы хедера */
    }

    .main-nav ul {
        display: none; /* Скрыть навигацию по умолчанию */
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--secondary-color);
        padding-top: 80px;
        text-align: center;
        gap: 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1001;
    }

    .main-nav ul.active {
        display: flex; /* Показать при активации */
        transform: translateX(0);
    }
    
    .main-nav ul li {
        opacity: 0;
        animation: navItemSlideIn 0.3s ease forwards;
    }
    .main-nav ul li:nth-child(1) { animation-delay: 0.05s; }
    .main-nav ul li:nth-child(2) { animation-delay: 0.10s; }
    .main-nav ul li:nth-child(3) { animation-delay: 0.15s; }
    .main-nav ul li:nth-child(4) { animation-delay: 0.20s; }
    .main-nav ul li:nth-child(5) { animation-delay: 0.25s; }
    .main-nav ul li:nth-child(6) { animation-delay: 0.30s; }

    .main-nav ul li a {
        font-size: 1.3em;
        padding: 10px 0;
    }

    .main-nav ul li a::after {
        display: none; /* Убрать подчеркивание в мобильном меню */
    }

    .header-content {
        /* Убедимся, что переключатель языка не мешает */
        position: relative;
    }
    
    .language-switcher {
        order: 2;
    }

    .theme-toggle-btn {
        order: 3;
    }

    .hamburger-menu {
        order: 4;
    }

    .logo {
        order: 1;
    }

    .lang-name {
        display: none;
    }
    .lang-btn {
        padding: 5px 8px;
        gap: 5px;
    }
    
    .logo-text {
        font-size: 1.3em;
    }
    .college-logo {
        height: 40px;
    }

    .hero-section {
        min-height: auto;
        clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
        margin-bottom: -4px;
    }
    .hero-split-inner {
        grid-template-columns: 1fr;
        padding: 48px 0 32px;
        gap: 32px;
    }
    .hero-left {
        padding-right: 0;
        text-align: center;
    }
    .hero-title {
        font-size: 3em;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .hero-divider-line {
        display: none;
    }
    .hero-right {
        padding-left: 0;
    }
    .hero-photo-wrap {
        max-width: 100%;
    }
    .hero-photo {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        aspect-ratio: 16/9;
    }
    .hero-photo-badge {
        bottom: -12px;
        left: 0;
    }

    .page-hero-section {
        height: 200px;
        margin-bottom: 0; /* Убираем отступ, т.к. контент больше не накладывается */
    }

    .page-title {
        font-size: 2em;
    }

    .section-content {
        margin-top: 30px; /* Заменяем отрицательный отступ на положительный */
        padding: 40px 16px;
        margin-bottom: 30px;
    }
    .container {
        width: 95%;
        padding: 16px 0;
    }
    
    .section-features, .section-partners {
        padding: 25px 20px;
    }
    
    .section-subtitle {
        font-size: 1.8em;
    }
    .subsection-title {
        font-size: 1.5em;
    }

    .features-grid,
    .leadership-grid,
    .clubs-grid,
    .gallery-grid,
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .program-card-inner {
        grid-template-columns: 60px 1fr;
        padding: 24px 20px;
    }
    .program-num {
        font-size: 2.5em;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }

    .contact-form-section {
        padding: 25px 20px;
    }
}

.social-icon {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: #ffffff; /* Цвет иконок */
    transition: fill 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    fill: #f0c040;
    transform: scale(1.2) rotate(5deg);
}

/* --- FAQ / Accordion --- */
.faq-question {
    cursor: pointer;
    user-select: none;
}

/* ============================================================
   ANIMATION SYSTEM
   ============================================================ */

@keyframes heroRise {
    from { opacity: 0; transform: translateY(48px) scale(0.97); filter: blur(6px); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0);   }
}

@keyframes heroFade {
    from { opacity: 0; filter: blur(4px); }
    to   { opacity: 1; filter: blur(0);   }
}

@keyframes countGlow {
    0%   { text-shadow: none; }
    50%  { text-shadow: 0 0 28px rgba(230, 184, 0, 0.9); }
    100% { text-shadow: 0 0 12px rgba(230, 184, 0, 0.4); }
}

@keyframes navItemSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes shimmerLine {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.hero-content h1 {
    opacity: 0;
    animation: heroRise 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hero-content p {
    opacity: 0;
    animation: heroRise 0.85s 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hero-content .btn {
    opacity: 0;
    animation: heroRise 0.85s 0.44s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.page-title {
    opacity: 0;
    animation: heroRise 0.75s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Scroll-triggered animation base states */
[data-anim] {
    opacity: 0;
    will-change: opacity, transform;
}

[data-anim="fade-up"] {
    transform: translateY(60px);
    filter: blur(5px);
    transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.65s ease;
}
[data-anim="fade-left"] {
    transform: translateX(-65px);
    filter: blur(5px);
    transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.65s ease;
}
[data-anim="fade-right"] {
    transform: translateX(65px);
    filter: blur(5px);
    transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.65s ease;
}
[data-anim="scale"] {
    transform: scale(0.80);
    filter: blur(3px);
    transition: opacity 0.55s ease,
                transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.55s ease;
}
[data-anim="flip"] {
    transform: perspective(900px) rotateX(26deg) translateY(36px);
    filter: blur(3px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.65s ease;
}
[data-anim="zoom"] {
    transform: scale(1.10);
    filter: blur(3px);
    transition: opacity 0.65s ease, transform 0.65s ease, filter 0.65s ease;
}

[data-anim].in-view {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

/* Stagger delays — snappier 8 ms steps */
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.25s; }
[data-delay="4"] { transition-delay: 0.33s; }
[data-delay="5"] { transition-delay: 0.42s; }
[data-delay="6"] { transition-delay: 0.50s; }

/* Section subtitle underline — grows in, then shimmers */
.section-subtitle::after {
    width: 0 !important;
    transition: width 0.6s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.section-subtitle.in-view::after {
    width: 80px !important;
    background: linear-gradient(90deg, var(--accent-color) 0%, #fff5a0 50%, var(--accent-color) 100%);
    background-size: 200% auto;
    animation: shimmerLine 2.5s linear infinite;
}

/* Stat glow after count finishes */
.stat-item.counted .stat-number-wrap {
    animation: countGlow 1.2s ease forwards;
}

/* Enhanced hover glows on cards */
.feature-item:hover  { box-shadow: 0 16px 36px rgba(0, 86, 179, 0.18) !important; }
.club-item:hover     { box-shadow: 0 12px 30px rgba(0, 86, 179, 0.16) !important; }
.contact-item:hover  { box-shadow: 0 12px 30px rgba(0, 86, 179, 0.16) !important; }
.value-item:hover    { box-shadow: 0 12px 28px rgba(0, 86, 179, 0.14) !important; }

/* Reduced-motion fallback */
/* Mobile: replace all 3D/complex animations with simple fade */
@media (max-width: 768px) {
    [data-anim] {
        transform: none !important;
        will-change: opacity;
    }
    [data-anim].in-view {
        transition: opacity 0.45s ease !important;
    }
    #grain-canvas,
    #particles-canvas,
    .bg-blob {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-anim] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
    [data-delay] { transition-delay: 0s !important; }
    .hero-content h1,
    .hero-content p,
    .hero-content .btn,
    .page-title {
        opacity: 1 !important;
        filter: none !important;
        animation: none !important;
    }
    .section-subtitle::after {
        width: 80px !important;
        transition: none !important;
        animation: none !important;
    }
}

/* --- Stats Section --- */
.section-stats {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.stats-bg {
    position: absolute;
    inset: 0;
    background-color: var(--secondary-color);
    background-image: radial-gradient(circle, rgba(0, 200, 232, 0.18) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 0;
}

.stats-inner {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid rgba(0, 200, 232, 0.10);
    border-radius: 4px;
    overflow: hidden;
}

.stat-item {
    padding: 48px 32px;
    text-align: center;
    border-right: 1px solid rgba(0, 200, 232, 0.10);
    transition: background 0.3s ease;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: rgba(0, 200, 232, 0.04);
}

.stat-number-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.stat-number {
    font-family: var(--font-family-display);
    font-size: 5.5em;
    line-height: 1;
    color: var(--accent-color);
    text-shadow: 0 0 30px rgba(212, 168, 67, 0.35);
    letter-spacing: 0.02em;
}

.stat-symbol {
    font-family: var(--font-family-display);
    font-size: 3em;
    color: var(--accent-color);
    opacity: 0.7;
    letter-spacing: 0;
}

.stat-label {
    font-family: var(--font-family-heading);
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--light-text-color);
    margin-bottom: 0;
}

.stats-divider {
    width: 60px;
    height: 1px;
    background: var(--accent-color);
    margin: 40px auto 24px;
    opacity: 0.6;
}

.stats-quote {
    text-align: center;
    font-family: var(--font-family-heading);
    font-size: 0.82em;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--light-text-color);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-number {
        font-size: 4.2em;
    }
    .stat-item {
        padding: 32px 20px;
    }
    .stat-item:nth-child(2) {
        border-right: none;
    }
}

/* --- Gallery Lightbox --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 15px;
    font-size: 1em;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 2.2em;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

/* --- Floating Telegram Button --- */
.telegram-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 58px;
    height: 58px;
    background: #229ED9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 16px rgba(34, 158, 217, 0.5);
    z-index: 8000;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.telegram-float:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 8px 24px rgba(34, 158, 217, 0.6);
    color: #fff;
}

/* ============================================================
   3D ANIMATION VARIANTS — unique per content type
   ============================================================ */

/* rotate-in-x: unfolds from top like a hatch */
[data-anim="rotate-in-x"] {
    transform: perspective(900px) rotateX(-78deg);
    transform-origin: top center;
    filter: blur(4px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.6s ease;
}

/* pivot: lifts up from bottom edge */
[data-anim="pivot"] {
    transform: perspective(700px) rotateX(60deg) translateY(40px);
    transform-origin: bottom center;
    filter: blur(3px);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.55s ease;
}

/* cube-drop: falls like a cube face from above */
[data-anim="cube-drop"] {
    transform: perspective(700px) rotateX(-62deg) translateY(-45px);
    transform-origin: top center;
    filter: blur(5px);
    transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.6s ease;
}

/* rotate-in-y: door swing from right */
[data-anim="rotate-in-y"] {
    transform: perspective(900px) rotateY(78deg);
    transform-origin: left center;
    filter: blur(4px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.65s ease;
}

/* swivel: door swing from left */
[data-anim="swivel"] {
    transform: perspective(900px) rotateY(-78deg);
    transform-origin: right center;
    filter: blur(4px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.65s ease;
}

/* spin-in: card flip on Y axis */
[data-anim="spin-in"] {
    transform: perspective(700px) rotateY(105deg) scale(0.78);
    filter: blur(5px);
    transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.6s ease;
}

/* tilt-rise: rises with diagonal 3D lean */
[data-anim="tilt-rise"] {
    transform: perspective(900px) rotateX(30deg) rotateZ(-6deg) translateY(55px);
    filter: blur(4px);
    transition: opacity 0.68s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.68s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.62s ease;
}

/* roll: rolls in with Z spin + slide */
[data-anim="roll"] {
    transform: perspective(700px) rotateZ(-28deg) translateX(-52px);
    filter: blur(4px);
    transition: opacity 0.58s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.58s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.52s ease;
}

/* depth-emerge: emerges from screen depth */
[data-anim="depth-emerge"] {
    transform: perspective(600px) translateZ(-140px) scale(0.82);
    filter: blur(8px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.75s ease;
}

/* --- Hero 3D Objects: Cubes, Rings, Dots --- */
.hero-cube-wrap {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.hero-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube linear infinite;
}

@keyframes rotateCube {
    0%   { transform: rotateX(0deg)   rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(540deg); }
}

.hero-cube .face {
    position: absolute;
    inset: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
    backface-visibility: visible;
}

.hero-ring {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.22);
    animation: spinRing3D linear infinite;
}

@keyframes spinRing3D {
    0%   { transform: perspective(200px) rotateX(72deg) rotateZ(0deg); }
    100% { transform: perspective(200px) rotateX(72deg) rotateZ(360deg); }
}

.hero-dot {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    animation: pulseDot ease-in-out infinite alternate;
}

@keyframes pulseDot {
    from { transform: scale(0.75); opacity: 0.08; }
    to   { transform: scale(1.25); opacity: 0.28; }
}

/* Reduced-motion: disable all 3D variants and hero objects */
@media (prefers-reduced-motion: reduce) {
    .hero-cube-wrap,
    .hero-ring,
    .hero-dot { display: none; }
    [data-anim="rotate-in-x"],
    [data-anim="pivot"],
    [data-anim="cube-drop"],
    [data-anim="rotate-in-y"],
    [data-anim="swivel"],
    [data-anim="spin-in"],
    [data-anim="tilt-rise"],
    [data-anim="roll"],
    [data-anim="depth-emerge"] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

/* ================================================================
   LIGHT THEME OVERRIDE  (applied when <html data-theme="light">)
   ================================================================ */
[data-theme="light"] {
    --primary-color: #0070a8;
    --secondary-color: #003f7f;
    --accent-color: #b8891e;
    --neon-purple: #6f42c1;
    --heading-color: #003f7f;
    --text-color: #333333;
    --light-text-color: #666666;
    --white-color: #ffffff;
    --background-color: #f8f9fa;
    --light-grey: #e9ecef;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] body {
    background: var(--background-color);
    background-attachment: unset;
    color: var(--text-color);
}
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 { color: var(--secondary-color); }
[data-theme="light"] a { color: var(--primary-color); }
[data-theme="light"] a:hover { color: var(--secondary-color); }
[data-theme="light"] .main-header {
    background: var(--secondary-color);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .logo a { color: #fff; }
[data-theme="light"] .logo-text {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
}
[data-theme="light"] .main-nav ul li a { color: #fff; }
[data-theme="light"] .main-nav ul li a:hover,
[data-theme="light"] .main-nav ul li a.active { color: #fff; }
[data-theme="light"] .main-nav ul li a::after { background-color: var(--accent-color); }
[data-theme="light"] .language-switcher select {
    background-color: var(--primary-color);
    border-color: var(--accent-color);
    color: #fff;
}
[data-theme="light"] .hamburger-menu { color: #fff; }
[data-theme="light"] .main-nav ul { background: var(--secondary-color); border-left: none; }
[data-theme="light"] .hero-section,
[data-theme="light"] .page-hero-section { background-color: var(--secondary-color) !important; }
[data-theme="light"] .hero-overlay { background-color: rgba(0,0,0,0.5); }
[data-theme="light"] .hero-photo-label { color: var(--accent-color); }
[data-theme="light"] .hero-photo-badge { border-left-color: var(--accent-color); background: rgba(255,255,255,0.92); }
[data-theme="light"] .hero-content h1,
[data-theme="light"] .page-title { text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
[data-theme="light"] .hero-content p { color: var(--light-grey); }
[data-theme="light"] .section-content {
    background: var(--white-color);
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
[data-theme="light"] .section-features,
[data-theme="light"] .section-partners {
    background-color: var(--light-grey);
    border: none;
}
[data-theme="light"] .section-subtitle { color: var(--primary-color); text-shadow: none; }
[data-theme="light"] .section-subtitle::after {
    background: var(--accent-color);
    box-shadow: none;
}
[data-theme="light"] .subsection-title { color: var(--secondary-color); border-bottom-color: var(--light-grey); }
[data-theme="light"] .btn-primary {
    background: var(--primary-color);
    color: #fff;
    font-weight: bold;
    box-shadow: none;
}
[data-theme="light"] .btn-primary:hover { background: var(--secondary-color); color: #fff; box-shadow: none; }
[data-theme="light"] .btn-secondary {
    background: #fff;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: none;
}
[data-theme="light"] .btn-secondary:hover { background: var(--primary-color); color: #fff; box-shadow: none; }
[data-theme="light"] .feature-item {
    background: var(--light-grey);
    border: none;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}
[data-theme="light"] .feature-item:hover { background: #fff !important; border: none !important; box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important; }
[data-theme="light"] .feature-item i { color: var(--primary-color); filter: none; }
[data-theme="light"] .feature-item h3 { color: var(--secondary-color); }
[data-theme="light"] .feature-item p { color: var(--light-text-color); }
[data-theme="light"] .partner-card {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
[data-theme="light"] .partner-card:hover { border-color: var(--primary-color); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
[data-theme="light"] .partner-icon-wrap { background: rgba(0, 100, 200, 0.08); border-color: rgba(0, 100, 200, 0.15); }
[data-theme="light"] .partner-name { color: var(--secondary-color); }
[data-theme="light"] .partner-desc { color: var(--light-text-color); }
[data-theme="light"] .partner-type { background: rgba(100, 50, 200, 0.08); color: #7c3aed; border-color: rgba(100, 50, 200, 0.2); }
[data-theme="light"] .stats-bg {
    background-color: var(--secondary-color);
    background-image: radial-gradient(circle, rgba(0, 200, 232, 0.12) 1px, transparent 1px);
}
[data-theme="light"] .cta-section {
    background: var(--primary-color);
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
[data-theme="light"] .cta-section h2 { color: #fff; text-shadow: none; }
[data-theme="light"] .cta-section p { color: rgba(255,255,255,0.9); }
[data-theme="light"] .main-footer { background: var(--secondary-color); border-top: none; }
[data-theme="light"] .footer-col h3 { color: var(--accent-color); text-shadow: none; }
[data-theme="light"] .footer-col p,
[data-theme="light"] .footer-col ul li { color: var(--light-grey); }
[data-theme="light"] .footer-col ul li a { color: var(--light-grey); }
[data-theme="light"] .footer-col ul li a:hover { color: var(--accent-color); }
[data-theme="light"] .footer-content { border-bottom-color: rgba(255,255,255,0.1); }
[data-theme="light"] .footer-bottom { color: rgba(255,255,255,0.6); }
[data-theme="light"] .social-icon { fill: var(--light-grey); }
[data-theme="light"] .social-icon:hover { fill: #fff; filter: none; }
[data-theme="light"] .mission-card, [data-theme="light"] .vision-card,
[data-theme="light"] .leader-card, [data-theme="light"] .faq-item,
[data-theme="light"] .contact-item,
[data-theme="light"] .club-item, [data-theme="light"] .gallery-item {
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
[data-theme="light"] .mission-card:hover, [data-theme="light"] .vision-card:hover,
[data-theme="light"] .leader-card:hover, [data-theme="light"] .contact-item:hover,
[data-theme="light"] .club-item:hover,
[data-theme="light"] .gallery-item:hover {
    border-color: var(--border-color) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
}
[data-theme="light"] .programs-grid {
    border-color: var(--border-color);
}
[data-theme="light"] .program-card {
    border-bottom-color: var(--border-color);
}
[data-theme="light"] .program-card::before {
    background: rgba(240, 245, 255, 0.90);
}
[data-theme="light"] .program-card:hover::before {
    background: rgba(240, 245, 255, 0.72);
}
[data-theme="light"] .mission-card h3, [data-theme="light"] .vision-card h3 { color: var(--primary-color); }
[data-theme="light"] .mission-card i, [data-theme="light"] .vision-card i { color: var(--accent-color); filter: none; }
[data-theme="light"] .leader-card img { border-color: var(--primary-color); box-shadow: none; }
[data-theme="light"] .leader-card h4 { color: var(--secondary-color); }
[data-theme="light"] .leader-card p { color: var(--light-text-color); }
[data-theme="light"] .faq-question { background: var(--light-grey); color: var(--secondary-color); border-bottom-color: var(--border-color); }
[data-theme="light"] .faq-question:hover { background: #e0e7ee; }
[data-theme="light"] .faq-item.active .faq-question { background: var(--primary-color); color: #fff; border-bottom-color: var(--primary-color); }
[data-theme="light"] .faq-answer { background: #fff; color: var(--text-color); }
[data-theme="light"] .contact-form-section { background: var(--light-grey); border: none; }
[data-theme="light"] .form-group label { color: var(--secondary-color); }
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: #fff;
    border-color: var(--border-color);
    color: var(--text-color);
}
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder { color: var(--light-text-color); }
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}
[data-theme="light"] .program-title { color: var(--secondary-color); }
[data-theme="light"] .program-card:hover .program-title { color: var(--primary-color); }
[data-theme="light"] .program-description, [data-theme="light"] .program-details li { color: var(--text-color); }
[data-theme="light"] .program-num { color: var(--primary-color); }
[data-theme="light"] .club-item { border-bottom-color: var(--accent-color); }
[data-theme="light"] .club-item:hover { border-bottom-color: var(--accent-color) !important; }
[data-theme="light"] .club-icon { color: var(--primary-color); filter: none; }
[data-theme="light"] .club-item h4 { color: var(--secondary-color); }
[data-theme="light"] .gallery-caption { color: var(--text-color); background: var(--background-color); border-top-color: var(--light-grey); }
[data-theme="light"] .contact-icon { color: var(--primary-color); filter: none; }
[data-theme="light"] .contact-item h3 { color: var(--secondary-color); }
[data-theme="light"] .contact-item p { color: var(--text-color); }
[data-theme="light"] .map-container { background: var(--light-grey); border: none; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
[data-theme="light"] .hero-edu-icon { display: none; }
[data-theme="light"] .telegram-float { box-shadow: 0 4px 16px rgba(34, 158, 217, 0.5); }

/* --- Theme toggle button --- */
.theme-toggle-btn {
    background: none;
    border: 1px solid rgba(0, 200, 232, 0.3);
    border-radius: 50%;
    color: var(--text-color);
    cursor: pointer;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    flex-shrink: 0;
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.theme-toggle-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 200, 232, 0.1);
    color: var(--primary-color);
    transform: rotate(20deg);
}
[data-theme="light"] .theme-toggle-btn {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}
[data-theme="light"] .theme-toggle-btn:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-color);
}

/* ================================================================
   DARK NEON THEME
   ================================================================ */

/* --- Base --- */
body {
    background: radial-gradient(ellipse at 20% 0%, #0e1828 0%, var(--background-color) 65%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 { color: var(--heading-color); }

a { color: var(--primary-color); }
a:hover { color: #44e0ff; }

/* --- Header (glassmorphism) --- */
.main-header {
    background: rgba(6, 8, 15, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 200, 232, 0.12);
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.7);
}

.logo a { color: var(--primary-color); }
.logo-text {
    background: linear-gradient(90deg, #00c8e8, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.main-nav ul li a { color: var(--text-color); }
.main-nav ul li a:hover,
.main-nav ul li a.active { color: var(--primary-color); }
.main-nav ul li a::after { background-color: var(--primary-color); }
.language-switcher select {
    background-color: rgba(0, 200, 232, 0.07);
    border-color: rgba(0, 200, 232, 0.25);
    color: var(--text-color);
}
.hamburger-menu { color: var(--text-color); }
.main-nav ul {
    background: rgba(6, 8, 15, 0.97);
    border-left: 1px solid rgba(0, 200, 232, 0.12);
}

/* --- Hero sections --- */
.hero-section,
.page-hero-section {
    background-color: var(--background-color) !important;
}
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 200, 232, 0.07) 0%,
        rgba(168, 85, 247, 0.04) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}
.hero-content h1,
.page-title {
    color: var(--white-color);
    text-shadow: 0 0 30px rgba(0, 200, 232, 0.5), 0 0 70px rgba(0, 200, 232, 0.15);
}
.hero-content p { color: var(--text-color); }

/* --- Sections --- */
.section-content {
    background: linear-gradient(160deg, #0c1420 0%, #091018 100%);
    border: 1px solid rgba(0, 200, 232, 0.08);
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 200, 232, 0.04);
}
.section-features,
.section-partners {
    background: rgba(10, 16, 26, 0.6);
    border: 1px solid rgba(0, 200, 232, 0.06);
}
.section-subtitle { text-shadow: 0 0 20px rgba(0, 200, 232, 0.3); }
.section-subtitle::after {
    background: linear-gradient(90deg, var(--primary-color), var(--neon-purple));
    box-shadow: 0 0 14px rgba(0, 200, 232, 0.5);
}
.subsection-title {
    color: var(--heading-color);
    border-bottom-color: rgba(0, 200, 232, 0.15);
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, #00c8e8, #009cc2);
    color: #00080f;
    font-weight: 700;
    box-shadow: 0 0 22px rgba(0, 200, 232, 0.35);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #44e0ff, #00bbee);
    color: #000;
    box-shadow: 0 0 32px rgba(0, 200, 232, 0.6);
}
.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 200, 232, 0.15);
}
.btn-secondary:hover {
    background: var(--primary-color);
    color: #00080f;
    box-shadow: 0 0 22px rgba(0, 200, 232, 0.5);
}

/* --- Feature cards --- */
.feature-item {
    background: linear-gradient(145deg, #0e1928, #0a1318);
    border: 1px solid rgba(0, 200, 232, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.feature-item:hover {
    background: linear-gradient(145deg, #132030, #0f1c28) !important;
    border-color: rgba(0, 200, 232, 0.38) !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.55), 0 0 25px rgba(0, 200, 232, 0.12) !important;
}
.feature-item i { color: var(--primary-color); filter: drop-shadow(0 0 8px rgba(0, 200, 232, 0.6)); }
.feature-item h3 { color: var(--heading-color); }
.feature-item p { color: var(--light-text-color); }

/* --- Partner cards (dark neon override) --- */
.partner-card {
    background: linear-gradient(145deg, #0e1928, #0a1318);
    border: 1px solid rgba(0, 200, 232, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.partner-card:hover {
    background: linear-gradient(145deg, #132030, #0f1c28) !important;
    border-color: rgba(0, 200, 232, 0.38) !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.55), 0 0 25px rgba(0, 200, 232, 0.12) !important;
}
.partner-icon-wrap i { filter: drop-shadow(0 0 8px rgba(0, 200, 232, 0.6)); }
.partner-name { color: var(--heading-color); }
.partner-desc { color: var(--light-text-color); }

/* --- Stats (dark theme bg override) --- */
.stats-bg {
    background-color: #060810;
}

/* --- CTA --- */
.cta-section {
    background: linear-gradient(135deg, #0a0e1c 0%, #160c28 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.07), 0 8px 40px rgba(0, 0, 0, 0.5);
}
.cta-section h2 {
    color: var(--white-color);
    text-shadow: 0 0 25px rgba(0, 200, 232, 0.4);
}
.cta-section p { color: var(--text-color); }

/* --- Footer --- */
.main-footer {
    background: linear-gradient(180deg, #060810 0%, #03050a 100%);
    border-top: 1px solid rgba(0, 200, 232, 0.08);
}
.footer-col h3 { color: var(--primary-color); text-shadow: 0 0 8px rgba(0, 200, 232, 0.4); }
.footer-col p, .footer-col ul li { color: var(--light-text-color); }
.footer-col ul li a { color: var(--light-text-color); }
.footer-col ul li a:hover { color: var(--primary-color); }
.footer-content { border-bottom-color: rgba(0, 200, 232, 0.08); }
.footer-bottom { color: rgba(120, 145, 168, 0.5); }
.social-icon { fill: var(--light-text-color); transition: fill 0.3s ease, filter 0.3s ease; }
.social-icon:hover { fill: var(--primary-color); filter: drop-shadow(0 0 6px rgba(0, 200, 232, 0.7)); }

/* --- About page --- */
.about-intro-text,
.about-text-content p { color: var(--text-color); }
.mission-card, .vision-card {
    background: linear-gradient(145deg, #0e1928, #0a1318);
    border: 1px solid rgba(0, 200, 232, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.mission-card h3, .vision-card h3 { color: var(--primary-color); }
.mission-card i, .vision-card i {
    color: var(--accent-color);
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
}
.leader-card {
    background: linear-gradient(145deg, #0e1928, #0a1318);
    border: 1px solid rgba(0, 200, 232, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.leader-card:hover {
    border-color: rgba(0, 200, 232, 0.35);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.55), 0 0 22px rgba(0, 200, 232, 0.12);
}
.leader-card img {
    border-color: var(--primary-color);
    box-shadow: 0 0 18px rgba(0, 200, 232, 0.28);
}
.leader-card h4 { color: var(--heading-color); }
.leader-card p { color: var(--light-text-color); }

/* --- FAQ --- */
.faq-item {
    background: linear-gradient(145deg, #0e1928, #0a1318);
    border-color: rgba(0, 200, 232, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.faq-question {
    background: rgba(0, 200, 232, 0.04);
    color: var(--heading-color);
    border-bottom-color: rgba(0, 200, 232, 0.08);
}
.faq-question:hover { background: rgba(0, 200, 232, 0.09); }
.faq-item.active .faq-question {
    background: linear-gradient(135deg, rgba(0, 200, 232, 0.14), rgba(168, 85, 247, 0.07));
    color: var(--primary-color);
    border-bottom-color: rgba(0, 200, 232, 0.25);
}
.faq-answer { background: rgba(0, 0, 0, 0.15); color: var(--text-color); }

/* --- Form --- */
.contact-form-section {
    background: linear-gradient(145deg, #0e1928, #0a1318);
    border: 1px solid rgba(0, 200, 232, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.form-group label { color: var(--text-color); }
.form-group input,
.form-group textarea {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(0, 200, 232, 0.18);
    color: var(--text-color);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--light-text-color); opacity: 1; }
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 200, 232, 0.12), 0 0 18px rgba(0, 200, 232, 0.07);
}

/* --- Programs --- */
.programs-grid {
    border-color: rgba(0, 200, 232, 0.12);
}
.program-card {
    border-bottom-color: rgba(0, 200, 232, 0.10);
}
.program-card:hover {
    background: rgba(0, 200, 232, 0.05) !important;
}
.program-title { color: var(--heading-color); }
.program-description, .program-details li { color: var(--light-text-color); }
.all-programs-link { color: var(--text-color); }
.all-programs-link a { color: var(--primary-color); }
.all-programs-link a:hover { color: var(--accent-color); }

/* --- Student Life --- */
.activity-list { color: var(--text-color); }
.club-item {
    background: linear-gradient(145deg, #0e1928, #0a1318);
    border: 1px solid rgba(0, 200, 232, 0.08);
    border-bottom-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.club-item:hover {
    border-color: rgba(0, 200, 232, 0.08) !important;
    border-bottom-color: var(--neon-purple) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 200, 232, 0.1) !important;
}
.club-icon { color: var(--primary-color); filter: drop-shadow(0 0 9px rgba(0, 200, 232, 0.55)); }
.club-item h4 { color: var(--heading-color); }
.club-item p { color: var(--light-text-color); }
.gallery-item {
    background: #0b1520;
    border: 1px solid rgba(0, 200, 232, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.gallery-item:hover {
    border-color: rgba(0, 200, 232, 0.32) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(0, 200, 232, 0.1) !important;
}
.gallery-caption {
    color: var(--text-color);
    background: #080f1a;
    border-top-color: rgba(0, 200, 232, 0.08);
}

/* --- Contacts --- */
.contact-item {
    background: linear-gradient(145deg, #0e1928, #0a1318);
    border: 1px solid rgba(0, 200, 232, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.contact-item:hover {
    border-color: rgba(0, 200, 232, 0.38) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 22px rgba(0, 200, 232, 0.12) !important;
}
.contact-icon { color: var(--primary-color); filter: drop-shadow(0 0 9px rgba(0, 200, 232, 0.6)); }
.contact-item h3 { color: var(--heading-color); }
.contact-item p { color: var(--text-color); }
.map-container {
    background: #070e17;
    border: 1px solid rgba(0, 200, 232, 0.12);
    box-shadow: 0 0 35px rgba(0, 200, 232, 0.06);
}

/* --- Telegram float --- */
.telegram-float {
    box-shadow: 0 4px 22px rgba(34, 158, 217, 0.55), 0 0 30px rgba(34, 158, 217, 0.15);
}

/* ---- Edu 3D floating icons (hero sections) ---- */
.hero-edu-icon {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    animation: floatEduIcon ease-in-out infinite;
}

@keyframes floatEduIcon {
    0%   { transform: perspective(500px) rotateY(0deg)   rotateX(8deg)   translateY(0px);   opacity: 0.35; }
    25%  { transform: perspective(500px) rotateY(18deg)  rotateX(-5deg)  translateY(-16px); opacity: 0.6; }
    50%  { transform: perspective(500px) rotateY(0deg)   rotateX(12deg)  translateY(-8px);  opacity: 0.42; }
    75%  { transform: perspective(500px) rotateY(-18deg) rotateX(-3deg)  translateY(-20px); opacity: 0.58; }
    100% { transform: perspective(500px) rotateY(0deg)   rotateX(8deg)   translateY(0px);   opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-edu-icon { display: none; }
}

/* --- Director Editorial Layout --- */
.director-editorial {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}

.director-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.director-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 60%,
        rgba(0, 200, 232, 0.12) 100%
    );
    pointer-events: none;
}

.director-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top center;
    display: block;
    clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
    transition: clip-path 0.5s ease;
}

.director-img-wrap:hover .director-img {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.director-editorial-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 20px;
}

.director-quote-mark {
    font-family: var(--font-family-display);
    font-size: 8em;
    line-height: 0.6;
    color: var(--accent-color);
    opacity: 0.4;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.director-quote {
    font-family: var(--font-family-heading);
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1.45;
    color: var(--heading-color);
    margin-bottom: 32px;
    quotes: none;
    border: none;
    padding: 0;
}

.director-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.director-meta-line {
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    flex-shrink: 0;
}

.director-meta-name {
    font-family: var(--font-family-heading);
    font-weight: 700;
    font-size: 1em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--heading-color);
    margin-bottom: 2px;
}

.director-meta-title {
    font-family: var(--font-family-heading);
    font-size: 0.78em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0;
}

.director-bio {
    color: var(--light-text-color);
    font-size: 0.92em;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 520px;
}

.director-email {
    font-family: var(--font-family-heading);
    font-size: 0.85em;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 0.3s;
}

.director-email:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .director-editorial {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .director-img {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        aspect-ratio: 4/3;
        object-position: center 15%;
    }
    .director-quote {
        font-size: 1.2em;
    }
}

/* --- Admission Timeline --- */
.admission-timeline {
    margin: 60px 0;
    padding: 48px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.timeline-track {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0 32px;
    align-items: start;
    padding-bottom: 48px;
    position: relative;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.tl-num {
    font-family: var(--font-family-display);
    font-size: 4em;
    line-height: 1;
    color: var(--accent-color);
    text-align: right;
    padding-right: 32px;
    border-right: 1px solid rgba(212, 168, 67, 0.25);
    position: relative;
}

.tl-num::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 0.2em;
    width: 9px;
    height: 9px;
    background: var(--accent-color);
    border-radius: 50%;
}

.tl-content {
    padding-left: 32px;
    padding-top: 8px;
    position: relative;
}

.tl-connector {
    position: absolute;
    left: 32px;
    top: 0;
    bottom: -48px;
    width: 1px;
    background: linear-gradient(to bottom, var(--border-color), transparent);
    pointer-events: none;
}

.tl-title {
    font-family: var(--font-family-heading);
    font-size: 1.15em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.tl-desc {
    color: var(--light-text-color);
    font-size: 0.9em;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .admission-timeline {
        padding: 32px 20px;
    }
    .timeline-step {
        grid-template-columns: 60px 1fr;
        gap: 0 20px;
        padding-bottom: 36px;
    }
    .tl-num {
        font-size: 2.8em;
        padding-right: 20px;
    }
}

/* ============================================================
   Task 9: Section Backgrounds and Textures
   ============================================================ */

/* --- Change 1: Features section — subtle grid pattern --- */
.section-features {
    position: relative;
}
.section-features::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 200, 232, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 232, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}
/* Ensure direct children stay above the pseudo-element grid */
.section-features > * {
    position: relative;
    z-index: 1;
}

/* --- Change 2: Partners/marquee section — diagonal stripes pattern --- */
.section-partners {
    position: relative;
}
.section-partners::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(0, 200, 232, 0.025) 20px,
        rgba(0, 200, 232, 0.025) 21px
    );
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}
/* Ensure direct children stay above the pseudo-element stripes */
.section-partners > * {
    position: relative;
    z-index: 1;
}

/* --- Change 3: Contacts page — radial glow on section-content --- */
.contacts-hero ~ .section-content {
    background: radial-gradient(
        ellipse 70% 60% at 30% 50%,
        rgba(0, 200, 232, 0.06) 0%,
        transparent 60%
    ), linear-gradient(160deg, #0c1420 0%, #091018 100%);
}

/* --- Change 4: Student life page — subtle dot pattern on section-content --- */
.student-life-hero ~ .section-content {
    position: relative;
}
.student-life-hero ~ .section-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(212, 168, 67, 0.12) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}
.student-life-hero ~ .section-content > * {
    position: relative;
    z-index: 1;
}
