/* style/faq.css */
/* Body padding-top is handled by shared.css for fixed header offset. */
/* Page-specific styles for Ku68 Login FAQ */

:root {
    /* Custom Colors */
    --ku68-primary: #11A84E; /* Main Color */
    --ku68-secondary: #22C768; /* Auxiliary Color */
    --ku68-text-main: #F2FFF6; /* Text on dark backgrounds */
    --ku68-text-secondary: #A7D9B8; /* Secondary text on dark backgrounds */
    --ku68-background-dark: #08160F; /* Section background */
    --ku68-card-bg: #11271B; /* Card background */
    --ku68-border: #2E7A4E; /* Border color */
    --ku68-glow: #57E38D; /* Glow effect */
    --ku68-gold: #F2C14E; /* Gold accent */
    --ku68-divider: #1E3A2A; /* Divider color */
    --ku68-deep-green: #0A4B2C; /* Deep Green */

    /* Button Gradient */
    --ku68-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-faq {
    font-family: 'Arial', sans-serif; /* Example font, actual font might be from shared */
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds, ensuring contrast */
    background-color: #f8f8f8; /* Light background for default sections */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--ku68-background-dark); /* Dark background for hero */
    color: var(--ku68-text-main); /* Light text for dark background */
    text-align: center;
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--ku68-gold); /* Using gold for H1 for emphasis */
}

.page-faq__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--ku68-text-secondary);
}

/* CTA Button */
.page-faq__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary {
    background: var(--ku68-btn-gradient);
    color: var(--ku68-text-main); /* Light text on dark button */
    border: none;
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Content Area */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff; /* Light background for default content sections */
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-faq__dark-section {
    background-color: var(--ku68-background-dark);
    color: var(--ku68-text-main);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__section-title {
    font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem);
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: var(--ku68-primary); /* Primary for light bg, primary for dark bg */
}

.page-faq__dark-section .page-faq__section-title {
    color: var(--ku68-gold); /* Gold for titles on dark sections */
}

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

.page-faq__faq-item {
    background-color: var(--ku68-card-bg); /* Dark card background */
    border: 1px solid var(--ku68-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-item[open] {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ku68-text-main); /* Light text on dark card */
    background-color: var(--ku68-deep-green); /* Slightly deeper green for question header */
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details/summary */
}

.page-faq__faq-question::-webkit-details-marker {
    display: none; /* Remove default marker for details/summary */
}

.page-faq__faq-question:hover {
    background-color: var(--ku68-primary);
}

.page-faq__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-faq__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--ku68-gold);
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar effect */
}

.page-faq__faq-answer {
    padding: 20px 25px;
    padding-top: 0;
    font-size: 1rem;
    color: var(--ku68-text-secondary); /* Secondary light text for answers */
    background-color: var(--ku68-card-bg); /* Dark card background */
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    color: var(--ku68-text-secondary);
}
.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-faq__faq-answer a {
    color: var(--ku68-secondary); /* Link color */
    text-decoration: underline;
}
.page-faq__faq-answer a:hover {
    color: var(--ku68-gold);
}

/* Final CTA Section */
.page-faq__cta-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile first */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: var(--ku68-primary); /* Primary color background */
    color: var(--ku68-text-main);
    border-radius: 10px;
    max-width: 1200px;
    margin: 30px auto 60px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-faq__cta-content {
    max-width: 700px;
    margin-bottom: 30px; /* Space before image on mobile */
}

.page-faq__cta-title {
    font-size: clamp(2rem, 3.5vw + 1rem, 3.2rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--ku68-gold);
}

.page-faq__cta-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--ku68-text-main);
}

.page-faq__cta-image-wrapper {
    width: 100%;
    max-width: 600px; /* Constrain image width */
}

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

/* Responsive Design */
@media (min-width: 769px) {
    .page-faq__hero-section {
        padding: 80px 40px;
        padding-top: 20px;
    }

    .page-faq__content-area {
        padding: 80px 40px;
    }

    .page-faq__cta-section {
        flex-direction: row; /* Image and content side-by-side */
        text-align: left;
        padding: 60px 60px;
        gap: 40px;
    }

    .page-faq__cta-content {
        flex: 1;
        margin-bottom: 0;
    }

    .page-faq__cta-image-wrapper {
        flex: 0 0 400px; /* Fixed width for image on desktop */
    }
}

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

    /* Images */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Containers for images, videos, buttons */
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-section,
    .page-faq__content-area,
    .page-faq__cta-section,
    .page-faq__hero-image-wrapper,
    .page-faq__cta-image-wrapper,
    .page-faq__faq-item,
    .page-faq__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    
    .page-faq__hero-section {
        padding-top: 10px !important; /* body already has offset */
        padding-bottom: 30px;
    }

    /* Buttons */
    .page-faq__cta-button,
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px !important; /* Adjust padding for smaller screens */
        font-size: 1rem !important;
        margin-bottom: 10px; /* Space between stacked buttons */
    }

    /* Button containers for stacking */
    .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;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
        display: flex; /* Ensure flex is applied */
    }

    /* Adjust padding for content sections on mobile */
    .page-faq__content-area {
        padding: 30px 15px !important;
    }

    .page-faq__cta-section {
        padding: 30px 15px !important;
    }

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

    .page-faq__faq-answer {
        padding: 15px 20px;
        padding-top: 0;
    }

    .page-faq__main-title {
        font-size: 2rem;
    }

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