:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --bg-color: #F5F7FA; /* General background for the page, often for sections */
    --border-color: #E0E0E0;
    --button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color for the page content */
    line-height: 1.6;
    background-color: var(--bg-color); /* This page's general background, will be under body's bg */
}

/* 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 */
    background-color: var(--bg-color); /* Ensures a consistent background behind the image */
}

.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 within its max-width */
}

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

.page-faq__hero-image 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.1);
}

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

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size with clamp */
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__intro-text {
    font-size: 1.1rem;
    color: var(--text-main-color);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px; /* More rounded for modern look */
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.4);
    max-width: 100%; /* Ensure responsive for buttons */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 57, 53, 0.6);
}

/* General Section Styling */
.page-faq__section {
    padding: 50px 20px;
    margin-bottom: 20px; /* Spacing between sections */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background-color: var(--card-bg-color); /* Default section background */
}

.page-faq__faq-list-section {
    background-color: var(--bg-color); /* Specific background for FAQ list */
    padding-top: 30px;
    padding-bottom: 30px;
}

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

.page-faq__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

/* FAQ Item Styling (details based) */
details.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
details.page-faq__faq-item summary.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none; /* Hide default marker */
    transition: background-color 0.3s ease, color 0.3s ease;
    color: var(--text-main-color);
    font-weight: 600;
    font-size: 1.1rem;
}
details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}
details.page-faq__faq-item summary.page-faq__faq-question:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}
.page-faq__faq-qtext {
    flex: 1;
    line-height: 1.5;
    text-align: left;
    margin-right: 15px; /* Space between text and toggle icon */
}
.page-faq__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color); /* Icon color */
    flex-shrink: 0;
    width: 28px;
    text-align: center;
    transition: transform 0.3s ease;
}
details.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}
details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
    color: var(--text-main-color);
    font-size: 1rem;
    line-height: 1.7;
}
.page-faq__faq-answer p {
    margin-bottom: 10px;
}
.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}
.page-faq__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}
.page-faq__faq-answer a:hover {
    color: var(--secondary-color);
}
.page-faq__keyword {
    color: var(--primary-color);
    font-weight: 700;
}


/* Contact Support Section */
.page-faq__contact-support-section {
    background: var(--primary-color); /* Darker background for contrast */
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
    margin-top: 40px;
}

.page-faq__contact-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-faq__contact-support-section .page-faq__section-title {
    color: #ffffff;
    margin-bottom: 25px;
}

.page-faq__contact-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

.page-faq__contact-button {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid #ffffff;
    padding: 12px 30px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: none;
}

.page-faq__contact-button:hover {
    background: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__section-title {
        font-size: 1.8rem;
    }
    details.page-faq__faq-item summary.page-faq__faq-question {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__hero-image img {
        border-radius: 4px;
    }
    
    .page-faq__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-faq__intro-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-faq__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__section {
        padding: 30px 15px;
        margin-bottom: 15px;
    }

    .page-faq__section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px;
        font-size: 0.95rem;
    }
    .page-faq__faq-qtext {
        margin-right: 10px;
    }
    .page-faq__faq-toggle {
        font-size: 20px;
        width: 24px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.9rem;
    }

    .page-faq__contact-support-section {
        padding: 40px 15px;
    }
    .page-faq__contact-box {
        padding: 20px;
    }
    .page-faq__contact-text {
        font-size: 1rem;
    }
    .page-faq__contact-button {
        padding: 10px 25px;
        font-size: 1rem;
    }

    /* Mobile image and container responsiveness */
    .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,
    .page-faq__hero-content,
    .page-faq__contact-box,
    .page-faq__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Ensure multiple buttons stack or wrap */
    .page-faq__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px; /* Spacing between stacked buttons */
    }
}