*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

/* =================================== */
         /* NAVBAR MENU */
/* =================================== */

/* Umumiy sozlamalar */
:root {
    /* Light Mode (Oq rejim) */
    --bg-color: #ffffff;           /* Sof oq */
    --text-color: #2d3436;         /* Chuqur kulrang (ko'zni charchatmaydi) */
    --accent-color: #00695c;      
    --nav-bg: rgba(255, 255, 255, 0.95);
    --navlink-color: #636e72;      /* Menyular uchun klassik kulrang */
    --about-title: #2d3436;        /* Sarlavhalar uchun */
    --card-bg: #f8f9fa;            /* Kurs kartochkalari foni */
    --border-color: #dfe6e9; 
          /* Chiziqlar va borderlar uchun */
          /* test sectin */
    --bg-light: #f8fafc;
    
    /* FAQ uchun qo'shimcha */
    --faq-color: #455a64;          

    /* soya */

    --shodow-color: 0 4px 6px -1px #00000034;

    --soya-color: 0 4px 6px -1px #00000038;

}

[data-theme="dark"] {
    /* Dark Mode (Qora rejim) */
    --bg-color: #121212;           /* Material Dark foni */
    --text-color: #e0e0e0;         /* Yumshoq oq matn */
    --accent-color: #26a69a;       /* To'q fonda yorqinroq ko'rinadigan yashil */
    --nav-bg: rgba(18, 18, 18, 0.98);
    --navlink-color: #b2bec3;      /* Dark modeda menyu rangi */
    --about-title: #f5f6fa;
    --card-bg: #1e1e1e;            /* Kartochka fondan ajralib turishi uchun */
    --border-color: #2d3436;       /* To'q hoshiya */
    
    /* FAQ uchun qo'shimcha */
    --faq-color: #cfd8dc;

    --bg-light: #121212;

    --soya-color: 0 4px 6px -1px #b5b5b59d;
    --shodow-color: 0 4px 6px -1px #dcdbdb8e;


}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    transition: background 0.4s ease, color 0.4s ease;
}

/* Header va Navigatsiya */
.header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    max-width: 1400px;
    margin: 0 auto;
    
}

.logoItem img {
    border-radius: 4px;
    height: 30px !important; 
    max-height: none !important; 
    width: auto
}

/* Menyu elementlari */
.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1; /* Markazda qolishi uchun */
    -webkit-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0 auto; /* Markazga surish */
    gap: 30px;
}

.nav-auth {
    list-style: none;
    display: flex;
    /* gap: 10px; */
    align-items: center;
    justify-content: center;
    hyphens: 120px;
}

.nav-link {
    text-decoration: none;
    color: var(  --navlink-color);
    font-weight: 500;
    transition: 0.3s;
}

.nav-link:hover {
    color: #0984e3;
}
/* iOS-da tugma bosilganda ko'k hoshiya (highlight) chiqmasligi uchun */
.nav-link, .login-btn, .hamburger {
    -webkit-tap-highlight-color: transparent;
}

