/* Gov.uz Style Header CSS */
html { 
    overflow-x: hidden;
    /* Masshtab uchun transformatsiya */
    transition: transform 0.3s ease, zoom 0.3s ease;
    transform-origin: top center;
}

html, body { font-family: 'Montserrat', Arial, sans-serif; }

/* Body shrift o'lchami uchun transition */
body {
    transition: font-size 0.3s ease;
}

/* Top Header Bar */
.top-header-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
    font-size: 14px;
}


.contact-section {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

/* Accessibility toolbar */
.access-toolbar { display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.access-group { display:flex; gap:6px; }
.btn-access { border:1px solid #ced4da; background:#fff; color:#000; padding:4px 8px; border-radius:4px; font-weight:600; line-height:1; }
.btn-access:hover { background:#f1f3f5; }
.lang-select { border:1px solid #ced4da; border-radius:6px; padding:6px 12px; height:36px; box-sizing:border-box; display:inline-block; vertical-align:middle; margin:0; }
.btn-eye { border:1px solid #ced4da; background:#fff; color:#000; border-radius:6px; height:36px; width:42px; display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; position:relative; top:1px; }
.btn-eye .fa-eye { font-size:18px; line-height:1; }
.btn-icon { border:1px solid #ced4da; background:#fff; color:#000; padding:6px; border-radius:6px; display:flex; align-items:center; justify-content:center; }
.btn-icon:hover { background:#f1f3f5; }

/* High contrast mode - Thermal Vision (Issiqlik ko'rish) */
.high-contrast body, 
body.high-contrast,
body.high-contrast * { 
    background: #001a00 !important; /* To'q yashil fon */
    color: #d4ff00 !important; /* Yorqin sariq-yashil */
    border-color: #88cc00 !important; /* O'rta yashil chegara */
}

body.high-contrast a,
body.high-contrast .nav-link,
body.high-contrast .dropdown-item {
    color: #ffff00 !important; /* Sof sariq */
    text-shadow: 0 0 8px rgba(212, 255, 0, 0.6) !important; /* Nur berish effekti */
}

body.high-contrast .main-navigation, 
body.high-contrast .main-menu,
body.high-contrast .dropdown-menu { 
    background: #002200 !important; /* Bir oz ochroq yashil */
}

body.high-contrast .main-menu .nav-link, 
body.high-contrast .dropdown-item { 
    color: #d4ff00 !important; 
    background: #003300 !important; /* Yashil fon */
}

body.high-contrast .main-menu .nav-link:hover,
body.high-contrast .dropdown-item:hover {
    background: #005500 !important; /* Yorqinroq yashil hover */
    color: #ffff00 !important; /* Sariq hover */
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.4) !important; /* Nur berish */
}

body.high-contrast .header-icon-link,
body.high-contrast .language-btn,
body.high-contrast .header-icon-link i,
body.high-contrast .language-btn i {
    color: #001a00 !important;
    filter: drop-shadow(0 0 3px rgba(212, 255, 0, 0.8)) !important;
}

/* Thermal vision - issiq ranglar - BARCHA YOZUVLAR */
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6,
body.high-contrast .news-title,
body.high-contrast .news-detail-title,
body.high-contrast .sidebar-news-title,
body.high-contrast .institution-title,
body.high-contrast .institution-subtitle {
    color: #ffff00 !important; /* Sariq sarlavhalar */
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.7) !important;
}

/* Barcha matn elementlari */
body.high-contrast p,
body.high-contrast span,
body.high-contrast div,
body.high-contrast li,
body.high-contrast td,
body.high-contrast th,
body.high-contrast label,
body.high-contrast .news-text,
body.high-contrast .news-detail-text,
body.high-contrast .news-content,
body.high-contrast .article-text,
body.high-contrast .page-content {
    color: #d4ff00 !important; /* Sariq-yashil matn */
}

/* Sanalar va kichik matnlar */
body.high-contrast .news-date,
body.high-contrast .sidebar-news-date,
body.high-contrast .news-detail-date,
body.high-contrast small,
body.high-contrast .small-text {
    color: #88cc00 !important; /* O'rta yashil */
    text-shadow: 0 0 5px rgba(136, 204, 0, 0.5) !important;
}

/* Rasmlar thermal filter - barcha rasmlar */
body.high-contrast img,
body.high-contrast picture,
body.high-contrast .thumb img,
body.high-contrast .news-main-image img,
body.high-contrast .meeting-item img,
body.high-contrast [style*="background-image"] {
    filter: sepia(100%) hue-rotate(60deg) saturate(300%) brightness(0.9) contrast(1.2) !important;
}

/* SVG va icon elementlari */
body.high-contrast svg,
body.high-contrast i,
body.high-contrast .fa,
body.high-contrast .fas,
body.high-contrast .far {
    color: #d4ff00 !important;
    fill: #d4ff00 !important;
    filter: drop-shadow(0 0 5px rgba(212, 255, 0, 0.7)) !important;
}

/* Buttonlar thermal style */
body.high-contrast button,
body.high-contrast .btn {
    background: #88cc00 !important;
    color: #001a00 !important;
    border-color: #d4ff00 !important;
    box-shadow: 0 0 10px rgba(136, 204, 0, 0.4) !important;
}

body.high-contrast button:hover,
body.high-contrast .btn:hover {
    background: #b8ff00 !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(212, 255, 0, 0.7) !important;
}

/* Input va form elementlari thermal style */
body.high-contrast input,
body.high-contrast textarea,
body.high-contrast select {
    background: #003300 !important;
    color: #d4ff00 !important;
    border-color: #88cc00 !important;
}

body.high-contrast input:focus,
body.high-contrast textarea:focus,
body.high-contrast select:focus {
    background: #004400 !important;
    border-color: #ffff00 !important;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.5) !important;
}

/* Range slider thermal style */
body.high-contrast input[type="range"],
body.high-contrast .range {
    background: #003300 !important;
}

body.high-contrast input[type="range"]::-webkit-slider-thumb {
    background: #ffff00 !important;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.8) !important;
}

body.high-contrast input[type="range"]::-moz-range-thumb {
    background: #ffff00 !important;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.8) !important;
}

/* Checkbox va radio thermal style */
body.high-contrast input[type="checkbox"],
body.high-contrast input[type="radio"] {
    accent-color: #ffff00 !important;
    border-color: #88cc00 !important;
}

/* Placeholder matnlar */
body.high-contrast input::placeholder,
body.high-contrast textarea::placeholder {
    color: #88cc00 !important;
    opacity: 0.7 !important;
}

/* Kartalar va kontentlar thermal style */
body.high-contrast .card,
body.high-contrast .meeting-item,
body.high-contrast .news-card {
    background: #002200 !important;
    border-color: #88cc00 !important;
    box-shadow: 0 0 15px rgba(136, 204, 0, 0.3) !important;
}

body.high-contrast .card:hover,
body.high-contrast .meeting-item:hover,
body.high-contrast .news-card:hover {
    background: #003300 !important;
    box-shadow: 0 0 25px rgba(212, 255, 0, 0.5) !important;
    border-color: #d4ff00 !important;
}

/* Modal thermal style */
body.high-contrast .access-modal,
body.high-contrast .modal {
    background: #002200 !important;
    border: 2px solid #88cc00 !important;
    box-shadow: 0 0 30px rgba(136, 204, 0, 0.6) !important;
}

/* Footer thermal style */
body.high-contrast .footer,
body.high-contrast .footer * {
    background: #001100 !important;
    color: #d4ff00 !important;
    border-top: 2px solid #88cc00 !important;
}

body.high-contrast .footer a,
body.high-contrast .footer-links a {
    color: #ffff00 !important;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.6) !important;
}

body.high-contrast .footer h3,
body.high-contrast .footer h5 {
    color: #ffff00 !important;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.7) !important;
}

/* Table elementlari */
body.high-contrast table,
body.high-contrast table *,
body.high-contrast .table,
body.high-contrast .table * {
    background: #002200 !important;
    color: #d4ff00 !important;
    border-color: #88cc00 !important;
}

body.high-contrast table th,
body.high-contrast .table th {
    background: #003300 !important;
    color: #ffff00 !important;
    font-weight: bold !important;
}

body.high-contrast table tr:hover,
body.high-contrast .table tr:hover {
    background: #004400 !important;
}

/* Strong va bold matnlar */
body.high-contrast strong,
body.high-contrast b,
body.high-contrast .font-weight-bold {
    color: #ffff00 !important;
    font-weight: 700 !important;
}

/* Ticker va maxsus yozuvlar */
body.high-contrast .ticker,
body.high-contrast .ticker-content {
    background: #002200 !important;
    color: #ffff00 !important;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.8) !important;
}

/* Thermal glow effect for important elements */
body.high-contrast .logo,
body.high-contrast .main-logo {
    filter: sepia(100%) hue-rotate(60deg) saturate(400%) brightness(1.2) drop-shadow(0 0 15px rgba(212, 255, 0, 0.8)) !important;
}

/* Background image'lar uchun thermal filter */
body.high-contrast .section,
body.high-contrast .main-banner,
body.high-contrast .hero,
body.high-contrast [class*="bg-"],
body.high-contrast [class*="background"] {
    background-color: #002200 !important;
    position: relative;
}

body.high-contrast .section::before,
body.high-contrast .main-banner::before,
body.high-contrast .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 26, 0, 0.9) 0%, rgba(0, 34, 0, 0.8) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Yangilik kartalar va kontentlar */
body.high-contrast .upcoming-meetings,
body.high-contrast .services,
body.high-contrast .section-heading {
    background: #001a00 !important;
}

body.high-contrast .upcoming-meetings *,
body.high-contrast .services * {
    color: #d4ff00 !important;
}

/* Sidebar va navigation */
body.high-contrast .sidebar,
body.high-contrast .nav,
body.high-contrast .navbar {
    background: #002200 !important;
    border-color: #88cc00 !important;
}

/* Breadcrumb */
body.high-contrast .breadcrumb,
body.high-contrast .breadcrumb-item {
    background: #002200 !important;
    color: #d4ff00 !important;
}

body.high-contrast .breadcrumb-item a {
    color: #ffff00 !important;
}

/* Carousel va slider */
body.high-contrast .carousel,
body.high-contrast .carousel-inner,
body.high-contrast .carousel-item {
    background: #001a00 !important;
}

body.high-contrast .carousel-caption,
body.high-contrast .carousel-caption * {
    background: rgba(0, 26, 0, 0.9) !important;
    color: #ffff00 !important;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.8) !important;
}

/* Alert va notification */
body.high-contrast .alert,
body.high-contrast .notification,
body.high-contrast .message {
    background: #003300 !important;
    color: #ffff00 !important;
    border: 2px solid #88cc00 !important;
    box-shadow: 0 0 20px rgba(136, 204, 0, 0.5) !important;
}

/* Video va multimedia */
body.high-contrast video,
body.high-contrast iframe,
body.high-contrast embed,
body.high-contrast object {
    filter: sepia(100%) hue-rotate(60deg) saturate(300%) brightness(0.9) contrast(1.2) !important;
    border: 2px solid #88cc00 !important;
}

/* PDF viewer va document viewer */
body.high-contrast .pdf-viewer,
body.high-contrast .document-content,
body.high-contrast .book-content {
    background: #001a00 !important;
    color: #d4ff00 !important;
    filter: sepia(50%) hue-rotate(60deg) saturate(200%) !important;
}

/* CKEditor content */
body.high-contrast .cke_editable,
body.high-contrast .cke_editable *,
body.high-contrast .ck-content,
body.high-contrast .ck-content *,
body.high-contrast .rich-text,
body.high-contrast .rich-text *,
body.high-contrast .text-content,
body.high-contrast .text-content * {
    background: #001a00 !important;
    color: #d4ff00 !important;
}

/* Code va pre elementlar */
body.high-contrast code,
body.high-contrast pre,
body.high-contrast .code-block {
    background: #003300 !important;
    color: #ffff00 !important;
    border: 1px solid #88cc00 !important;
}

/* Badge va tag'lar */
body.high-contrast .badge,
body.high-contrast .tag,
body.high-contrast .label {
    background: #88cc00 !important;
    color: #001a00 !important;
    box-shadow: 0 0 8px rgba(136, 204, 0, 0.6) !important;
}

/* Pagination */
body.high-contrast .pagination,
body.high-contrast .page-item,
body.high-contrast .page-link {
    background: #003300 !important;
    color: #d4ff00 !important;
    border-color: #88cc00 !important;
}

body.high-contrast .page-item.active .page-link {
    background: #88cc00 !important;
    color: #001a00 !important;
    box-shadow: 0 0 15px rgba(136, 204, 0, 0.7) !important;
}

/* Scrollbar thermal style */
body.high-contrast ::-webkit-scrollbar {
    width: 12px;
    background: #002200 !important;
}

body.high-contrast ::-webkit-scrollbar-thumb {
    background: #88cc00 !important;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(136, 204, 0, 0.6) !important;
}

body.high-contrast ::-webkit-scrollbar-thumb:hover {
    background: #b8ff00 !important;
    box-shadow: 0 0 15px rgba(212, 255, 0, 0.8) !important;
}

body.high-contrast ::-webkit-scrollbar-track {
    background: #001a00 !important;
}

/* Tooltip va popover */
body.high-contrast .tooltip,
body.high-contrast .popover {
    background: #003300 !important;
    color: #ffff00 !important;
    border: 2px solid #88cc00 !important;
    box-shadow: 0 0 20px rgba(136, 204, 0, 0.6) !important;
}

/* Accessibility modal thermal override */
body.high-contrast .access-modal-header {
    background: #003300 !important;
    color: #ffff00 !important;
    border-bottom: 2px solid #88cc00 !important;
}

body.high-contrast .access-modal-body {
    background: #002200 !important;
}

body.high-contrast .access-modal-body label {
    color: #d4ff00 !important;
}

/* Block page scroll when modal open */
body.no-scroll { overflow: hidden; }

/* Grayscale - butun sayt bo'yicha */
body.grayscale,
body.grayscale * {
    filter: grayscale(100%) !important;
    -webkit-filter: grayscale(100%) !important;
}

/* Hide visual media but keep layout space - butun sayt bo'yicha */
body.hide-images img,
body.hide-images picture,
body.hide-images svg:not(.floating-speaker-btn svg),
body.hide-images video {
    visibility: hidden !important;
}

/* Floating Speaker Button */
.floating-speaker-btn {
    position: fixed;
    display: none;
    z-index: 10000;
    background: linear-gradient(135deg, #003366 0%, #004488 100%);
    color: #fff !important;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.floating-speaker-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.4);
}

.floating-speaker-btn:active {
    transform: scale(1.2);
}

.floating-speaker-btn i {
    color: #fff !important;
}
/* Do NOT hide control icons in accessibility UI */
body.hide-images .access-modal svg,
body.hide-images .btn-icon svg,
body.hide-images .btn-eye .fa-eye {
    visibility: visible !important;
}
/* Remove background images but keep element sizes */
body.hide-images [style*="background-image"],
body.hide-images .bg-image,
body.hide-images .has-bg {
    background-image: none !important;
}

/* Accessibility modal */
.access-modal-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.4); display:none; z-index:1050; }
.access-modal { 
    position:fixed; 
    top:auto; 
    left:auto; 
    right:12px; 
    top:70px; 
    width:380px; 
    max-width:95%; 
    background:#fff; 
    border-radius:8px; 
    box-shadow:0 10px 30px rgba(0,0,0,.25); 
    display:none; 
    z-index:1060;
}
.access-modal-header { display:flex; align-items:center; justify-content:center; padding:12px; border-bottom:1px solid #e9ecef; font-weight:700; }
.access-modal-close { position:absolute; left:12px; top:12px; background:none; border:none; font-size:22px; }
.access-modal-body { padding:16px; }
.access-modal-body hr { border:0; border-top:1px solid #e9ecef; margin:10px 0; }
.range { width:100%; }
.access-row { margin-bottom:16px; }

.phone-icon {
    color: #003366;
    font-size: 16px;
}

.contact-info {
    text-align: right;
}

/* Header ticker */
.ticker { overflow:hidden; height:36px; display:flex; align-items:center; justify-content:center; }
.ticker-content { white-space:nowrap; animation:ticker-move 12s linear infinite; color:#003366; font-weight:600; }
@keyframes ticker-move { from{ transform:translateX(100%);} to{ transform:translateX(-100%);} }

.contact-title {
    font-weight: bold;
    color: #000;
    font-size: 14px;
    text-transform: uppercase;
}

.phone-numbers {
    color: #000;
    font-size: 14px;
    font-weight: 500;
}

.all-numbers {
    color: #000;
    font-size: 12px;
}

/* Main Header */
.main-header { background-color:#fff; padding:12px 0; border-bottom:1px solid #e9ecef; display:flex; align-items:center; }

.logo-section {
    display: flex;
    align-items: center;
}

.main-logo { width: 60px; height: 60px; object-fit: contain; }

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

.institution-title {
    font-size: 1em;
    font-weight: bold;
    color: #000;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.institution-subtitle {
    font-size: 0.9em;
    font-weight: 600;
    color: #000;
    margin: 5px 0 0 0;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Main Header */
.main-header {
    position: relative;
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

/* Header elementlari shrift o'lchamiga javob beradi */
.main-header,
.main-header *,
.institution-title,
.institution-subtitle,
.main-menu,
.main-menu .nav-link,
.dropdown-menu,
.dropdown-item {
    font-size: inherit !important;
}

/* Body shrift o'lchami o'zgarganda header ham o'zgaradi */
body {
    font-size: 16px; /* Base font size - 16px */
}

/* Accessibility font scaling - all elements should respond to body font-size changes */
*, *::before, *::after {
    font-size: inherit;
}

/* Override specific elements to use rem units for accessibility scaling */
.main-menu .nav-link {
    font-size: 1rem !important; /* 16px - normal o'qiladigan */
}

.dropdown-item {
    font-size: 1rem !important; /* 16px - normal o'qiladigan */
}

/* Asosiy elementlar uchun base font sizes */
h1 { font-size: 2.25rem !important; } /* 36px */
h2 { font-size: 2rem !important; } /* 32px */
h3 { font-size: 1.75rem !important; } /* 28px */
h4 { font-size: 1.5rem !important; } /* 24px */
h5 { font-size: 1.25rem !important; } /* 20px */
h6 { font-size: 1.125rem !important; } /* 18px */

p, div, span, a, li, td, th { 
    font-size: 1rem !important; /* 16px */
}

/* Kichikroq matnlar */
small, .small-text { font-size: 0.875rem !important; } /* 14px */

/* Yangiliklar, Elonlar, Content elementlari */
.news-title,
.sidebar-news-title,
.news-detail-title,
.upcoming-meetings .section-heading h2,
.meeting-item,
.news-card,
.article-content,
.page-content,
.post-content {
    font-size: inherit !important;
}

/* Yangilik sarlavhalari */
.news-title { font-size: 1.125rem !important; } /* 18px */
.news-detail-title { font-size: 2rem !important; } /* 32px */
.sidebar-news-title { font-size: 0.875rem !important; } /* 14px */

/* Yangilik ma'lumotlari */
.news-date,
.sidebar-news-date,
.news-detail-date { 
    font-size: 0.875rem !important; /* 14px */
}

/* Yangilik matni */
.news-text,
.news-detail-text,
.news-content p,
.article-text {
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.8 !important;
}

/* Kitoblar va hujjatlar */
.book-title,
.document-title {
    font-size: 1.375rem !important; /* 22px - katta sarlavha */
}

.book-content,
.document-content,
.pdf-viewer {
    font-size: 1rem !important; /* 16px - o'qish uchun qulay */
}

/* Elonlar */
.elon-title,
.announcement-title {
    font-size: 1.5rem !important; /* 24px - katta sarlavha */
}

.elon-text,
.announcement-text {
    font-size: 1.125rem !important; /* 18px - yaxshi o'qiladi */
}

/* CKEditor content va rich text */
.cke_editable,
.cke_editable *,
.ck-content,
.ck-content *,
.rich-text,
.rich-text *,
.text-content,
.text-content * {
    font-size: 1rem !important; /* 16px - o'qish uchun qulay */
}

/* Footer matnlari */
.footer,
.footer *,
.footer p,
.footer a,
.footer li {
    font-size: 0.9375rem !important; /* 15px - footer uchun yaxshi */
}

.footer h3,
.footer h5 {
    font-size: 1.125rem !important; /* 18px - footer sarlavhalar */
}

/* Dropdown va menu elementlari - ALLAQACHON YUQORIDA BELGILANGAN */
/* .dropdown-menu va .dropdown-item 0.9375rem (15px) */

/* Buttons va form elementlari */
button,
.btn,
input,
textarea,
select {
    font-size: 1rem !important; /* 16px - yaxshi o'lcham */
}

/* Table elementlari */
table,
table th,
table td {
    font-size: 1rem !important; /* 16px - jadvallar uchun */
}

table th {
    font-size: 1.0625rem !important; /* 17px - sarlavha biroz kattaroq */
    font-weight: 600;
}

/* Institution title va subtitle */
.institution-title {
    font-size: 1.375rem !important; /* 22px - katta va ko'zga ko'rinadi */
}

.institution-subtitle {
    font-size: 1.125rem !important; /* 18px - yaxshi o'lcham */
}

/* Main menu */
.main-menu .nav-link {
    font-size: 1rem !important; /* 16px - normal o'qiladigan */
}

/* Dropdown menu */
.dropdown-item {
    font-size: 0.9375rem !important; /* 15px - yaxshi o'lcham */
}

/* Main Navigation */
.main-navigation { background-color:#fff; border-bottom:1px solid #e9ecef; padding:0; display:flex; }

.main-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* allow wrapping to next line when not enough space */
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu .nav-item { position: relative; margin: 0 2px; }

.main-menu .nav-link { color:#000 !important; font-size:inherit !important; font-weight:600; padding:8px 4px; text-decoration:none; display:flex; align-items:center; gap:2px; transition:all .3s ease; text-transform:uppercase; line-height:1.2; }
.main-menu .nav-link br { display:block; line-height:1.2; }

/* First item tighter to the left edge */
.main-menu > .nav-item:first-child { margin-left: 0; }
.main-menu > .nav-item:first-child .nav-link { padding-left: 0; }

/* Remove default left padding on list if any */
.main-menu { padding-left: 0; }

/* Axborot xizmati ni yuqoriga chiqarish uchun responsive qoidalar */
@media (min-width: 1200px) {
    .main-menu {
        flex-wrap: nowrap !important;
        justify-content: center !important;
    }
    
    .main-menu .nav-item {
        margin: 0 1px !important;
    }
    
    .main-menu .nav-link {
        padding: 8px 3px !important;
        font-size: inherit !important;
    }
}

@media (min-width: 1400px) {
    .main-menu .nav-link {
        padding: 8px 4px !important;
        font-size: inherit !important;
    }
}

@media (min-width: 1600px) {
    .main-menu .nav-link {
        padding: 8px 6px !important;
        font-size: inherit !important;
    }
}

@media (min-width: 1800px) {
    .main-menu .nav-link {
        padding: 8px 8px !important;
        font-size: inherit !important;
    }
}

.main-menu .nav-link:hover {
    color: #003366 !important;
    background-color: transparent;
}

.main-menu .nav-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.main-menu .nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    margin-top: 0; /* no gap to avoid hover-out */
    min-width: 250px;
    position: absolute;
    top: 100%; /* stick right under the parent */
    left: 0;
    z-index: 1000;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item { color:#000 !important; font-size:inherit !important; padding:8px 16px; text-decoration:none; display:block; transition:all .3s ease; border-bottom:1px solid #f8f9fa; line-height:1.3; }
.dropdown-item br { display:block; line-height:1.3; }

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

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #003366 !important;
    padding-left: 25px;
}

/* Mobile Styles */
@media (max-width: 991.98px) {
    .top-header-bar {
        padding: 10px 0;
    }
    
    .contact-section {
        justify-content: center;
    }
    
    .main-header {
        padding: 15px 0;
    }
    
    .institution-title {
        font-size: 1.25rem !important; /* 20px - mobile uchun */
    }
    
    .institution-subtitle {
        font-size: 1rem !important; /* 16px - mobile uchun */
    }
    
    .main-logo {
        width: 60px;
        height: 60px;
    }
    
    .main-navigation {
        background-color: #f8f9fa;
    }
    
    .main-menu {
        flex-direction: column;
        align-items: stretch;
        background-color: #fff;
        border-radius: 8px;
        margin: 10px;
        padding: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-menu .nav-item {
        margin: 5px 0;
        border-bottom: 1px solid #e9ecef;
    }
    
    .main-menu .nav-item:last-child {
        border-bottom: none;
    }
    
    .main-menu .nav-link {
        padding: 12px 15px;
        font-size: inherit;
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background-color: #f8f9fa;
        margin: 0;
        border-radius: 0;
        padding: 0;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .dropdown-item {
        padding: 8px 25px;
        font-size: inherit;
        border-bottom: 1px solid #e9ecef;
    }
    
    .dropdown-item:hover {
        padding-left: 30px;
    }
}

/* Tablet Styles */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .main-menu .nav-item {
        margin: 0 10px;
    }
    
    .main-menu .nav-link {
        font-size: inherit;
        padding: 12px 8px;
    }
    
    .institution-title {
        font-size: 1em;
    }
    
    .institution-subtitle {
        font-size: 0.9em;
    }
}

/* Small Mobile Devices */
@media (max-width: 575.98px) {
    .top-header-bar {
        padding: 8px 0;
    }
    
    .contact-section {
        flex-direction: column;
        gap: 5px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-title {
        font-size: 0.75rem !important; /* 12px - accessibility scaling */
    }
    
    .phone-numbers {
        font-size: 0.75rem !important; /* 12px - accessibility scaling */
    }
    
    .all-numbers {
        font-size: 0.625rem !important; /* 10px - accessibility scaling */
    }
    
    .main-header {
        padding: 10px 0;
    }
    
    .institution-title {
        font-size: 1.125rem !important; /* 18px - kichik ekran */
    }
    
    .institution-subtitle {
        font-size: 0.9375rem !important; /* 15px - kichik ekran */
    }
    
    .main-logo {
        width: 50px;
        height: 50px;
    }
    
    .main-menu .nav-link {
        font-size: inherit;
        padding: 10px 12px;
    }
    
    .dropdown-item {
        font-size: inherit;
        padding: 6px 20px;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .institution-title {
        font-size: 1rem !important; /* 16px - juda kichik ekran */
    }
    
    .institution-subtitle {
        font-size: 0.875rem !important; /* 14px - juda kichik ekran */
    }
    
    .main-logo {
        width: 45px;
        height: 45px;
    }
    
    .main-menu .nav-link {
        font-size: 0.875rem !important; /* 14px */
        padding: 8px 10px;
    }
    
    .dropdown-item {
        font-size: 0.8125rem !important; /* 13px */
        padding: 5px 15px;
    }
}

/* Navbar Toggler */
.navbar-toggler {
    border: 2px solid #007bff;
    padding: 8px 12px;
    border-radius: 4px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 123, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Smooth Transitions */
.main-menu .nav-item,
.dropdown-menu,
.dropdown-item {
    transition: all 0.3s ease;
}

/* Accessibility */
.navbar-toggler:focus,
.nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Logo 3D Effect - Header va Footer uchun */
.main-logo,
.footer img[src*="logo_MOI"] {
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 4px rgba(0, 51, 102, 0.1)) 
            brightness(1.1) 
            contrast(1.1);
    transform-style: preserve-3d;
    position: relative;
}

.main-logo::before,
.footer img[src*="logo_MOI"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%, rgba(0, 51, 102, 0.1) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.main-logo:hover,
.footer img[src*="logo_MOI"]:hover {
    transform: translateY(-8px) rotateX(10deg) rotateY(10deg) scale(1.05);
    filter: drop-shadow(0 12px 20px rgba(0, 51, 102, 0.3))
            drop-shadow(0 6px 10px rgba(0, 51, 102, 0.2))
            brightness(1.2)
            contrast(1.15);
}

.main-logo:hover::before,
.footer img[src*="logo_MOI"]:hover::before {
    opacity: 1;
}

/* Logo animatsiya - subtil pulse effect */
@keyframes logoBreath {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(0, 51, 102, 0.1)) 
                brightness(1.1) 
                contrast(1.1);
    }
    50% { 
        transform: scale(1.02);
        filter: drop-shadow(0 3px 6px rgba(0, 51, 102, 0.15)) 
                brightness(1.15) 
                contrast(1.12);
    }
}

.main-logo {
    animation: logoBreath 4s ease-in-out infinite;
}

/* Logo container uchun perspective */
.logo-section,
.footer .col-md-4:first-child {
    perspective: 1200px;
    transform-style: preserve-3d;
}

/* Logo wrapper styling */
.logo-link {
    display: inline-block;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: translateZ(10px);
}

/* Footer logo link styling */
.footer a[href="/"] {
    display: inline-block;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer a[href="/"] img {
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer a[href="/"]:hover img {
    transform: translateY(-5px) scale(1.03);
    filter: brightness(1.2) contrast(1.15);
}

/* Header Contact Actions - Telegram, Telefon, Til */
.header-contact-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #003366 0%, #004488 100%);
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0, 51, 102, 0.2);
    position: relative;
    overflow: hidden;
}

.header-icon-link i {
    color: #fff !important;
}

.header-icon-link::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.header-icon-link:hover::before {
    opacity: 1;
}

.header-icon-link:hover {
    transform: translateY(-8px) rotateX(15deg) rotateY(15deg) scale(1.1);
    box-shadow: 0 12px 24px rgba(0, 51, 102, 0.4),
                0 6px 12px rgba(0, 51, 102, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

.header-icon-link:hover i {
    color: #fff !important;
}

.telegram-link,
.accessibility-link {
    background: linear-gradient(135deg, #003366 0%, #004488 100%);
}

.telegram-link:hover,
.accessibility-link:hover {
    background: linear-gradient(135deg, #004488 0%, #0055aa 100%);
}

/* Header Language Selector */
.header-language-selector {
    position: relative;
}

.language-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(135deg, #003366 0%, #004488 100%);
    border: none;
    border-radius: 50%;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0, 51, 102, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1001;
}

/* Language Dropdown - Ajoyib 3D Effect */
.language-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(0, 51, 102, 0.3),
        0 10px 30px rgba(0, 51, 102, 0.2),
        0 5px 15px rgba(0, 51, 102, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) rotateX(-15deg) scale(0.9);
    transform-origin: top right;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    perspective: 1000px;
    z-index: 1000;
    overflow: hidden;
}

.language-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 15px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: -3px -3px 5px rgba(0, 51, 102, 0.1);
    z-index: -1;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) rotateX(0deg) scale(1);
}

.language-dropdown-inner {
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
}

.language-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 6px;
    border-radius: 12px;
    background: #ffffff;
    color: #003366;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.08);
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
}

.language-dropdown-item:last-child {
    margin-bottom: 0;
}

.language-dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 51, 102, 0.1), transparent);
    transition: left 0.5s ease;
}

.language-dropdown-item:hover::before {
    left: 100%;
}

.language-dropdown-item:hover {
    transform: translateX(8px) translateZ(10px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(0, 51, 102, 0.2),
        0 4px 12px rgba(0, 51, 102, 0.15);
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
}

.language-dropdown-item.active {
    background: #ffffff;
    color: #003366;
    border: 3px solid #003366;
    box-shadow: 
        0 6px 20px rgba(0, 51, 102, 0.25),
        inset 0 0 0 1px rgba(0, 51, 102, 0.1);
    font-weight: 700;
}

.language-dropdown-item.active:hover {
    background: #f0f7ff;
    border-color: #004488;
    transform: translateX(8px) translateZ(10px) scale(1.02);
}

.language-dropdown-item i {
    font-size: 18px;
    color: #003366;
    transition: all 0.3s ease;
}

.language-dropdown-item.active i {
    color: #003366;
    font-weight: bold;
}

.language-dropdown-item:hover i {
    transform: rotate(360deg) scale(1.2);
}

.language-dropdown-item span {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.language-dropdown-item small {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}

.language-dropdown-item.active small {
    opacity: 0.9;
}

.language-btn i,
.language-btn .lang-text {
    color: #fff !important;
}

.language-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.language-btn:hover::before {
    opacity: 1;
}

.language-btn:hover {
    transform: translateY(-8px) rotateX(15deg) rotateY(15deg) scale(1.1);
    box-shadow: 0 12px 24px rgba(0, 51, 102, 0.4),
                0 6px 12px rgba(0, 51, 102, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

.language-btn:hover i,
.language-btn:hover .lang-text {
    color: #fff !important;
}

.language-btn i {
    font-size: 18px;
}

.lang-text {
    font-size: 12px;
    text-transform: uppercase;
}

/* Header Search Icon */
.header-search-icon {
    display: flex;
    align-items: center;
}

.search-icon-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #003366 0%, #004488 100%);
    border: none;
    border-radius: 50%;
    color: #fff !important;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0, 51, 102, 0.2);
    position: relative;
    overflow: hidden;
}

.search-icon-btn i {
    color: #fff !important;
}

.search-icon-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.search-icon-btn:hover::before {
    opacity: 1;
}

.search-icon-btn:hover {
    transform: translateY(-8px) rotateX(15deg) rotateY(15deg) scale(1.1);
    box-shadow: 0 12px 24px rgba(0, 51, 102, 0.4),
                0 6px 12px rgba(0, 51, 102, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

.search-icon-btn:hover i {
    color: #fff !important;
}

/* Header Search Panel */
.header-search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.2);
    padding: 20px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%) translateZ(50px);
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.header-search-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateZ(0);
}

.search-panel-content {
    perspective: 1000px;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 50px;
    padding: 8px 20px;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.15),
                inset 0 2px 4px rgba(0, 51, 102, 0.05);
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.header-search-form:focus-within {
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.25),
                inset 0 2px 4px rgba(0, 51, 102, 0.1);
    transform: translateY(-2px);
}

.header-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 12px 15px;
    background: transparent;
    color: #003366;
}

.header-search-input::placeholder {
    color: #6c757d;
}

.header-search-submit,
.header-search-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #003366 0%, #004488 100%);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-search-submit:hover,
.header-search-close:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.header-search-close {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.header-search-close:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

/* Mobile va Tablet uchun header responsive */
@media (max-width: 991.98px) {
    .header-contact-actions {
        gap: 10px;
    }
    
    .header-icon-link,
    .language-btn,
    .search-icon-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .language-btn i {
        font-size: 16px;
    }
    
    .lang-text {
        display: none;
    }
    
    /* Language dropdown mobile */
    .language-dropdown {
        width: 260px;
        right: -10px;
    }
    
    .language-dropdown-item {
        padding: 12px 14px;
    }
    
    .language-dropdown-item span {
        font-size: 14px;
    }
    
    .language-dropdown-item small {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .header-icon-link,
    .language-btn,
    .search-icon-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .header-contact-actions {
        gap: 8px;
    }
    
    .institution-title {
        font-size: 1.125rem !important; /* 18px - tablet */
    }
    
    .institution-subtitle {
        font-size: 0.9375rem !important; /* 15px - tablet */
    }
    
    .header-search-input {
        font-size: 0.875rem !important; /* 14px */
        padding: 10px 12px;
    }
    
    /* Language dropdown tablet */
    .language-dropdown {
        width: 240px;
        right: -15px;
    }
    
    .language-dropdown-item {
        padding: 10px 12px;
    }
    
    .language-dropdown-item i {
        font-size: 16px;
    }
}

/* Logo 3D Effect - Mobile optimizatsiya */
@media (max-width: 991.98px) {
    .main-logo,
    .footer img[src*="logo_MOI"] {
        filter: brightness(1.15) contrast(1.12);
    }
    
    .main-logo:hover,
    .footer img[src*="logo_MOI"]:hover {
        transform: translateY(-5px) scale(1.03);
        filter: brightness(1.2) contrast(1.15);
    }
}

/* Logo 3D Effect - Tablet optimizatsiya */
@media (max-width: 768px) {
    .main-logo {
        animation: logoBreath 5s ease-in-out infinite;
        filter: brightness(1.15) contrast(1.12);
    }
    
    .main-logo:hover,
    .footer img[src*="logo_MOI"]:hover {
        transform: translateY(-4px) scale(1.02);
        filter: drop-shadow(0 8px 15px rgba(0, 51, 102, 0.25))
                brightness(1.2)
                contrast(1.15);
    }
}

/* Footer Style for Mobile */
@media (max-width: 991.98px) {
    .main-navigation {
        background-color: #1f272b;
    }
    
    .main-menu {
        background-color: #1f272b;
    }
    
    .main-menu .nav-link {
        color: #fff !important;
    }
    
    .main-menu .nav-link:hover {
        color: #eea412 !important;
        background-color: rgba(238, 164, 18, 0.1);
    }
    
    .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.3);
    }
    
    .dropdown-item {
        color: #fff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-item:hover {
        background-color: rgba(238, 164, 18, 0.2);
        color: #eea412 !important;
    }
}

/* Submenu (multi-level) support */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -0.25rem;
    margin-left: 0.1rem;
}

/* Keep parent open on hover for desktop */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
    .dropdown-submenu:hover > .dropdown-menu { display: block; margin-top: 0; }
}

/* Prevent dropdown from closing when interacting inside on desktop */
.dropdown-menu .dropdown-toggle::after { margin-left: .255em; }

/* Footer styles */
.footer {
    padding: 40px 0 20px 0 !important;
    min-height: auto !important;
    overflow: visible !important;
}

.footer-bg {
    margin-top: -100px;
    background: #1f272b url('/static/base/assets/images/world-map.png') no-repeat center;
}


.footer .container {
    padding-bottom: 20px;
}


.footer h3, .footer h5 {
    color: #fff !important;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ccc;
    text-decoration: underline;
}

/* Ensure footer content is visible */
.footer .row {
    margin-bottom: 20px;
}

.footer .col-md-4 {
    margin-bottom: 20px;
}

/* Search results page styles */
.upcoming-meetings1 {
    min-height: 60vh;
    padding: 40px 0;
    background: #f8f9fa;
}

.upcoming-meetings1 h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 600;
}

/* Ensure content doesn't overlap with footer */
body {
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Fix for search results page */
#meetings {
    margin-bottom: 40px;
}

/* Django admin panel styles */
.admin-interface a {
    color: #000 !important;
}

.admin-interface .breadcrumbs a {
    color: #000 !important;
}

.admin-interface .module h2 {
    color: #000 !important;
}

.admin-interface .module h3 {
    color: #000 !important;
}

.admin-interface .module caption {
    color: #000 !important;
}

.admin-interface .help {
    color: #000 !important;
}

.admin-interface .quiet {
    color: #000 !important;
}

.admin-interface .small {
    color: #000 !important;
}

/* Django admin specific selectors */
#content-main a {
    color: #000 !important;
}

#content-main .breadcrumbs a {
    color: #000 !important;
}

#content-main h1 {
    color: #000 !important;
}

#content-main h2 {
    color: #000 !important;
}

#content-main h3 {
    color: #000 !important;
}

#content-main .module caption {
    color: #000 !important;
}

#content-main .help {
    color: #000 !important;
}

#content-main .quiet {
    color: #000 !important;
}

