/* ═══════════════════════════════════════════════════════════
   callcenter.css  —  REILEAP dizayn tizimi bilan mos
   --primary #1566B7 / --primary-d #0d47a1 / --gold #FFD54F
   Playfair Display + Source Serif 4
   ═══════════════════════════════════════════════════════════ */
:root {
    --primary:   #1566B7;
    --primary-d: #0d47a1;
    --gold:      #FFD54F;
    --text:      #2c3e50;
    --muted:     #5f738c;
    --bg-light:  #f8faff;
    --border:    #e5efff;
    --radius:    16px;
}
body.dark {
    --text:     #c8d8ec;
    --muted:    #6b88a8;
    --bg-light: #0a1525;
    --border:   rgba(255,255,255,0.07);
}

/* ══════════════════════════════
   HEADER  (rl-header uslubida)
══════════════════════════════ */
.cc-header {
    background: linear-gradient(135deg, var(--primary-d) 0%, #1258a8 55%, var(--primary) 100%);
    position: relative; overflow: hidden;
    padding: 50px 0 44px;
}
.cc-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 orb lar */
.cc-orb {
    position: absolute; border-radius: 50%; pointer-events: none;
}
.cc-orb-1 { width: 380px; height: 380px; left: -80px;  bottom: -120px; background: rgba(255,255,255,0.03); }
.cc-orb-2 { width: 240px; height: 240px; right: 12%;   top: -70px;     background: rgba(255,255,255,0.04); }
.cc-orb-3 { width: 120px; height: 120px; right: 3%;    bottom: 10px;   background: rgba(255,213,79,0.07); }

.cc-header-inner { position: relative; z-index: 2; }
body.dark .cc-header { background: linear-gradient(135deg, #060c18 0%, #0a1628 100%); }

/* Breadcrumb */
.cc-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; color: rgba(255,255,255,0.5);
    margin-bottom: 18px; letter-spacing: 0.3px;
}
.cc-breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.cc-breadcrumb a:hover { color: var(--gold); }

/* Badge */
.cc-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; margin-bottom: 14px;
    color: rgba(255,255,255,0.80);
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
}

/* H1 */
.cc-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 900; color: #fff;
    line-height: 1.2; margin-bottom: 10px;
}
.cc-header h1 em { font-style: italic; color: var(--gold); }

.cc-header-sub {
    font-family: 'Source Serif 4', serif;
    font-size: 13.5px; font-weight: 300;
    color: rgba(255,255,255,0.56);
    line-height: 1.75; max-width: 560px;
    margin: 0 0 22px;
}

/* Ish vaqti chipi qatori  */
.cc-schedule-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-schedule-chip {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 20px; padding: 5px 13px;
    font-size: 12px; color: rgba(255,255,255,0.80);
}
.cc-schedule-chip i { color: var(--gold); font-size: 12px; }
.cc-schedule-chip strong { color: #fff; }

/* ══════════════════════════════
   FILTER BAR — sticky
══════════════════════════════ */
.cc-filter-wrap {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 13px 0;
    transition: box-shadow 0.3s;
}
.cc-filter-wrap.scrolled { box-shadow: 0 4px 20px rgba(10,20,40,0.10); }

.cc-filter-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.cc-search { flex: 1; min-width: 220px; max-width: 340px; position: relative; }
.cc-search i {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-size: 13px;
}
.cc-search input {
    width: 100%; padding: 9px 13px 9px 36px;
    border: 1px solid var(--border); border-radius: 10px;
    background: #fff; color: var(--text);
    font-size: 13px; outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
body.dark .cc-search input { background: #1a2740; }
.cc-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,102,183,0.12); }
.cc-search input::placeholder { color: var(--muted); }

/* Filter chips — rl-badge uslubida */
.cc-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.cc-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 13px; border-radius: 20px;
    font-size: 11.5px; font-weight: 600;
    border: 1px solid var(--border);
    background: #fff; color: var(--muted);
    cursor: pointer; white-space: nowrap;
    transition: all 0.18s;
}
body.dark .cc-chip { background: #1a2740; }
.cc-chip:hover { border-color: var(--primary); color: var(--primary); }
.cc-chip.active {
    background: linear-gradient(135deg, var(--primary-d), var(--primary));
    color: #fff; border-color: transparent;
    box-shadow: 0 3px 10px rgba(21,102,183,0.25);
}

/* ══════════════════════════════
   ASOSIY QISM
══════════════════════════════ */
.cc-section { background: var(--bg-light); padding: 38px 0 64px; }

/* Bo'lim sarlavhasi — rl-sec-title uslubida */
.cc-group { margin-bottom: 34px; }
.cc-group-header {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.cc-group-icon {
    width: 42px; height: 42px; 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: 16px;
    box-shadow: 0 4px 12px rgba(21,102,183,0.28);
}
.cc-group-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px; font-weight: 700;
    color: var(--primary-d); line-height: 1.3; flex: 1;
}
body.dark .cc-group-title { color: #90caf9; }
.cc-group-count {
    margin-left: auto;
    font-size: 11px; font-weight: 700;
    color: var(--primary);
    background: rgba(21,102,183,0.10);
    border: 1px solid rgba(21,102,183,0.18);
    padding: 3px 11px; border-radius: 20px;
}

/* ── Karta grid ── */
.cc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
    gap: 13px;
}

/* ── Kontakt karta — rl-hcard uslubida ── */
.cc-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 17px 19px;
    display: flex; flex-direction: column; gap: 9px;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
    position: relative; overflow: hidden;
}
body.dark .cc-card { background: #1a2740; border-color: rgba(255,255,255,0.07); }
.cc-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    opacity: 0; transition: opacity 0.18s;
}
.cc-card:hover {
    background: #fff; border-color: rgba(21,102,183,0.22);
    box-shadow: 0 4px 18px rgba(21,102,183,0.10);
    transform: translateY(-2px);
}
.cc-card:hover::before { opacity: 1; }

