/* Ko'k va Qizil ranglar palitrasi */
:root {
    --primary-blue: #0A2540;   /* Premium to'q ko'k (asosiy fon va matnlar) */
    --secondary-blue: #1E3A8A; /* Aktiv ko'k elementlar */
    --primary-red: #A30000;    /* To'q qizil / Alvon (urg'u va muhim bloklar) */
    --light-red: #FFF5F5;      /* OAK bloki uchun och qizil fon */
    --text-dark: #1E293B;      /* Umumiy matn */
    --light-bg: #F8FAFC;       /* Yumshoq oq/kulrang fon */
    --white: #FFFFFF;
    --border-color: #E2E8F0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 90px;
}

/* YUQORI QISM (HEADER) */
header {
    background-color: var(--primary-blue);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-bottom: 4px solid var(--primary-red);
}

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

.logo-area h1 {
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo-area p {
    color: #94A3B8;
    font-size: 11px;
    text-transform: uppercase;
}

/* Logotipni header ichida chiroyli tekislash */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cafet-vector-logo {
    width: 55px;  /* Logotip o'lchami */
    height: 55px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); /* Logotipga yengil soya */
}

.logo-text h1 {
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.logo-text p {
    color: #94A3B8;
    font-size: 10px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Navigatsiya menyusi */
nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav ul li a {
    color: #E2E8F0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

nav ul li a:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

.issn-tag {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 6px 14px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Burger menyu (Mobil uchun) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
}

/* ==========================================
   TIL TANLASH BLOKI - YANGILANGAN VA MUSTAHKAM
   ========================================== */

/* ISSN va Til blokini jamlovchi asosiy konteyner */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

/* Asosiy til konteyneri */
.lang-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
    /* Sichqoncha pastga tushayotganda uzilish bo'lmasligi uchun xavfsizlik maydoni */
    padding: 10px 0; 
    margin: -10px 0;
}

/* Asosiy tugma stili */
.lang-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #E2E8F0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease-in-out;
    pointer-events: none; /* Sichqoncha hodisalarini faqat konteyner oladi (qochishni oldini oladi) */
}

/* Konteyner ustiga borganda tugma o'zgarishi */
.lang-dropdown:hover .lang-btn {
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    border-color: #A30000;
}

/* Kichik pastga qaragan o'qcha (arrow) */
.arrow-down {
    border: solid #E2E8F0;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2.5px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transition: transform 0.2s ease;
}

/* Ochiladigan ro'yxat foni (Dropdown menu) */
.lang-options {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: -2px; /* Tugmaga yopishib turishi shart! */
    background-color: #FFFFFF;
    min-width: 140px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    z-index: 9999; /* Har doim hamma narsadan ustida turishi uchun */
    border: 1px solid #E2E8F0;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover bo'lganda YOKI JS orqali .open klassi qo'shilganda ochilishi */
.lang-dropdown:hover .lang-options,
.lang-dropdown.open .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menyular ochilganda o'qchaning tepaga burilishi */
.lang-dropdown:hover .arrow-down,
.lang-dropdown.open .arrow-down {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    border-color: #FFFFFF;
}

/* Ro'yxat ichidagi tillar havolasi */
.lang-options a {
    color: #1E293B;
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s ease;
}

/* Sichqoncha urganda effekt */
.lang-options a:hover {
    background-color: #F1F5F9;
    color: #A30000;
    padding-left: 22px; /* Chiroyli surilish effekti */
}

/* Aktiv til */
.lang-options a.active {
    background-color: #FFF5F5;
    color: #A30000;
}

/* Mobil qurilmalar uchun moslashuvchanlik */
@media (max-width: 900px) {
    .header-right-actions {
        margin-right: 50px;
    }
}

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

/* Mobil qurilmalar uchun moslashuvchanlik */
@media (max-width: 900px) {
    .header-right-actions {
        margin-right: 45px; /* Burger menyuga xalaqit bermasligi uchun */
    }
    .issn-tag {
        display: none; /* Mobilda joy tejash uchun ISSN yashiriladi */
    }
}

/* HERO / BANNER - YANGILANGAN PREMIUM DIZAYN */
.hero {
    background-color: #0A2540;
    /* Zamonaviy gradient va fon tasviri effekti */
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(163, 0, 0, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0A2540 0%, #071726 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Fon uchun qo'shimcha ilmiy-texnologik to'r effekti */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--secondary-blue));
}

.hero-inner {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.hero p.hero-subtitle {
    font-size: 18px;
    color: #94A3B8;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* YANGI KO'RINISHDAGI OAK BLOKI */
.oak-badge-box {
    background: rgba(10, 37, 64, 0.65);
    backdrop-filter: blur(12px); /* Orqa fonni xira qilish (Glassmorphism) */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--primary-red);
    padding: 25px;
    border-radius: 12px;
    margin: 0 auto 35px auto;
    max-width: 750px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.oak-badge-box:hover {
    transform: translateY(-2px);
    border-color: rgba(163, 0, 0, 0.3);
}

.oak-badge-box h4 {
    color: #FF4D4D; /* Chiroyliroq och qizil */
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

/* Pulsatsiya beruvchi qizil nuqta effekti */
.oak-badge-box h4::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #FF4D4D;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 77, 77, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

.oak-badge-box p {
    color: #E2E8F0;
    font-size: 14.5px;
    margin-bottom: 0;
    line-height: 1.6;
    font-weight: 500;
}

/* AMALGA OSHIRISH TUGMASI */
.btn-call {
    background: linear-gradient(135deg, var(--primary-red) 0%, #BD0000 100%);
    color: var(--white);
    padding: 14px 36px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(163, 0, 0, 0.35);
    letter-spacing: 0.5px;
}

.btn-call:hover {
    background: linear-gradient(135deg, #BD0000 0%, #A30000 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(163, 0, 0, 0.5);
}

/* STRUKTURA LAYOUT */
.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2.7fr 1.3fr;
    gap: 30px;
}

/* Bo'lim panellari */
section {
    background: var(--white);
    padding: 35px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border-top: 4px solid var(--secondary-blue);
}

section h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

/* Ixtisoslashuv teglari (Ko'k dizayn) */
.spec-container {
    margin: 20px 0;
}
.spec-badge {
    display: inline-block;
    background-color: #EFF6FF;
    color: var(--secondary-blue);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid #BFDBFE;
}

/* Ma'lumotlar jadvali */
.info-grid {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.info-grid td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}
.info-grid tr:hover {
    background-color: #F8FAFC;
}
.info-grid td:first-child {
    font-weight: 700;
    color: #475569;
    width: 30%;
}

/* Arxiv maqolalari */
.paper-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}
.paper-item:last-child { border: none; }
.paper-link {
    color: var(--secondary-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 17px;
    display: block;
    margin-bottom: 6px;
}
.paper-link:hover {
    color: var(--primary-red);
    text-decoration: underline;
}
.paper-meta {
    font-size: 13px;
    color: #64748B;
}
.download-pdf {
    color: var(--primary-red);
    font-weight: 600;
    float: right;
    text-decoration: none;
}
.download-pdf:hover { text-decoration: underline; }

/* Aloqa formasi elementlari */
.input-box {
    margin-bottom: 18px;
}
.input-box label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
}
.input-box input, .input-box textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.input-box input:focus, .input-box textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
}
.btn-send {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
}
.btn-send:hover { background-color: var(--primary-red); }

/* YON PANEL (SIDEBAR) */
.sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.side-block {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border-top: 4px solid var(--primary-red); /* Qizil chiziqli vidjet */
    margin-bottom: 10px;
}

.side-block h3 {
    font-size: 16px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gov-title {
    font-size: 12px;
    text-align: center;
    color: #475569;
    background: #F1F5F9;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.gov-number {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-red);
    margin: 15px 0;
    padding: 10px;
    border: 2px dashed var(--primary-red);
    background: var(--light-red);
    border-radius: 4px;
}

.gov-list {
    font-size: 13px;
    list-style: none;
}

.gov-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.gov-list li span:first-child {
    color: #64748B;
    font-weight: 600;
}

/* FOOTER (KO'K FONDA) */
footer {
    background-color: var(--primary-blue);
    color: #94A3B8;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    font-size: 14px;
    border-top: 5px solid var(--primary-red);
}

/* RESPONSIVE DIZAYN (MOBIL) */
@media (max-width: 900px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    .menu-toggle {
        display: flex;
    }
    nav {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: var(--primary-blue);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    nav.active {
        display: block;
    }
    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 5px;
    }
    nav ul li a {
        display: block;
        padding: 12px;
    }
    .issn-tag {
        display: none;
    }
}

/* Sidebar uchun toza matnli stillar */
.info-card-box {
    background: #FFFFFF;
    border-top: 4px solid #004B87 !important;
    padding: 20px !important;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
}

.info-tag-header {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748B;
    font-weight: 700;
}

.founder-title {
    font-size: 15px;
    color: #0F172A;
    margin-top: 5px;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.side-divider {
    border: 0;
    border-top: 1px solid #F1F5F9;
    margin-bottom: 12px;
}

.contact-mini-details p {
    font-size: 13px;
    color: #475569;
    margin: 6px 0;
    line-height: 1.4;
}

/* Metrika va statistika stillari */
.metrics-card-box {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0;
    padding: 20px !important;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #E2E8F0;
}

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

.metric-label {
    font-size: 13.5px;
    color: #475569;
    font-weight: 500;
}

.metric-value {
    font-size: 14px;
    font-weight: 700;
    color: #004B87;
    background: #E0F2FE;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Yuklab olish tugmasi */
.download-card-box {
    padding: 15px !important;
}

.btn-download-side {
    display: block;
    text-align: center;
    background: #A30000;
    color: #FFFFFF !important;
    text-decoration: none;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    transition: background 0.2s ease;
    margin-top: 8px;
}

.btn-download-side:hover {
    background: #800000;
}
/* About Sahifasi Arxitekturasi */
.about-page-main {
    flex: 2;
    padding-right: 30px;
}

.about-page-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-hero {
    margin-bottom: 30px;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 15px;
}

.about-hero h2 {
    font-size: 28px;
    color: #1E293B;
    font-weight: 800;
}

.about-lead {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
    margin-top: 10px;
}

.about-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2E8F0;
}

.about-section h3 {
    font-size: 18px;
    color: #0F172A;
    margin-bottom: 15px;
    border-left: 4px solid #A30000;
    padding-left: 10px;
}

/* Pasport Jadvali */
.journal-passport-table {
    width: 100%;
    border-collapse: collapse;
}

.journal-passport-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 14.5px;
    color: #334155;
}

.journal-passport-table tr:last-child td {
    border-bottom: none;
}

.badge-issn {
    background: #E0F2FE;
    color: #0369A1;
    padding: 3px 8px;
    font-weight: 700;
    border-radius: 4px;
    font-family: monospace;
}

/* OAK Sidebar Dizayni */
.oak-official-box {
    background: #FFF;
    border: 1px solid #E2E8F0;
    border-top: 4px solid #0099cc !important;
    text-align: center;
    padding: 20px !important;
}

.oak-svg-wrapper {
    width: 130px;
    margin: 0 auto 15px auto;
}

.oak-sidebar-title {
    font-size: 14px;
    color: #0F172A;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.oak-sidebar-status {
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
}

/* Indeksatsiya */
.index-logos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.idx-badge {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    border-radius: 6px;
}

/* Mobil moslashuvchanlik */
@media (max-width: 850px) {
    .main-container {
        flex-direction: column;
    }
    .about-page-main {
        padding-right: 0;
    }
}



/* Eslatma qutisi (Notice Box) */
.contact-notice-box {
    background-color: #F8FAFC;
    border-left: 4px solid #004B87;
    padding: 15px;
    border-radius: 0 6px 6px 0;
}

.contact-notice-box p {
    margin: 8px 0;
}

/* Xarita konteyneri */
.contact-map-container {
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    overflow: hidden;
}
/* Ekran balandligi bo'yicha cheklov - footerni qat'iy pastda ushlaydi */
.contact-page-wrapper {
    min-height: 80vh; /* Sahifa minimal hajmi yanada oshirildi */
    margin-bottom: 10px;
}

/* Links blokidagi ro'yxat elementlari uchun interaktiv effekt */
.links-card-box ul li a {
    transition: padding-left 0.2s ease;
    display: inline-block;
}

.links-card-box ul li a:hover {
    padding-left: 5px;
    color: #003366 !important;
}

/* CAFET JOURNAL - SECURE & ISOLATED STYLES */

/* Yon tomonga chiqib ketishni oldini olish */
.py-5, .container, .row, .col-lg-8, .col-lg-4, .card {
    box-sizing: border-box !important;
}

/* Sarlavha chizig'i */
.title-line {
    width: 60px;
    height: 3px;
    background-color: #004B87 !important;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 2px;
}

.tracking-wider {
    letter-spacing: 0.08em;
}

.text-accent {
    color: #004B87 !important;
}

/* Ro'yxat elementlari */
.list-group-item {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    background: transparent !important;
    border-bottom: 1px solid #F1F5F9 !important;
}

/* Katta to'q rangli blok */
.bg-dark {
    background-color: #1E293B !important;
}

/* Yo'nalish kodlari (Badgexonalar) */
.scope-badge {
    color: #004B87 !important;
    font-family: monospace !important;
    font-size: 14px !important;
    background: #F1F5F9 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    margin-right: 5px !important;
    display: inline-block;
}

/* Tugmalar */
.btn-light {
    background-color: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    transition: all 0.2s ease-in-out !important;
}

.btn-light:hover {
    background-color: #FFFFFF !important;
    transform: translateX(4px) !important;
}

/* Mobil ekranlar uchun to'liq moslashuvchanlik */
@media (max-width: 991.98px) {
    .row {
        margin: 0 !important;
        width: 100% !important;
    }
    .col-lg-8, .col-lg-4 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}