/* =====================================================
   MAKTAB SAYTI - ASOSIY STIL
   ===================================================== */
:root {
    --navy: #0d2247;
    --navy-dark: #081730;
    --navy-light: #163465;
    --gold: #c9a227;
    --gold-light: #e6c65c;
    --gray-50: #f7f8fa;
    --gray-100: #eef0f4;
    --gray-600: #5b6478;
    --text: #1c2333;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(13,34,71,0.08);
    --shadow-lg: 0 20px 50px rgba(13,34,71,0.15);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section-alt { background: var(--gray-50); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head .tag {
    display: inline-block; color: var(--gold); font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; font-size: 13px; margin-bottom: 10px;
}
.section-head h2 { font-size: 36px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.section-head p { color: var(--gray-600); font-size: 16px; line-height: 1.7; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 30px; border-radius: 50px; font-weight: 600; font-size: 15px;
    cursor: pointer; border: none; transition: .3s; text-align: center;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy-dark); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(201,162,39,0.4); }
.btn-outline { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }

/* ---------- HEADER ---------- */
.top-strip { background: var(--navy-dark); color: #cbd5e6; font-size: 13px; padding: 8px 0; }
.top-strip .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-strip a { color: #cbd5e6; margin-right: 16px; }
.top-strip a:hover { color: var(--gold-light); }
.lang-switch a { display: inline-block; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.lang-switch a.active { background: var(--gold); color: var(--navy-dark); }

header.navbar {
    background: rgba(13,34,71,0.97); position: sticky; top: 0; z-index: 200;
    backdrop-filter: blur(6px);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 20px; }
.brand img { height: 46px; width: 46px; border-radius: 8px; object-fit: cover; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    color: #e7ebf5; padding: 14px 16px; display: flex; align-items: center; gap: 6px;
    font-size: 15px; font-weight: 500; transition: .2s;
}
.nav-menu > li > a:hover, .nav-menu > li.active > a { color: var(--gold-light); }
.nav-menu .dropdown {
    position: absolute; top: 100%; left: 0; background: #fff; min-width: 260px;
    border-radius: 10px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: .25s;
}
.nav-menu > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .dropdown a { display: block; padding: 12px 14px; color: var(--text); border-radius: 8px; font-size: 14.5px; }
.nav-menu .dropdown a:hover { background: var(--gray-50); color: var(--navy); padding-left: 20px; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.burger { display: none; color: #fff; font-size: 24px; cursor: pointer; z-index: 260; position: relative; width: 30px; height: 30px; align-items: center; justify-content: center; }
.menu-overlay { position: fixed; inset: 0; background: rgba(8,23,48,0.55); z-index: 210; opacity: 0; visibility: hidden; transition: .3s; }
.menu-overlay.open { opacity: 1; visibility: visible; }

/* ---------- HERO / BANNER ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; z-index: 1; }
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide video, .hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(8,23,48,0.92) 20%, rgba(8,23,48,0.55) 60%, rgba(8,23,48,0.35));
    z-index: 3;
}
.hero-content { position: relative; z-index: 4; color: #fff; max-width: 680px; animation: heroFadeUp 1s ease both; }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.hero-content .tag {
    display: inline-block; background: rgba(201,162,39,0.15); border: 1px solid var(--gold);
    color: var(--gold-light); padding: 6px 16px; border-radius: 50px; font-size: 13px; margin-bottom: 20px;
}
.hero-content h1 { font-size: 52px; font-weight: 800; line-height: 1.2; margin-bottom: 18px; }
.hero-content h1 span { color: var(--gold-light); }
.hero-content p { font-size: 18px; color: #dfe6f2; line-height: 1.7; margin-bottom: 34px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; }
.hero-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; }
.hero-dots span.active { background: var(--gold); width: 30px; border-radius: 6px; }
.scroll-down { position: absolute; bottom: 30px; right: 40px; z-index: 5; color: #fff; text-align: center; font-size: 12px; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }

/* ---------- COUNTDOWN ---------- */
.countdown-bar { background: linear-gradient(135deg, var(--navy), var(--navy-light)); padding: 40px 0; }
.countdown-bar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.countdown-bar h3 { color: #fff; font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.countdown-bar h3 i { color: var(--gold); }
.countdown-timer { display: flex; gap: 14px; }
.countdown-timer .box { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 14px 20px; text-align: center; min-width: 82px; }
.countdown-timer .box strong { display: block; font-size: 28px; color: var(--gold-light); font-weight: 700; }
.countdown-timer .box span { font-size: 12px; color: #cbd5e6; }

/* ---------- ABOUT ---------- */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-imgs { position: relative; }
.about-imgs img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-imgs .img-main { width: 85%; }
.about-imgs .img-float { position: absolute; bottom: -30px; right: 0; width: 55%; border: 6px solid #fff; }
.about-badge {
    position: absolute; top: 20px; left: -20px; background: var(--gold); color: var(--navy-dark);
    padding: 16px 20px; border-radius: 12px; font-weight: 700; box-shadow: var(--shadow-lg);
}
.about-badge strong { display: block; font-size: 26px; }
.about-content .tag { color: var(--gold); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.about-content h2 { font-size: 34px; color: var(--navy); margin: 10px 0 18px; font-weight: 700; }
.about-content p { color: var(--gray-600); line-height: 1.8; margin-bottom: 20px; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 28px; }
.about-points li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--text); }
.about-points li i { color: #fff; background: var(--navy); width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* ---------- ADVANTAGES ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.adv-card {
    background: #fff; border-radius: var(--radius); padding: 36px 28px; box-shadow: var(--shadow);
    transition: .3s; border-top: 3px solid transparent;
}
.adv-card:hover { transform: translateY(-8px); border-top-color: var(--gold); box-shadow: var(--shadow-lg); }
.adv-card .icon {
    width: 62px; height: 62px; border-radius: 16px; background: linear-gradient(135deg, var(--navy), var(--navy-light));
    display: flex; align-items: center; justify-content: center; color: var(--gold-light); font-size: 24px; margin-bottom: 20px;
}
.adv-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; font-weight: 600; }
.adv-card p { color: var(--gray-600); font-size: 14.5px; line-height: 1.7; }

/* ---------- STATS ---------- */
.stats-band { background: var(--navy); padding: 60px 0; position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-grid .stat i { color: var(--gold); font-size: 30px; margin-bottom: 12px; }
.stats-grid .stat strong { display: block; font-size: 40px; color: #fff; font-weight: 800; }
.stats-grid .stat span { color: #b6c1da; font-size: 14px; }

/* ---------- QUIZ ---------- */
.quiz-box { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 50px; text-align: center; }
.quiz-box .quiz-icon { font-size: 46px; color: var(--gold); margin-bottom: 18px; }
.quiz-progress { height: 6px; background: var(--gray-100); border-radius: 6px; overflow: hidden; margin: 24px 0; }
.quiz-progress-bar { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); width: 0%; transition: .4s; }
.quiz-question { font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 26px; }
.quiz-options { display: grid; gap: 12px; text-align: left; }
.quiz-option {
    border: 2px solid var(--gray-100); border-radius: 12px; padding: 16px 20px; cursor: pointer;
    transition: .2s; font-weight: 500; display: flex; align-items: center; gap: 12px;
}
.quiz-option:hover { border-color: var(--gold); background: #fffbf0; }
.quiz-option .circle { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #ccc; flex-shrink: 0; }
.quiz-result-box { display: none; }
.quiz-result-box i { font-size: 54px; color: var(--gold); margin-bottom: 16px; }
.quiz-result-box h3 { font-size: 24px; color: var(--navy); margin-bottom: 12px; }
.quiz-result-box p { color: var(--gray-600); margin-bottom: 24px; line-height: 1.7; }

/* ---------- SCROLL REVEAL ANIMATION ---------- */
.reveal-left, .reveal-right, .reveal-up, .reveal-scale, .reveal-flip { opacity: 0; transition: opacity .7s ease, transform .7s ease; will-change: transform, opacity; }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-up { transform: translateY(50px); }
.reveal-scale { transform: scale(.85); }
.reveal-flip { transform: perspective(800px) rotateY(90deg); }
.reveal-left.revealed, .reveal-right.revealed, .reveal-up.revealed, .reveal-scale.revealed { opacity: 1; transform: translate(0,0) scale(1); }
.reveal-flip.revealed { opacity: 1; transform: perspective(800px) rotateY(0deg); }

/* ---------- SUBJECTS (Fanlar va yo'nalishlar) ---------- */
.subjects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.subject-card {
    background: #fff; border-radius: var(--radius); padding: 30px 22px; text-align: center; box-shadow: var(--shadow);
    transition: .3s; border-bottom: 3px solid transparent;
}
.subject-card:hover { transform: translateY(-8px) scale(1.02); border-bottom-color: var(--gold); box-shadow: var(--shadow-lg); }
.subject-icon {
    width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 16px; background: linear-gradient(135deg, #fff7e0, #ffe9b0);
    display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 24px;
}
.subject-card h4 { color: var(--navy); font-size: 16px; margin-bottom: 8px; }
.subject-card p { color: var(--gray-600); font-size: 13.5px; line-height: 1.6; }

/* ---------- ACHIEVEMENTS / NATIJALARIMIZ ---------- */
.achievements-section { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); padding: 90px 0; position: relative; overflow: hidden; }
.achievements-section::before {
    content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(201,162,39,0.15), transparent 70%);
}
.achievements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; z-index: 2; }
.achievement-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 32px 26px; text-align: center; backdrop-filter: blur(4px); transition: .3s; }
.achievement-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-6px); }
.ach-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; background: linear-gradient(135deg, var(--gold-light), var(--gold)); display: flex; align-items: center; justify-content: center; color: var(--navy-dark); font-size: 26px; }
.ach-img { width: 100%; height: 140px; border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.ach-img img { width: 100%; height: 100%; object-fit: cover; }
.achievement-card h4 { color: #fff; font-size: 17px; margin-bottom: 10px; }
.achievement-card p { color: #b6c1da; font-size: 14px; line-height: 1.7; }

/* ---------- NEWS ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .3s; cursor: pointer; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card .thumb { position: relative; height: 200px; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.news-card:hover .thumb img { transform: scale(1.08); }
.news-card .play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(13,34,71,0.3); }
.news-card .play-btn i { width: 56px; height: 56px; background: rgba(255,255,255,0.9); color: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.news-card .body { padding: 22px; }
.news-card .date { color: var(--gold); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.news-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.news-card p { color: var(--gray-600); font-size: 14px; line-height: 1.6; }

/* ---------- GALLERY ---------- */
.gal-filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 34px; flex-wrap: wrap; }
.gal-filters button {
    padding: 10px 22px; border-radius: 50px; border: 2px solid var(--gray-100); background: #fff;
    cursor: pointer; font-weight: 500; font-size: 14px; transition: .2s;
}
.gal-filters button.active, .gal-filters button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.gal-grid { column-count: 3; column-gap: 20px; }
.gal-item { break-inside: avoid; margin-bottom: 20px; position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.gal-item img { width: 100%; transition: .4s; }
.gal-item:hover img { transform: scale(1.05); }
.gal-item .overlay {
    position: absolute; inset: 0; background: rgba(13,34,71,0.5); opacity: 0; transition: .3s;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px;
}
.gal-item:hover .overlay { opacity: 1; }
.gal-item.video-item .overlay { opacity: 1; background: rgba(13,34,71,0.25); }

/* ---------- TEACHERS ---------- */
.teachers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.teacher-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; transition: .3s; }
.teacher-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.teacher-card img { width: 100%; height: 260px; object-fit: cover; }
.teacher-card .info { padding: 20px; }
.teacher-card h4 { color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.teacher-card span { color: var(--gold); font-size: 13px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 12px; margin-bottom: 14px; box-shadow: var(--shadow); overflow: hidden; }
.faq-q { padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; color: var(--navy); }
.faq-q i { transition: .3s; color: var(--gold); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: .3s; padding: 0 26px; color: var(--gray-600); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 26px 22px; }

/* ---------- TESTIMONIALS ---------- */
.test-slider { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.test-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); position: relative; }
.test-card .quote-icon { color: var(--gold); font-size: 28px; opacity: .5; margin-bottom: 14px; }
.test-card p { color: var(--gray-600); font-style: italic; line-height: 1.7; margin-bottom: 20px; }
.test-card .author { display: flex; align-items: center; gap: 12px; }
.test-card .author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.test-card .author-noimg { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.test-card .author h5 { color: var(--navy); font-size: 15px; }
.test-card .author span { color: var(--gray-600); font-size: 12.5px; }
.test-card .stars { color: var(--gold); font-size: 13px; margin-top: 4px; }

/* ---------- DOCS REQUIRED ---------- */
.docs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.doc-item { display: flex; align-items: center; gap: 16px; background: #fff; padding: 20px 24px; border-radius: 12px; box-shadow: var(--shadow); }
.doc-item i { width: 44px; height: 44px; border-radius: 10px; background: var(--gray-50); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.doc-item span { font-weight: 500; font-size: 14.5px; }

/* ---------- MAP ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-card {
    position: absolute; bottom: 24px; left: 24px; background: #fff; padding: 22px 26px; border-radius: 14px;
    box-shadow: var(--shadow-lg); max-width: 320px;
}
.map-card h4 { color: var(--navy); margin-bottom: 8px; }
.map-card p { color: var(--gray-600); font-size: 14px; margin-bottom: 14px; }

/* ---------- APPLY FORM ---------- */
.apply-section { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); position: relative; overflow: hidden; }
.apply-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.apply-info { color: #fff; }
.apply-info .tag { color: var(--gold-light); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.apply-info h2 { font-size: 32px; margin: 12px 0 16px; }
.apply-info p { color: #cbd5e6; line-height: 1.8; margin-bottom: 26px; }
.apply-phones { display: flex; flex-direction: column; gap: 14px; }
.apply-phones a { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; font-size: 16px; }
.apply-phones i { width: 44px; height: 44px; background: rgba(255,255,255,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold-light); }
.apply-form { background: #fff; padding: 40px; border-radius: 20px; box-shadow: var(--shadow-lg); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px 16px; border: 2px solid var(--gray-100); border-radius: 10px; font-family: inherit; font-size: 14.5px;
    transition: .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); outline: none; }
.form-msg { padding: 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; display: none; }
.form-msg.success { background: #e6f7ea; color: #1a7a38; display: block; }
.form-msg.error { background: #fdeaea; color: #b3261e; display: block; }

/* ---------- FOOTER ---------- */
footer { background: var(--navy-dark); color: #b6c1da; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 19px; margin-bottom: 16px; }
.footer-brand img { height: 42px; width: 42px; border-radius: 8px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; font-weight: 600; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-col p.desc { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.social-icons { display: flex; gap: 10px; }
.social-icons a { width: 38px; height: 38px; background: rgba(255,255,255,0.06); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: .2s; }
.social-icons a:hover { background: var(--gold); color: var(--navy-dark); }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 16px; font-size: 14px; }
.footer-contact-item i { color: var(--gold); margin-top: 3px; }
.footer-bottom { padding: 24px 0; text-align: center; font-size: 13.5px; color: #7d89a3; }

/* ---------- FLOATING BUTTONS ---------- */
.floating-btns { position: fixed; bottom: 26px; right: 26px; z-index: 999; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; transition: opacity .2s, visibility .2s; }
.floating-btns.hide-for-chat { opacity: 0; visibility: hidden; pointer-events: none; }
.fab-main { width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy-dark); display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 10px 25px rgba(201,162,39,0.5); cursor: pointer; animation: pulse 2.4s infinite; flex-shrink: 0; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(201,162,39,.5);} 70%{box-shadow:0 0 0 16px rgba(201,162,39,0);} 100%{box-shadow:0 0 0 0 rgba(201,162,39,0);} }
.fab-list { display: none; flex-direction: column; gap: 10px; }
.fab-list.open { display: flex; }
.fab-list a { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 21px; color: #fff; box-shadow: var(--shadow-lg); flex-shrink: 0; }
.fab-tg { background: #229ed9; }
.fab-call { background: #1a7a38; }
.fab-call2 { background: #2b6cb0; }
.fab-call3 { background: #a5457d; }

/* ---------- AI CHATBOT ---------- */
.chatbot-window {
    position: fixed; bottom: 26px; right: 26px; width: 360px; max-width: calc(100vw - 32px); height: min(520px, calc(100vh - 60px));
    background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); z-index: 1001; display: none;
    flex-direction: column; overflow: hidden;
}
.chatbot-window.open { display: flex; }
.chatbot-head { background: var(--navy); color: #fff; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.chatbot-head h4 { font-size: 15.5px; display: flex; align-items: center; gap: 10px; }
.chatbot-body { flex: 1; padding: 16px; overflow-y: auto; background: var(--gray-50); }
.chat-msg { margin-bottom: 12px; max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.chat-msg.bot { background: #fff; box-shadow: var(--shadow); border-bottom-left-radius: 2px; }
.chat-msg.user { background: var(--navy); color: #fff; margin-left: auto; border-bottom-right-radius: 2px; }
.chatbot-input { display: flex; border-top: 1px solid var(--gray-100); padding: 10px; gap: 8px; }
.chatbot-input input { flex: 1; border: none; outline: none; padding: 10px; font-size: 13.5px; }
.chatbot-input button { background: var(--navy); color: #fff; border: none; width: 40px; border-radius: 8px; cursor: pointer; }

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(8,23,48,0.95); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { max-width: 90vw; max-height: 85vh; border-radius: 10px; }
.lightbox-close { position: absolute; top: 26px; right: 30px; color: #fff; font-size: 30px; cursor: pointer; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .about-wrap, .apply-wrap { grid-template-columns: 1fr; }
    .adv-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .teachers-grid { grid-template-columns: repeat(2, 1fr); }
    .test-slider { grid-template-columns: 1fr; }
    .gal-grid { column-count: 2; }
    .docs-grid { grid-template-columns: 1fr; }
    .subjects-grid { grid-template-columns: repeat(2, 1fr); }
    .achievements-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-menu { position: fixed; top: 0; right: -100%; height: 100vh; width: 300px; background: var(--navy-dark); flex-direction: column; align-items: flex-start; padding: 90px 24px; transition: .3s; overflow-y: auto; z-index: 220; }
    .nav-menu.open { right: 0; }
    .nav-menu > li { width: 100%; }
    .nav-menu .dropdown { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; background: rgba(255,255,255,0.04); }
    .nav-menu li.open .dropdown { display: block; }
    .burger { display: flex; }
    .nav-cta .btn span { display: none; }
    .nav-cta .btn { padding: 12px 16px; }
    .hero-content h1 { font-size: 30px; }
    .hero-content p { font-size: 15.5px; }
    .adv-grid, .news-grid, .teachers-grid { grid-template-columns: 1fr; }
    .subjects-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gal-grid { column-count: 1; }
    .countdown-bar .container { flex-direction: column; text-align: center; }
    .countdown-timer { justify-content: center; flex-wrap: wrap; }
    .countdown-timer .box { min-width: 68px; padding: 10px 14px; }
    .section { padding: 60px 0; }
    .section-head h2 { font-size: 26px; }
    .quiz-box { padding: 28px 20px; }
    .apply-form { padding: 26px 20px; }
    .apply-info h2 { font-size: 26px; }

    /* Floating buttons / chatbot - moslashtirish */
    .floating-btns { bottom: 16px; right: 16px; }
    .fab-main { width: 54px; height: 54px; font-size: 22px; }
    .fab-list a { width: 46px; height: 46px; font-size: 18px; }
    .chatbot-window { bottom: 16px; right: 16px; left: 16px; width: auto; max-width: none; height: min(70vh, 520px); }
}
@media (max-width: 420px) {
    .container { padding: 0 16px; }
    .hero-content h1 { font-size: 25px; }
    .hero-btns .btn { padding: 12px 20px; font-size: 13.5px; }
    .top-strip .container { font-size: 11.5px; }
    .top-strip a { margin-right: 8px; }
}
