/* ═══════════════════════════════════════════════════════════
   reileap.css  —  REILEAP sahifasi stillari
   Dizayn tizimi: --primary #1566B7 / --gold #FFD54F
   Playfair Display + Source Serif 4
   ═══════════════════════════════════════════════════════════ */

:root {
    --primary:   #1566B7;
    --primary-d: #0d47a1;
    --gold:      #FFD54F;
    --text:      #2c3e50;
    --muted:     #5f738c;
    --bg-light:  #f8faff;
    --border:    #e5efff;

    /* Mamlakat ranglari */
    --c-gr: #0d5eaf;
    --c-it: #009246;
    --c-ro: #002B7F;
    --c-tr: #E30A17;
    --c-uz: #1eb53a;
    --c-kz: #00AFCA;
}

/* ══════════════════════════════
   HEADER
══════════════════════════════ */
.rl-header {
    background: linear-gradient(135deg, var(--primary-d) 0%, #1258a8 55%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
}
.rl-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), rgba(255,213,79,0.25), transparent);
}

/* Dekorativ aylana-orb lar */
.rl-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.rl-orb-1 { width: 420px; height: 420px; left: -90px;  bottom: -130px; background: rgba(255,255,255,0.032); }
.rl-orb-2 { width: 260px; height: 260px; right: 15%;   top: -80px;     background: rgba(255,255,255,0.04);  }
.rl-orb-3 { width: 140px; height: 140px; right: 4%;    bottom: 12px;   background: rgba(255,213,79,0.065); }

.rl-header-inner { position: relative; z-index: 2; }

/* 2 ustunli grid */
.rl-header-grid {
    display: grid;
    grid-template-columns: 1fr 270px;
    align-items: stretch;
}

/* ── Chap ustun ── */
.rl-header-left { padding: 46px 36px 46px 0; }

/* Breadcrumb */
.rl-header .breadcrumb { background: none; padding: 0; margin-bottom: 18px; }
.rl-header .breadcrumb-item,
.rl-header .breadcrumb-item a {
    color: rgba(255,255,255,0.55);
    font-size: 12.5px;
    text-decoration: none;
    font-family: sans-serif;
}
.rl-header .breadcrumb-item a:hover { color: var(--gold); }
.rl-header .breadcrumb-item.active  { color: #fff; }
.rl-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.28); }

/* Badge lar */
.rl-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rl-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    padding: 5px 13px; border-radius: 20px;
    font-family: sans-serif;
}
.rl-badge-erasmus {
    color: var(--gold);
    background: rgba(255,213,79,0.12);
    border: 1px solid rgba(255,213,79,0.26);
}
.rl-badge-cbhe {
    color: rgba(255,255,255,0.80);
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
}

/* H1 */
.rl-h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 10px;
}
.rl-h1-name { color: var(--gold); }
.rl-h1 em {
    display: block;
    font-style: italic;
    font-weight: 400;
    font-size: 0.70em;
    color: rgba(255,255,255,0.70);
    margin-top: 4px;
    letter-spacing: 0.3px;
}

.rl-header-fullname {
    font-family: 'Source Serif 4', serif;
    font-size: 12.5px; font-weight: 300;
    color: rgba(255,255,255,0.56);
    line-height: 1.75; max-width: 560px;
    margin: 0 0 20px;
}

/* Chip lar qatori */
.rl-chips-row { display: flex; flex-wrap: wrap; gap: 7px; }
.rl-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 20px;
    padding: 5px 12px;
    font-family: sans-serif; font-size: 11.5px;
    color: rgba(255,255,255,0.80);
}
.rl-chip-flag { font-size: 13px; line-height: 1; }
.rl-chip-more {
    background: rgba(255,213,79,0.12);
    border-color: rgba(255,213,79,0.25);
    color: var(--gold);
}

