/* ============================================================
   institut-nizomi.css — /user/css/institut-nizomi.css
   Institut Nizomi sahifasining barcha stillari:
   - Asosiy stil
   - Responsive
   - Dark mode (body.dark)
============================================================ */

/* =========================================================
   BREADCRUMB
========================================================= */
.breadcrumb-section {
    background: linear-gradient(135deg, #0d47a1 0%, #1566B7 60%, #1976D2 100%);
    padding: 48px 0 36px;
    position: relative;
    overflow: hidden;
}
.breadcrumb-section::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -180px; right: -80px;
    pointer-events: none;
}
.breadcrumb-section::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    bottom: -80px; left: -40px;
    pointer-events: none;
}
.breadcrumb-section .container { position: relative; z-index: 2; }
.breadcrumb-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.breadcrumb-section .bc-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}
.breadcrumb-section .bc-nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-section .bc-nav a:hover { color: #FFD54F; }
.breadcrumb-section .bc-nav .sep    { color: rgba(255,255,255,0.35); }
.breadcrumb-section .bc-nav .current { color: #FFD54F; font-weight: 600; }

/* =========================================================
   MAIN PAGE WRAPPER
========================================================= */
.nizom-page {
    padding: 64px 0 96px;
    background: #f8faff;
}

/* =========================================================
   MARQUEE STRIP
========================================================= */
.marquee-strip {
    background: #FFD54F;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-inner {
    display: inline-flex;
    gap: 40px;
    animation: marqueeScroll 20s linear infinite;
    font-size: 12px;
    font-weight: 600;
    color: rgba(10,14,26,0.7);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.marquee-inner .dot { color: rgba(10,14,26,0.3); }

/* =========================================================
   SECTION LABEL
========================================================= */
.nizom-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #1566B7;
    margin-bottom: 12px;
}
.nizom-label::before {
    content: '';
    width: 20px; height: 2px;
    background: #FFD54F;
    border-radius: 2px;
}

/* =========================================================
   TARIX (TIMELINE)
========================================================= */
.tarix-section { margin-bottom: 72px; }
.tarix-heading {
    font-size: 28px;
    font-weight: 700;
    color: #0d47a1;
    margin-bottom: 8px;
}
.tarix-sub {
    font-size: 15px;
    color: #5f738c;
    margin-bottom: 40px;
    max-width: 600px;
}

.timeline-wrap { position: relative; padding-left: 28px; }
.timeline-wrap::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 2px;
    height: calc(100% - 16px);
    background: linear-gradient(to bottom, #1566B7 0%, rgba(21,102,183,0.1) 100%);
}
.tl-item {
    position: relative;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.tl-item.show { opacity: 1; transform: translateX(0); }
.tl-item::before {
    content: '';
    position: absolute;
    left: -34px; top: 5px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #1566B7;
    box-shadow: 0 0 0 4px rgba(21,102,183,0.12);
}
.tl-date {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #FFD54F;
    background: #0d47a1;
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.tl-text {
    font-size: 14.5px;
    color: #2a3548;
    line-height: 1.8;
}
.tl-text strong { color: #0d47a1; font-weight: 700; }

/* =========================================================
   HUQUQIY MAQOM KARTALAR
========================================================= */
.huquq-section { margin-bottom: 72px; }
.huquq-card {
    background: #fff;
    border: 1px solid #e5efff;
    border-radius: 16px;
    padding: 28px 24px;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s;
}
.huquq-card:hover {
    box-shadow: 0 12px 32px rgba(21,102,183,0.14);
    transform: translateY(-4px) !important;
}
.huquq-card.show { opacity: 1; transform: translateY(0); }
.huquq-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1566B7, #0d47a1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(21,102,183,0.3);
}
.huquq-icon i  { color: #fff; font-size: 20px; }
.huquq-card h5 { font-size: 15px; font-weight: 700; color: #0d47a1; margin-bottom: 10px; }
.huquq-card p  { font-size: 13.5px; color: #5f738c; line-height: 1.75; margin: 0; }

/* =========================================================
   STATISTIKA
========================================================= */
.nizom-stats {
    background: linear-gradient(135deg, #0d47a1 0%, #1566B7 60%, #1976D2 100%);
    border-radius: 20px;
    padding: 48px 40px;
    margin-bottom: 72px;
    position: relative;
    overflow: hidden;
}
.nizom-stats::before {
    content: '';
    position: absolute;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -140px; right: -80px;
}
.nizom-stats::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    bottom: -60px; left: -40px;
}
.nizom-stats .stat-item {
    text-align: center;
    padding: 12px 8px;
    position: relative;
    z-index: 1;
}
.nizom-stats .stat-icon-box {
    width: 58px; height: 58px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    backdrop-filter: blur(4px);
    transition: background 0.3s, transform 0.3s;
}
.nizom-stats .stat-item:hover .stat-icon-box {
    background: rgba(255,255,255,0.22);
    transform: scale(1.08);
}
.nizom-stats .stat-icon-box i { font-size: 22px; color: #FFD54F; }
.nizom-stats .stat-num {
    font-size: 36px;
    font-weight: 800;
    color: #FFD54F;
    line-height: 1;
    margin-bottom: 6px;
    display: block;
}
.nizom-stats .stat-desc {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* =========================================================
   MANZIL
========================================================= */
.manzil-section          { margin-bottom: 72px; }
.manzil-section .heading {
    font-size: 26px;
    font-weight: 700;
    color: #0d47a1;
    margin-bottom: 32px;
}
.manzil-card-wrap {
    background: #fff;
    border: 1px solid #e5efff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}
.manzil-card-wrap.show   { opacity: 1; transform: translateY(0); }
.manzil-left-stripe {
    width: 6px;
    background: linear-gradient(to bottom, #1566B7, #FFD54F);
    flex-shrink: 0;
}
.manzil-body             { padding: 28px 32px; flex: 1; }
.manzil-row-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f5ff;
}
.manzil-row-item:last-child { border-bottom: none; }
.manzil-row-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(21,102,183,0.08);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.manzil-row-icon i       { color: #1566B7; font-size: 16px; }
.manzil-row-text label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8899bb;
    margin-bottom: 3px;
}
.manzil-row-text span    { font-size: 15px; font-weight: 600; color: #1a1a2e; }

/* =========================================================
   REKVIZIT KARTALAR
========================================================= */
.rekv-card {
    background: #fff;
    border: 1px solid #e5efff;
    border-radius: 16px;
    padding: 28px 24px;
    height: 100%;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}
.rekv-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, #1566B7, #FFD54F);
}
.rekv-card.show          { opacity: 1; transform: translateY(0); }
.rekv-card:hover         { box-shadow: 0 10px 30px rgba(21,102,183,0.12); }
.rekv-card h6 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1566B7;
    margin-bottom: 18px;
}
.rekv-row                { display: flex; flex-direction: column; gap: 10px; }
.rekv-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 8px;
    align-items: start;
}
.rekv-item .rl           { font-size: 11.5px; color: #8899bb; font-weight: 500; padding-top: 2px; }
.rekv-item .rv {
    font-size: 12.5px;
    font-weight: 600;
    color: #1a1a2e;
    font-family: 'Courier New', monospace;
    background: rgba(21,102,183,0.05);
    padding: 5px 10px;
    border-radius: 6px;
    word-break: break-all;
    line-height: 1.5;
}
.rekv-item .rv.normal    { font-family: inherit; font-size: 13.5px; }

/* =========================================================
   HISOB RAQAMLAR
========================================================= */
.hisob-card {
    background: #fff;
    border: 1px solid #e5efff;
    border-radius: 16px;
    padding: 28px 24px;
    margin-top: 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}
.hisob-card.show         { opacity: 1; transform: translateY(0); }
.hisob-card h6 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1566B7;
    margin-bottom: 20px;
}
.hisob-list              { display: flex; flex-direction: column; gap: 10px; }
.hisob-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(21,102,183,0.04);
    border-radius: 10px;
    padding: 12px 16px;
    flex-wrap: wrap;
    transition: background 0.2s;
}
.hisob-row:hover         { background: rgba(21,102,183,0.08); }
.hisob-label             { font-size: 12.5px; color: #5f738c; font-weight: 500; flex: 1; min-width: 160px; }
.hisob-num {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #0d47a1;
    letter-spacing: 0.5px;
}
.copy-btn {
    background: none;
    border: 1.5px solid rgba(21,102,183,0.3);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #1566B7;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.copy-btn:hover          { background: #1566B7; color: #fff; border-color: #1566B7; }
.copy-btn.copied         { background: #2e7d32; color: #fff; border-color: #2e7d32; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
    .breadcrumb-section h1   { font-size: 24px; }
    .nizom-stats             { padding: 32px 20px; border-radius: 16px; }
    .nizom-stats .stat-num   { font-size: 28px; }
    .hisob-row               { flex-direction: column; align-items: flex-start; }
    .rekv-item               { grid-template-columns: 1fr; }
    .manzil-body             { padding: 20px 18px; }
    .tarix-heading           { font-size: 22px; }
}
@media (max-width: 480px) {
    .breadcrumb-section      { padding: 36px 0 28px; }
    .breadcrumb-section h1   { font-size: 20px; }
    .nizom-page              { padding: 40px 0 64px; }
    .hisob-num               { font-size: 11px; word-break: break-all; }
}

/* =========================================================
   ████████╗██╗   ██╗███╗   ██╗    ██████╗ ███████╗     ██╗
      ██╔══╝██║   ██║████╗  ██║    ██╔══██╗██╔════╝     ██║
      ██║   ██║   ██║██╔██╗ ██║    ██████╔╝█████╗       ██║
      ██║   ██║   ██║██║╚██╗██║    ██╔══██╗██╔══╝       ╚═╝
      ██║   ╚██████╔╝██║ ╚████║    ██║  ██║███████╗     ██╗
      ╚═╝    ╚═════╝ ╚═╝  ╚═══╝    ╚═╝  ╚═╝╚══════╝     ╚═╝
   DARK MODE — body.dark klassi qo'shilganda ishlaydi
========================================================= */

/* Fon */
body.dark .nizom-page          { background: #0f1117; }

/* Marquee */
body.dark .marquee-strip       { background: #1a2035; }
body.dark .marquee-inner       { color: rgba(200,215,245,0.65); }
body.dark .marquee-inner .dot  { color: rgba(200,215,245,0.2); }

/* Breadcrumb */
body.dark .breadcrumb-section {
    background: linear-gradient(135deg, #060d1f 0%, #0a1830 60%, #0c1e3a 100%);
}

/* Label */
body.dark .nizom-label         { color: #4d9de0; }

/* Sarlavhalar */
body.dark .tarix-heading,
body.dark .manzil-section .heading { color: #90caf9; }
body.dark .tarix-sub           { color: #7a90b8; }

/* Timeline chiziq */
body.dark .timeline-wrap::before {
    background: linear-gradient(to bottom, #4d9de0 0%, rgba(77,157,224,0.06) 100%);
}
/* Timeline dot */
body.dark .tl-item::before {
    background: #1a2035;
    border-color: #4d9de0;
    box-shadow: 0 0 0 4px rgba(77,157,224,0.1);
}
/* Timeline matn */
body.dark .tl-date             { background: #1e3a5f; color: #FFD54F; }
body.dark .tl-text             { color: #c5d3ef; }
body.dark .tl-text strong      { color: #90caf9; }

/* Huquq kartalar */
body.dark .huquq-card {
    background: #1a2035;
    border-color: #243050;
}
body.dark .huquq-card:hover    { box-shadow: 0 12px 32px rgba(0,0,0,0.5) !important; }
body.dark .huquq-card h5       { color: #90caf9; }
body.dark .huquq-card p        { color: #7a90b8; }
body.dark .huquq-card ul li    { color: #7a90b8; }
body.dark .huquq-card ul li strong { color: #90caf9 !important; }

/* Statistika — gradient qorayadi */
body.dark .nizom-stats {
    background: linear-gradient(135deg, #060d1f 0%, #091525 60%, #0c1a2e 100%);
}

/* Manzil karta */
body.dark .manzil-card-wrap {
    background: #1a2035;
    border-color: #243050;
}
body.dark .manzil-row-item     { border-bottom-color: #243050; }
body.dark .manzil-row-icon     { background: rgba(77,157,224,0.1); }
body.dark .manzil-row-icon i   { color: #4d9de0; }
body.dark .manzil-row-text label { color: #4a6080; }
body.dark .manzil-row-text span  { color: #e2e8f8; }
body.dark .manzil-row-text a   { color: #4d9de0 !important; }

/* Rekvizit kartalar */
body.dark .rekv-card {
    background: #1a2035;
    border-color: #243050;
}
body.dark .rekv-card:hover     { box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
body.dark .rekv-card h6        { color: #4d9de0; }
body.dark .rekv-item .rl       { color: #4a6080; }
body.dark .rekv-item .rv {
    color: #e2e8f8;
    background: rgba(77,157,224,0.07);
}
body.dark .rekv-item .rv.normal { color: #e2e8f8; }

/* Hisob raqamlar */
body.dark .hisob-card {
    background: #1a2035;
    border-color: #243050;
}
body.dark .hisob-card h6       { color: #4d9de0; }
body.dark .hisob-row           { background: rgba(77,157,224,0.05); }
body.dark .hisob-row:hover     { background: rgba(77,157,224,0.11); }
body.dark .hisob-label         { color: #7a90b8; }
body.dark .hisob-num           { color: #90caf9; }
body.dark .copy-btn {
    color: #4d9de0;
    border-color: rgba(77,157,224,0.3);
}
body.dark .copy-btn:hover      { background: #1e6fb5; color: #fff; border-color: #1e6fb5; }
body.dark .copy-btn.copied     { background: #2e7d32; border-color: #2e7d32; }