/* ================================================================
   DEBSEUz SAHIFASI  —  /user/css/debse.css
   ================================================================ */

:root {
    --primary:   #1566B7;
    --primary-d: #0d47a1;
    --gold:      #FFD54F;
    --text:      #2c3e50;
    --muted:     #5f738c;
    --light-bg:  #f8faff;
    --border:    #e5efff;
    --dark-bg:   #0e1a2b;
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.debse-header {
    background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 100%);
    padding: 60px 0 48px;
    position: relative;
    overflow: hidden;
}

.debse-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.debse-orb-1 { width: 400px; height: 400px; left: -120px; bottom: -120px; background: rgba(255,255,255,0.05); }
.debse-orb-2 { width: 500px; height: 500px; right: -150px; top: -150px; background: rgba(255,255,255,0.04); }
.debse-orb-3 { width: 200px; height: 200px; right: 18%; top: 18%; background: rgba(255,255,255,0.03); }

.debse-header::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0;
    width: 36%; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
    background: rgba(255,255,255,0.03); pointer-events: none;
}

.debse-header-inner { position: relative; z-index: 2; }

/* Breadcrumb */
.debse-header .breadcrumb { background: none; padding: 0; margin-bottom: 18px; }
.debse-header .breadcrumb-item,
.debse-header .breadcrumb-item a {
    color: rgba(255,255,255,0.6); font-size: 13px;
    text-decoration: none; font-family: sans-serif;
}
.debse-header .breadcrumb-item a:hover { color: var(--gold); }
.debse-header .breadcrumb-item.active { color: #fff; }
.debse-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* Tags */
.debse-header-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.debse-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 1.8px; text-transform: uppercase;
    color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 14px; border-radius: 20px;
}
.debse-tag-gold { color: var(--gold); background: rgba(255,213,79,0.12); border-color: rgba(255,213,79,0.25); }

/* Heading */
.debse-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 6vw, 58px); font-weight: 900;
    color: #fff; line-height: 1.1; margin-bottom: 8px;
}
.debse-header h1 em { font-style: italic; color: var(--gold); }
.debse-h1-sub {
    font-family: sans-serif; font-size: 18px; font-weight: 300;
    color: rgba(255,255,255,0.55); margin-left: 8px; vertical-align: middle;
}
.debse-header-sub {
    font-family: sans-serif; font-size: 13px; font-weight: 400;
    color: rgba(255,255,255,0.55); max-width: 600px;
    line-height: 1.6; margin-bottom: 28px; font-style: italic;
}

/* Partners strip */
.debse-partners-strip {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0;
    background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px; padding: 0; overflow: hidden;
}
.debse-partner-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 3px; padding: 14px 22px;
    font-family: sans-serif;
}
.debse-partner-item i { color: var(--gold); font-size: 16px; }
.debse-partner-item span { font-size: 12px; font-weight: 600; color: #fff; }
.debse-partner-item small { font-size: 10px; color: rgba(255,255,255,0.5); }
.debse-partner-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.15); flex-shrink: 0; }

