/* ========================================
   GLOBAL STYLES
   ======================================== */
body {
    padding-top: 70px;
}

body.has-test-banner {
    padding-top: 106px; /* 36px banner + 70px navbar */
}
:root {
    --primary-color: #0066cc;
    --secondary-color: #004080;
    --accent-color: #0080ff;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --border-color: #e0e0e0;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f5f7fa;
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.language-selector {
    display: flex;
    align-items: center;
}

.flag-icon {
    width: 24px;
    height: 16px;
    margin-right: 8px;
    border-radius: 2px;
}

.lang-code {
    font-weight: 600;
    margin-right: 5px;
}

.call-center {
    font-size: 1rem;
}

.call-label {
    font-weight: 500;
    margin-right: 10px;
}

.call-number {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

.call-number:hover {
    opacity: 0.8;
    color: white;
}

.social-links {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    color: white;
}

/* ========================================
   HEADER
   ======================================== */
.main-header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

.logo-text p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mobile-menu-toggle {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.search-box {
    width: 100%;
    max-width: 400px;
}

.search-form {
    width: 100%;
}

.search-input {
    border: 2px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 5px 0 0 5px;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.btn-search {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    transition: background 0.3s;
}

.btn-search:hover {
    background: var(--secondary-color);
    color: white;
}

/* ========================================
   MAIN NAVIGATION
   ======================================== */
.main-navbar {
    background: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 18px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-item:hover > .nav-link {
    background: var(--secondary-color);
    color: white;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: none;
    border-radius: 0 0 5px 5px;
    display: none;
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 12px 20px;
    color: var(--text-dark);
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
    padding-left: 25px;
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb-section {
    background: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

.hero-slider img {
    height: 520px;
    object-fit: cover;
}

.hero-slider .carousel-caption {
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.45);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    padding: 30px 0;
    min-height: 500px;
}

/* ========================================
   SIDEBAR
   ======================================== */
/* ===== MODERN SIDEBAR ===== */
.sidebar-modern {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.06);
    padding: 14px;
}

/* Header */
.sidebar-header-modern {
    background: linear-gradient(135deg, #0d6efd, #004aad);
    color: #fff;
    padding: 16px 18px;
    border-radius: 14px;
    margin-bottom: 12px;
}

.sidebar-header-modern h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* Menu */
.sidebar-nav-modern {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-link-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #1f2d3d;
    text-decoration: none;
    font-weight: 500;
    transition: 0.25s;
}

.sidebar-link-modern i {
    color: #0d6efd;
    width: 20px;
}

.sidebar-link-modern:hover {
    background: #f0f6ff;
    color: #0d6efd;
    transform: translateX(6px);
}

/* Boxes */
.sidebar-box-modern {
    margin-top: 18px;
    padding: 16px;
    border-radius: 14px;
    background: #f8fbff;
}

.sidebar-box-modern h5 {
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1f2d3d;
}

/* Useful links */
.useful-link-modern {
    display: block;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #ffffff;
    color: #0d47a1;
    text-decoration: none;
    font-weight: 500;
    transition: 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.useful-link-modern:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateX(6px);
}

/* Contact */
.sidebar-contact-modern {
    background: linear-gradient(135deg, #0d6efd, #004aad);
    color: #fff;
}

.sidebar-contact-modern h5 {
    color: #fff;
}

.sidebar-contact-modern p {
    margin-bottom: 8px;
    font-size: 14px;
}

.sidebar-contact-modern i {
    margin-right: 8px;
}


/* ========================================
   FLOATING CHAT BUTTON
   ======================================== */
.floating-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,102,204,0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
}

.chat-button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,102,204,0.5);
}

.chat-button i {
    font-size: 1.3rem;
}

/* ========================================
   FOOTER
   ======================================== */
.main-footer {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    color: white;
    margin-top: 50px;
}

.footer-top {
    padding: 50px 0 30px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.footer-text {
    color: #bdc3c7;
    line-height: 1.8;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    color: white;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-menu a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 3px;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright-text {
    margin: 0;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-bottom-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-bottom-menu a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-bottom-menu a:hover {
    color: white;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .logo-text h1 {
        font-size: 0.9rem;
    }

    .logo-text p {
        font-size: 0.7rem;
    }

    .logo-img {
        width: 50px;
        height: 50px;
    }

    .search-box {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .top-bar .col-md-3,
    .top-bar .col-md-6 {
        text-align: center;
        margin-bottom: 10px;
    }

    .language-selector,
    .call-center,
    .social-links {
        justify-content: center;
    }

    .chat-text {
        display: none;
    }

    .chat-button {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }

    .footer-bottom-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        margin-top: 15px;
    }
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */
.mobile-nav {
    padding: 0;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list > li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-list > li > a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.mobile-menu-list .submenu {
    list-style: none;
    padding: 0;
    background: var(--bg-light);
}

.mobile-menu-list .submenu li a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
}

.mobile-menu-list .submenu li a:hover {
    background: white;
    color: var(--primary-color);
}

/* ========================================
   UTILITIES
   ======================================== */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

#mainNavbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}


.leader-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e6e6e6;
    overflow: hidden;
    transition: 0.2s;
}

.leader-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.leader-photo {
    width: 180px !important;
    height: 220px !important;
    max-width: 180px !important;
    max-height: 220px !important;
    object-fit: cover !important;
    border-radius: 10px;
    border: 1px solid #ccc;
    display: block;
}



.leader-info p {
    margin-bottom: 6px;
    font-size: 16px;
    color: #333;
}

.leader-info i {
    color: #0d6efd;
    margin-right: 6px;
}


.structure-image-box {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    overflow-x: auto;
}

.structure-image {
    max-width: 100%;
    height: auto;
}

.attached-files-box {
    margin-top: 30px;
}

.file-card {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    background: #f8f9fb;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e1e5ea;
}

.modern-file-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #0d6efd);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(13,110,253,0.25);
}


.file-title {
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}

.file-download {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.file-download:hover {
    text-decoration: underline;
}
.clickable-image {
    cursor: zoom-in;
}

/* Modal fon */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

/* Modal ichidagi rasm */
.image-modal img {
    max-width: 95%;
    max-height: 95%;
    cursor: zoom-out;
}

/* Yopish tugmasi */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.content-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
    font-size: 16px;
    line-height: 1.7;
}

/*normativ hujjatlar*/

.doc-card {
    background: #f8f9fb;
    border: 1px solid #e1e5ea;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    transition: 0.2s;
}

.doc-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.doc-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #0d6efd);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    margin-bottom: 12px;
}

.doc-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
    font-size: 15px;
}

.doc-download {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.doc-download:hover {
    text-decoration: underline;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
}

.mobile-menu-list > li {
    border-bottom: 1px solid #eee;
}

.mobile-menu-list a {
    display: block;
    padding: 12px 5px;
    font-weight: 600;
    text-decoration: none;
    color: #1a2a3a;
}

.mobile-menu-list .submenu a {
    padding-left: 20px;
    font-weight: 500;
}

/* MOBILE HEADER */
.mobile-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.mobile-topbar {
    background: #1f4fd8;
    color: #fff;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-social i {
    margin-left: 10px;
    font-size: 14px;
}

.mobile-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
}

.mobile-logo img {
    height: 40px;
}

.mobile-actions button {
    border: none;
    background: none;
    font-size: 20px;
    margin-left: 12px;
}

/* Mobil versiyada desktop menyuni yashirish */
@media (max-width: 991px) {
    #mainNavbar {
        display: none !important;
    }
}


/*tarif va meyorlar*/

.file-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #f8fbff;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e3e9f1;
}

/* ICON BLOK */
.doc-file-icon {
    width: 72px;
    height: 82px;
    background: linear-gradient(135deg, #2f80ff, #1c5edc);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ICON */
.doc-file-icon i {
    font-size: 40px;
    color: #ffffff;
}

/* MATN */
.file-info {
    flex: 1;
}

.file-title {
    font-weight: 600;
    color: #1f2d3d;
    margin-bottom: 6px;
}

.file-download {
    color: #2f80ff;
    font-weight: 500;
    text-decoration: none;
}

.file-download:hover {
    text-decoration: underline;
}
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}


/* ===== HOME OVERLAY NAVBAR ===== */


/* Links */
.navbar-home-menu .nav-link {
    color: #fff !important;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

/* Hover */
.navbar-home-menu .nav-link:hover {
    color: #00cfff !important;
}

/* Logo */
.home-menu-icon img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* ===== HOME HEADER OVER SLIDER ===== */


/* Header home da shaffof bo‘ladi */
/*.home-header-overlay .main-header {*/
/*    background: transparent !important;*/
/*    box-shadow: none !important;*/
/*}*/

/*!* Topbar home da shaffof *!*/
/*.home-header-overlay .top-bar {*/
/*    background: rgba(0, 40, 90, 0.55);*/
/*}*/



/* ===== HERO MAIN ===== */
.hero-main {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px);
    min-height: 650px;
    overflow: hidden;

    /*margin-left: -24px;*/
    /*margin-right: -24px;*/
}
/* ===== HERO FULL WIDTH FIX ===== */
/* ===== GLOBAL RESET ===== */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Remove top spacing */
.main-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== HERO FIX ===== */
.hero-main {
    position: relative;
    width: 100vw;
    height: calc(100vh - 70px);
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

/* Navbar on hero */
.navbar-home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

/* Fix carousel */
.hero-main .carousel,
.hero-main .carousel-inner,
.hero-main .carousel-item {
    height: 100%;
}




/* ===== HOME OVERLAY NAVBAR ===== */
.navbar-home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 9999; /* 🔥 eng ustida turadi */
    background: rgba(0, 20, 60, 0.35);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
}

/* Menu */


/* Links */
/*.navbar-home-menu .nav-link {*/
/*    color: #fff !important;*/
/*    font-weight: 500;*/
/*    font-size: 14px;*/
/*    letter-spacing: 0.5px;*/
/*    transition: 0.3s;*/
/*}*/

/* Hover */
.navbar-home-menu .nav-link:hover {
    color: #ffffff !important;
}

/* Logo */
.home-menu-icon img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* SLIDER PASTIDAN KONTENTNI AJRATISH */
.hero-main {
    margin-bottom: 80px;   /* kerak bo‘lsa 60px yoki 100px qilamiz */
}



.navbar-home-menu .dropdown-menu {
    margin-top: 15px;
    border-radius: 10px;
    border: none;
}

/* ===== MODERN NEWS SECTION FIXED ===== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.modern-news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modern-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* IMAGE */
.modern-news-image {
    position: relative;
    height: 240px;   /* ⬅️ Biroz kattaroq qildik */
    overflow: hidden;
}

.modern-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.modern-news-card:hover .modern-news-image img {
    transform: scale(1.08);
}

/* BADGE */
.modern-news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #0066cc, #00aaff);
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* BODY */
.modern-news-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* META */
.modern-news-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

/* TITLE */
.modern-news-title {
    font-size: 18px;
    font-weight: 700;   /* ⬅️ Qalinroq */
    color: #1f2d3d;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* TEXT */
.modern-news-excerpt {
    font-size: 14px;
    color: #6c7a89;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* LINK */
.modern-news-link {
    margin-top: auto;   /* ⬅️ Har doim pastda turadi */
    font-weight: 600;
    color: #0066cc;
    text-decoration: none;
    transition: 0.3s;
}

.modern-news-link:hover {
    color: #004080;
    padding-left: 6px;
}

body.has-test-banner {
    padding-top: 36px;
}

/* ====== TEST MODE LENTA (STICKY) ====== */


.site-test-wrapper {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
}

.site-test-banner {
    width: 100%;
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
}

/* KONTEYNER */
.site-test-marquee {
    width: 100%;
    overflow: hidden;
}

/* HARAKATLANADIGAN MATN */
.site-test-marquee span {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: testMarquee 18s linear infinite;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

/* ANIMATSIYA */
@keyframes testMarquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ====== APPLE STYLE SWITCH ====== */

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    vertical-align: middle;
    margin-right: 12px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 30px;
}

.slider::before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    top: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

/* ON HOLATI */
.switch input:checked + .slider {
    background-color: #0d6efd;
}

.switch input:checked + .slider::before {
    transform: translateX(22px);
}

/* LABEL */
.switch-label {
    font-weight: 600;
}

.switch-label small {
    display: block;
    font-weight: 400;
    color: #6b7280;
    font-size: 13px;
}
body.has-test-banner {
    padding-top: 36px !important;
}
.modern-news-image,
.news-featured-image {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 12px;
}

.modern-news-image img,
.modern-news-image video,
.modern-news-image iframe,
.news-featured-image img,
.news-featured-image video,
.news-featured-image iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