/* Kirish tugmasi */
.login-btn {
    text-decoration: none;
    background-color: #0984e3;
    color: #f0f7ff;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

.login-btn:hover {
    background-color: #074b81;
    box-shadow: 0 4px 12px rgba(9, 132, 227, 0.3);
}

/* Hamburger (Mobil uchun) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--about-title);
}
.nav__theme-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    text-align: center;
    padding: 10px 25px;

}

/* --- RESPONSIVE --- */

@media (max-width: 992px) {
    .hamburger {
        display: block;
    }
    /* Hamburger X ga aylanishi */
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Mobil Menyu - Tepadan tushishi */
    .nav-menu {
        position: absolute;
        top: -1000%; /* Dastlab yashirin (tepada) */
        left: 0;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.2s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        padding: 40px 0;
        gap: 25px;
    }

    .nav-menu.active {
        top: 100%; /* Header tagidan tushadi */
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .nav-auth {
        display: flex;
        margin-top: 10px;
        flex-direction: column;
        gap:20px;
    }
    .nav-auth:nth-child(2){
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* =================================== */
         /* NAVBAR MENU TUGADI */
         /* HERO SECTION BOSHLANDI */
/* =================================== */



/* Hero section uchun umumiy fon va joylashuv */
.hero {
    min-height: calc(100vh - 80px); /* Navbardan qolgan joyni egallaydi */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&q=80&w=2070') no-repeat center center/cover;
    display: flex;
    align-items: center;
    padding: 40px 8%;
}

.hero__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

/* Shior stili */
.hero__content {
    flex: 1;
    color: #f0f7ff;
    padding-right: 50px;
}

.hero__title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Shisha (Glass) effektli forma */
.hero__form-wrapper {
    flex: 0 0 400px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.15); /* Shaffoflik */
    backdrop-filter: blur(15px); /* Xiralashtirish effekti */
    -webkit-backdrop-filter: blur(15px); /* Safari uchun */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-form__title {
    color: #f0f7ff;
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
}

.contact-form__group {
    margin-bottom: 20px;
    position: relative;
}

/* Input va Select stillari */
.contact-form__input, 
.contact-form__select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    outline: none;
    font-size: 16px;
    color: #333;
}

/* Xatolik xabari yashirin holatda */
.contact-form__error {
    color: #ff7675;
    font-size: 12px;
    display: none;
    margin-top: 5px;
}

/* Yuborish tugmasi */
.contact-form__button {
    width: 100%;
    padding: 15px;
    background-color: #0984e3;
    color: #f0f7ff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form__button:hover {
    background-color: #00cec9;
    transform: translateY(-2px);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero__container {
        flex-direction: column;
        text-align: center;
    }

    .hero__content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero__title {
        font-size: 36px;
    }

    .hero__form-wrapper {
        width: 100%;
        max-width: 450px;
    }
}

/* =================================== */
         /* HERO SECTION  TUGADI */
         /* COURSE SECTION BOSHLANDI */
/* =================================== */

/* Asosiy sozlamalar */
:root {
    --primary-blue: #4F46E5;
    --primary-sky: #0EA5E9;
    --primary-green: #10B981;
    --primary-purple: #8B5CF6;
}

.test-section {
    background-color: var(--bg-light);
    padding: 60px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 40px;
}

/* Grid sistemasi */
.test-grid {
    display: grid;
    /* Kompyuterda 4 ta ustun */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Karta dizayni */
.test-card {
    background: var(--bg-color);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 25px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: var(  --soya-color);
}

.test-card:hover {
    transform: translateY(-8px);
    box-shadow: var(  --shadow-color);
    
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card-body h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.25rem;
}

.card-body p {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 5px;
}

.start-link {
    margin-top: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Ranglar */
.eng .card-icon, .eng .start-link { color: var(--primary-blue); }
.rus .card-icon, .rus .start-link { color: var(--primary-sky); }
.arab .card-icon, .arab .start-link { color: var(--primary-green); }
.math .card-icon, .math-link { color: var(--primary-purple); }

/* --- RESPONSIVE --- */

/* Planshetlar uchun (max-width: 1024px) */
@media (max-width: 1024px) {
    .test-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 ta ustun */
    }
}

/* Telefonlar uchun (max-width: 600px) */
@media (max-width: 600px) {
    .test-grid {
        grid-template-columns: 1fr; /* 1 ta ustun */
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .test-card {
        padding: 20px;
    }
}

/* ============================================================== */

/* Kurslar sectionining umumiy maydoni */
.courses {
    padding: 80px 0;
    background-color: var(--card-bg); /* Och havorang fon */
    overflow: hidden; /* Slider chetdan chiqib ketmasligi uchun */
}

.courses__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sarlavha va Nuqtalarni markazlashtirish */
.courses__top-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Gorizontal markazga olish */
    text-align: center;
    margin-bottom: 40px;
}

.courses__main-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 20px;
}

/* Nuqtalar konteyneri */
.courses__dots-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Nuqtalar stili: JS orqali boshqariladi */
.dot {
    width: 10px;
    height: 10px;
    background-color: #cbd5e0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
}

.dot--active {
    width: 35px; /* Aktiv nuqta cho'zilishi (modern look) */
    background-color: #0984e3;
    border-radius: 10px;
}

/* Slider sozlamalari */
.courses__slider {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* Mobilda surish uchun */
    scroll-snap-type: x mandatory; /* Magnit effekti */
    padding: 20px 0;
    scrollbar-width: none; /* Firefox uchun scrollni yashirish */
}

.courses__slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari uchun scrollni yashirish */
}

/* Karta dizayni (1-variant: Premium Minimal) */
.course-card {
    flex: 0 0 85%; /* Mobilda keyingi karta ko'rinishi uchun */
    background: var( --bg-color);
    border-radius: 24px;
    padding: 30px;
    position: relative; /* Badge uchun zarur */
    scroll-snap-align: center;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-color);
}
/* Asosiy rasm stili */
.course-card__flag {
    width: 70px; 
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    /* Agar rasm fonli bo'lsa (IT/Math), border va fon rang qo'shish */
    background: #f0f7ff; 
    border: 3px solid #0984e3;
    padding: 5px; /* Ikonka chetiga yopishib qolmasligi uchun */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover effekti */
.course-card:hover .course-card__flag {
    transform: scale(1.1) translateY(-5px);
    background: var( --bg-color);
    box-shadow: 0 10px 25px rgba(9, 132, 227, 0.2);
}

/* Burchakdagi yozuvlar (Badgelar) */
.course-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-color);
}

