:root {
    --primary-color: #FF8C1A; /* Main Orange */
    --secondary-color: #FFA53A; /* Auxiliary Orange */
    --card-bg-color: #17191F; /* Card Background */
    --body-bg-color: #0D0E12; /* Body Background */
    --text-main-color: #FFF3E6; /* Main Text Color */
    --border-color: #A84F0C; /* Border Color */
    --glow-color: #FFB04D; /* Glow Color */
    --deep-orange-color: #D96800; /* Deep Orange */
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);

    /* RGB values for rgba usage */
    --primary-color-rgb: 255, 140, 26;
    --card-bg-color-rgb: 23, 25, 31;
}

.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color for the page */
    background-color: var(--body-bg-color); /* Body background from custom colors */
    line-height: 1.6;
}

/* HERO Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-faq__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width up to max-width */
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
}

.page-faq__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px; /* Inner padding for content */
}

.page-faq__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--text-main-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Subtle shadow for readability */
}

.page-faq__hero-description {
    font-size: 1.1rem;
    color: var(--text-main-color);
    max-width: 800px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

.page-faq__hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%; /* Ensure buttons container takes full width */
    max-width: 500px; /* Limit width for aesthetics */
    margin: 0 auto;
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient); /* Custom button gradient */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    flex-grow: 1; /* Allow buttons to grow */
    max-width: 250px; /* Max width for individual buttons */
}

.page-faq__cta-button--secondary {
    background: #ffffff; /* White background for secondary button */
    color: var(--primary-color); /* Primary color text */
    border: 2px solid var(--primary-color);
}

.page-faq__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

/* General Sections */
.page-faq__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-faq__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.page-faq__section-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-faq__intro-section {
    padding: 60px 0;
    background-color: var(--body-bg-color);
    border-bottom: 1px solid var(--border-color);
}

.page-faq__intro-text {
    font-size: 1.05rem;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

/* FAQ List Section */
.page-faq__faq-list-section {
    padding: 60px 0;
    background-color: var(--body-bg-color);
}

details.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg-color); /* Card background color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

details.page-faq__faq-item summary.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    color: var(--text-main-color);
    font-weight: 600;
}

details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
    display: none;
}

details.page-faq__faq-item summary.page-faq__faq-question:hover {
    background: rgba(var(--primary-color-rgb), 0.1); /* Slight hover effect */
    border-color: var(--primary-color);
}

.page-faq__faq-qtext {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color);
}

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-left: 20px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

details[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 25px 25px;
    background: rgba(var(--card-bg-color-rgb), 0.8); /* Slightly lighter than card bg */
    border-top: 1px solid var(--border-color);
    color: var(--text-main-color);
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.85;
}

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

.page-faq__faq-answer ul, .page-faq__faq-answer ol {
    padding-left: 25px;
}

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

/* Contact Support Section */
.page-faq__contact-support-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-color); /* Use primary color as background */
    color: #ffffff; /* Ensure white text on primary color background */
}

.page-faq__contact-support-section .page-faq__container.page-faq__dark-bg {
    background-color: var(--primary-color); /* Overwrite for this section */
    color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__contact-support-section .page-faq__section-title.page-faq__dark-bg {
    color: #ffffff;
    text-shadow: none;
}

.page-faq__contact-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    opacity: 0.9;
}

.page-faq__contact-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Blog Section */
.page-faq__blog-section {
    padding: 80px 0;
    background-color: var(--body-bg-color);
}

.page-faq__blog-intro {
    font-size: 1.05rem;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

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

.page-faq__blog-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-faq__blog-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-faq__blog-card-content {
    padding: 20px;
}

.page-faq__blog-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-faq__blog-card-title a {
    color: var(--text-main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-faq__blog-card-title a:hover {
    color: var(--secondary-color);
}

.page-faq__blog-card-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    opacity: 0.7;
}

.page-faq__blog-card-excerpt {
    font-size: 1rem;
    color: var(--text-main-color);
    margin-bottom: 20px;
    opacity: 0.8;
}

.page-faq__blog-readmore {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-faq__blog-readmore:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-faq__section-title {
        font-size: 2rem;
    }
    .page-faq__section-subtitle {
        font-size: 1.6rem;
    }
    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px 20px;
    }
    .page-faq__faq-qtext {
        font-size: 1rem;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 20px 20px;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-faq__hero-description {
        font-size: 1rem;
    }
    .page-faq__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-faq__container {
        padding: 15px;
    }
    .page-faq__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-faq__section-subtitle {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
    .page-faq__intro-section,
    .page-faq__faq-list-section,
    .page-faq__contact-support-section,
    .page-faq__blog-section {
        padding: 40px 0;
    }
    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 12px 15px;
    }
    .page-faq__faq-qtext {
        font-size: 0.95rem;
    }
    .page-faq__faq-toggle {
        font-size: 24px;
        margin-left: 10px;
        width: 24px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.9rem;
    }
    .page-faq__blog-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-faq__blog-card-image {
        height: 180px;
    }
    .page-faq__blog-card-title {
        font-size: 1.1rem;
    }
    .page-faq__contact-support-section .page-faq__container.page-faq__dark-bg {
        padding: 25px;
    }
    .page-faq__contact-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

/* Image responsive overrides for mobile */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Ensure padding for sections on mobile, if not already handled by .page-faq__container */
    .page-faq__intro-section > div,
    .page-faq__faq-list-section > div,
    .page-faq__contact-support-section > div,
    .page-faq__blog-section > div {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Color contrast overrides */
/* Assuming body background is dark (from --body-bg-color: #0D0E12) */
.page-faq {
    color: var(--text-main-color); /* #FFF3E6 */
    background-color: var(--body-bg-color); /* #0D0E12 */
}

.page-faq__dark-bg { /* For sections specifically designed with dark brand color background */
    background-color: var(--primary-color); /* #FF8C1A */
    color: #ffffff; /* White text on primary color */
}

.page-faq__dark-bg .page-faq__section-title,
.page-faq__dark-bg .page-faq__contact-text {
    color: #ffffff;
}

/* Ensure no filter is used on images */
.page-faq img {
    filter: none !important;
}