#content-main .small {
    color: #000 !important;
}

/* Professional News Cards - Clean & Modern */
.meeting-item {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 0px;
    height: 420px !important;
    min-height: 420px !important;
    max-height: 420px !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.meeting-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-color: #003366;
}

/* Yangilik detail sahifasi uchun xalqaro standartlar */
.news-detail-content {
    font-family: 'Montserrat', Arial, sans-serif !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    padding: 40px !important;
    margin-bottom: 30px !important;
}

.news-detail-title {
    font-family: 'Montserrat', Arial, sans-serif !important;
    color: #003366 !important;
    font-size: 2rem !important; /* 32px - accessibility scaling */
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
    text-align: left !important;
}

.news-detail-date {
    font-family: 'Montserrat', Arial, sans-serif !important;
    color: #666666 !important;
    font-size: 1.0625rem !important; /* 17px - accessibility scaling */
    font-weight: 500 !important;
    margin-bottom: 25px !important;
    display: flex !important;
    align-items: center !important;
}


/* News detail body text — scaled to 2x (~32px) */
.news-detail-text {
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-size: 2rem !important; /* ~32px at 16px base */
    line-height: 1.9 !important;
    color: #333333 !important;
    text-align: justify !important;
    word-spacing: 0.1em !important;
    letter-spacing: 0.02em !important;
}

