/* style/faq.css */

/* --- Custom Colors --- */
:root {
    --main-color: #11A84E;
    --aux-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --bg-color: #08160F; /* This will be overridden by shared.css if defined there */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* --- Base Styles --- */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Light text for dark body background */
    background-color: var(--bg-color); /* Should be #08160F from shared.css */
}

.page-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- Hero Section --- */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--deep-green); /* Fallback/Accent background */
}

.page-faq__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Default to column for mobile/smaller screens */
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 40px;
}

.page-faq__hero-image {
    width: 100%;
    max-width: 800px; /* Adjust max-width as needed */
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-text-block {
    text-align: center;
    max-width: 800px;
    color: var(--text-main);
}

.page-faq__main-title {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main); /* Light text */
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    font-size: clamp(2rem, 4vw, 3.2rem); /* Responsive font size */
}

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

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

/* --- Buttons --- */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-faq__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for contrast */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert gradient for hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.page-faq__btn-secondary:hover {
    background: rgba(17, 168, 78, 0.1); /* Slight background on hover using main-color-rgb */
    border-color: var(--main-color);
    transform: translateY(-2px);
}

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

.page-faq__section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-faq__section-description {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--text-secondary);
}

.page-faq__faq-category {
    margin-bottom: 60px;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__category-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--glow);
    text-align: center;
}

.page-faq__faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--divider-color);
    padding-bottom: 15px;
    color: var(--text-main);
}

.page-faq__faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 15px 0;
    cursor: pointer;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.page-faq__faq-question:hover {
    color: var(--main-color);
}

/* Hide default details marker */
.page-faq__faq-item summary {
    list-style: none;
}
.page-faq__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-faq__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow);
}

.page-faq__faq-answer {
    font-size: 1rem;
    padding-top: 10px;
    padding-bottom: 15px;
    color: var(--text-secondary);
}

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

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

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

.page-faq__faq-answer a {
    color: var(--glow);
    text-decoration: none;
}

.page-faq__faq-answer a:hover {
    text-decoration: underline;
}

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

/* --- CTA Bottom Section --- */
.page-faq__cta-bottom {
    text-align: center;
    padding: 60px 20px;
    margin-top: 60px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
}

.page-faq__cta-bottom-title {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--glow);
}

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

/* --- Responsive Design --- */
/* Desktop */
@media (min-width: 992px) {
    .page-faq__hero-content-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .page-faq__hero-text-block {
        text-align: left;
        flex: 1;
        padding-right: 40px;
    }

    .page-faq__hero-image {
        flex: 1;
        max-width: 600px;
    }

    .page-faq__cta-buttons {
        justify-content: flex-start;
    }
}

/* Tablet and Mobile */
@media (max-width: 768px) {
    .page-faq__container,
    .page-faq__hero-section,
    .page-faq__faq-list-section,
    .page-faq__cta-bottom {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-faq__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px !important;
    }

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

    .page-faq__intro-text {
        font-size: 1rem;
    }

    .page-faq__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }

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

    .page-faq__section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .page-faq__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-faq__faq-category {
        padding: 20px;
        margin-bottom: 40px;
    }

    .page-faq__category-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
        margin-bottom: 20px;
    }

    .page-faq__faq-question {
        font-size: 1rem;
        padding: 12px 0;
    }

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

    .page-faq__faq-answer {
        font-size: 0.95rem;
        padding-top: 8px;
        padding-bottom: 12px;
    }

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

    .page-faq__security-image,
    .page-faq__support-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Video responsiveness (if any, though not explicitly in content for FAQ) */
    .page-faq video,
    .page-faq__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-faq__video-section,
    .page-faq__video-container,
    .page-faq__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-faq__video-section {
      padding-top: 10px !important;
    }
}