/* Shriftlar: Claude.ai uslubidagi juftlik — sarlavha va matnlar uchun serif, interfeys uchun sans.
   Claude.ai ning o'z shriftlari (Anthropic Serif / Anthropic Sans) litsenziyali bo'lgani uchun saytga
   qo'shib bo'lmaydi; shu sababli ularga eng yaqin bepul shriftlar yuklanadi: Source Serif 4 va Inter. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

/* Umumiy sozlamalar va ranglar o'zgaruvchilari */
:root {
    --bg-color: #f8f9fa;
    --text-color: #333;
    --nav-bg: #ffffff;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 10px rgba(0,0,0,0.05);
    --primary-color: #134074;
    --secondary-color: #ee6c4d;
    --topbar-bg: #0b2545;
    --alt-section-bg: #f1f5f9;
    /* Kompyuterda Claude.ai shriftlari o'rnatilgan bo'lsa o'shalar, aks holda yuklangan o'xshashlari ishlatiladi */
    --font-sans: "Anthropic Sans", "Styrene B", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Anthropic Serif", "Tiempos Text", "Source Serif 4", Georgia, "Times New Roman", serif;
}

/* Qorong'i rejim ranglari */
body.dark-mode {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --nav-bg: #1e1e1e;
    --card-bg: #1e1e1e;
    --card-shadow: 0 4px 10px rgba(0,0,0,0.3);
    --alt-section-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Interfeys (menyu, tugmalar, formalar, nishonlar) — sans */
body {
    font-family: var(--font-sans);
}

button, input, select, textarea {
    font-family: inherit;
}

/* Sarlavhalar va matnlar — serif */
h1, h2, h3, h4, h5, h6, p {
    font-family: var(--font-serif);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Yuqori qism (Top bar) */
.top-bar {
    background-color: var(--topbar-bg);
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i, .settings i {
    margin-right: 5px;
}

.settings {
    display: flex;
    align-items: center;
    gap: 15px;
}

.settings select {
    background: #134074;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

#darkModeToggle {
    background: #134074;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* Asosiy menyu (Navbar) */
/* Asosiy menyu (Header) - Doimiy yuqorida qotib turishi uchun */
.main-nav {
    background-color: var(--nav-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: fixed; /* Ekranda qat'iy qotib turadi */
    top: 0;          /* Yuqoridan 0 masofada */
    left: 0;
    width: 100%;     /* Enini to'liq egallaydi */
    z-index: 1000;   /* Boshqa elementlar ustida turadi */
    transition: background-color 0.3s;
}

/* Header fixed bo'lgani uchun keyingi element (hero) uning tagiga kirib qolmasligi uchun joy tashlaymiz */
.hero {
    margin-top: 70px; /* Headerning balandligiga qarab moslashtirildi */
    background: linear-gradient(rgba(11, 37, 69, 0.85), rgba(19, 64, 116, 0.85)), url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.main-nav .container {
    position: relative;
}

.logo h2 {
    color: var(--primary-color);
    white-space: nowrap; /* sayt nomi ikki qatorga bo'linmasin */
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.mobile-menu-header {
    display: none;
}

/* Kompyuter uchun menyu (ikonkalar yo'q) */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}

/* Kompyuter menyusida ikonkalarni yashiramiz */
.nav-links a i {
    display: none;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}

.admin-link {
    background-color: var(--primary-color);
    color: white !important;
    padding: 6px 12px;
    border-radius: 4px;
}

.admin-link:hover {
    background-color: #0b2545 !important;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 150px;
    background: var(--card-bg);
    color: var(--text-color);
}

.search-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 7px 12px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Banner / Hero Qismi */
.hero {
    background: linear-gradient(rgba(11, 37, 69, 0.85), rgba(19, 64, 116, 0.85)), url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    flex-direction: column;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

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

.primary-btn:hover {
    opacity: 0.9;
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

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

/* To'liq enli Section Bloklari va Alohida Cardlar */
.content-section {
    padding: 80px 0;
    background-color: var(--bg-color);
    transition: background-color 0.3s;
}

.content-section.alt-bg {
    background-color: var(--alt-section-bg);
}

.section-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.section-row.reverse {
    flex-direction: row-reverse;
}

/* Matn va rasm uchun alohida cardlar */
.section-card {
    flex: 1;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.text-card h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

body.dark-mode .text-card h2 {
    color: #64b5f6;
}

.text-card p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.7;
}

.image-card {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-card img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    max-height: 320px;
}

.details-btn {
    text-decoration: none;
    color: white;
    background-color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s, transform 0.3s;
}

.details-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--topbar-bg);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    flex-direction: column;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    margin: 0 10px;
}


/* ==========================================
   PLANSHET VA TELEFON UCHUN RESPONSIVE & SIDEBAR
   Chapdan chiqadigan menyu planshetda ham ishlaydi. Chegara 1199px: undan tor ekranda
   to'liq menyu bir qatorga sig'maydi (ikki qatorga bo'linib ketadi).
   ========================================== */

@media (max-width: 1199px) {
    .menu-toggle {
        display: block;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 998;
    }

    .menu-overlay.active {
        visibility: visible;
        opacity: 1;
    }

    /* Telefonda ikonkalarni faqat sidebar menyuda ko'rsatamiz */
    .nav-links {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background-color: var(--nav-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: 5px 0 15px rgba(0,0,0,0.15);
        transition: transform 0.35s ease-in-out, background-color 0.3s;
        z-index: 999;
        gap: 0;
    }

    .nav-links.active {
        transform: translateX(280px);
    }

    .nav-links a i {
        display: inline-block; /* Telefonda ikonka chiqishi uchun */
        color: var(--primary-color);
        margin-right: 10px;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-bottom: 15px;
        margin-bottom: 15px;
        border-bottom: 1px solid #ccc;
    }

    .mobile-menu-header h3 {
        color: var(--text-color);
        font-size: 1.2rem;
    }

    .mobile-menu-header i {
        font-size: 1.3rem;
        color: var(--text-color);
        cursor: pointer;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 10px;
    }

    .nav-links a {
        padding: 12px 15px;
        border-radius: 6px;
        width: 100%;
        font-size: 1rem;
        display: flex;
        align-items: center;
    }

    .nav-links a:hover {
        background-color: rgba(0,0,0,0.05);
    }

    .admin-link {
        margin-top: 10px;
        text-align: center;
        justify-content: center;
    }
}

/* Faqat telefon: qidiruv yashiriladi, matn va rasm bloklari ustma-ust joylashadi */
@media (max-width: 768px) {
    .search-box {
        display: none;
    }

    .section-row, 
    .section-row.reverse {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .section-card {
        padding: 25px;
    }
}

/*About Section*/
/* ==========================================
   MAKTAB HAQIDA SAHIFASI UCHUN USLUBLAR
   ========================================== */

/* Page Header banner */
.page-header {
    background: linear-gradient(rgba(11, 37, 69, 0.85), rgba(19, 64, 116, 0.85)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-top: 70px; /* Fixed Header uchun masofa */
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.flex-column {
    flex-direction: column;
    width: 100%;
}

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

body.dark-mode .section-title {
    color: #64b5f6;
}

/* Rahbariyat kartochkalari gridi */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    width: 100%;
}

.team-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.team-card h3 {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.team-card .role {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.team-card .bio {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.85rem;
}

/* Statistika bloki */
.stats-section {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-box h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 1rem;
    font-weight: 500;
}
/* ==========================================
   YANGILIKLAR SAHIFASI USLUBLARI
   ========================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

/* Sahifa almashganda yangiliklar boshi qotib turgan header ostida qolib ketmasin */
.news-grid {
    scroll-margin-top: 110px;
}

.news-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.news-img {
    position: relative;
    height: 200px;
}

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

.news-date {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(11, 37, 69, 0.85);
    color: white;
    padding: 5px 10px;
    font-size: 0.85rem;
    border-radius: 4px;
}

.video-badge {
    background-color: var(--secondary-color) !important;
}

.news-video {
    position: relative;
    background: #000;
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.news-content h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

body.dark-mode .news-content h3 {
    color: #64b5f6;
}

.news-content p {
    color: var(--text-color);
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 20px;
    line-height: 1.6;
}
/* Kartochkada matn 4 qatordan oshsa qisqartiriladi, to'lig'i "Batafsil o'qish" oynasida */
.news-card .news-content p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Matn qisqa bo'lsa ham sarlavha va matn tepada, tugma esa kartochka pastida turadi */
.news-card .news-content {
    justify-content: flex-start;
}

.news-card .news-content .details-btn {
    margin-top: auto;
}

/* Rasmi yo'q yangilik uchun rasm o'rnidagi fon va ikonka */
.news-img.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--topbar-bg));
    color: rgba(255, 255, 255, 0.5);
    font-size: 4rem;
}

.news-video iframe {
    display: block;
    border: 0;
}

/* Yangilikning "Batafsil o'qish" oynasi */
.modal-box.news-modal {
    max-width: 720px;
}

.news-modal .modal-close {
    z-index: 1;
    background: rgba(255, 255, 255, 0.85);
    color: #333;
}

.news-modal .modal-close:hover,
.news-modal .modal-close:focus-visible {
    background: #fff;
}

.news-modal .news-img {
    height: 320px;
}

.news-modal .news-video iframe {
    height: 380px;
}

.news-modal .news-content p {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .news-modal .news-img,
    .news-modal .news-video iframe {
        height: 220px;
    }
}
/* ==========================================
   PAGINATION (SAHIFALASH) USLUBLARI
   ========================================== */

.pagination-section {
    padding: 40px 0;
    background-color: var(--bg-color);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-num, .page-btn {
    text-decoration: none;
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-num:hover, .page-btn:hover:not(.disabled) {
    background-color: var(--primary-color);
    color: white;
}

.page-num.active {
    background-color: var(--primary-color);
    color: white;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.dots {
    color: var(--text-color);
    padding: 0 5px;
    font-weight: bold;
}

/* ==========================================
   O'QITUVCHILAR SAHIFASI USLUBLARI
   ========================================== */

/* Filtrlar paneli */
.filter-section {
    padding: 30px 0 10px 0;
    background-color: var(--bg-color);
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

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

/* O'qituvchilar Grid */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

.teacher-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* O'qituvchilar rasmlarini aylana shaklga keltirish */
.teacher-img {
    position: relative;
    width: 140px;          /* Eni va bo'yi bir xil bo'lishi shart */
    height: 140px;
    margin: 25px auto 10px auto; /* Kartochka markazida turishi uchun */
    border-radius: 50%;    /* To'liq aylana qiladi */
    overflow: hidden;
    border: 3px solid var(--primary-color); /* Atrofiga chiroyli hoshiya */
}

/* Ustozlar yo'q yoki yuklanmagan holat uchun xabar */
.teachers-empty {
    grid-column: 1 / -1;
    padding: 40px 0;
    text-align: center;
    color: var(--text-color);
    opacity: 0.75;
}

/* Rasmi yo'q ustoz uchun aylana ichida ikonka */
.teacher-img.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary-color);
}

.teacher-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* Rasm proporsiyasi buzilmasligi uchun */
}

.teacher-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.teacher-info h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

body.dark-mode .teacher-info h3 {
    color: #64b5f6;
}

.teacher-info p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 8px;
    opacity: 0.9;
}

.teacher-info p i {
    color: var(--primary-color);
    margin-right: 6px;
    width: 16px;
}

body.dark-mode .teacher-info p i {
    color: #64b5f6;
}

.teacher-info .desc {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Kartochkada ma'lumot 3 qatordan oshsa qisqartiriladi, to'lig'i "Batafsil" oynasida */
.teacher-card .teacher-info .desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* "Batafsil" oynasi (ustozlar va yangiliklar uchun umumiy) */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 100%;
    overflow-y: auto;
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.teacher-modal .teacher-img {
    width: 180px;
    height: 180px;
    margin-top: 35px;
}

.teacher-modal .teacher-info {
    text-align: center;
}

.teacher-modal .teacher-info .desc {
    margin: 12px 0 5px 0;
    text-align: left;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
    background: rgba(128, 128, 128, 0.2);
}
/* ==========================================
   O'QUVCHILAR SAHIFASI USLUBLARI
   ========================================== */

/* Olimpiada G'oliblari Gridi */
.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.student-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    text-align: center;
}

.student-card:hover {
    transform: translateY(-5px);
}

.student-img {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 25px auto 10px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

/* Rasmi yo'q o'quvchi yoki bitiruvchi uchun aylana ichida ikonka */
.student-img.no-photo,
.alumni-img.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.student-img.no-photo {
    font-size: 3.2rem;
}

.alumni-img.no-photo {
    font-size: 2.2rem;
}

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

.student-info {
    padding: 20px;
}

.student-info h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

body.dark-mode .student-info h3 {
    color: #64b5f6;
}

.student-info .class-name {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 12px;
}

.student-info .achievement {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.85;
    line-height: 1.5;
}

/* Bitiruvchilar Gridi */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

.alumni-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.alumni-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--secondary-color);
}

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

.alumni-info h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

body.dark-mode .alumni-info h3 {
    color: #64b5f6;
}

.alumni-info .university {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.alumni-info .desc {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Loyihalar Gridi */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

.project-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

body.dark-mode .project-icon {
    color: #64b5f6;
}

.project-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.5;
}

/* ==========================================
   BOG'LANISH SAHIFASI USLUBLARI
   ========================================== */

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

.contact-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

body.dark-mode .contact-card i {
    color: #64b5f6;
}

.contact-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.5;
}

/* Xarita va Forma bloki */
.contact-section-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.map-container, .form-container {
    flex: 1;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.map-container h2, .form-container h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

body.dark-mode .map-container h2, 
body.dark-mode .form-container h2 {
    color: #64b5f6;
}

.map-frame {
    border-radius: 8px;
    overflow: hidden;
}

/* Forma elementlari */
.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 12px;
}

/* Mobil ekranlar uchun moslashuv */
@media (max-width: 768px) {
    .contact-section-row {
        flex-direction: column;
    }
}

/* ==========================================
   ADMIN PANELI USLUBLARI
   ========================================== */

.admin-body {
    background-color: #f4f6f9;
}

.admin-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

.admin-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logout-btn {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.logout-btn:hover {
    opacity: 0.8;
}

/* Admin Asosiy Layout */
.admin-main {
    display: flex;
    gap: 30px;
    margin-top: 100px;
    margin-bottom: 50px;
}

.admin-sidebar {
    width: 260px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 20px;
    height: fit-content;
}

.admin-tabs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tab-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.tab-link:hover, .tab-link.active {
    background-color: var(--primary-color);
    color: white;
}

.badge-count {
    background-color: var(--secondary-color);
    color: white;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 10px;
    margin-left: auto;
}

.admin-content {
    flex-grow: 1;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

body.dark-mode .tab-pane h2 {
    color: #64b5f6;
}

/* Dashboard Statistikalar */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--card-shadow);
}

.admin-stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

body.dark-mode .admin-stat-card i {
    color: #64b5f6;
}

.admin-stat-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
}

.admin-stat-card p {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Jadval (Table) uslublari */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    color: var(--text-color);
    font-size: 0.95rem;
}

.admin-table th {
    background-color: var(--bg-color);
    font-weight: bold;
}

.table-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px 8px;
    border-radius: 4px;
    transition: background 0.3s;
}

.action-btn.edit {
    color: #3498db;
}

.action-btn.delete {
    color: #e74c3c;
}

.action-btn:hover {
    background: rgba(0,0,0,0.05);
}

/* Murojaat kartochkasi */
.message-card-admin {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 15px;
}

.msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.msg-header h4 {
    color: var(--text-color);
}

.msg-date {
    font-size: 0.8rem;
    opacity: 0.6;
}

.msg-phone {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.msg-text {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.85;
    margin-bottom: 15px;
}

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

/* Mobil moslashuv */
@media (max-width: 768px) {
    .admin-main {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
    }
}
/* ==========================================
   LOGIN SAHIFASI USLUBLARI
   ========================================== */
.login-body {
    background: linear-gradient(rgba(11, 37, 69, 0.85), rgba(19, 64, 116, 0.85));
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
}

.login-card h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

body.dark-mode .login-card h2 {
    color: #64b5f6;
}

.login-card p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* ==========================================
   ADMIN PANELI JOYLASHUVI: chapga yopishgan menyu, o'ngda to'liq enli ish maydoni
   ========================================== */
.admin-body {
    --admin-header-height: 64px;
    --admin-sidebar-width: 260px;
}

.admin-header {
    height: var(--admin-header-height);
    padding: 0;
    display: flex;
    align-items: center;
}

.admin-header .admin-nav-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 24px;
}

.admin-header .logo h2 {
    color: white; /* umumiy .logo h2 rangi header foni bilan bir xil, shuning uchun bu yerda oq */
    font-size: 1.25rem;
    white-space: nowrap;
}

.admin-main {
    display: block;
    margin: 0;
    padding-top: var(--admin-header-height);
}

/* Menyu ekranning chap chetiga yopishib, header ostidan pastgacha turadi */
.admin-sidebar {
    position: fixed;
    top: var(--admin-header-height);
    left: 0;
    bottom: 0;
    width: var(--admin-sidebar-width);
    height: auto;
    padding: 16px 12px;
    border-radius: 0;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.06);
    overflow-y: auto;
}

.admin-tabs {
    gap: 4px;
}

/* Tanlangan bo'lim menyudan o'ngdagi qolgan joyni to'liq egallaydi */
.admin-content {
    margin-left: var(--admin-sidebar-width);
    min-height: calc(100vh - var(--admin-header-height));
    padding: 30px 36px;
    border-radius: 0;
    box-shadow: none;
}

.admin-hint {
    margin-bottom: 20px;
    color: var(--text-color);
    opacity: 0.75;
    font-size: 0.95rem;
}

/* Sahifa matnlarini tahrirlash formasi */
.content-form h3 {
    margin: 28px 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.content-form h3:first-child {
    margin-top: 0;
}

body.dark-mode .content-form h3 {
    color: #64b5f6;
}

.content-field {
    margin-bottom: 15px;
}

.content-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.content-field input,
.content-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: var(--card-bg);
    color: var(--text-color);
    font: inherit;
}

.content-field textarea {
    resize: vertical;
}

.content-form .btn {
    margin-top: 10px;
    border: none;
    cursor: pointer;
}

/* Sahifa rasmini tahrirlash maydoni: hozirgi rasm, fayl tanlash, asl rasmga qaytarish */
.content-image-preview {
    display: block;
    width: 260px;
    max-width: 100%;
    height: 150px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    object-fit: cover;
    background: #eee;
}

.content-image-preview.square {
    width: 110px;
    height: 110px;
    border-radius: 50%;
}

.content-field input[type="file"] {
    width: auto;
    max-width: 100%;
}

.content-image-reset {
    margin-left: 10px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: var(--card-bg);
    color: var(--text-color);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Murojaat kartochkasidagi amallar */
.message-card-admin.is-read {
    opacity: 0.6;
}

.msg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.msg-actions button {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: var(--card-bg);
    color: var(--text-color);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.msg-actions button.danger {
    border-color: #e74c3c;
    color: #e74c3c;
}

.msg-actions button.primary {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

/* Murojaat egasining emaili */
.msg-email {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.msg-email a {
    color: var(--primary-color);
    word-break: break-all;
}

/* Yuborilgan javoblar */
.msg-reply {
    border-left: 3px solid var(--primary-color);
    background: var(--alt-section-bg);
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: var(--text-color);
}

.msg-reply p {
    white-space: pre-line;
}

.msg-reply-meta {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 4px;
}

/* Javob yozish formasi */
.msg-reply-form {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.msg-reply-form[hidden] {
    display: none;
}

.msg-reply-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-color);
    font: inherit;
    resize: vertical;
}

.msg-reply-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.msg-reply-form .btn {
    border: none;
    cursor: pointer;
}

/* Bir necha qatorli matnlar (telefonlar, ish vaqti): har bir qator alohida chiqadi */
[data-multiline] {
    white-space: pre-line;
}

/* Tor ekranda menyu tepaga chiqadi, ish maydoni butun enni egallaydi */
@media (max-width: 768px) {
    .admin-sidebar {
        position: static;
        width: 100%;
        box-shadow: none;
        border-bottom: 1px solid rgba(128, 128, 128, 0.25);
    }

    .admin-content {
        margin-left: 0;
        min-height: 0;
        padding: 20px 16px;
    }

    .admin-header .logo h2 {
        font-size: 1rem;
    }
}

/* ==========================================
   KARTOCHKALAR SLAYDERI (O'quvchilar sahifasi)
   Bir vaqtda 3 ta kartochka ko'rinadi, o'rtadagisi kattaroq; ortiqchalari tugmalar bilan aylantiriladi.
   Slayderni script.js yoqadi (bo'limda kamida 3 ta kartochka bo'lsa).
   ========================================== */
.card-slider {
    position: relative;
    width: 100%;
    padding: 0 56px;
}

.card-slider .slider-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: center;
    padding: 24px 0;
}

/* Faqat birinchi 3 ta kartochka ko'rinadi; tugma bosilganda kartochkalar tartibi aylanadi */
.slider-track > *:nth-child(n+4) {
    display: none;
}

.slider-track > * {
    transform: scale(0.93);
    opacity: 0.85;
    transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
}

.slider-track > *:hover {
    transform: scale(0.96);
}

/* O'rtadagi asosiy kartochka */
.slider-track > *:nth-child(2) {
    transform: scale(1.08);
    opacity: 1;
    z-index: 1;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.slider-track > *:nth-child(2):hover {
    transform: scale(1.1);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

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

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

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

/* Tugmalar faqat ko'rinmay qolgan kartochka bo'lganda chiqadi */
.card-slider.has-hidden-cards .slider-btn {
    display: flex;
}

/* Aylantirilganda kartochkalar kelgan tomonidan yengil siljib chiqadi */
@keyframes slider-from-right {
    from { opacity: 0.2; translate: 30px 0; }
}

@keyframes slider-from-left {
    from { opacity: 0.2; translate: -30px 0; }
}

.slider-track.slide-next > * {
    animation: slider-from-right 0.3s ease;
}

.slider-track.slide-prev > * {
    animation: slider-from-left 0.3s ease;
}

/* Planshet va telefonda bir vaqtda bitta kartochka ko'rinadi */
@media (max-width: 1024px) {
    .card-slider {
        padding: 0 50px;
    }

    .card-slider .slider-track {
        grid-template-columns: minmax(0, 420px);
        justify-content: center;
    }

    .slider-track > *:nth-child(n+2) {
        display: none;
    }

    .slider-track > *:nth-child(1),
    .slider-track > *:nth-child(1):hover {
        transform: none;
        opacity: 1;
    }

    .card-slider .slider-btn {
        display: flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slider-track.slide-next > *,
    .slider-track.slide-prev > * {
        animation: none;
    }
}

/* ==========================================
   Kartochkalarning silliq paydo bo'lishi
   Kartochka ekranga kirganda pastdan yengil ko'tarilib, xiralikdan chiqadi.
   Klasslarni script.js qo'yadi (JavaScript o'chiq bo'lsa kartochkalar oddiy ko'rinadi).
   "translate" xossasi ishlatiladi, shuning uchun slayderdagi "transform: scale" buzilmaydi.
   ========================================== */
.card-reveal-wait {
    opacity: 0 !important;
}

@keyframes card-reveal {
    from {
        opacity: 0;
        translate: 0 28px;
    }
}

.card-reveal-in {
    animation: card-reveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .card-reveal-wait {
        opacity: 1 !important;
    }

    .card-reveal-in {
        animation: none;
    }
}
