/* style/faq.css */

:root {
    --primary-color: #0A2A5C;
    --secondary-color: #FFD700;
    --accent-color: #E53935;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --bg-dark: #121212;
    --bg-light: #f9f9f9;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

/* Base styles for the FAQ page content */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-light); /* Light text for dark body background */
    background-color: var(--bg-dark);
    padding-bottom: 60px;
}

.page-faq a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-faq a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.page-faq__text-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-faq__text-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.page-faq__highlight-text {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    padding: 120px 20px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0A1C3B 100%);
    overflow: hidden;
    box-sizing: border-box;
}

.page-faq__hero-content {
    max-width: 900px;
    z-index: 1;
    position: relative;
}

.page-faq__main-title {
    font-size: 3.2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px var(--shadow-color);
}

.page-faq__hero-description {
    font-size: 1.2em;
    color: var(--text-color-light);
    margin-bottom: 40px;
    opacity: 0.9;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__cta-button:hover {
    background: #FFC107;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-button--secondary {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-faq__cta-button--secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

/* FAQ Section */
.page-faq__faq-section {
    padding: 60px 20px;
    background-color: var(--bg-dark);
    box-sizing: border-box;
}

.page-faq__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.page-faq__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 1px 1px 3px var(--shadow-color);
}

.page-faq__faq-list {
    margin-top: 30px;
}

.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: #222222; /* Slightly lighter dark background for contrast */
    border: 1px solid #333333;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #2D2D2D; /* Darker background for question */
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-faq__faq-question:hover {
    background: #3A3A3A;
    border-color: var(--secondary-color);
}

.page-faq__faq-question:active {
    background: #4A4A4A;
}

.page-faq__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color-light);
    pointer-events: none;
}

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    color: var(--accent-color);
    transform: rotate(45deg); /* Rotate for minus sign effect */
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: var(--text-color-light);
    background-color: #222222;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid #333333;
    border-radius: 0 0 8px 8px;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    color: var(--text-color-light);
}

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

.page-faq__image-inline {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 2.8em;
    }
    .page-faq__hero-description {
        font-size: 1.1em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: 100px !important; /* Mobile padding for fixed header */
        padding-bottom: 60px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-faq__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-faq__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-faq__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-faq__faq-section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-faq__container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 40px;
    }

    .page-faq__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
    }
    
    .page-faq__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-faq__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 22px;
    }
    
    .page-faq__faq-answer {
        padding: 0 20px;
    }
    
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px 20px !important;
    }

    .page-faq__image-inline {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 15px auto;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: 1.8em;
    }
    .page-faq__hero-description {
        font-size: 0.95em;
    }
    .page-faq__section-title {
        font-size: 1.6em;
    }
    .page-faq__faq-question h3 {
        font-size: 0.95em;
    }
}