body.dark .rl-header { background: linear-gradient(135deg, #060c18 0%, #0a1628 100%); }

/* ══════════════════════════════
   ASOSIY QISM
══════════════════════════════ */
.rl-section { background: var(--bg-light); padding: 42px 0 80px; }
body.dark .rl-section { background: #0a1525; }

/* 2-ustunli layout */
.rl-layout {
    display: grid;
    grid-template-columns: 248px 1fr;
    gap: 22px;
    align-items: start;
}

/* ══════════════════════════════
   SIDEBAR
══════════════════════════════ */
.rl-sidebar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(21,102,183,0.07);
    overflow: hidden;
    position: sticky;
    top: 18px;
}
body.dark .rl-sidebar { background: #1a2740; border-color: rgba(255,255,255,0.07); }

.rl-sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--muted);
    padding: 15px 20px 10px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.rl-sidebar-title::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
}
body.dark .rl-sidebar-title { border-color: rgba(255,255,255,0.07); color: #64748b; }

/* Nav tugmalar */
.rl-nav { display: flex; flex-direction: column; padding: 8px; gap: 2px; }

.rl-nav-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 13px; border: none;
    background: none; border-radius: 10px;
    font-family: sans-serif; font-size: 13px; font-weight: 500;
    color: var(--text); cursor: pointer;
    width: 100%; text-align: left;
    transition: background 0.18s, color 0.18s;
    position: relative;
}
.rl-nav-btn::before {
    content: ''; position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 3px; border-radius: 3px;
    background: transparent; transition: background 0.18s;
}
.rl-nav-btn > i:first-child  { font-size: 13px; color: var(--muted); flex-shrink: 0; }
.rl-nav-btn span { flex: 1; line-height: 1.4; }
.rl-nav-arrow { font-size: 10px; color: transparent; transition: color 0.18s, transform 0.18s; }

.rl-nav-btn:hover { background: var(--bg-light); }
.rl-nav-btn:hover::before { background: var(--border); }
.rl-nav-btn:hover .rl-nav-arrow { color: var(--muted); }

.rl-nav-btn.active {
    background: linear-gradient(135deg, var(--primary-d), var(--primary));
    color: #fff;
    box-shadow: 0 4px 13px rgba(21,102,183,0.25);
}
.rl-nav-btn.active::before { background: var(--gold); }
.rl-nav-btn.active > i:first-child { color: rgba(255,255,255,0.80); }
.rl-nav-btn.active .rl-nav-arrow { color: rgba(255,255,255,0.55); transform: translateX(2px); }

body.dark .rl-nav-btn { color: #94a3b8; }
body.dark .rl-nav-btn:hover { background: rgba(255,255,255,0.05); }
body.dark .rl-nav-btn.active { color: #fff; }

/* Info karta */
.rl-info-card {
    margin: 6px 10px 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--primary-d), var(--primary));
    border-radius: 14px;
}
.rl-info-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 8px; padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}
.rl-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.rl-info-lbl { font-family: sans-serif; font-size: 11px; color: rgba(255,255,255,0.58); flex-shrink: 0; }
.rl-info-val { font-family: sans-serif; font-size: 11.5px; font-weight: 600; color: #fff; text-align: right; line-height: 1.4; }
.rl-info-gold { color: var(--gold); }

/* ══════════════════════════════
   PANEL / CARD
══════════════════════════════ */
.rl-content { min-width: 0; }
.rl-panel { display: none; }
.rl-panel.active { display: block; animation: rlFadeIn 0.26s ease; }
@keyframes rlFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}

