/* ================================================================
   UI GREENMETRIC SAHIFASI
   ================================================================ */

:root {
    --primary:   #1566B7;
    --primary-d: #0d47a1;
    --gold:      #FFD54F;
    --text:      #2c3e50;
    --muted:     #5f738c;
    --light-bg:  #f8faff;
    --border:    #e5efff;
    --dark-bg:   #0e1a2b;
}

/* ══════════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════════ */
.gm-header {
    background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 100%);
    padding: 64px 0 52px;
    position: relative;
    overflow: hidden;
}
.gm-header-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.gm-orb-1 { width: 360px; height: 360px; left: -100px; bottom: -100px; background: rgba(255,255,255,0.06); }
.gm-orb-2 { width: 480px; height: 480px; right: -140px; top: -140px; background: rgba(255,255,255,0.04); }
.gm-orb-3 { width: 180px; height: 180px; right: 15%; top: 20%; background: rgba(255,255,255,0.03); }
.gm-header::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0;
    width: 38%; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
    background: rgba(255,255,255,0.03); pointer-events: none;
}
.gm-header-inner { position: relative; z-index: 2; }

.gm-header .breadcrumb { background: none; padding: 0; margin-bottom: 20px; }
.gm-header .breadcrumb-item,
.gm-header .breadcrumb-item a { color: rgba(255,255,255,0.65); font-size: 13px; text-decoration: none; font-family: sans-serif; }
.gm-header .breadcrumb-item a:hover { color: var(--gold); }
.gm-header .breadcrumb-item.active { color: #fff; }
.gm-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.35); }