.course-card__badge--ielts { background-color: #00cec9; }
.course-card__badge--dtm { background-color: #00cec9; }

.course-card__icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.course-card__title {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.course-card__meta {
    background: var( --bg-color);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.course-card__info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.course-card__features {
    list-style: none;
    margin-bottom: 25px;
    text-align: left;
}

.course-card__features li::before {
    content: "•";
    color: #0984e3;
    font-weight: bold;
    margin-right: 8px;
}

.course-card__button {
    width: 100%;
    padding: 16px;
    background: #0984e3;
    color: #f0f7ff;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

/* Kompyuter ekrani uchun moslashuv */
@media (min-width: 1024px) {
    .course-card {
        flex: 0 0 calc(33.333% - 14px); /* 3 ta karta sig'ishi uchun */
    }
}

/* <!-- ============================ -->
  <!--COURSE TUGADI -->
  <!-- ABOUT US BOSHLANDI-->
<!-- ============================ --> */

.about {
    padding: 100px 5%;
    background-color: var(--bg-color);
}

.about__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Matn va Grid yonma-yon */
    gap: 60px;
    align-items: center;
}

/* Matn qismi */
.about__title {
    font-size: 42px;
    color: var(--about-title);
    margin-bottom: 20px;
    font-weight: 800;
}

.about__text {
    font-size: 18px;
    color: var(--about-title);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Statistika dizayni */
.about__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item__number {
    font-size: 36px;
    color: #0984e3;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-item__label {
    font-size: 14px;
    color: #b2bec3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Galereya Gridi: Katta-kichik suratlar */
.about__gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 15px;
}

.about__img-box {
    overflow: hidden;
    border-radius: 20px;
}

.about__img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

/* Katta rasm chapda ikkita qatorni egallaydi */
.about__img-box--large {
    grid-row: span 2;
}

.about__img-box:hover img {
    transform: scale(1.1);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .about__container {
        grid-template-columns: 1fr; /* Matn tepaga, rasmlar pastga */
        text-align: center;
    }

    .about__stats {
        justify-content: center;
    }

    .about__gallery-grid {
        grid-template-rows: repeat(2, 150px); /* Mobilda balandlikni qisqartiramiz */
        margin-top: 30px;
    }
}

/* <!-- ============================ -->
  <!--ABOUT US TUGADI -->
  <!-- FAQ BOSHLANDI-->
<!-- ============================ --> */

.faq {
    padding: 60px 15px;
    background-color: var(--bg-color);
}

.faq__container {
    max-width: 700px;
    margin: 0 auto;
}

.faq__header {
    text-align: center;
    margin-bottom: 30px;
}

.faq__title {
    font-size: clamp(24px, 5vw, 32px); /* Harf hajmi ekranga moslashadi */
    color: var(--about-title);
    margin-bottom: 10px;
}

.faq__desc {
    color: var(--about-title);
    font-size: 15px;
}

.faq__wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: var(--bg-color);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* Savol tugmasi */
.faq__trigger {
    width: 100%;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
    -webkit-tap-highlight-color: transparent; /* Mobil Safari fix */
}

.faq__trigger span {
    font-size: 16px;
    font-weight: 600;
    color: var(--about-title);
    line-height: 1.4;
    padding-right: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

/* SVG Ikonka */
.faq__arrow {
    width: 24px;
    height: 24px;
    fill: #64748b;
    flex-shrink: 0; /* Siqilib ketmasligi uchun */
    transition: transform 0.3s ease;
}

/* Javob qismi */
.faq__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__text {
    padding: 0 20px 20px;
    font-size: 14px;
    color: var(--about-title);
    line-height: 1.6;
}

/* Aktiv holat */
.faq__item--active {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.faq__item--active .faq__arrow {
    transform: rotate(180deg);
    fill: #3b82f6;
}

.faq__item--active .faq__trigger span {
    color: #3b82f6;
}

/* --- RESPONSIVE FIX --- */
@media (max-width: 480px) {
    .faq__trigger {
        padding: 15px;
    }
    .faq__trigger span {
        font-size: 15px;
    }
    .faq__text {
        font-size: 13.5px;
        padding: 0 15px 15px;
    }
}

/* <!-- ============================ -->
  <!--FAQ TUGADI -->
  <!-- FOOTER BOSHLANDI-->
<!-- ============================ --> */
/* Footer asosiy stili */
.footer {
    background-color: #1a1c1e; /* To'q rangli professional fon */
    color: #ffff;
    padding: 70px 0 0 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 50px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr; /* Ustunlar o'lchami */
    gap: 40px;
}

/* Logo qismi */
.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer__logo-img {
    width: 100px;
    height: auto;
}

.footer__logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer__about-text {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 15px;
}

/* Ijtimoiy tarmoqlar */
.footer__socials {
    display: flex;
    gap: 15px;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffff;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer__social-link:hover {
    background: #0984e3;
    transform: translateY(-5px);
}

/* Ustunlar sarlavhasi */
.footer__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}

.footer__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: #0984e3;
}

/* Ro'yxatlar */
.footer__list {
    list-style: none;
    padding: 0;
}

.footer__link {
    color: #a0aec0;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
    transition: 0.3s;
}

.footer__link:hover {
    color: var(--bg-color);
    padding-left: 5px;
}

/* Kontakt elementlari */
.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #a0aec0;
    margin-bottom: 15px;
    font-size: 15px;
}

.footer__contact-item i {
    color: #0984e3;
    font-size: 20px;
}

.footer__contact-item a {
    color: inherit;
    text-decoration: none;
}

/* Pastki qism */
.footer__bottom {
    background-color: #111214;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__bottom p {
    font-size: 13px;
    color: #718096;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: 1fr 1fr; /* Planshetda 2 ustun */
    }
}

@media (max-width: 600px) {
    .footer__container {
        grid-template-columns: 1fr; /* Mobilda hamma narsa ketma-ket */
        text-align: center;
    }

    .footer__logo, .footer__socials, .footer__contact-item {
        justify-content: center;
    }

    .footer__title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