body.dark .debse-header { background: linear-gradient(135deg, #060c18 0%, #0a1628 100%); }

/* ══════════════════════════════════════════
   SECTION
══════════════════════════════════════════ */
.debse-section { padding: 64px 0 88px; }
body.dark .debse-section { background: #0a1525; }

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
.debse-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
.debse-sidebar {
    position: sticky;
    top: 90px;
}

.debse-sidebar-title {
    font-family: sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--muted); margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
}

.debse-sidenav {
    display: flex; flex-direction: column; gap: 4px;
    margin-bottom: 20px;
}

.debse-sidelink {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px; border-radius: 12px;
    font-family: sans-serif; font-size: 13px; font-weight: 500;
    color: var(--muted); text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.debse-sidelink i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.debse-sidelink:hover {
    background: var(--light-bg);
    color: var(--primary);
    border-color: var(--border);
}
.debse-sidelink.active {
    background: rgba(21,102,183,0.08);
    color: var(--primary);
    border-color: rgba(21,102,183,0.2);
    font-weight: 600;
}
body.dark .debse-sidelink { color: #94a3b8; }
body.dark .debse-sidelink.active { background: rgba(21,102,183,0.2); color: #90caf9; }
body.dark .debse-sidelink:hover  { background: rgba(255,255,255,0.05); color: #e2e8f0; }

/* Info card */
.debse-info-card {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 18px 16px;
}
.debse-info-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(21,102,183,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 16px; margin-bottom: 12px;
}
.debse-info-label {
    font-family: sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--muted); margin-bottom: 2px;
}
.debse-info-val {
    font-family: sans-serif; font-size: 13px; font-weight: 600;
    color: var(--text);
}
body.dark .debse-info-card { background: #1a2740; border-color: rgba(255,255,255,0.07); }
body.dark .debse-info-val  { color: #e2e8f0; }

/* ══════════════════════════════════════════
   CONTENT PANELS
══════════════════════════════════════════ */
.debse-panel { display: none; }
.debse-panel.active { display: block; }

.debse-panel-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}
.debse-panel-header i {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(21,102,183,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 18px; flex-shrink: 0;
}
.debse-panel-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-weight: 700; color: var(--dark-bg); margin: 0;
}
body.dark .debse-panel-header h2 { color: #e2e8f0; }
body.dark .debse-panel-header { border-color: rgba(255,255,255,0.08); }

/* ══════════════════════════════════════════
   ARTICLE CARD (haqida tab)
══════════════════════════════════════════ */
.debse-article-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 32px 28px;
    margin-bottom: 24px;
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.debse-article-card.debse-visible { opacity: 1; transform: translateY(0); }
body.dark .debse-article-card { background: #1a2740; border-color: rgba(255,255,255,0.07); }

.debse-article-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 1.8px; text-transform: uppercase;
    color: var(--primary); background: rgba(21,102,183,0.08);
    border: 1px solid rgba(21,102,183,0.15);
    padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
}
.debse-article-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px; font-weight: 700; color: var(--dark-bg);
    line-height: 1.4; margin-bottom: 16px;
}
body.dark .debse-article-title { color: #e2e8f0; }
.debse-article-lead {
    font-family: 'Source Serif 4', serif;
    font-size: 16px; font-weight: 400; color: var(--text);
    line-height: 1.85; margin-bottom: 16px;
}
.debse-article-body {
    font-family: 'Source Serif 4', serif;
    font-size: 15px; font-weight: 300; color: var(--muted);
    line-height: 1.9; margin-bottom: 14px;
}
.debse-article-body em { color: var(--primary); font-style: italic; }
.debse-article-body:last-child { margin-bottom: 0; }
body.dark .debse-article-lead { color: #cbd5e1; }
body.dark .debse-article-body { color: #94a3b8; }

/* Photo grid */
.debse-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
}
.debse-photo-wrap {
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(21,102,183,0.08);
    opacity: 0; transform: scale(0.97);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.debse-photo-wrap.debse-visible { opacity: 1; transform: scale(1); }
.debse-photo-wrap img {
    width: 100%; height: 220px;
    object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.debse-photo-wrap:hover img { transform: scale(1.04); }

/* ══════════════════════════════════════════
   STATS ROW
══════════════════════════════════════════ */
.debse-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;
}
body.dark .debse-stats-row { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
.debse-stat-item {
    background: #fff; padding: 26px 18px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    opacity: 0; transform: scale(0.94);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.debse-stat-item.debse-visible { opacity: 1; transform: scale(1); }
body.dark .debse-stat-item { background: #111e33; }
.debse-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 3.5vw, 42px); font-weight: 900;
    color: var(--primary); letter-spacing: -0.02em; line-height: 1;
}
.debse-stat-label {
    font-family: sans-serif; font-size: 11px; font-weight: 500;
    color: var(--muted); line-height: 1.4;
}

/* ══════════════════════════════════════════
   NEWS LIST (tadbirlar tab)
══════════════════════════════════════════ */
.debse-news-list {
    display: flex; flex-direction: column; gap: 8px;
}
.debse-news-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; border-radius: 14px;
    background: #fff; border: 1px solid var(--border);
    text-decoration: none; color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    opacity: 0; transform: translateX(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease,
    box-shadow 0.2s, border-color 0.2s;
}
.debse-news-item.debse-visible { opacity: 1; transform: translateX(0); }
.debse-news-item:hover {
    box-shadow: 0 6px 24px rgba(21,102,183,0.1);
    border-color: rgba(21,102,183,0.25);
    transform: translateX(4px) !important;
}
body.dark .debse-news-item { background: #1a2740; border-color: rgba(255,255,255,0.07); }

.debse-news-icon {
    width: 40px; height: 40px; border-radius: 11px;
    background: rgba(21,102,183,0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 16px; flex-shrink: 0;
}
.debse-news-body { flex: 1; min-width: 0; }
.debse-news-title {
    font-family: sans-serif; font-size: 14px; font-weight: 600;
    color: var(--text); line-height: 1.4;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.debse-news-source {
    font-family: sans-serif; font-size: 11px; color: var(--muted);
    margin-top: 3px; display: flex; align-items: center; gap: 4px;
}
.debse-news-arrow {
    color: var(--border); font-size: 13px; flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}
.debse-news-item:hover .debse-news-arrow {
    color: var(--primary); transform: translateX(3px);
}
body.dark .debse-news-title { color: #e2e8f0; }

/* ══════════════════════════════════════════
   GURUH TAB
══════════════════════════════════════════ */
.debse-guruh-img-wrap {
    position: relative; border-radius: 18px; overflow: hidden;
    border: 1px solid var(--border); margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(21,102,183,0.1);
}
.debse-img-hidden { display: none !important; }
.debse-guruh-img { width: 100%; display: block; max-height: 600px; object-fit: cover; }
.debse-guruh-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(13,71,161,0.8) 0%, transparent 100%);
    padding: 22px 18px 12px;
    display: flex; align-items: center; gap: 8px;
    font-family: sans-serif; font-size: 13px; font-weight: 600;
    color: rgba(255,255,255,0.9);
}
.debse-guruh-caption i { color: var(--gold); }

.debse-members-title {
    font-family: sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--muted); margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
}
.debse-members-title::before {
    content: ''; display: block; width: 16px; height: 2px;
    background: var(--primary); border-radius: 2px;
}

.debse-members-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.debse-member-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 16px; padding: 20px;
    display: flex; align-items: flex-start; gap: 14px;
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.debse-member-card.debse-visible { opacity: 1; transform: translateY(0); }
.debse-member-card:hover {
    box-shadow: 0 6px 20px rgba(21,102,183,0.1);
    border-color: rgba(21,102,183,0.25);
}
body.dark .debse-member-card { background: #1a2740; border-color: rgba(255,255,255,0.07); }

.debse-member-avatar {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(21,102,183,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 20px; flex-shrink: 0;
}
.debse-member-name {
    font-family: sans-serif; font-size: 14px; font-weight: 700;
    color: var(--text); margin-bottom: 3px;
}
.debse-member-role {
    font-family: sans-serif; font-size: 12px; font-weight: 600;
    color: var(--primary); margin-bottom: 2px;
}
.debse-member-degree {
    font-family: sans-serif; font-size: 11px; color: var(--muted);
    line-height: 1.4;
}
body.dark .debse-member-name { color: #e2e8f0; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 992px) {
    .debse-layout {
        grid-template-columns: 1fr;
    }
    .debse-sidebar {
        position: static;
    }
    .debse-sidenav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .debse-sidelink { flex: 1; min-width: 120px; justify-content: center; }
    .debse-info-card { display: none; }
}
@media (max-width: 768px) {
    .debse-stats-row { grid-template-columns: 1fr 1fr; }
    .debse-photo-grid { grid-template-columns: 1fr; }
    .debse-members-grid { grid-template-columns: 1fr; }
    .debse-partners-strip { display: none; }
    .debse-article-card { padding: 22px 18px; }
    .debse-section { padding: 40px 0 64px; }
}
@media (max-width: 480px) {
    .debse-header h1 { font-size: 34px; }
    .debse-stats-row { grid-template-columns: 1fr 1fr; }
    .debse-news-title { font-size: 13px; }
}