/* --- 1. GLOBAL SOZLAMALAR --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #00a8ff;    /* YUKES ko'k rangi */
    --secondary: #0097e6;
    --dark: #2f3640;
    --light: #f5f6fa;
    --text: #2f3640;
    --text-muted: #7f8fa6;
    --bg-color: #f5f6fa;
    --card-bg: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --border: #dcdde1;
}

/* DARK MODE */
.dark-mode {
    --primary: #00d2d3;
    --secondary: #48dbfb;
    --dark: #f5f6fa;
    --light: #2f3640;
    --text: #f5f6fa;
    --text-muted: #dcdde1;
    --bg-color: #1e272e;
    --card-bg: #2f3640;
    --shadow: 0 5px 15px rgba(0,0,0,0.5);
    --border: #4b6584;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    list-style: none;
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

body {
    background-color: var(--bg-color);
    color: var(--text);
    overflow-x: hidden;
}

/* Sahifa ochilish animatsiyasi */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 2. NAVBAR (MENU) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
}

.logo-nav img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    width: 100%;
    height: 2px;
    background: var(--primary);
    position: absolute;
    bottom: -5px;
    left: 0;
}

/* Nav Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

#lang-select {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid var(--primary);
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    font-weight: bold;
    outline: none;
}

.theme-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
}

.menu-btn {
    display: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text);
}

/* --- 3. HERO SECTION (BOSH SAHIFA) --- */
.hero {
    height: 100vh;
    background: url('bg.jpg'); /* Fon rasm */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Qoraytirish */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.big-logo {
    width: 280px;           /* KATTALASHTIRDIK (Oldin 130px edi) */
    height: auto;           /* Balandlik avtomatik moslashadi */
    max-height: 280px;      /* Haddan tashqari cho'zilib ketmasligi uchun */
    border-radius: 20px;    /* Dumaloq emas, cheti chiroyli qayrilgan to'rtburchak */
    border: 3px solid #fff; /* Oq ramka */
    margin-bottom: 25px;
    box-shadow: 0 0 30px rgba(0,0,0,0.7); /* Orqasiga soya */
    object-fit: contain;    /* Rasm xunuk bo'lib cho'zilib ketmaydi */
    animation: float 3s ease-in-out infinite; /* Tepaga-pastga o'ynashi */
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f1f1f1;
}

.btn {
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    margin: 5px;
    display: inline-block;
    border: none;
}

.btn.primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.4);
}

.btn.primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.btn.secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn.secondary:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-3px);
}

/* Features (Asosiy sahifa) */
.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 80px 8%;
    background: var(--bg-color);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
}

.feature-box {
    background: var(--card-bg);
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    min-width: 280px;
    border-top: 5px solid var(--primary);
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-box i {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-box h3 {
    margin-bottom: 10px;
    color: var(--text);
}

.feature-box p {
    color: var(--text-muted);
}

/* --- 4. SUB-HEADER (BOSHQA SAHIFALAR UCHUN TEPALIK) --- */
.sub-header {
    height: 50vh;
    width: 100%;
    background: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url('bg.jpg');
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 60px; /* Navbar balandligi */
}

.sub-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.sub-header p {
    font-size: 16px;
    color: #ddd;
    font-weight: 500;
}

/* --- 5. ABOUT PAGE STYLES --- */
.about-us-content {
    width: 85%;
    margin: auto;
    padding: 80px 0;
}

.about-us-content .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.about-col {
    flex-basis: 48%;
}

.about-col h1 {
    font-size: 32px;
    color: var(--text);
    margin-bottom: 20px;
}

.about-col p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 15px;
}

.about-col img {
    width: 100%;             /* Mobil telefonda to'liq ko'rinadi */
    max-width: 400px;        /* Kompyuterda 400px dan oshib ketmaydi (Cheklov) */
    height: auto;            /* Rasm cho'zilib ketmaydi */
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: block;          /* O'rtaga olish uchun kerak */
    margin: 0 auto;          /* Rasmni konteyner o'rtasiga joylaydi */
    object-fit: contain;     /* Rasm qirqilib qolmasligi uchun */
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 8%;
    background: var(--card-bg); /* Dark mode uchun to'g'irlandi */
    flex-wrap: wrap;
    text-align: center;
    margin-bottom: 50px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-box {
    flex-basis: 22%;
    min-width: 200px;
}

.stat-box i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-box h3 {
    font-size: 32px;
    color: var(--text);
    font-weight: 700;
}

.stat-box p {
    color: var(--text-muted);
}

/* --- 6. COURSES PAGE STYLES --- */
.courses-page {
    width: 85%;
    margin: auto;
    padding: 60px 0;
    text-align: center;
}

.courses-page h1 {
    color: var(--text);
    font-size: 32px;
    margin-bottom: 10px;
}

.course-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.course-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
    text-align: left;
    border: 1px solid var(--border);
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.course-item:hover .course-image img {
    transform: scale(1.1);
}

.price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 13px;
}

.course-details {
    padding: 25px;
}

.course-details h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--text);
}

