/* ============================================================
   FAQ Page Styles
   ============================================================ */

.faq-page {
    background: #f7f7f7;
    min-height: 80vh;
}

/* Hero */
.faq-hero {
    background: var(--primary);
    padding: 52px 0 40px;
    text-align: center;
}
.faq-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.faq-hero-subtitle {
    color: #aaa;
    font-size: 1rem;
    margin: 0;
}

/* Layout */
.faq-container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 36px;
    padding-top: 36px;
    padding-bottom: 60px;
    align-items: start;
}

/* Sidebar */
.faq-sidebar {
    position: sticky;
    top: 80px;
}
.faq-nav {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.faq-nav-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin: 0 0 12px;
}
.faq-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.faq-nav-list li + li {
    margin-top: 2px;
}
.faq-nav-link {
    display: block;
    padding: 7px 10px;
    border-radius: 5px;
    font-size: 0.88rem;
    color: #444;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.faq-nav-link:hover,
.faq-nav-link.active {
    background: #fff3eb;
    color: #f47321;
    font-weight: 600;
}
.faq-print-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 9px 12px;
    background: #f47321;
    color: #fff;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
    justify-content: center;
}
.faq-print-btn:hover {
    background: #d4611a;
    color: #fff;
}

/* Sections */
.faq-section {
    margin-bottom: 40px;
}
.faq-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.faq-section-title i {
    color: #f47321;
    font-size: 1rem;
}

/* FAQ items */
.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    overflow: hidden;
    border: 1px solid #eee;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 20px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
}
.faq-question:hover {
    background: #fafafa;
}
.faq-item.open .faq-question {
    color: #f47321;
    background: #fff8f4;
}
.faq-chevron {
    font-size: 0.75rem;
    color: #aaa;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: #f47321;
}
.faq-answer {
    display: none;
    padding: 0 20px 18px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    border-top: 1px solid #f3f3f3;
}
.faq-item.open .faq-answer {
    display: block;
}
.faq-answer p {
    margin: 12px 0 0;
}
.faq-answer p:first-child {
    margin-top: 12px;
}
.faq-answer ul {
    margin: 10px 0 0 20px;
    padding: 0;
}
.faq-answer ul li {
    margin-bottom: 5px;
}
.faq-answer a {
    color: #f47321;
    text-decoration: none;
}
.faq-answer a:hover {
    text-decoration: underline;
}

/* Table inside answers */
.faq-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 0.85rem;
}
.faq-table th {
    background: #f5f5f5;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}
.faq-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}
.faq-table tr:last-child td {
    border-bottom: none;
}
.faq-table tr:hover td {
    background: #fafafa;
}

/* Doc link inside answer */
.faq-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 7px 14px;
    background: #fff3eb;
    color: #f47321;
    border-radius: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #f7c9a8;
    transition: background 0.15s;
}
.faq-doc-link:hover {
    background: #ffe8d4;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-container {
        grid-template-columns: 1fr;
    }
    .faq-sidebar {
        position: static;
    }
    .faq-hero-title {
        font-size: 1.5rem;
    }
}

/* Print */
@media print {
    .faq-sidebar,
    .faq-hero,
    header,
    footer,
    .live-scores-panel {
        display: none !important;
    }
    .faq-container {
        grid-template-columns: 1fr;
        padding: 0;
    }
    .faq-answer {
        display: block !important;
    }
    .faq-item {
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 12px;
        page-break-inside: avoid;
    }
    .faq-chevron { display: none; }
    body { font-size: 11pt; }
}
