/**
 * TENDER84 V5 — Sector Content Enrichment Styles
 * Loaded on all sector pages (L2/L3/L4) via sector-content.php
 * Design: card-based KPIs, department/state link lists, related sector grid,
 *         lead CTA banner, FAQ accordion
 * v1.0 — 2026-08-06
 */

/* ── Container ─────────────────────────────────────────── */
.sc-zone {
    max-width: var(--max-width-page, 1280px);
    margin: 0 auto;
    padding: 4px 16px;
}
.sc-zone + .sc-zone { margin-top: 2px; }

/* ── Collapsible Details Accordion ─────────────────────── */
.sc-details {
    max-width: var(--max-width-page, 1280px);
    margin: 12px auto;
    padding: 0 16px;
    border: none;
}
.sc-details-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sc-details-summary::-webkit-details-marker { display: none; }
.sc-details-summary:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sc-details[open] .sc-details-summary {
    border-radius: 10px 10px 0 0;
    border-bottom: none;
    background: #f8fafc;
}
.sc-details-icon {
    font-size: 1rem;
}
.sc-details-arrow {
    margin-left: auto;
    font-size: 0.8rem;
    color: #94a3b8;
    transition: transform 0.2s;
}
.sc-details[open] .sc-details-arrow {
    transform: rotate(90deg);
}
.sc-details .sc-zone {
    margin-top: 0;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

/* ── Zone ② Description ────────────────────────────────── */
.sc-desc-text {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
    padding: 4px 0 2px;
}

/* ── Zone ③ Stats Row ─────────────────────────────────── */
.sc-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 2px 0;
}
.sc-stat-card {
    flex: 1 1 130px;
    min-width: 110px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.sc-stat-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}
.sc-stat-icon {
    font-size: 1.1rem;
    margin-bottom: 2px;
}
.sc-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.sc-stat-label {
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

/* ── Zone ④ Departments & States ───────────────────────── */
.sc-zone-depts {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.sc-dept-col {
    flex: 1 1 280px;
    min-width: 240px;
}
.sc-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}
.sc-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sc-link-list li {
    margin-bottom: 6px;
}
.sc-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: all 0.15s;
}
.sc-link:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    text-decoration: none;
}
.sc-link-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e40af;
}
.sc-link-count {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 8px;
}

/* ── Zone ⑤ Related Sectors ────────────────────────────── */
.sc-related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.sc-related-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s;
    flex: 1 1 160px;
    min-width: 140px;
}
.sc-related-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-color: #93c5fd;
    text-decoration: none;
    transform: translateY(-1px);
}
.sc-related-arrow {
    font-size: 0.8rem;
}
.sc-related-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}
.sc-related-meta {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
}

/* ── Zone ⑥ Lead CTA ───────────────────────────────────── */
.sc-zone-cta {
    max-width: var(--max-width-page, 1280px);
    margin: 16px auto;
    padding: 0 16px;
}
.sc-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-radius: 8px;
}
.sc-cta-text {
    flex: 1 1 240px;
    min-width: 200px;
}
.sc-cta-text strong {
    display: block;
    font-size: 0.95rem;
    color: #1e40af;
    margin-bottom: 2px;
}
.sc-cta-text span {
    font-size: 0.8rem;
    color: #64748b;
}
.sc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s;
}
.sc-cta-wa {
    background: #25d366;
    color: #fff;
}
.sc-cta-wa:hover {
    background: #20bd5a;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37,211,102,0.3);
}
.sc-cta-tg {
    background: #0088cc;
    color: #fff;
}
.sc-cta-tg:hover {
    background: #0077b3;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,136,204,0.3);
}

/* ── Zone ⑦ FAQ ────────────────────────────────────────── */
.sc-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sc-faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.sc-faq-item[open] {
    border-color: #93c5fd;
}
.sc-faq-item summary {
    padding: 14px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.sc-faq-item summary::-webkit-details-marker { display: none; }
.sc-faq-item summary::after {
    content: '+';
    font-size: 1.1rem;
    font-weight: 700;
    color: #94a3b8;
    margin-left: 12px;
    transition: transform 0.2s;
}
.sc-faq-item[open] summary::after {
    content: '−';
    transform: rotate(0deg);
}
.sc-faq-item summary:hover {
    background: #f8fafc;
}
.sc-faq-answer {
    padding: 0 18px 14px;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.6;
}
.sc-faq-answer p {
    margin: 0;
}
.sc-faq-answer a {
    color: #2563eb;
    font-weight: 500;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    .sc-stats-row {
        gap: 8px;
    }
    .sc-stat-card {
        flex: 1 1 100px;
        min-width: 90px;
        padding: 10px 12px;
    }
    .sc-stat-value {
        font-size: 1.05rem;
    }
    .sc-dept-col {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .sc-related-card {
        flex: 1 1 100%;
    }
    .sc-cta-inner {
        flex-direction: column;
        text-align: center;
    }
    .sc-cta-btn {
        width: 100%;
        justify-content: center;
    }
}