.rl-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 4px 22px rgba(21,102,183,0.07);
    overflow: hidden;
    margin-bottom: 18px;
}
body.dark .rl-card { background: #1a2740; border-color: rgba(255,255,255,0.07); }

.rl-card-header {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 26px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
    position: relative;
}
.rl-card-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
}
body.dark .rl-card-header { background: #111e33; border-color: rgba(255,255,255,0.07); }

.rl-card-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-d), var(--primary));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
    box-shadow: 0 4px 12px rgba(21,102,183,0.25);
}
.rl-card-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 18px; font-weight: 900;
    color: var(--primary-d); margin: 0 0 3px;
}
body.dark .rl-card-header h2 { color: #90caf9; }
.rl-card-header p { font-family: sans-serif; font-size: 12.5px; color: var(--muted); margin: 0; }

.rl-card-body { padding: 24px 26px; }

/* ══════════════════════════════
   HAQIDA — komponentlar
══════════════════════════════ */

/* Intro box */
.rl-intro-box {
    display: flex; gap: 16px; align-items: flex-start;
    background: linear-gradient(135deg, rgba(21,102,183,0.06), rgba(13,71,161,0.02));
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 26px;
}
.rl-intro-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-d), var(--primary));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px; margin-top: 2px;
}
.rl-intro-box p {
    font-family: 'Source Serif 4', serif;
    font-size: 13.5px; line-height: 1.80;
    color: var(--text); margin: 0;
}
body.dark .rl-intro-box { background: rgba(21,102,183,0.09); border-color: rgba(21,102,183,0.2); }
body.dark .rl-intro-box p { color: #cbd5e1; }

/* Bo'lim sarlavhasi */
.rl-sec-title {
    display: flex; align-items: center; gap: 9px;
    font-family: 'Playfair Display', serif;
    font-size: 14.5px; font-weight: 700;
    color: var(--primary-d);
    margin: 26px 0 13px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--border);
}
.rl-sec-title i { font-size: 12px; color: var(--primary); }
body.dark .rl-sec-title { color: #90caf9; border-color: rgba(255,255,255,0.08); }

/* Matn */
.rl-body-text {
    font-family: sans-serif; font-size: 13px;
    line-height: 1.78; color: var(--text); margin-bottom: 6px;
}
body.dark .rl-body-text { color: #cbd5e1; }

/* Hamkorlar 2-grid */
.rl-partners-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
    margin-bottom: 6px;
}
.rl-pgroup-lbl {
    font-family: 'Playfair Display', serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 9px; padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
}
body.dark .rl-pgroup-lbl { color: #475569; border-color: rgba(255,255,255,0.06); }

.rl-plist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.rl-plist li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 13px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 11px;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.rl-plist li:hover {
    border-color: rgba(21,102,183,0.22);
    box-shadow: 0 3px 10px rgba(21,102,183,0.08);
    transform: translateX(3px);
}
body.dark .rl-plist li { background: #111e33; border-color: rgba(255,255,255,0.06); }

/* Mamlakat rang-dot */
.rl-pdot {
    width: 26px; height: 26px; flex-shrink: 0;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: #fff; margin-top: 1px;
}
.rl-gr { background: var(--c-gr); }
.rl-it { background: var(--c-it); }
.rl-ro { background: var(--c-ro); }
.rl-tr { background: var(--c-tr); }
.rl-uz { background: var(--c-uz); }
.rl-kz { background: var(--c-kz); }
.rl-pdot-active { box-shadow: 0 0 0 2px var(--gold); }

.rl-pname  { font-family: sans-serif; font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 2px; line-height: 1.4; }
.rl-pcountry { font-family: sans-serif; font-size: 11px; color: var(--muted); }
body.dark .rl-pname { color: #e2e8f0; }

/* Byudjet bloki */
.rl-budget {
    display: flex; align-items: center; gap: 18px;
    margin-top: 26px; padding: 18px 22px;
    background: linear-gradient(135deg, var(--primary-d), var(--primary));
    border-radius: 16px; color: #fff;
}
.rl-budget-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--gold);
}
.rl-budget-lbl    { font-family: sans-serif; font-size: 12px; color: rgba(255,255,255,0.62); margin-bottom: 4px; }
.rl-budget-amount {
    font-family: 'Playfair Display', serif;
    font-size: 26px; font-weight: 900;
    color: var(--gold); line-height: 1;
}

/* ══════════════════════════════
   HAMKORLAR TAB
══════════════════════════════ */
.rl-country-block { margin-bottom: 22px; }
.rl-country-lbl {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 14.5px; font-weight: 700;
    color: var(--primary-d);
    margin-bottom: 10px; padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}
.rl-country-lbl > span:first-child { font-size: 17px; line-height: 1; }
body.dark .rl-country-lbl { color: #90caf9; border-color: rgba(255,255,255,0.08); }

.rl-hcards { display: flex; flex-direction: column; gap: 7px; }

.rl-hcard {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 15px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 13px;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.rl-hcard:hover {
    background: #fff;
    border-color: rgba(21,102,183,0.20);
    box-shadow: 0 4px 14px rgba(21,102,183,0.09);
    transform: translateX(3px);
}
.rl-hcard-highlight {
    border-color: rgba(255,213,79,0.45);
    background: rgba(255,213,79,0.05);
}
.rl-hcard-highlight:hover { border-color: rgba(255,213,79,0.65); }
body.dark .rl-hcard { background: #111e33; border-color: rgba(255,255,255,0.06); }

.rl-hcard-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: #fff;
}
.rl-bg-gr { background: var(--c-gr); }
.rl-bg-it { background: var(--c-it); }
.rl-bg-ro { background: var(--c-ro); }
.rl-bg-tr { background: var(--c-tr); }
.rl-bg-uz { background: var(--c-uz); }
.rl-bg-kz { background: var(--c-kz); }

.rl-hcard-name { font-family: sans-serif; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; line-height: 1.4; }
.rl-hcard-role { font-family: sans-serif; font-size: 11.5px; color: var(--muted); }
body.dark .rl-hcard-name { color: #e2e8f0; }

/* ══════════════════════════════
   TADBIRLAR TAB
══════════════════════════════ */
.rl-news-list { display: flex; flex-direction: column; gap: 8px; }

.rl-news-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 13px;
    text-decoration: none;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.rl-news-item:hover {
    background: #fff; text-decoration: none;
    border-color: rgba(21,102,183,0.20);
    box-shadow: 0 4px 14px rgba(21,102,183,0.10);
    transform: translateX(3px);
}
body.dark .rl-news-item { background: #111e33; border-color: rgba(255,255,255,0.06); }

.rl-news-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    background: rgba(21,102,183,0.10);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: var(--primary);
}
.rl-news-body {
    display: flex; align-items: center; flex: 1; gap: 10px;
}
.rl-news-title {
    flex: 1; font-family: sans-serif;
    font-size: 13px; font-weight: 500;
    color: var(--text); line-height: 1.5;
}
body.dark .rl-news-title { color: #e2e8f0; }
.rl-news-arrow {
    font-size: 12px; color: var(--primary);
    opacity: 0; flex-shrink: 0;
    transition: opacity 0.18s, transform 0.18s;
}
.rl-news-item:hover .rl-news-arrow { opacity: 1; transform: translateX(3px); }
/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
    .rl-layout { grid-template-columns: 215px 1fr; }
    .rl-partners-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .rl-header-grid { grid-template-columns: 1fr; }
    .rl-header-left { padding: 34px 0 22px; }
    .rl-header-stats {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.10);
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
    }
    .rl-stat { border-bottom: none; border-right: 1px solid rgba(255,255,255,0.07); padding: 14px 8px; }
    .rl-stat:last-child { border-right: none; }
    .rl-stat-num { font-size: 19px; }
}
@media (max-width: 768px) {
    .rl-layout { grid-template-columns: 1fr; }
    .rl-sidebar { position: static; }
    .rl-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .rl-nav-btn { padding: 9px 12px; font-size: 12px; }
    .rl-nav-btn span { display: none; }
    .rl-nav-btn > i:first-child { font-size: 15px; }
    .rl-nav-arrow { display: none; }
    .rl-card-body { padding: 17px 15px; }
    .rl-card-header { padding: 15px; }
    .rl-partners-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .rl-chips-row { gap: 5px; }
    .rl-chip { font-size: 10.5px; padding: 4px 10px; }
}