/* style/faq.css */

/* Base Styles */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f8f8; /* Light background for the main content area */
}

.page-faq__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #8B0000; /* Dark red for main titles */
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section (Module 1: H1 Title + Activity Promotion Button) */
.page-faq__hero-section {
    background: linear-gradient(135deg, #8B0000, #FFD700);
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-faq__main-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-faq__hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-faq__cta-button--primary {
    background: #FFD700; /* Gold primary button */
    color: #8B0000; /* Dark red text for contrast */
}

.page-faq__cta-button--primary:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-button--secondary {
    background: #8B0000; /* Dark red secondary button */
    color: #FFD700; /* Gold text for contrast */
    border: 2px solid #FFD700;
}

.page-faq__cta-button--secondary:hover {
    background: #6a0000; /* Slightly darker red on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}


/* FAQ Section (Module 2) */
.page-faq__faq-section {
    padding: 80px 20px;
    background-color: #f8f8f8;
}

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

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

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

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    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: #f0f0f0;
    border-color: #d0d0d0;
}

.page-faq__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #8B0000; /* Dark red toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    color: #FFD700; /* Gold when active */
    transform: rotate(45deg); /* Rotate for 'x' 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;
    background: #ffffff;
    color: #555555;
    border-top: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 25px !important;
    opacity: 1;
    background: #fffdf5; /* Slightly off-white for distinction */
    border-color: #d0d0d0;
}


/* Brand Section (Module 3) */
.page-faq__brand-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.page-faq__brand-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-faq__brand-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-faq__brand-item {
    background: #fffdf5; /* Light background for brand cards */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq__brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-faq__brand-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-faq__brand-item-title {
    font-size: 24px;
    font-weight: 700;
    color: #8B0000; /* Dark red for brand item titles */
    margin-bottom: 15px;
}

.page-faq__brand-item p {
    font-size: 16px;
    color: #555555;
    line-height: 1.7;
}


/* Blog Section (Module 4) */
.page-faq__blog-section {
    padding: 80px 20px;
    background-color: #f0f0f0; /* Slightly darker background for blog section */
}

.page-faq__blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-faq__blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-faq__blog-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-faq__blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-faq__blog-image {
    width: 100%;
    height: 200px; /* Fixed height for blog images */
    object-fit: cover;
    border-bottom: 1px solid #e0e0e0;
}

.page-faq__blog-item-title {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    padding: 20px 20px 10px;
    line-height: 1.4;
}

.page-faq__blog-item-excerpt {
    font-size: 15px;
    color: #666666;
    padding: 0 20px 15px;
    line-height: 1.6;
}

.page-faq__blog-item-date {
    font-size: 14px;
    color: #999999;
    padding: 0 20px 20px;
    display: block;
}

.page-faq__view-all-button-container {
    text-align: center;
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 40px;
    }

    .page-faq__hero-description {
        font-size: 17px;
    }

    .page-faq__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }
}