.course-details p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    color: var(--text-muted);
    font-size: 13px;
}

.course-meta i {
    color: var(--primary);
}

.outline-btn {
    width: 100%;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.outline-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* --- GALLERY PAGE STYLES (Pinterest Masonry) --- */

.gallery-page {
    width: 90%;
    margin: auto;
    padding: 60px 0;
    text-align: center;
}

.gallery-page h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.gallery-desc {
    margin-bottom: 40px;
    color: var(--text-muted);
    font-size: 16px;
}

/* PINTEREST STILIDAGI GRID */
.gallery-grid {
    /* Ekranda ustunlar soni */
    column-count: 4; 
    column-gap: 15px; /* Ustunlar orasi */
}

.gallery-item {
    margin-bottom: 15px; /* Har bir rasmning pasti */
    break-inside: avoid; /* Rasmni o'rtasidan bo'lib yubormaslik */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-item img {
    width: 100%;
    height: auto; /* Avtomatik balandlik (cho'zilmaydi) */
    display: block;
    border-radius: 15px;
    transition: transform 0.5s ease, filter 0.3s ease;
}

/* Hover Effektlari */
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-color: var(--primary); /* Hoverda ramka rangi */
}

.gallery-item:hover img {
    transform: scale(1.05); /* Sal yaqinlashish */
    filter: brightness(1.1); /* Sal yorqinlashish */
}

/* --- MOBILE RESPONSIVE (Moslashuvchanlik) --- */

/* Planshetlar uchun (3 ta ustun) */
@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 3;
    }
}

/* Telefonlar uchun (2 ta ustun) */
@media (max-width: 768px) {
    .gallery-page {
        width: 95%;
    }
    .gallery-grid {
        column-count: 2;
        column-gap: 10px;
    }
    .gallery-item {
        margin-bottom: 10px;
    }
}

/* Kichkina telefonlar uchun (1 ta ustun) */
@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
    }
}

/* --- 8. TEACHERS PAGE STYLES --- */
.teachers-page {
    width: 85%;
    margin: auto;
    padding: 60px 0;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.teacher-col {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: 0.5s;
    padding-bottom: 20px;
    border: 1px solid var(--border);
}

.teacher-col:hover {
    transform: translateY(-10px);
}

.teacher-img {
    position: relative;
    overflow: hidden;
    height: 300px;
    width: 100%;
}

.teacher-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 168, 255, 0.7); /* Primary color overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.5s;
}

.teacher-col:hover .overlay {
    opacity: 1;
}

.social-icons a {
    color: var(--primary);
    font-size: 18px;
    margin: 0 5px;
    background: #fff;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--dark);
    color: #fff;
}

.teacher-col h3 {
    margin-top: 15px;
    font-size: 20px;
    color: var(--text);
}

.teacher-col p {
    color: var(--text-muted);
    font-size: 14px;
}

/* --- 9. CONTACT PAGE STYLES --- */
.location {
    width: 85%;
    margin: auto;
    padding: 60px 0;
}

.location iframe {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-us {
    width: 85%;
    margin: auto;
    margin-bottom: 60px;
}

.contact-col {
    flex-basis: 48%;
    margin-bottom: 30px;
}

.contact-col div {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-col div .fas {
    font-size: 24px;
    color: var(--primary);
    margin-right: 20px;
}

.contact-col div h5 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 5px;
}

.contact-col div p {
    color: var(--text-muted);
}

.contact-col input, .contact-col textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    outline: none;
    border: 1px solid var(--border);
    background: var(--bg-color);
    color: var(--text);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}

.contact-col input:focus, .contact-col textarea:focus {
    border-color: var(--primary);
    background: var(--card-bg);
}

