/* style/faq.css */

/* Base styles for the FAQ page content */
.page-faq {
    background-color: var(--dark-bg, #0d0d0d); /* Assuming --dark-bg is a dark color */
    color: #ffffff; /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* General padding for the bottom of the page content */
}

.page-faq__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700; /* Gold color for section 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: #8B0000; /* Dark red underline */
    border-radius: 2px;
}

/* Video Section */
.page-faq__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, #8B0000, #FFD700); /* Gradient background for impact */
}

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

.page-faq__video-link {
    display: block;
    text-decoration: none;
    position: relative;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq__video-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-faq__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    background-color: #000; /* Fallback for video area */
}

.page-faq__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    object-fit: cover;
    pointer-events: none; /* Prevents video controls from blocking click event */
}

.page-faq__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.page-faq__video-link:hover .page-faq__video-overlay {
    opacity: 1;
}

.page-faq__video-click-hint {
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    background: rgba(139, 0, 0, 0.8); /* Dark red with transparency */
    border-radius: 50px;
    white-space: nowrap;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.page-faq__video-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.page-faq__play-now-button {
    display: inline-block;
    padding: 18px 50px;
    background: #FFD700; /* Gold primary color */
    color: #8B0000; /* Dark red text for contrast */
    text-decoration: none;
    border-radius: 50px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-faq__play-now-button:hover {
    background: #FFC107; /* Slightly darker gold on hover */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-faq__play-now-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Module 1: H1 Title + CTA Buttons */
.page-faq__title-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--dark-bg-secondary, #1a1a1a); /* Slightly lighter dark background */
    color: #ffffff;
}

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

.page-faq__main-title {
    font-size: 48px;
    color: #FFD700; /* Gold for main title */
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-faq__title-description {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

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

.page-faq__cta-button--secondary:hover {
    background-color: #A52A2A; /* Slightly lighter red */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Module 2: FAQ Section */
.page-faq__faq-section {
    padding: 80px 20px;
    background-color: var(--dark-bg, #0d0d0d); /* Main dark background */
}

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

.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--dark-bg-light, #1e1e1e); /* Slightly lighter dark for items */
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #2a2a2a; /* Darker background for question */
    border: 1px solid #3a3a3a;
    border-radius: 8px; /* Apply border-radius to question only */
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #FFD700; /* Gold for question text */
}

.page-faq__faq-item.active .page-faq__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #3a3a3a; /* Even darker when active */
}

.page-faq__faq-question:hover {
    background: #333333;
    border-color: #444444;
}

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

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

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevents icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
    color: #ffffff; /* White when active */
}

.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: #2a2a2a; /* Answer background */
    color: #f0f0f0; /* Light text for answer */
    border: 1px solid #3a3a3a;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain any content */
    padding: 20px 25px !important;
    opacity: 1;
    background: #2a2a2a;
}

.page-faq__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #f0f0f0;
}


/* Module 3: Brand Introduction */
.page-faq__brand-section {
    padding: 80px 20px;
    background-color: #1a1a1a; /* Different dark background for visual distinction */
    color: #ffffff;
    text-align: center;
}

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

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

.page-faq__brand-item {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-faq__brand-item-title {
    font-size: 24px;
    color: #FFD700; /* Gold for brand item titles */
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-faq__brand-image-wrapper {
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__brand-image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px; /* Ensure image also has border-radius */
}

/* Module 4: Blog List */
.page-faq__blog-section {
    padding: 80px 20px;
    background-color: var(--dark-bg, #0d0d0d);
}

.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: 50px;
}

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

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

.page-faq__blog-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding-bottom: 20px; /* Padding for the content inside the link */
}

.page-faq__blog-item-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-faq__blog-item-title {
    font-size: 20px;
    font-weight: bold;
    color: #FFD700; /* Gold for blog titles */
    margin: 0 20px 10px 20px;
    line-height: 1.4;
}

.page-faq__blog-item-excerpt {
    font-size: 15px;
    color: #cccccc;
    margin: 0 20px 15px 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-faq__blog-item-date {
    font-size: 14px;
    color: #8B0000; /* Dark red for date */
    display: block;
    margin: 0 20px;
    font-weight: 500;
}

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

.page-faq__view-all-button {
    display: inline-block;
    padding: 14px 35px;
    background-color: #8B0000; /* Dark red */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.page-faq__view-all-button:hover {
    background-color: #A52A2A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 40px;
    }
    .page-faq__section-title {
        font-size: 32px;
    }
    .page-faq__play-now-button {
        padding: 15px 40px;
        font-size: 20px;
    }
    .page-faq__cta-button {
        padding: 14px 30px;
        font-size: 16px;
    }
    .page-faq__brand-item-title {
        font-size: 22px;
    }
    .page-faq__blog-item-title {
        font-size: 18px;
    }
    .page-faq__blog-item-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-faq__video-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-faq__video-container,
    .page-faq__video-link,
    .page-faq__video-wrapper,
    .page-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        height: auto !important;
        border-radius: 8px;
        object-fit: contain; /* Ensure video fits on mobile */
    }
    .page-faq__video-click-hint {
        font-size: 16px;
        padding: 10px 20px;
    }
    .page-faq__video-cta {
        margin-top: 30px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-faq__play-now-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px 30px;
        font-size: 18px;
        white-space: normal;
        word-wrap: break-word;
    }

    .page-faq__title-section {
        padding: 60px 15px;
    }
    .page-faq__main-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    .page-faq__title-description {
        font-size: 17px;
        margin-bottom: 30px;
    }
    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-faq__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px 25px;
        font-size: 16px;
        white-space: normal;
        word-wrap: break-word;
    }

    .page-faq__section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    .page-faq__faq-section,
    .page-faq__brand-section,
    .page-faq__blog-section {
        padding: 60px 15px;
    }
    .page-faq__faq-question {
        padding: 15px 20px;
    }
    .page-faq__faq-question h3 {
        font-size: 16px;
    }
    .page-faq__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-faq__faq-answer {
        padding: 0 20px;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px 20px !important;
    }
    .page-faq__faq-answer p {
        font-size: 15px;
    }

    .page-faq__brand-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-faq__brand-item {
        padding: 25px;
    }
    .page-faq__brand-item-title {
        font-size: 20px;
    }
    .page-faq__brand-item p {
        font-size: 15px;
    }
    .page-faq__brand-image-wrapper {
        margin-top: 30px;
    }

    .page-faq__blog-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-faq__blog-item-image {
        height: 200px;
    }
    .page-faq__blog-item-title {
        font-size: 17px;
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-faq__blog-item-excerpt,
    .page-faq__blog-item-date {
        margin-left: 15px;
        margin-right: 15px;
        font-size: 14px;
    }
    .page-faq__view-all-button-wrapper {
        margin-top: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-faq__view-all-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 25px;
        font-size: 16px;
        white-space: normal;
        word-wrap: break-word;
    }
}

/* Ensure all images and video elements within .page-faq are responsive */
.page-faq img,
.page-faq video {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-faq__content-area,
.page-faq__card,
.page-faq__container,
.page-faq__section,
.page-faq__box,
.page-faq__cta-buttons,
.page-faq__button-group,
.page-faq__btn-container,
.page-faq__video-section,
.page-faq__video-container,
.page-faq__video-wrapper,
.page-faq__title-section,
.page-faq__title-container,
.page-faq__faq-section,
.page-faq__faq-container,
.page-faq__brand-section,
.page-faq__brand-container,
.page-faq__blog-section,
.page-faq__blog-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent horizontal overflow */
}

@media (max-width: 768px) {
    .page-faq img,
    .page-faq video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-faq__content-area,
    .page-faq__card,
    .page-faq__container,
    .page-faq__section,
    .page-faq__box,
    .page-faq__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container,
    .page-faq__video-section,
    .page-faq__video-container,
    .page-faq__video-wrapper,
    .page-faq__title-section,
    .page-faq__title-container,
    .page-faq__faq-section,
    .page-faq__faq-container,
    .page-faq__brand-section,
    .page-faq__brand-container,
    .page-faq__blog-section,
    .page-faq__blog-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Specific padding for video section due to header offset */
    .page-faq__video-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-faq__video-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Ensure buttons wrap on mobile */
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

/* Color contrast enforcement */
.page-faq p,
.page-faq li,
.page-faq__title-description,
.page-faq__brand-item p,
.page-faq__blog-item-excerpt {
    color: #f0f0f0; /* Light text on dark background */
}

.page-faq__faq-answer p {
    color: #f0f0f0; /* Light text on dark background */
}

/* Gold text on dark background */
.page-faq__main-title,
.page-faq__section-title,
.page-faq__faq-question h3,
.page-faq__faq-toggle,
.page-faq__brand-item-title,
.page-faq__blog-item-title {
    color: #FFD700;
}

/* Dark red text for specific elements */
.page-faq__play-now-button,
.page-faq__cta-button--primary {
    color: #8B0000; /* Dark red text on gold button */
}

.page-faq__blog-item-date {
    color: #8B0000;
}

/* White text on dark red button */
.page-faq__cta-button--secondary,
.page-faq__view-all-button {
    color: #ffffff;
}

/* No CSS filters for images */
.page-faq img {
    filter: none !important;
}