* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
        }

        :root {
            --primary: #1e6f5c;
            --primary-dark: #165a4a;
            --secondary: #289672;
            --accent: #e6dd3b;
            --light: #f9f9f9;
            --dark: #2c3e50;
            --text: #333;
            --gray: #f5f5f5;
            --border: #ddd;
            --shadow: 0 8px 20px rgba(0,0,0,0.06);
            --radius: 16px;
            --transition: all 0.25s ease;
        }

        body {
            background-color: #fcfcfc;
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
        }

        .container {
            width: 90%;
            max-width: 1300px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /*========== ҲЕДЕР ВА МЕНЮИ ДРОПДАУН ==========*/
        header {
            background: linear-gradient(145deg, var(--primary), var(--secondary));
            color: white;
            padding: 0.9rem 0;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

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

        .logo-icon {
            font-size: 2.6rem;
            color: var(--accent);
        }

        .logo-text h1 {
            font-size: 1.5rem;
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: -0.5px;
        }

        .logo-text p {
            font-size: 0.85rem;
            opacity: 0.9;
        }

        /* Dropdown */
        .dropdown {
            position: relative;
        }

        .dropdown-toggle {
            background: rgba(255,255,255,0.18);
            backdrop-filter: blur(5px);
            color: white;
            padding: 12px 26px;
            border: 1.5px solid rgba(255,255,255,0.25);
            border-radius: 40px;
            cursor: pointer;
            font-weight: 600;
            font-size: 1.05rem;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: var(--transition);
        }

        .dropdown-toggle:hover {
            background: rgba(255,255,255,0.3);
            border-color: white;
        }

        /* МЕНЮИ СКРУЛЛШАВАНДА */
        .dropdown-menu {
            display: none;
            position: absolute;
            top: 125%;
            right: 0;
            background: white;
            min-width: 280px;
            max-height: 400px;          /* балансии максималӣ */
            overflow-y: auto;            /* скрулл амудӣ */
            box-shadow: 0 20px 35px rgba(0,0,0,0.15);
            border-radius: 20px;
            z-index: 1100;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .dropdown-menu.show {
            display: block;
            animation: slideDown 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
        }

        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-15px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .dropdown-item {
            color: var(--dark);
            padding: 15px 22px;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 16px;
            border-bottom: 1px solid #f0f0f0;
            font-weight: 500;
            transition: 0.2s;
        }

        .dropdown-item:last-child { border-bottom: none; }
        .dropdown-item i {
            width: 24px;
            text-align: center;
            color: var(--primary);
            font-size: 1.2rem;
        }
        .dropdown-item:hover {
            background: #e4f2ef;
            color: var(--primary-dark);
        }
        .dropdown-item.active-page {
            background: var(--primary) !important;
            color: white !important;
        }
        .dropdown-item.active-page i { color: white; }

        /*========== САҲИФАБАНДӢ ==========*/
        .page {
            display: none;
            animation: fadePage 0.4s;
        }
        .page.active {
            display: block;
        }
        @keyframes fadePage {
            from { opacity: 0.3; } to { opacity: 1; }
        }

        /*========== УНСОНҲОИ САҲИФА ==========*/
        .page-header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 70px 0;
            text-align: center;
            margin-bottom: 30px;
            border-radius: 0 0 40px 40px;
        }
        .page-header h1 {
            font-size: 2.6rem;
            margin-bottom: 12px;
            font-weight: 700;
        }
        .page-header p {
            font-size: 1.25rem;
            opacity: 0.95;
        }

        .section-title {
            text-align: center;
            margin-bottom: 50px;
            color: var(--primary);
            position: relative;
            padding-bottom: 18px;
            font-size: 2.1rem;
            font-weight: 600;
        }
        .section-title:after {
            content: '';
            position: absolute;
            width: 100px;
            height: 5px;
            background: var(--accent);
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 5px;
        }

        /*========== КАРТАҲО, ГРИДҲО, ҶАДВАЛҲО ==========*/
        .grid-3, .grid-4, .teachers-grid, .admin-grid, .news-grid, .gallery-grid, .documents-grid, .clubs-grid, .stats-grid {
            display: grid;
            grid-gap: 30px;
        }
        .teachers-grid { grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); }
        .admin-grid { grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); }
        .news-grid { grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); }
        .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); }
        .documents-grid { grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); }
        .clubs-grid { grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); }
        .stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); }

        .card {
            background: white;
            border-radius: var(--radius);
            padding: 28px 22px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.02);
            transition: var(--transition);
            border: 1px solid #f0f0f0;
        }
        .card:hover {
            transform: translateY(-8px);
            box-shadow: 0 18px 35px rgba(30,111,92,0.1);
            border-color: var(--primary);
        }
        .card i {
            color: var(--primary);
            font-size: 2.5rem;
            margin-bottom: 18px;
        }

        /* Омӯзгорон */
        .teacher-card {
            background: white;
            border-radius: var(--radius);
            padding: 25px;
            display: flex;
            flex-direction: column;
            border: 1px solid #eee;
            transition: var(--transition);
        }
        .teacher-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); }
        .teacher-name { color: var(--primary); font-size: 1.5rem; font-weight: 600; }
        .teacher-subject { color: var(--secondary); font-weight: 600; margin: 8px 0 12px; }
        .teacher-details i { width: 24px; color: var(--primary); }

        /* Галерея */
        .gallery-item {
            position: relative;
            border-radius: 20px;
            overflow: hidden;
            height: 220px;
            cursor: pointer;
            box-shadow: 0 10px 18px rgba(0,0,0,0.05);
        }
        .gallery-item img {
            width: 100%; height: 100%; object-fit: cover;
            transition: 0.6s;
        }
        .gallery-item:hover img { transform: scale(1.1); }
        .gallery-overlay {
            position: absolute; bottom: 0; left: 0; right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            color: white; padding: 20px;
            transform: translateY(100%);
            transition: 0.35s;
        }
        .gallery-item:hover .gallery-overlay { transform: translateY(0); }

        .lightbox {
            display: none; position: fixed; top: 0; left: 0;
            width: 100%; height: 100%; background: rgba(0,0,0,0.95);
            z-index: 2000; justify-content: center; align-items: center;
        }
        .lightbox.active { display: flex; }
        .lightbox img { max-width: 90%; max-height: 80vh; border-radius: 16px; }
        .close-lightbox {
            position: absolute; top: 30px; right: 50px;
            color: white; font-size: 50px; cursor: pointer;
        }

        /* Ҷадвали дарсӣ */
        .schedule-table {
            width: 100%; border-collapse: collapse;
            background: white; border-radius: 20px; overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.03);
        }
        .schedule-table th {
            background: var(--primary); color: white; padding: 16px;
            font-weight: 600;
        }
        .schedule-table td {
            padding: 14px; border-bottom: 1px solid #f0f0f0;
        }
        .day-column { font-weight: 700; color: var(--primary-dark); }

        /* Тамос */
        .contact-grid {
            display: grid; grid-template-columns: 1fr 1fr; gap: 35px;
        }
        .contact-info, .contact-form {
            background: var(--gray); padding: 35px; border-radius: 30px;
        }
        .contact-item {
            display: flex; gap: 18px; margin-bottom: 25px;
        }
        .contact-icon {
            width: 55px; height: 55px; background: var(--primary);
            color: white; border-radius: 50%; display: flex;
            align-items: center; justify-content: center; font-size: 1.4rem;
        }
        .form-control {
            width: 100%; padding: 15px 20px; border: 1px solid #ddd;
            border-radius: 50px; font-size: 1rem; transition: 0.2s;
        }
        .form-control:focus { border-color: var(--primary); outline: none; }
        .submit-btn {
            background: var(--primary); color: white; border: none;
            padding: 15px 40px; border-radius: 50px; font-weight: 700;
            cursor: pointer; transition: 0.2s; font-size: 1.1rem;
        }
        .submit-btn:hover { background: var(--secondary); }

        /* Футер */
        footer {
            background: var(--dark); color: white; padding: 50px 0 25px;
            margin-top: 70px;
        }
        .footer-content {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
            gap: 40px; margin-bottom: 30px;
        }
        .footer-logo h3 { color: var(--accent); margin-bottom: 18px; }
        .social-links {
            display: flex; gap: 18px; margin-top: 25px;
        }
        .social-links a {
            display: inline-flex; align-items: center; justify-content: center;
            width: 44px; height: 44px; background: rgba(255,255,255,0.08);
            color: white; border-radius: 50%; font-size: 1.4rem;
            transition: 0.2s;
        }
        .social-links a:hover {
            background: var(--accent); color: var(--dark); transform: scale(1.1);
        }
        .footer-links ul {
            list-style: none;
        }
        .footer-links ul li { margin-bottom: 14px; }
        .footer-links ul li a {
            color: #ddd; text-decoration: none; transition: 0.2s;
        }
        .footer-links ul li a:hover { color: var(--accent); padding-left: 5px; }
        .footer-contact p {
            display: flex; gap: 14px; margin-bottom: 14px; color: #ddd;
        }
        .footer-contact i { color: var(--accent); width: 22px; }
        .copyright {
            text-align: center; padding-top: 30px;
            border-top: 1px solid rgba(255,255,255,0.08); color: #aaa;
        }

        /* Тугмаи ба боло */
        .back-to-top {
            position: fixed; bottom: 35px; right: 35px;
            background: var(--primary); color: white; width: 55px; height: 55px;
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            font-size: 1.5rem; cursor: pointer; opacity: 0; visibility: hidden;
            transition: 0.25s; z-index: 99; border: none; box-shadow: 0 8px 18px rgba(0,0,0,0.2);
        }
        .back-to-top.show { opacity: 1; visibility: visible; }
        .back-to-top:hover { background: var(--secondary); transform: scale(1.08); }

        /*========== РЕСПОНСИВ ==========*/
        @media (max-width: 1024px) {
            .page-header h1 { font-size: 2.2rem; }
        }
        @media (max-width: 768px) {
            .header-content { flex-direction: column; align-items: stretch; }
            .logo { justify-content: center; margin-bottom: 5px; }
            .dropdown { width: 100%; }
            .dropdown-toggle { width: 100%; justify-content: center; }
            .dropdown-menu { position: static; width: 100%; margin-top: 12px; max-height: 300px; }
            .page-header h1 { font-size: 1.9rem; }
            .page-header { padding: 50px 0; }
            .contact-grid { grid-template-columns: 1fr; }
        }
        @media (max-width: 576px) {
            .container { width: 95%; padding: 0 12px; }
            .section-title { font-size: 1.7rem; }
        }