/**
 * FAQ Display Styles
 * File: /inc/faq/faq-styles.css
 */

/* =========================================================
   WRAPPER & OVERLAY
   ========================================================= */
.faq-page-wrapper {
    width: 100vw;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.faq-overlay {
    width: 100%;
    min-height: 100vh;
    padding: 60px 20px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* =========================================================
   HEADER / TITLE
   ========================================================= */
.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    padding: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

/* =========================================================
   MAIN IMAGE
   ========================================================= */
.faq-main-image {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    line-height: 0;
}

.faq-main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* =========================================================
   DESCRIPTION
   ========================================================= */
.faq-description {
    background: rgba(255, 255, 255, 0.85);
    padding: 35px 45px;
    border-radius: 16px;
    margin-bottom: 50px;
    font-size: 1.15rem;
    line-height: 1.9;
    color: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #f39c12;
}

/* =========================================================
   FAQ SECTION
   ========================================================= */
.faq-section {
    margin-top: 50px;
}

.faq-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f39c12;
}

/* =========================================================
   ACCORDION
   ========================================================= */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background 0.2s ease;
    user-select: none;
}

.faq-question:hover {
    background: rgba(30, 60, 114, 0.05);
}

.faq-icon {
    font-size: 14px;
    color: #1e3c72;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(90deg);
}

.faq-question-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a2e;
    flex: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: all 0.4s ease;
    color: #2d2d2d;
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 1500px;
    padding: 0 25px 20px 25px;
}

.faq-answer p {
    margin: 0 0 10px 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 10px 0;
    padding-left: 20px;
}

/* =========================================================
   NO RESULTS
   ========================================================= */
.faq-no-results {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .faq-overlay {
        padding: 40px 20px;
    }
    
    .faq-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .faq-overlay {
        padding: 30px 15px;
    }
    
    .faq-title {
        font-size: 1.8rem;
    }
    
    .faq-description {
        padding: 20px 25px;
        font-size: 1rem;
    }
    
    .faq-section-title {
        font-size: 1.5rem;
    }
    
    .faq-question {
        padding: 15px 18px;
    }
    
    .faq-question-text {
        font-size: 0.95rem;
    }
    
    .faq-answer {
        font-size: 0.9rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 18px 15px 18px;
    }
}

@media (max-width: 480px) {
    .faq-overlay {
        padding: 20px 10px;
    }
    
    .faq-title {
        font-size: 1.4rem;
    }
    
    .faq-description {
        padding: 15px 18px;
        font-size: 0.95rem;
    }
    
    .faq-section-title {
        font-size: 1.2rem;
    }
    
    .faq-question {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .faq-question-text {
        font-size: 0.9rem;
    }
    
    .faq-icon {
        font-size: 12px;
        width: 16px;
    }
}


/* =========================================================
   ACCESS DENIED MESSAGE
   ========================================================= */
.faq-access-denied {
    max-width: 550px;
    margin: 80px auto;
    padding: 45px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #dc3545;
}

.faq-access-denied h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 0;
    margin-bottom: 15px;
}

.faq-access-denied p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.faq-access-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0 15px;
}

.faq-access-denied .faq-login-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #1e3c72;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.faq-access-denied .faq-login-btn:hover {
    background: #152b52;
}

.faq-access-denied .faq-goback-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.faq-access-denied .faq-goback-btn:hover {
    background: #5a6268;
}

.faq-access-help {
    font-size: 0.95rem !important;
    color: #888 !important;
    margin-top: 10px !important;
}

.faq-access-help a {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
}

.faq-access-help a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .faq-access-denied {
        margin: 40px 15px;
        padding: 25px 20px;
    }
    .faq-access-denied h2 {
        font-size: 1.4rem;
    }
    .faq-access-denied p {
        font-size: 0.95rem;
    }
    .faq-access-denied .faq-login-btn,
    .faq-access-denied .faq-goback-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }
}