.cc-card-num {
    position: absolute; top: 13px; right: 15px;
    font-size: 10px; font-weight: 700; color: var(--muted);
    background: rgba(21,102,183,0.08);
    padding: 2px 8px; border-radius: 7px;
}
.cc-card-name {
    font-family: 'Source Serif 4', serif;
    font-size: 14.5px; font-weight: 600;
    color: var(--text); line-height: 1.4;
    padding-right: 38px;
}
.cc-card-post {
    display: inline-block; align-self: flex-start;
    font-size: 11px; font-weight: 600;
    color: var(--primary);
    background: rgba(21,102,183,0.08);
    border: 1px solid rgba(21,102,183,0.14);
    border-radius: 8px; padding: 3px 10px;
}
.cc-card-divider { height: 1px; background: var(--border); margin: 1px 0; }
.cc-card-contacts { display: flex; flex-direction: column; gap: 5px; }
.cc-card-contact {
    display: flex; align-items: center; gap: 9px;
    font-size: 12.5px; color: var(--text); text-decoration: none;
    transition: color 0.18s;
}
a.cc-card-contact:hover { color: var(--primary); }
.cc-card-contact i {
    width: 26px; height: 26px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; flex-shrink: 0;
}
.cc-card-contact.tel  i { background: #e8f5e9; color: #388e3c; }
.cc-card-contact.tel2 i { background: rgba(21,102,183,0.10); color: var(--primary); }
.cc-card-contact.fax  i { background: #fce4ec; color: #c2185b; }
.cc-card-contact.email i{ background: rgba(21,102,183,0.10); color: var(--primary); }
.cc-card-contact.tg   i { background: #e3f2fd; color: #0088cc; }
body.dark .cc-card-contact.tel  i { background: rgba(56,142,60,0.15); }
body.dark .cc-card-contact.tel2 i { background: rgba(21,102,183,0.18); }
body.dark .cc-card-contact.fax  i { background: rgba(194,24,91,0.15); }
body.dark .cc-card-contact.tg   i { background: rgba(0,136,204,0.15); }

/* ── Qabul komissiya — katta karta ── */
.cc-komissia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 13px;
}
.cc-komissia-card {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 20px;
    display: flex; flex-direction: column; gap: 8px;
    box-shadow: 0 4px 18px rgba(21,102,183,0.06);
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
    position: relative; overflow: hidden;
}
.cc-komissia-card::after {
    content: ''; position: absolute;
    top: 0; right: 0;
    width: 60px; height: 60px;
    background: radial-gradient(circle at top right, rgba(255,213,79,0.12), transparent 70%);
}
body.dark .cc-komissia-card { background: #1a2740; border-color: rgba(255,255,255,0.07); border-top-color: var(--primary); }
.cc-komissia-card:hover {
    box-shadow: 0 6px 24px rgba(21,102,183,0.14);
    border-color: rgba(21,102,183,0.30);
    transform: translateY(-2px);
}
.cc-komissia-role {
    font-size: 10px; font-weight: 700;
    color: var(--primary); letter-spacing: 1px; text-transform: uppercase;
}
.cc-komissia-name {
    font-family: 'Source Serif 4', serif;
    font-size: 13.5px; font-weight: 600;
    color: var(--text); line-height: 1.4;
}
body.dark .cc-komissia-name { color: #e2e8f0; }
.cc-komissia-divider { height: 1px; background: var(--border); margin: 3px 0; }
.cc-komissia-contacts { display: flex; flex-direction: column; gap: 6px; }
.cc-komissia-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--muted);
}
.cc-komissia-row i {
    width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    background: rgba(21,102,183,0.08); color: var(--primary);
}

/* Search hidden */
.cc-card.hidden, .cc-komissia-card.hidden { display: none; }

/* No result */
.cc-no-result {
    text-align: center; padding: 64px 20px;
    color: var(--muted); font-size: 13.5px; display: none;
}
.cc-no-result i { font-size: 34px; display: block; margin-bottom: 12px; opacity: 0.35; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 768px) {
    .cc-header { padding: 36px 0 28px; }
    .cc-cards { grid-template-columns: 1fr 1fr; }
    .cc-komissia-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .cc-cards { grid-template-columns: 1fr; }
}