/* ===========================
   Base Styles & Variables
   =========================== */
:root {
    --primary-color: #285BAD;
    --secondary-color: #3788d4;
    --accent-color: #0d2957;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===========================
   Header & Navigation
   =========================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

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

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

.top-info i {
    margin-right: 5px;
}

.top-social a {
    color: var(--white);
    margin-left: 15px;
    font-size: 16px;
    transition: var(--transition);
}

.top-social a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

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

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

.logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 3px solid var(--primary-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 25px;
}

.search-box {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
}

.search-box input {
    border: none;
    padding: 8px 15px;
    outline: none;
    width: 200px;
}

.search-box button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    height: 610px;
    overflow: hidden;
}
.hero-slider{
    margin-top: -70px !important;

}

.hero-slider .slide {
    display: none;
    position: relative;
    height: 600px;
}

.hero-slider .slide.active {
    display: block;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.slide-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease;
}

.slide-text {
    font-size: 24px;
    margin-bottom: 10px;
    animation: fadeInUp 1.2s ease;
}

.slide-desc {
    font-size: 18px;
    margin-bottom: 30px;
    animation: fadeInUp 1.4s ease;
}

.slide-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    animation: fadeInUp 1.6s ease;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

.slider-controls button:hover {
    background: var(--primary-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* ===========================
   Stats Section
   =========================== */
.stats {
    background:
        linear-gradient(rgba(28, 54, 120, 0.82), rgba(10, 25, 70, 0.88)),
        url('/static/img/bg2.JPG') center / cover no-repeat;
    color: var(--white);
    padding: 60px 0;
    margin-top: 1px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 18px;
    opacity: 0.9;
}

/* ===========================
   Section Styles
   =========================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 10px 0 20px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto;
}

/* ===========================
   About Section
   =========================== */
.about {
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text .lead {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature i {
    color: var(--primary-color);
    font-size: 20px;
}

.about-image {
    position: relative;
}

.about-image img {
    height: 400px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.badge-year {
    display: block;
    font-size: 32px;
    font-weight: 700;
}

.badge-text {
    font-size: 14px;
}

/* ===========================
   News Section
   =========================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

.text-center {
    text-align: center;
}

/* ===========================
   Faculties Section
   =========================== */
.faculties {
    background: var(--light-bg);
}

.faculties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.faculty-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s !important;
    box-shadow: var(--shadow);
}

.faculty-card:hover {
    transition: all 0.2s !important;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary-color);
}

.faculty-icon {
    width: 140px;
    height: 140px;
    background: var(--light-bg);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 42px;
    transition: var(--transition);
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.faculty-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.faculty-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.faculty-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.faculty-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.faculty-link:hover {
    gap: 10px;
}

/* ===========================
   Gallery Section
   =========================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0095ff6b;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: var(--white);
    font-size: 48px;
}

.gallery-item:hover img {
    transform: scale(1.2);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===========================
   Partners / Hamkorlar Section
   =========================== */
.partners {
    background: linear-gradient(160deg, #f8f9ff 0%, #eef1ff 50%, #f0f4ff 100%);
    position: relative;
    overflow: hidden;
}

/* CTA Banner background image — gradient overlay + campus photo */

.partners::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(102,126,234,0.10) 0%, transparent 70%);
    pointer-events: none;
}

.partners::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(40,91,173,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ---- Filter Tabs ---- */
.partners-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.partner-tab {
    background: var(--white);
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: 30px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.partner-tab:hover,
.partner-tab.active {
    background: linear-gradient(135deg, #285BAD, #3788d4);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(40, 91, 173, 0.3);
    transform: translateY(-2px);
}

/* ---- Partners Grid ---- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* ---- Partner Card ---- */
.partner-card {
    background: var(--white);
    border-radius: 18px;
    padding: 28px 28px 28px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(40, 91, 173, 0.07);
    border: 1px solid rgba(40, 91, 173, 0.08);
    transition: all 0.38s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #285BAD, #3788d4);
    border-radius: 18px 0 0 18px;
    transition: width 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(40, 91, 173, 0.16);
    border-color: rgba(40, 91, 173, 0.2);
}

.partner-card:hover::before {
    width: 6px;
}

/* ---- Partner Logo Icon ---- */
.partner-logo {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, #285BAD 0%, #3788d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(40, 91, 173, 0.3);
    transition: all 0.35s ease;
}

.partner-card:hover .partner-logo {
    transform: rotate(-8deg) scale(1.08);
    box-shadow: 0 10px 30px rgba(40, 91, 173, 0.45);
}

/* ---- Partner Info ---- */
.partner-info {
    flex: 1;
    min-width: 0;
}

.partner-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.35;
}

.partner-country {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.partner-country i {
    font-size: 11px;
}

.partner-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ---- Partner Badge ---- */
.partner-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--white);
}

.partner-badge.xalqaro {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.partner-badge.milliy {
    background: linear-gradient(135deg, #285BAD, #3788d4);
}

.partner-badge.sanoat {
    background: linear-gradient(135deg, #56ab2f, #a8e063);
    color: #1a3a0f;
}

/* ---- Partners CTA Banner ---- */
.partners-cta {
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.partners-cta-inner {
    background:
        linear-gradient(135deg, rgba(40, 91, 173, 0.87) 0%, rgba(55, 136, 212, 0.84) 50%, rgba(102, 126, 234, 0.84) 100%),
        url('/static/img/bg1.JPG') center / cover no-repeat;
    border-radius: 20px;
    padding: 40px 50px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 15px 50px rgba(40, 91, 173, 0.35);
    position: relative;
    overflow: hidden;
}

.partners-cta-inner::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}

.partners-cta-inner::after {
    content: '';
    position: absolute;
    bottom: -60px; right: 120px;
    width: 130px; height: 130px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.partners-cta-inner > i {
    font-size: 52px;
    color: rgba(255,255,255,0.85);
    flex-shrink: 0;
}

.partners-cta-inner > div {
    flex: 1;
}

.partners-cta-inner h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.partners-cta-inner p {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
}

.partners-cta-inner .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    flex-shrink: 0;
    font-size: 14px;
    padding: 13px 32px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.partners-cta-inner .btn-primary:hover {
    background: var(--light-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ---- Animation ---- */
@keyframes partnerFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .partner-card {
        padding: 22px;
    }

    .partner-logo {
        width: 58px;
        height: 58px;
        font-size: 22px;
    }

    .partners-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 30px 24px;
        gap: 20px;
    }

    .partners-cta-inner > i { font-size: 40px; }
    .partners-cta-inner h3  { font-size: 18px; }

    .partners-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .partner-tab {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 13px;
        padding: 9px 18px;
    }
}

@media (max-width: 480px) {
    .partner-card { flex-direction: column; align-items: flex-start; }
    .partner-logo { width: 52px; height: 52px; font-size: 20px; }
    .partner-badge { top: 10px; right: 10px; }
}

.form-group textarea {
    resize: vertical;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-col p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--secondary-color);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: #ccc;
    font-size: 14px;
}

/* ===========================
   Scroll to Top Button
   =========================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.scroll-top.show {
    display: flex;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .nav-menu {
        flex-direction: column;
        position: fixed;
        top: 145px;
        right: -100%;
        background: var(--white);
        width: 300px;
        height: calc(100vh - 145px);
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .hamburger {
        display: flex;
    }

    .search-box {
        display: none;
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .slide-title {
        font-size: 36px;
    }

    .slide-text {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }

    .hero {
        height: 400px;
    }

    .hero-slider .slide {
        height: 400px;
    }

    .slide-title {
        font-size: 28px;
    }

    .slide-text {
        font-size: 18px;
    }

    .slide-desc {
        font-size: 14px;
    }

    .slide-buttons {
        flex-direction: column;
    }

    .stats-grid,
    .news-grid,
    .faculties-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 50px 0;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-info span {
        display: block;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 16px;
    }

    .logo-img {
        width: 45px;
        height: 45px;
    }

    .slide-title {
        font-size: 24px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .stat-number {
        font-size: 32px;
    }

    .section-title {
        font-size: 24px;
    }
}

/* ===========================
   Page Header
   =========================== */
.page-header {
    background: linear-gradient(rgba(28, 54, 120, 0.84), rgba(10, 25, 70, 0.90)), url('../img/bg2.jpg') center / cover no-repeat;
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('pattern.png');
    opacity: 0.1;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.breadcrumb {
    font-size: 16px;
    opacity: 0.9;
    position: relative;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: underline;
}

/* ===========================
   About Introduction
   =========================== */
.about-intro {
    padding: 80px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-image {
    position: relative;
}

.intro-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white);
    padding: 25px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.badge-content {
    text-align: center;
}

.badge-content i {
    font-size: 32px;
    margin-bottom: 10px;
}

.badge-content span {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.intro-text .lead {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.intro-features {
    margin-top: 30px;
}

.intro-feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
    transition: var(--transition);
}

.intro-feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.intro-feature-item i {
    font-size: 36px;
    color: var(--primary-color);
}

.intro-feature-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

/* ===========================
   Timeline
   =========================== */
.history-section {
    background: var(--light-bg);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
    padding-right: 0;
}

.timeline-dot {
    position: absolute;
    right: -12px;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -12px;
    right: auto;
}

.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

/* ===========================
   Mission & Vision
   =========================== */
.mission-vision {
    padding: 80px 0;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.mv-item {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mv-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.mv-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.mv-list {
    margin-top: 20px;
}

.mv-list li {
    display: flex;
    align-items: start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.mv-list i {
    color: var(--primary-color);
    margin-top: 3px;
}

/* ===========================
   Leadership
   =========================== */
.leadership {
    background: var(--light-bg);
}

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

.leader-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.leader-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.leader-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

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

.leader-social {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.leader-card:hover .leader-social {
    opacity: 1;
}

.leader-social a {
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.leader-social a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.leader-info {
    padding: 25px;
}

.leader-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.leader-position {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.leader-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

/* ===========================
   Structure Section
   =========================== */
.structure-section {
    padding: 80px 0;
}

.structure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.structure-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.structure-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.structure-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.structure-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* ===========================
   Achievements
   =========================== */
.achievements {
    background: var(--light-bg);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--secondary-color);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}

.achievement-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* ===========================
   News Categories
   =========================== */
.news-categories {
    background: var(--light-bg);
    padding: 30px 0;
    position: sticky;
    top: 145px;
    z-index: 100;
    box-shadow: var(--shadow);
}

.categories-filter {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.cat-btn {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

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

/* ===========================
   Featured News
   =========================== */
.featured-news {
    padding: 50px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.featured-main {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image {
    position: relative;
    height: 400px;
}

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

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}

.featured-content {
    padding: 30px;
}

.news-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.featured-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-sidebar h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.quick-news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.quick-news-item:last-child {
    border-bottom: none;
}

.quick-news-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.quick-date {
    color: var(--text-light);
    font-size: 12px;
    display: block;
    margin-bottom: 5px;
}

.quick-news-item h4 {
    font-size: 14px;
    line-height: 1.4;
}

/* ===========================
   All News
   =========================== */
.all-news {
    padding: 50px 0;
    background: var(--light-bg);
}

.news-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.news-article {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    position: relative;
    width: 300px;
    flex-shrink: 0;
}

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

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.article-content {
    padding: 25px;
    flex: 1;
}

.article-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--text-dark);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

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

/* ===========================
   News Sidebar
   =========================== */
.sidebar-widget {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-search {
    display: flex;
    gap: 10px;
}

.sidebar-search input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    outline: none;
}

.sidebar-search button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.popular-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.popular-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.popular-item h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.popular-item span {
    font-size: 12px;
    color: var(--text-light);
}

.archive-list li {
    margin-bottom: 10px;
}

.archive-list a {
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-radius: 5px;
    transition: var(--transition);
}

.archive-list a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.archive-list span {
    color: var(--text-light);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-cloud a {
    background: var(--light-bg);
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: var(--transition);
}

.tags-cloud a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.newsletter-widget {
    background: var(--primary-color);
    color: var(--white);
}

.newsletter-widget h3 {
    border-color: var(--white);
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    margin-bottom: 15px;
    outline: none;
}

.newsletter-form button {
    width: 100%;
}

/* ===========================
   Faculties Pages
   =========================== */
.faculties-intro {
    padding: 60px 0;
    text-align: center;
}

.faculties-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.fac-stat {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.fac-stat h3 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.faculties-detailed {
    padding: 80px 0;
    background: var(--light-bg);
}

.faculty-detail-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 50px;
}

.faculty-detail-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.faculty-icon-large {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.faculty-header-text h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.faculty-motto {
    font-size: 18px;
    opacity: 0.9;
}

.faculty-detail-content {
    padding: 40px;
}

.faculty-description {
    margin-bottom: 40px;
}

.faculty-description h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.faculty-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.faculty-info-box {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.faculty-info-box i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.faculty-info-box h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.faculty-info-box ul {
    list-style: none;
}

.faculty-info-box li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-light);
}

.faculty-info-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.faculty-dean {
    display: flex;
    gap: 25px;
    align-items: center;
    background: var(--light-bg);
    padding: 25px;
    border-radius: 10px;
}

.faculty-dean img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.faculty-dean h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.faculty-dean p {
    color: var(--text-light);
    margin-bottom: 5px;
}

.more-faculties {
    margin-top: 60px;
}

.more-faculties h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.more-faculties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.mini-faculty-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mini-faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.mini-faculty-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.mini-faculty-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.mini-faculty-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.mini-faculty-card a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===========================
   Admission CTA
   =========================== */
.admission-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ===========================
   Responsive for new pages
   =========================== */
@media (max-width: 1024px) {
    .intro-grid,
    .featured-grid,
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 80px;
    }
    
    .timeline-dot {
        left: 18px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: 18px;
    }
    
    .faculty-detail-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 32px;
    }
    
    .news-article {
        flex-direction: column;
    }
    
    .article-image {
        width: 100%;
        height: 250px;
    }
    
    .faculty-dean {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}