/* --- 10. FOOTER --- */
footer {
    background: #1e272e;
    color: #fff;
    padding: 50px 8% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-col p {
    color: #dcdde1;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a, .footer-col ul li {
    color: #dcdde1;
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-col i {
    color: var(--primary);
    margin-right: 10px;
}

/* Ijtimoiy tarmoq ikonkalari to'g'irlash */
.socials {
    margin-top: 15px;
    display: flex; /* Flexbox ishlatamiz */
    gap: 10px; /* Ikonkalar orasidagi masofa */
    padding: 0;
}

.socials a {
    display: flex;
    width: 35px;
    height: 35px;
    background: #2f3640;
    color: #fff;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    text-decoration: none; /* Tagiga chiziq chiqmasligi uchun */
}

.socials a:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

/* --- 11. MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .menu-btn { display: block; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        display: none;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border);
    }
    
    .nav-links.active { display: flex; }
    
    .hero-content h1 { font-size: 32px; }
    .features { padding: 40px 5%; margin-top: 0; }
    
    .about-col, .contact-col { flex-basis: 100%; }
    .about-us-content .row, .contact-us .row { flex-direction: column; }
    
    .sub-header h1 { font-size: 32px; }
    .location iframe { height: 300px; }
    
    /* Mobil uchun til va tema knopkalarini to'g'irlash */
    .nav-controls {
        gap: 10px;
    }
}

/* --- ICON FIX (BETON VARIANT) --- */

/* Ikonkalar turgan qatorni to'g'irlash */
.footer-col .socials {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 20px !important;
    padding: 0 !important;
}

/* Dumaloq tugmani ichini markazlashtirish */
.footer-col .socials a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;       /* Kattaroq qildim */
    height: 40px !important;      /* Kattaroq qildim */
    background: #2f3640 !important;
    color: #fff !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    margin: 0 !important;         /* Ortiqcha surilishni olib tashlaydi */
    padding: 0 !important;
}

/* Ikonkaning o'zini o'rtaga mixlash */
.footer-col .socials a i {
    font-size: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    line-height: 0 !important; /* Ba'zan line-height qiyshaytiradi */
}

/* Hover effekti */
.footer-col .socials a:hover {
    background: var(--primary) !important;
    transform: translateY(-3px);
}

/* --- GALLERY LOAD MORE --- */
.load-more-container {
    text-align: center;
    margin-top: 40px;
    width: 100%;
    clear: both;
}

/* Boshida yashirin turadigan rasmlar uchun */
.gallery-item.hidden {
    display: none;
}

/* Tugma yo'qolganda joy egallamasligi uchun */
#load-more-btn.hide-btn {
    display: none;
}



/*################################*/

/* --- style.css --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #333;
    --card-bg: #fff;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --hero-overlay: rgba(0, 0, 0, 0.6);
}

.dark-mode {
    --primary-color: #4da3ff;
    --background-color: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --nav-bg: rgba(30, 30, 30, 0.95);
    --hero-overlay: rgba(0, 0, 0, 0.8);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; transition: background 0.3s, color 0.3s; }
body { background: var(--background-color); color: var(--text-color); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* NAVBAR */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background: var(--nav-bg); position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.logo-nav { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; }
.logo-nav img { width: 40px; border-radius: 50%; }
.nav-links { display: flex; gap: 20px; }
.nav-links li a { font-weight: 500; }
.nav-links li a:hover, .nav-links li a.active { color: var(--primary-color); }
.nav-controls { display: flex; gap: 15px; align-items: center; }
#lang-select { padding: 5px; border-radius: 5px; border: 1px solid #ccc; }
.theme-btn, .menu-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-color); }
.menu-btn { display: none; }

