/* ==========================================================================
   Lucent University - Frequently Asked Questions (FAQ) REDESIGN
   File: css/faq.css
   Aesthetics: Premium Light Mode & Apple Glassmorphism
   ========================================================================== */

body.page-faq {
    --bg-body: #f5f5f7;               /* Off-white Apple style */
    --text-primary: #1d1d1f;          /* Crisp dark charcoal text */
    --text-secondary: #515154;        /* Elegant gray text */
    --accent-blue: #0071e3;           /* Primary brand blue */
    --accent-blue-hover: #005bb5;     /* Blue hover state */
    --accent-faq: #0891b2;            /* Teal highlights */
    --accent-faq-light: #06b6d4;
    --grad-faq: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
    --card-hover-bg: rgba(255, 255, 255, 0.9);
    --card-hover-border: rgba(0, 113, 227, 0.3);
}

/* ==========================================================================
   Liquid Canvas & Glowing Nebula Orbs (Soft Pastels)
   ========================================================================== */
body.page-faq .liquid-canvas {
    background: #f5f5f7 !important;
    z-index: -2 !important;
}

body.page-faq .orb {
    filter: blur(100px) !important;
    opacity: 0.22 !important;
}

body.page-faq .orb-1 {
    background: radial-gradient(circle, #a78bfa 0%, #e0e7ff 70%, transparent 100%) !important;
}

body.page-faq .orb-2 {
    background: radial-gradient(circle, #fbcfe8 0%, #f472b6 70%, transparent 100%) !important;
}

body.page-faq .orb-3 {
    background: radial-gradient(circle, #bae6fd 0%, #67e8f9 70%, transparent 100%) !important;
}

/* ==========================================================================
   Hero Section (Dark Space Contrast - Identical to Homepage Hero)
   ========================================================================== */
body.page-faq .hero {
    background: 
        radial-gradient(ellipse 80% 70% at 50% 120%, rgba(8, 145, 178, 0.25) 0%, rgba(6, 100, 130, 0.1) 50%, transparent 75%),
        linear-gradient(to bottom, #000000 0%, #021a25 50%, #052636 100%) !important;
    background-color: #000305 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 180px 0 110px !important;
    color: #ffffff !important;
}

body.page-faq .hero-text .eyebrow {
    color: #67e8f9 !important;
    font-size: 13px !important;
}

body.page-faq .hero-text .eyebrow::before {
    background: #67e8f9 !important;
}

body.page-faq .hero-text h1 {
    font-size: clamp(38px, 5.5vw, 68px) !important;
    letter-spacing: -0.03em !important;
    line-height: 1.08 !important;
    color: #ffffff !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    margin-bottom: 24px !important;
}

body.page-faq .hero-text .lead {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 19px !important;
    line-height: 1.6 !important;
    max-width: 680px !important;
}

/* ==========================================================================
   Table of Contents (TOC) Premium Navigation Pills
   ========================================================================== */
body.page-faq .faq-toc {
    gap: 12px !important;
    margin-top: 48px !important;
}

body.page-faq .faq-toc a {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    font-size: 13.5px !important;
    padding: 10px 22px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.page-faq .faq-toc a:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.25) !important;
}

/* ==========================================================================
   Real-Time Interactive Search Engine Component (Light Glass)
   ========================================================================== */
.faq-search-wrapper {
    margin: -32px auto 48px;
    max-width: 620px;
    position: relative;
    z-index: 50;
    padding: 0 24px;
}

.faq-search-input-container {
    position: relative;
    width: 100%;
}

.faq-search-input {
    width: 100%;
    padding: 18px 26px 18px 60px;
    font-size: 16.5px;
    font-family: var(--font-body);
    color: #1d1d1f;
    background: rgba(255, 255, 255, 0.75);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 980px;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    outline: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.faq-search-input:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 113, 227, 0.45);
    box-shadow: 
        0 12px 35px rgba(0, 113, 227, 0.08),
        0 0 0 1.5px rgba(0, 113, 227, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.faq-search-icon {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.4);
    font-size: 19px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.faq-search-input:focus + .faq-search-icon {
    color: #0071e3;
}

.faq-search-clear {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.4);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    font-size: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.faq-search-clear:hover {
    color: #1d1d1f;
    background: rgba(0, 0, 0, 0.05);
}

.faq-no-results {
    text-align: center;
    padding: 60px 24px;
    font-size: 18px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    margin: 40px auto;
    max-width: 600px;
    display: none;
    box-shadow: var(--glass-shadow);
}

.faq-no-results i {
    display: block;
    font-size: 38px;
    color: rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
}

/* Match highlighting (Soft cyan/blue glow) */
mark.faq-highlight {
    background: rgba(0, 113, 227, 0.12) !important;
    color: #0071e3 !important;
    border-bottom: 2px solid #38bdf8 !important;
    border-radius: 2px !important;
    padding: 0 2px !important;
}

/* ==========================================================================
   FAQ Section Layout & Light Glassmorphic Accordions
   ========================================================================== */
body.page-faq .faq-body {
    padding: 80px 0 60px !important;
    color: var(--text-primary) !important;
}

body.page-faq .faq-section {
    max-width: 880px !important;
    margin-bottom: 70px !important;
    scroll-margin-top: 120px !important;
}

body.page-faq .faq-section-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding-bottom: 20px !important;
    margin-bottom: 32px !important;
    display: flex;
    align-items: center;
    gap: 16px;
}

body.page-faq .faq-section-number {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    background: var(--grad-faq) !important;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.2) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}

body.page-faq .faq-section-header h2 {
    font-size: 29px !important;
    letter-spacing: -0.02em !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #1d1d1f 40%, #515154 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body.page-faq .faq-accordion {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 18px !important;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.015),
        inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 14px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    contain: content;
}

body.page-faq .faq-accordion:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 113, 227, 0.3) !important;
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.95),
        0 0 0 1px rgba(0, 113, 227, 0.04) !important;
    transform: translateY(-2px);
}