.gm-header-tag {
    display: inline-block; font-family: sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--gold); background: rgba(255,213,79,0.12);
    border: 1px solid rgba(255,213,79,0.25);
    padding: 5px 16px; border-radius: 20px; margin-bottom: 16px;
}
.gm-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 52px); font-weight: 900;
    color: #fff; line-height: 1.15; margin-bottom: 12px;
}
.gm-header h1 em { font-style: italic; color: var(--gold); }
.gm-header-sub {
    font-family: sans-serif; font-size: 15px; font-weight: 300;
    color: rgba(255,255,255,0.65); max-width: 560px; line-height: 1.7; margin-bottom: 28px;
}
.gm-header-badge {
    display: inline-flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 14px; padding: 13px 22px;
}
.gm-header-badge > i { font-size: 22px; color: var(--gold); flex-shrink: 0; }
.gm-badge-label {
    font-family: sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold); margin-bottom: 3px;
}
.gm-badge-text { font-family: sans-serif; font-size: 13px; color: rgba(255,255,255,0.88); }
body.dark .gm-header { background: linear-gradient(135deg, #060c18 0%, #0a1628 100%); }

/* ══════════════════════════════════════════
   SECTION
══════════════════════════════════════════ */
.gm-section { padding: 72px 0 88px; }
body.dark .gm-section { background: #0a1525; }

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
.gm-layout { display: flex; flex-direction: column; gap: 48px; }

/* ── RASM ── */
.gm-img-wrap {
    position: relative; border-radius: 20px; overflow: hidden;
    box-shadow: 0 12px 48px rgba(21,102,183,0.12);
    border: 1px solid var(--border);
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.gm-img-wrap.gm-visible { opacity: 1; transform: translateY(0); }
.gm-img-hidden { display: none !important; }
.gm-main-img { width: 100%; display: block; max-height: 480px; object-fit: cover; }
.gm-img-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(13,71,161,0.85) 0%, transparent 100%);
    padding: 24px 20px 14px;
    display: flex; align-items: center; gap: 10px;
    font-family: sans-serif; font-size: 13px; font-weight: 600;
    color: rgba(255,255,255,0.9); letter-spacing: 0.04em;
}
.gm-img-caption i { color: var(--gold); font-size: 15px; }

/* ── MAQOLA ── */
.gm-article { max-width: 820px; margin: 0 auto; }
.gm-article p, .gm-lead {
    font-family: 'Source Serif 4', serif;
    font-size: 18px; font-weight: 300;
    color: var(--muted); line-height: 1.95; margin-bottom: 22px;
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.gm-article p.gm-visible,
.gm-lead.gm-visible { opacity: 1; transform: translateY(0); }
.gm-lead { font-size: 18px; font-weight: 400; color: var(--text); }
body.dark .gm-article p { color: #94a3b8; }
body.dark .gm-lead { color: #cbd5e1; }

/* ══════════════════════════════════════════
   REKTORLAR XRONOLOGIYASI
══════════════════════════════════════════ */
.gm-timeline {
    margin: 40px 0;
    display: flex; flex-direction: column;
    border-left: 2px solid var(--border);
    position: relative;
}
body.dark .gm-timeline { border-color: rgba(255,255,255,0.08); }

.gm-tl-item {
    display: flex; position: relative;
    padding-left: 40px; padding-bottom: 36px;
    opacity: 0; transform: translateX(-12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.gm-tl-item.gm-visible { opacity: 1; transform: translateX(0); }
.gm-tl-item:last-child { padding-bottom: 0; }

.gm-tl-item::before {
    content: ''; position: absolute;
    left: -7px; top: 6px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--border); border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--border);
}
body.dark .gm-tl-item::before { border-color: #0a1525; }
.gm-tl-current::before {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(21,102,183,0.25);
    width: 14px; height: 14px; left: -8px;
}

.gm-tl-year {
    font-family: 'Playfair Display', serif;
    font-size: 15px; font-weight: 900;
    color: var(--primary); letter-spacing: 0.04em;
    min-width: 44px; flex-shrink: 0; margin-top: 2px;
}
.gm-tl-body {
    background: var(--light-bg); border: 1px solid var(--border);
    border-radius: 16px; padding: 20px 24px; flex: 1;
    transition: box-shadow 0.25s, border-color 0.25s;
}
.gm-tl-body:hover {
    box-shadow: 0 6px 24px rgba(21,102,183,0.1);
    border-color: rgba(21,102,183,0.3);
}
body.dark .gm-tl-body { background: #1a2740; border-color: rgba(255,255,255,0.07); }
.gm-tl-current .gm-tl-body { border-color: var(--primary); background: rgba(21,102,183,0.05); }
body.dark .gm-tl-current .gm-tl-body { background: rgba(21,102,183,0.12); border-color: rgba(21,102,183,0.4); }

.gm-tl-body h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px; font-weight: 700; color: var(--dark-bg); margin-bottom: 8px;
}
body.dark .gm-tl-body h4 { color: #e2e8f0; }
.gm-tl-body p {
    margin-bottom: 0 !important; opacity: 1 !important; transform: none !important;
    font-size: 16px; line-height: 1.75;
}

/* ══════════════════════════════════════════
   RAQAMLAR — STATS ROW
══════════════════════════════════════════ */
.gm-stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: var(--border);
    border: 1px solid var(--border); border-radius: 18px;
    overflow: hidden; margin: 36px 0;
}
body.dark .gm-stats-row { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
.gm-sr-item {
    background: #fff; padding: 28px 20px;
    text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
    opacity: 0; transform: scale(0.94);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.gm-sr-item.gm-visible { opacity: 1; transform: scale(1); }
body.dark .gm-sr-item { background: #111e33; }
.gm-sr-num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 48px); font-weight: 900;
    color: var(--primary); letter-spacing: -0.03em; line-height: 1; display: block;
}
.gm-sr-label {
    font-family: sans-serif; font-size: 11px; font-weight: 500;
    color: var(--muted); line-height: 1.4; display: block;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 768px) {
    .gm-section { padding: 52px 0 64px; }
    .gm-stats-row { grid-template-columns: 1fr 1fr; }
    .gm-tl-item { padding-left: 28px; }
    .gm-lead { font-size: 16px; }
}
@media (max-width: 480px) {
    .gm-stats-row { grid-template-columns: 1fr 1fr; }
    .gm-header h1 { font-size: 30px; }
}