.news-detail-text p {
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-size: 2rem !important; /* match parent ~32px */
    line-height: 1.9 !important;
    color: #333333 !important;
    margin-bottom: 18px !important;
    text-align: justify !important;
}

.news-detail-text h1,
.news-detail-text h2,
.news-detail-text h3,
.news-detail-text h4,
.news-detail-text h5,
.news-detail-text h6 {
    font-family: 'Montserrat', Arial, sans-serif !important;
    color: #003366 !important;
    font-weight: 600 !important;
    margin-top: 25px !important;
    margin-bottom: 15px !important;
}

.news-detail-text ul,
.news-detail-text ol {
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-size: 2rem !important; /* match body */
    line-height: 1.9 !important;
    color: #333333 !important;
    margin-bottom: 18px !important;
    padding-left: 30px !important;
}

.news-detail-text li {
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-size: 2rem !important; /* match body */
    line-height: 1.9 !important;
    color: #333333 !important;
    margin-bottom: 10px !important;
}

.news-detail-text strong,
.news-detail-text b {
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-weight: 600 !important;
    color: #003366 !important;
}

.news-detail-text em,
.news-detail-text i {
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-style: italic !important;
    color: #555555 !important;
}

.news-detail-text a {
    font-family: 'Montserrat', Arial, sans-serif !important;
    color: #003366 !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}

.news-detail-text a:hover {
    color: #0056b3 !important;
    text-decoration: none !important;
}

.news-main-image {
    margin-bottom: 30px !important;
}

.news-main-image img {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* Yangilik karusel uchun styling */
.news-carousel-container {
    margin-bottom: 30px !important;
}

.news-carousel-container .carousel {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.news-carousel-container .carousel-inner {
    border-radius: 8px !important;
}

.news-carousel-container .carousel-item img {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

.news-carousel-container .carousel-indicators {
    bottom: 10px !important;
}

.news-carousel-container .carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: rgba(255,255,255,0.5) !important;
    border: 2px solid #fff !important;
    margin: 0 5px !important;
}

.news-carousel-container .carousel-indicators button.active {
    background-color: #003366 !important;
    border-color: #003366 !important;
}

.news-carousel-container .carousel-control-prev,
.news-carousel-container .carousel-control-next {
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(0,51,102,0.8) !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.8 !important;
}

.news-carousel-container .carousel-control-prev {
    left: 15px !important;
}

.news-carousel-container .carousel-control-next {
    right: 15px !important;
}

.news-carousel-container .carousel-control-prev:hover,
.news-carousel-container .carousel-control-next:hover {
    opacity: 1 !important;
    background-color: rgba(0,51,102,0.9) !important;
}

.news-carousel-container .carousel-caption {
    bottom: 20px !important;
    left: 20px !important;
    right: 20px !important;
    text-align: left !important;
}

.news-carousel-container .carousel-caption p {
    margin: 0 !important;
    font-size: 0.875rem !important; /* 14px - accessibility scaling */
    line-height: 1.4 !important;
}

/* Barcha havolalar uchun umumiy styling - footerdan tashqari */
a:not(.footer a):not(.footer-links a):not(.footer *) {
    color: #003366 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

a:not(.footer a):not(.footer-links a):not(.footer *):hover {
    color: #00264d !important;
    text-decoration: underline !important;
    text-decoration-color: #003366 !important;
}

/* Maxsus havolalar uchun - footerdan tashqari */
a:not(.footer a):not(.footer-links a):not(.footer *):visited {
    color: #003366 !important;
}

a:not(.footer a):not(.footer-links a):not(.footer *):active {
    color: #001a33 !important;
}

/* Footer havolalari uchun oq rang */
.footer a,
.footer-links a,
.footer * a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.footer a:hover,
.footer-links a:hover,
.footer * a:hover {
    color: #cccccc !important;
    text-decoration: underline !important;
}

/* Menu havolalari uchun */
.main-menu .nav-link {
    color: #003366 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.main-menu .nav-link:hover {
    color: #00264d !important;
    text-decoration: underline !important;
    text-decoration-color: #003366 !important;
}

/* Dropdown havolalari uchun */
.dropdown-menu a {
    color: #003366 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.dropdown-menu a:hover {
    color: #00264d !important;
    background-color: #f8f9fa !important;
    text-decoration: underline !important;
    text-decoration-color: #003366 !important;
}

/* Mobil menu uchun alohida styling - oq rangda ko'rinishi uchun */
@media (max-width: 991.98px) {
    .navbar-collapse .main-menu .nav-link {
        color: #ffffff !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
    }
    
    .navbar-collapse .main-menu .nav-link:hover {
        color: #cccccc !important;
        text-decoration: underline !important;
        text-decoration-color: #ffffff !important;
    }
    
    .navbar-collapse .dropdown-menu a {
        color: #ffffff !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
    }
    
    .navbar-collapse .dropdown-menu a:hover {
        color: #cccccc !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
        text-decoration: underline !important;
        text-decoration-color: #ffffff !important;
    }
}

/* Yangilik detail sahifasidagi sidebar yangiliklar uchun */
.upcoming-meetings .categories .meeting-item {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    margin-bottom: 15px !important;
}

.upcoming-meetings .categories .meeting-item .thumb {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
}

.upcoming-meetings .categories .meeting-item .thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Professional Container - Clean & Responsive */
.upcoming-meetings .container {
    max-width: 1140px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Professional Grid System */
.upcoming-meetings .row {
    margin: 0 !important;
    width: 100% !important;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.upcoming-meetings .col-md-4 {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
    padding: 0 !important;
    margin-bottom: 24px !important;
}

/* Professional Image Container */
.meeting-item .thumb {
    flex-shrink: 0;
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    overflow: hidden;
    width: 100%;
    position: relative;
    border-radius: 8px 8px 0 0;
}

/* Professional Image Styling */
.meeting-item .thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.meeting-item:hover .thumb img {
    transform: scale(1.02);
}

/* Professional Content Area */
.meeting-item .down-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
}

/* Professional Typography */
.news-title {
    font-size: 1.125rem !important; /* 18px */
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: color 0.3s ease;
}

.meeting-item:hover .news-title {
    color: #003366;
}

.news-date {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    margin-bottom: 16px;
}

/* Professional Responsive Design */
@media (max-width: 991px) {
    .upcoming-meetings .col-md-4 {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 767px) {
    .upcoming-meetings .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .upcoming-meetings .row {
        gap: 16px;
    }
    
    .meeting-item {
        height: 350px !important;
        min-height: 350px !important;
        max-height: 350px !important;
    }
    
    .meeting-item .thumb {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }
    
    .meeting-item .down-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 1rem !important; /* 16px */
    }
    
    /* News Detail Layout Responsive */
    .news-detail-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .news-main-content {
        padding-right: 0;
    }
    
    .news-sidebar {
        flex: none;
        padding-left: 0;
        width: 100%;
    }
    
    /* Sidebar responsive */
    .sidebar-news {
        position: relative;
        top: auto;
        margin-top: 0;
        max-width: 100%;
    }
    
    .sidebar-news-card {
        margin-bottom: 12px;
    }
    
    .sidebar-news-image {
        height: 100px;
    }
    
    .sidebar-news-content {
        padding: 12px;
    }
    
    .sidebar-news-title {
        font-size: 0.875rem !important; /* 14px */
    }
    
    .sidebar-news-date {
        font-size: 0.75rem !important; /* 12px */
    }
}

.meeting-item .down-content div {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Professional Section Styling */
.upcoming-meetings {
    background: #f8f9fa;
    padding: 80px 0;
}

.upcoming-meetings .section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.upcoming-meetings .section-heading h2 {
    font-size: 2.5rem !important; /* 40px - Katta sarlavha */
    font-weight: 600 !important;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.upcoming-meetings .section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #003366;
    margin: 0 auto;
}

/* News Detail Layout - Base */
.news-detail-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.news-main-content {
    flex: 1;
    padding-right: 20px;
    min-width: 0;
}

.news-sidebar {
    flex: 0 0 350px;
    padding-left: 20px;
}

/* Sidebar News Styling - Base */
.sidebar-news {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 350px;
    width: 100%;
}

.sidebar-header {
    background: #003366;
    padding: 20px;
    border-radius: 8px 8px 0 0;
}

.sidebar-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sidebar-news-list {
    padding: 0;
}

.sidebar-news-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sidebar-news-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.sidebar-news-card:last-child {
    margin-bottom: 0;
}

.sidebar-news-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f8f9fa;
}

.sidebar-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.sidebar-news-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-news-link {
    text-decoration: none;
    color: inherit;
}

.sidebar-news-link:hover {
    text-decoration: none;
}

.sidebar-news-title {
    font-size: 0.9375rem !important; /* 15px */
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 8px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: color 0.3s ease;
}

.sidebar-news-card:hover .sidebar-news-title {
    color: #003366;
}

.sidebar-news-date {
    font-size: 0.8125rem !important; /* 13px */
    color: #666;
    font-weight: 400;
}

.news-title {
    font-size: 1.125rem !important; /* 18px */
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #003366;
    flex: 1;
    display: flex;
    align-items: center;
    text-align: justify;
    word-wrap: break-word;
}

.news-date {
    font-size: 0.875rem !important; /* 14px */
    font-weight: 600;
    color: #a12c2f;
    margin-top: auto;
    text-align: left;
}

/* Video va karusel muammosini hal qilish */
.section.main-banner {
    position: relative;
    z-index: 1;
}

.services {
    position: relative;
    z-index: 2;
    margin-top: -50px !important;
    margin-bottom: 20px !important;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
}

.upcoming-meetings {
    position: relative;
    z-index: 3;
    margin-top: 20px !important;
    padding-top: 0 !important;
    background: #fff;
    clear: both;
}

/* Barcha ekran razmerlari uchun bir xil */
@media (max-width: 991.98px) {
    .services {
        margin-top: -50px !important;
        margin-bottom: 20px !important;
        padding: 20px 0;
    }
    
    .upcoming-meetings {
        margin-top: 20px !important;
        padding-top: 0 !important;
    }
    
    /* Yangilik detail sahifasi uchun responsive */
    .news-detail-title {
        font-size: 1.625rem !important; /* 26px - accessibility scaling */
        line-height: 1.4 !important;
    }
    
    .news-detail-text {
        font-size: 1.5rem !important; /* 24px - accessibility scaling for mobile */
        line-height: 1.8 !important;
    }
    
    .news-detail-text p,
    .news-detail-text li,
    .news-detail-text ul,
    .news-detail-text ol {
        font-size: 1.5rem !important; /* 24px - accessibility scaling for mobile */
        line-height: 1.8 !important;
    }
    
    .news-detail-content {
        padding: 20px !important;
    }
    
    .news-main-image img {
        height: 300px !important;
    }
}

@media (max-width: 767.98px) {
    .services {
        margin-top: -50px !important;
        margin-bottom: 20px !important;
        padding: 20px 0;
    }
    
    .upcoming-meetings {
        margin-top: 20px !important;
        padding-top: 0 !important;
    }
    
    /* Yangilik detail sahifasi uchun responsive */
    .news-detail-title {
        font-size: 1.625rem !important; /* 26px - accessibility scaling */
        line-height: 1.4 !important;
    }
    
    .news-detail-text {
        font-size: 1.5rem !important; /* 24px - accessibility scaling for mobile */
        line-height: 1.8 !important;
    }
    
    .news-detail-text p,
    .news-detail-text li,
    .news-detail-text ul,
    .news-detail-text ol {
        font-size: 1.5rem !important; /* 24px - accessibility scaling for mobile */
        line-height: 1.8 !important;
    }
    
    .news-detail-content {
        padding: 20px !important;
    }
    
    .news-main-image img {
        height: 300px !important;
    }
}

@media (max-width: 575.98px) {
    .services {
        margin-top: -50px !important;
        margin-bottom: 20px !important;
        padding: 20px 0;
    }
    
    .upcoming-meetings {
        margin-top: 20px !important;
        padding-top: 0 !important;
    }
    
    /* Yangilik detail sahifasi uchun responsive */
    .news-detail-title {
        font-size: 1.625rem !important; /* 26px - accessibility scaling */
        line-height: 1.4 !important;
    }
    
    .news-detail-text {
        font-size: 1.5rem !important; /* 24px - accessibility scaling for mobile */
        line-height: 1.8 !important;
    }
    
    .news-detail-text p,
    .news-detail-text li,
    .news-detail-text ul,
    .news-detail-text ol {
        font-size: 1.5rem !important; /* 24px - accessibility scaling for mobile */
        line-height: 1.8 !important;
    }
    
    .news-detail-content {
        padding: 20px !important;
    }
    
    .news-main-image img {
        height: 300px !important;
    }
}

/* Foydali havolalar uchun style - Advanced 3D Effekt */
.owl-courses-item .item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1200px;
    position: relative;
    cursor: pointer;
}

.owl-courses-item .item:hover {
    transform: translateY(-15px) rotateX(8deg) rotateY(8deg) scale(1.08);
    box-shadow: 
        0 25px 50px rgba(0, 51, 102, 0.25),
        0 15px 30px rgba(0, 51, 102, 0.2),
        0 5px 15px rgba(0, 51, 102, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.owl-courses-item .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 51, 102, 0.1) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(0, 51, 102, 0.1) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.owl-courses-item .item:hover::before {
    opacity: 1;
}

.owl-courses-item .item img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.owl-courses-item .item:hover img {
    transform: translateZ(20px);
    filter: drop-shadow(0 8px 16px rgba(0, 51, 102, 0.3));
}

.owl-courses-item .item h6 {
    color: #003366 !important;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.owl-courses-item .item a {
    color: #003366 !important;
    text-decoration: none;
    display: block;
    padding: 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.owl-courses-item .item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.owl-courses-item .item a:hover::before {
    left: 100%;
}

.owl-courses-item .item a:hover {
    color: #003366 !important;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    box-shadow: 
        0 8px 25px rgba(0, 51, 102, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.owl-courses-item .item a:hover h6 {
    color: #003366 !important;
    transform: translateY(-2px);
}


/* Menu sahifalari uchun footer muammosini hal qilish */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding-bottom: 60px;
}

.footer {
    margin-top: auto;
    position: relative;
    z-index: 10;
}

/* Barcha sahifalar uchun umumiy qoidalar */
.upcoming-meetings,
.upcoming-meetings1,
.section {
    margin-bottom: 60px !important;
    padding-bottom: 40px !important;
}

/* Menu va content orasida katta bo'shliq */
.upcoming-meetings {
    margin-top: 0px !important; /* Menu va content orasida katta bo'shliq */
    padding-top: 40px !important;
}

/* So'ngi yangiliklar sarlavhasi uchun yuqori bo'shliq */
.upcoming-meetings .categories h4 {
    padding-top: 20px !important;
    margin-top: 20px !important;
}

/* Yangiliklar sahifasidagi sarlavha uchun */
.upcoming-meetings h2 {
    padding-top: 20px !important;
    margin-top: 20px !important;
}


/* Menu sahifalari uchun maxsus qoidalar */
.page-content {
    min-height: 70vh;
    padding-bottom: 80px;
    font-size: 1.125rem !important; /* 18px - o'qish uchun qulay */
    line-height: 1.8;
}

.page-content h1 {
    font-size: 2.25rem !important; /* 36px */
}

.page-content h2 {
    font-size: 2rem !important; /* 32px */
}

.page-content h3 {
    font-size: 1.75rem !important; /* 28px */
}

.page-content h4 {
    font-size: 1.5rem !important; /* 24px */
}

.page-content p,
.page-content li,
.page-content div {
    font-size: 1.125rem !important; /* 18px */
}

/* Article content */
.article-content {
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Breadcrumb */
.breadcrumb,
.breadcrumb-item {
    font-size: 0.9375rem !important; /* 15px */
}

.breadcrumb-item a {
    font-size: 0.9375rem !important; /* 15px */
}

/* Container uchun qo'shimcha bo'shliq - Responsive */
.container {
    padding-bottom: 20px;
    max-width: 1140px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 25px !important;
    padding-right: 25px !important;
}

/* Bootstrap container override */
.container-fluid {
    max-width: 100% !important;
    width: 90% !important;
    padding-left: 25px !important;
    padding-right: 25px !important;
}

/* Barcha section-lar uchun to'liq kenglik */
.top-header-bar,
.main-header,
.main-navigation,
.services,
.upcoming-meetings,
.upcoming-meetings1 {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 25px !important;
    padding-right: 25px !important;
}

/* Cross-browser menu compatibility */
.main-menu .nav-link {
    font-size: inherit !important;
    font-weight: 500 !important;
    padding: 12px 16px !important;
    margin: 0 2px !important;
    line-height: 1.4 !important;
    color: #000 !important;
    text-decoration: none !important;
    display: block !important;
    white-space: nowrap !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Firefox uchun maxsus qoidalar */
@-moz-document url-prefix() {
    .main-menu .nav-link {
        font-size: inherit !important;
        padding: 10px 14px !important;
    }
}

/* Safari va Chrome uchun */
@supports (-webkit-appearance: none) {
    .main-menu .nav-link {
        font-size: inherit !important;
        padding: 12px 16px !important;
    }
}

/* Edge uchun */
@supports (-ms-ime-align: auto) {
    .main-menu .nav-link {
        font-size: inherit !important;
        padding: 12px 16px !important;
    }
}

/* Menu container uchun */
.main-menu {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.main-menu .nav-item {
    margin: 0 !important;
    padding: 0 !important;
}

/* Dropdown menu uchun */
.dropdown-menu {
    font-size: inherit !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    border: 1px solid #e9ecef !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.dropdown-item {
    font-size: inherit !important;
    padding: 10px 16px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    color: #000 !important;
    text-decoration: none !important;
    display: block !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Responsive menu - gov.uz style */
.main-navigation {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
}

.main-menu {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
}

.main-menu .nav-item {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-menu .nav-link {
    font-size: inherit !important;
    padding: 12px 8px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    text-align: center !important;
    min-width: auto !important;
}

/* 4K Ultra HD (2560px+) - Juda katta monitorlar */
@media (min-width: 2560px) {
    .container {
        max-width: 2000px !important;
        width: 80% !important;
    }
    
    .main-menu .nav-link {
        font-size: inherit !important;
        padding: 12px 12px !important;
    }
    
    .main-menu .nav-item {
        margin: 0 1px !important;
    }
    
    .upcoming-meetings .container {
        max-width: 2000px !important;
        width: 80% !important;
    }
    
    .news-main-content {
        padding-right: 50px;
    }
    
    .news-sidebar {
        flex: 0 0 480px;
        padding-left: 50px;
    }
    
    .sidebar-news {
        max-width: 480px;
    }
    
    .sidebar-header {
        padding: 24px;
    }
    
    .sidebar-title {
        font-size: 22px;
    }
    
    .sidebar-news-card {
        margin-bottom: 20px;
    }
    
    .sidebar-news-image {
        height: 160px;
    }
    
    .sidebar-news-content {
        padding: 20px;
    }
    
    .sidebar-news-title {
        font-size: 1rem !important; /* 16px */
        margin-bottom: 10px;
    }
    
    .sidebar-news-date {
        font-size: 0.875rem !important; /* 14px */
    }
    
    .harvard-news-col {
        padding: 0 25px !important;
    }
    
    .harvard-image-wrapper {
        height: 380px;
    }
}

/* Ultra Katta ekranlar (1920px - 2559px) - Full HD / 2K */
@media (min-width: 1920px) and (max-width: 2559.98px) {
    .container {
        max-width: 1680px !important;
        width: 85% !important;
    }
    
    .main-menu .nav-link {
        font-size: inherit !important;
        padding: 10px 10px !important;
    }
    
    .main-menu .nav-item {
        margin: 0 1px !important;
    }
    
    .upcoming-meetings .container {
        max-width: 1680px !important;
        width: 85% !important;
    }
    
    .news-main-content {
        padding-right: 40px;
    }
    
    .news-sidebar {
        flex: 0 0 420px;
        padding-left: 40px;
    }
    
    .sidebar-news {
        max-width: 420px;
    }
    
    .sidebar-header {
        padding: 22px;
    }
    
    .sidebar-title {
        font-size: 20px;
    }
    
    .sidebar-news-card {
        margin-bottom: 18px;
    }
    
    .sidebar-news-image {
        height: 140px;
    }
    
    .sidebar-news-content {
        padding: 18px;
    }
    
    .sidebar-news-title {
        font-size: 0.9375rem !important; /* 15px */
        margin-bottom: 10px;
    }
    
    .sidebar-news-date {
        font-size: 0.8125rem !important; /* 13px */
    }
    
    .harvard-news-col {
        padding: 0 20px !important;
    }
    
    .harvard-image-wrapper {
        height: 340px;
    }
}

/* Juda Katta ekranlar (1400px - 1919px) */
@media (min-width: 1400px) and (max-width: 1919.98px) {
    .container {
        max-width: 1320px !important;
        width: 90% !important;
    }
    
    .main-menu .nav-link {
        font-size: inherit !important;
        padding: 12px 14px !important;
    }
    
    .upcoming-meetings .container {
        max-width: 1320px !important;
        width: 90% !important;
    }
    
    .news-main-content {
        padding-right: 30px;
    }
    
    .news-sidebar {
        flex: 0 0 380px;
        padding-left: 30px;
    }
    
    .sidebar-news {
        max-width: 380px;
    }
    
    .sidebar-header {
        padding: 20px;
    }
    
    .sidebar-title {
        font-size: 19px;
    }
    
    .sidebar-news-card {
        margin-bottom: 16px;
    }
    
    .sidebar-news-image {
        height: 130px;
    }
    
    .sidebar-news-content {
        padding: 17px;
    }
    
    .sidebar-news-title {
        font-size: 15px;
        margin-bottom: 9px;
    }
    
    .sidebar-news-date {
        font-size: 13px;
    }
    
    .harvard-news-col {
        padding: 0 18px !important;
    }
    
    .harvard-image-wrapper {
        height: 320px;
    }
}

/* Katta ekranlar (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .container {
        max-width: 1140px !important;
        width: 95% !important;
    }
    
    .main-menu .nav-link {
        font-size: inherit !important;
        padding: 12px 12px !important;
    }
    
    .upcoming-meetings .container {
        max-width: 1140px !important;
        width: 95% !important;
    }
}

/* O'rtacha ekranlar (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .main-menu .nav-link {
        font-size: inherit !important;
        padding: 10px 8px !important;
    }
}

/* Planshet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .main-menu .nav-link {
        font-size: inherit !important;
        padding: 8px 6px !important;
    }
    
    .main-menu {
        justify-content: center !important;
    }
}

/* Kichik planshet (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .main-menu .nav-link {
        font-size: inherit !important;
        padding: 6px 4px !important;
    }
    
    .main-menu {
        justify-content: center !important;
    }
}

/* Mobil (575px dan kichik) */
@media (max-width: 575.98px) {
    .main-menu .nav-link {
        font-size: inherit !important;
        padding: 6px 3px !important;
    }
    
    .main-menu {
        justify-content: center !important;
        flex-direction: column !important;
    }
    
    .main-menu .nav-item {
        width: 100% !important;
        margin-bottom: 5px !important;
    }
}

/* Menu yozuvlari uzun bo'lsa, avtomatik pastga tushish */
@media (max-width: 991.98px) {
    .main-menu {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .main-menu .nav-item:nth-child(6) {
        width: 100% !important;
        text-align: center !important;
        margin-top: 5px !important;
    }
}

/* Ekran kichik bo'lsa, barcha menu pastga tushish */
@media (max-width: 767.98px) {
    .main-menu {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .main-menu .nav-item {
        width: 100% !important;
        margin-bottom: 3px !important;
    }
    
    .main-menu .nav-link {
        width: 100% !important;
        text-align: center !important;
    }
}
