/* style/faq.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #000080; /* Dark Blue */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
}

.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark); /* Default text color for light body background */
    line-height: 1.6;
    background-color: var(--bg-light);
}

.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 120px; /* Adjusted for fixed header */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    overflow: hidden;
}

.page-faq__hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-faq__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-faq__hero-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-faq__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-faq__main-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

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

.page-faq__section {
    padding: 40px 20px;
    margin-bottom: 20px;
}

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

.page-faq__section-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-faq__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background-color: var(--text-light);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--text-light);
    border: 1px solid var(--border-color);
    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: #f5f5f5;
    border-color: #d0d0d0;
}

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

.page-faq__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
    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;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(45deg);
}

.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 20px;
    opacity: 0;
    background: #fcfcfc;
    border-top: 1px solid var(--border-color);
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain any content */
    padding: 20px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
}

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

.page-faq__answer-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-faq__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-faq__btn-primary:hover {
    background: #000066;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

.page-faq__action-section {
    background: linear-gradient(135deg, var(--secondary-color), #000066);
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
    margin-top: 40px;
    border-radius: 10px;
}

.page-faq__action-container {
    max-width: 900px;
}

.page-faq__action-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-faq__action-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-button--large {
    padding: 18px 50px;
    font-size: 22px;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 36px;
    }
    .page-faq__hero-description {
        font-size: 16px;
    }
    .page-faq__cta-button {
        font-size: 18px;
        padding: 12px 30px;
    }
    .page-faq__section-title {
        font-size: 28px;
    }
    .page-faq__faq-question h3 {
        font-size: 17px;
    }
    .page-faq__action-title {
        font-size: 30px;
    }
    .page-faq__action-description {
        font-size: 16px;
    }
    .page-faq__cta-button--large {
        padding: 15px 40px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: 100px !important; /* Mobile fixed header adjustment */
        padding-bottom: 30px;
    }
    .page-faq__main-title {
        font-size: 28px;
    }
    .page-faq__hero-description {
        font-size: 15px;
    }
    .page-faq__cta-button {
        font-size: 16px;
        padding: 10px 25px;
        margin-top: 15px;
    }
    .page-faq__section {
        padding: 20px 10px;
    }
    .page-faq__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-faq__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-faq__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }
    .page-faq__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px !important;
    }
    .page-faq__action-section {
        padding: 40px 15px;
    }
    .page-faq__action-title {
        font-size: 24px;
    }
    .page-faq__action-description {
        font-size: 15px;
    }
    .page-faq__cta-button--large {
        padding: 12px 30px;
        font-size: 18px;
    }
    
    /* Ensure all images are responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-faq__section, .page-faq__container, .page-faq__hero-container, .page-faq__action-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}