/* HERO SECTION */
.hero { 
    height: 100vh; 
    /* 🔥 TO'G'IRLANDI: */
    background: url('images/sayt/bg.jpg') no-repeat center center/cover; 
    position: relative; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    color: #fff; 
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--hero-overlay); }
.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 20px; }
.big-logo { width: 100px; border-radius: 50%; margin-bottom: 20px; border: 3px solid #fff; }
.hero h1 { font-size: 3rem; margin-bottom: 10px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; }
.hero-btns .btn { padding: 12px 30px; border-radius: 5px; font-weight: 600; margin: 10px; display: inline-block; }
.btn.primary { background: var(--primary-color); color: #fff; }
.btn.secondary { background: transparent; border: 2px solid #fff; color: #fff; }

/* FEATURES */
.features { display: flex; justify-content: center; gap: 30px; padding: 50px 5%; flex-wrap: wrap; }
.feature-box { background: var(--card-bg); padding: 30px; border-radius: 10px; text-align: center; width: 300px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.feature-box i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }

/* SUB HEADER (Boshqa sahifalar uchun) */
.sub-header {
    height: 50vh;
    /* 🔥 TO'G'IRLANDI: */
    background: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url('images/sayt/bg.jpg');
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ABOUT & STATS */
.about-us-content, .courses-page, .teachers-page, .gallery-page, .contact-us { padding: 50px 5%; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.about-col { flex-basis: 48%; }
.about-col img { width: 100%; border-radius: 10px; }
.stats { display: flex; justify-content: space-around; padding: 50px 5%; background: var(--card-bg); margin-top: 20px; }
.stat-box { text-align: center; }
.stat-box i { font-size: 2rem; color: var(--primary-color); }

/* COURSES */
.course-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 30px; }
.course-item { background: var(--card-bg); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.course-image { position: relative; height: 200px; }
.course-image img { width: 100%; height: 100%; object-fit: cover; }
.course-image .price { position: absolute; top: 10px; right: 10px; background: var(--primary-color); color: #fff; padding: 5px 10px; border-radius: 5px; font-size: 0.9rem; }
.course-details { padding: 20px; }
.course-details h3 { margin-bottom: 10px; }
.outline-btn { width: 100%; padding: 10px; margin-top: 15px; border: 1px solid var(--primary-color); background: transparent; color: var(--primary-color); cursor: pointer; border-radius: 5px; }
.outline-btn:hover { background: var(--primary-color); color: #fff; }

/* TEACHERS */
.teachers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.teacher-col { background: var(--card-bg); border-radius: 10px; overflow: hidden; text-align: center; padding-bottom: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.teacher-img { position: relative; overflow: hidden; height: 300px; }
.teacher-img img { width: 100%; height: 100%; object-fit: cover; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); opacity: 0; transition: 0.5s; display: flex; justify-content: center; align-items: center; }
.teacher-img:hover .overlay { opacity: 1; }
.social-icons a { color: #fff; font-size: 1.5rem; margin: 0 10px; }

/* GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; transition: 0.3s; }
.gallery-item img:hover { transform: scale(1.05); }
.hidden { display: none; }
.load-more-container { text-align: center; margin-top: 30px; }
.hide-btn { display: none; }

/* CONTACT */
.contact-us .row { align-items: flex-start; }
.contact-col { flex-basis: 48%; }
.contact-col div { display: flex; align-items: center; margin-bottom: 20px; }
.contact-col div i { font-size: 1.5rem; color: var(--primary-color); margin-right: 20px; }
.contact-col input, .contact-col textarea { width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #ccc; background: var(--card-bg); color: var(--text-color); }

/* FOOTER */
footer { background: #111; color: #fff; padding: 50px 5% 20px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-col h3 { margin-bottom: 20px; color: var(--primary-color); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li i { margin-right: 10px; color: var(--primary-color); }
.socials a { display: inline-block; height: 40px; width: 40px; background: rgba(255,255,255,0.2); margin-right: 10px; text-align: center; line-height: 40px; border-radius: 50%; color: #fff; transition: 0.3s; }
.socials a:hover { background: var(--primary-color); }
.footer-bottom { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #333; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { position: absolute; right: 0; top: 60px; background: var(--nav-bg); width: 0; height: 100vh; flex-direction: column; padding-top: 50px; overflow: hidden; transition: 0.3s; }
    .nav-links.active { width: 200px; padding-left: 30px; }
    .menu-btn { display: block; }
    .about-col, .contact-col { flex-basis: 100%; }
}

/* --- USER PROFILE (NAVBAR) --- */
.btn-login {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    transition: 0.3s;
    border: 2px solid transparent;
}

.btn-login:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--text-color);
}

.user-profile-nav {
    display: none; /* Default holatda yashirin */
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: var(--card-bg);
    padding: 5px 15px 5px 5px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.user-profile-nav img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile-nav span {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.logout-icon {
    color: var(--secondary-color);
    margin-left: 5px;
    font-size: 14px;
    transition: 0.3s;
}

.logout-icon:hover {
    color: red;
}

/* Faqat userlar uchun ko'rinadigan maxsus elementlar */
.user-only {
    display: none !important; /* Default holatda yashirin */
}