/* style/faq.css */

/* General styles for the FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main color for dark background */
    background-color: #0D0E12; /* Background color */
}

/* Hero Section */
.page-faq__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
    background-color: #0D0E12; /* Ensure consistency with body background */
}

.page-faq__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 60px 20px;
    gap: 40px;
}

.page-faq__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FF8C1A; /* Main brand color for title */
}

.page-faq__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF3E6;
}

.page-faq__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent; /* Default border */
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #ffffff;
    border-color: #FFA53A;
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
    box-shadow: 0 0 15px rgba(255, 165, 58, 0.6);
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: #FF8C1A; /* Main brand color */
    border-color: #FF8C1A; /* Border color */
}

.page-faq__btn-secondary:hover {
    background-color: #FF8C1A;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 140, 26, 0.4);
}

.page-faq__hero-image {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.page-faq__hero-side-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto;
}

/* Content Area */
.page-faq__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #17191F; /* Card BG color */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 60px;
}

.page-faq__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #FF8C1A;
}

.page-faq__intro-text {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    color: #FFF3E6;
}

/* FAQ List */
.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-faq__faq-item {
    background-color: #0D0E12; /* Background color for FAQ item */
    border: 1px solid #A84F0C; /* Border color */
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    background-color: #17191F; /* Card BG color when open */
    box-shadow: 0 5px 20px rgba(255, 140, 26, 0.2);
}

.page-faq__faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFF3E6;
    cursor: pointer;
    list-style: none; /* Hide default marker for details/summary */
    position: relative;
}

/* Hide default marker in WebKit browsers */
.page-faq__faq-question::-webkit-details-marker {
    display: none;
}

.page-faq__faq-qtext {
    flex-grow: 1;
}

.page-faq__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: #FF8C1A;
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05rem;
    color: #FFF3E6;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
}

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.page-faq__faq-answer li {
    margin-bottom: 8px;
}

.page-faq__faq-answer a {
    color: #FFA53A; /* Auxiliary color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-faq__faq-answer a:hover {
    color: #FFB04D; /* Glow color on hover */
    text-decoration: underline;
}

.page-faq__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__hero-container {
        padding: 40px 15px;
        gap: 30px;
    }

    .page-faq__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-faq__description {
        font-size: 1rem;
    }

    .page-faq__section-title {
        font-size: 2.2rem;
    }

    .page-faq__faq-question {
        font-size: 1.1rem;
    }

    .page-faq__faq-answer {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-faq__hero-section {
        padding-top: 10px !important; /* Fixed top padding for mobile */
        padding-bottom: 40px;
    }

    .page-faq__hero-container {
        flex-direction: column;
        padding: 30px 15px;
        gap: 30px;
    }

    .page-faq__hero-content,
    .page-faq__hero-image {
        flex: 1 1 100%;
        min-width: unset;
    }

    .page-faq__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        text-align: center;
    }

    .page-faq__description {
        text-align: center;
        font-size: 0.95rem;
    }

    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100%; /* Ensure button container takes full width */
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-faq__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Content Area */
    .page-faq__content-area {
        padding: 40px 15px;
        margin-left: 15px;
        margin-right: 15px;
        max-width: calc(100% - 30px) !important; /* Account for horizontal padding */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__section-title {
        font-size: 2rem;
        margin-bottom: 25px;
    }

    .page-faq__intro-text {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    /* FAQ List */
    .page-faq__faq-list {
        gap: 15px;
    }

    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-faq__faq-toggle {
        font-size: 1.5rem;
    }

    .page-faq__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.9rem;
    }
    
    /* General image responsiveness for all images within .page-faq */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    /* Ensure containers with images also adapt */
    .page-faq__hero-image,
    .page-faq__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden; /* Prevent overflow from images */
    }
}