body.page-faq .faq-accordion[open] {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
}

body.page-faq .faq-accordion summary {
    color: #1d1d1f !important;
    padding: 22px 28px !important;
    font-size: 17.5px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
}

body.page-faq .faq-accordion summary:hover {
    background: rgba(0, 0, 0, 0.005) !important;
}

body.page-faq .faq-accordion summary .faq-icon {
    background: rgba(0, 113, 227, 0.06) !important;
    color: #0071e3 !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 15px !important;
    border: 1px solid rgba(0, 113, 227, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.page-faq .faq-accordion summary:hover .faq-icon {
    background: rgba(0, 113, 227, 0.12) !important;
    color: #005bb5 !important;
    border-color: rgba(0, 113, 227, 0.2) !important;
}

body.page-faq .faq-accordion[open] summary .faq-icon {
    transform: rotate(45deg) !important;
    background: var(--grad-faq) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25) !important;
}

body.page-faq .faq-answer {
    padding: 0 28px 26px !important;
    font-size: 15.5px !important;
    color: #515154 !important;
    line-height: 1.8 !important;
}

body.page-faq .faq-answer p {
    margin-bottom: 14px !important;
}

body.page-faq .faq-answer p:last-child {
    margin-bottom: 0 !important;
}

body.page-faq .faq-answer a {
    color: #0071e3 !important;
    text-decoration: none !important;
    border-bottom: 1.5px solid rgba(0, 113, 227, 0.2) !important;
    transition: all 0.2s ease !important;
}

body.page-faq .faq-answer a:hover {
    color: #005bb5 !important;
    border-bottom-color: #005bb5 !important;
}

/* Bullet list overrides for answers */
body.page-faq .faq-answer ul {
    list-style-type: disc !important;
    padding-left: 24px !important;
    margin: 12px 0 16px !important;
}

body.page-faq .faq-answer li {
    margin-bottom: 8px !important;
    color: #515154 !important;
    display: list-item !important;
    border-bottom: none !important;
    padding: 0 !important;
    font-weight: 500 !important;
}

body.page-faq .faq-answer li strong {
    color: #1d1d1f !important;
}

/* ==========================================================================
   Premium Table Layout for Grade Table (Category 6) - Light Mode
   ========================================================================== */
body.page-faq .grade-table {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    margin: 20px 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01) !important;
}

body.page-faq .grade-table th {
    background: rgba(0, 113, 227, 0.03) !important;
    color: #1d1d1f !important;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.06) !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 14px 20px !important;
}

body.page-faq .grade-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
    color: #515154 !important;
    font-size: 14.5px !important;
    padding: 12px 20px !important;
}

body.page-faq .grade-table tr:hover td {
    background: rgba(0, 0, 0, 0.005) !important;
}

body.page-faq .grade-table tr:last-child td {
    border-bottom: none !important;
}

/* ==========================================================================
   Contact Form Redesign - Light Mode Glassmorphism
   ========================================================================== */
body.page-faq .contact-section {
    padding: 100px 0 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.page-faq .contact-header h2.display-2 {
    background: linear-gradient(135deg, #1d1d1f 40%, #515154 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    letter-spacing: -0.02em !important;
}

body.page-faq .contact-form-wrapper {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.03),
        inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    padding: 36px !important;
    border-radius: 20px !important;
}

body.page-faq .contact-form-wrapper h3 {
    color: #1d1d1f !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 24px !important;
}

body.page-faq .form-group label {
    color: #515154 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
}

body.page-faq .form-group input, 
body.page-faq .form-group textarea {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1.5px solid rgba(0, 0, 0, 0.07) !important;
    color: #1d1d1f !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    font-size: 14.5px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.page-faq .form-group input:focus, 
body.page-faq .form-group textarea:focus {
    border-color: rgba(0, 113, 227, 0.45) !important;
    background: #ffffff !important;
    box-shadow: 
        0 8px 24px rgba(0, 113, 227, 0.04),
        0 0 0 1px rgba(0, 113, 227, 0.25) !important;
}

body.page-faq .contact-form-wrapper .btn-green {
    background: var(--accent-blue) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 15px 32px !important;
    font-size: 15.5px !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.2) !important;
    transition: all 0.3s ease !important;
}

body.page-faq .contact-form-wrapper .btn-green:hover {
    background: var(--accent-blue-hover) !important;
    box-shadow: 0 8px 28px rgba(0, 113, 227, 0.3) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Overrides
   ========================================================================== */
@media (max-width: 768px) {
    body.page-faq .hero {
        padding: 140px 0 80px !important;
    }
    
    body.page-faq .hero-text h1 {
        font-size: 38px !important;
    }
    
    body.page-faq .faq-section-header h2 {
        font-size: 23px !important;
    }
    
    body.page-faq .faq-accordion summary {
        font-size: 15.5px !important;
        padding: 18px 22px !important;
    }
    
    body.page-faq .faq-answer {
        padding: 0 22px 22px !important;
        font-size: 14.5px !important;
    }
    
    body.page-faq .contact-form-wrapper {
        padding: 24px !important;
    }
}
