/* style/faq.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-background-dark: #08160F;
    --color-card-bg: #11271B;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
    --gradient-button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --color-white: #ffffff;
    --color-light-gray: #f5f5f5;
    --color-dark-gray: #333333;
    --color-black: #000000;
}

/* Base styles for the FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Assuming dark body background, use light text */
    background-color: var(--color-background-dark); /* Explicitly set dark background */
}

/* Hero Section */
.page-faq__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile first, desktop will change */
    align-items: center;
    text-align: center;
    padding: 10px 20px 40px; /* 10px top padding as per rule */
    background-color: var(--color-deep-green);
    position: relative;
    overflow: hidden;
    color: var(--color-text-main);
}

.page-faq__hero-content-wrapper {
    max-width: 800px;
    margin-bottom: 30px;
    z-index: 1;
}

.page-faq__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    color: var(--color-gold); /* Using gold for main title */
}

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

.page-faq__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 500px; /* Limit max width for button group */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure text breaks within button */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure button does not exceed container width */
}

.page-faq__btn-primary {
    background: var(--gradient-button);
    color: var(--color-white);
    border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-faq__btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-background-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 6px;
    background: var(--gradient-button);
    color: var(--color-white);
    border: none;
    margin-top: 10px;
}
.page-faq__btn-small:hover {
    opacity: 0.9;
}

.page-faq__hero-image-container {
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
    overflow: hidden;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

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

/* Section Titles and Descriptions */
.page-faq__section-title {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--color-gold);
}

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

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

.page-faq__support-illustration {
    margin-bottom: 40px;
}

.page-faq__faq-items {
    margin-top: 30px;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger radius */
  border: 1px solid var(--color-border); /* Use custom border color */
  overflow: hidden;
  background: var(--color-card-bg); /* Use custom card background color */
  color: var(--color-text-main); /* Ensure text is main color */
}
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;
  transition: background-color 0.3s ease;
  color: var(--color-text-main); /* Ensure question text is main color */
  font-weight: 600; /* Make question text bolder */
}
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: var(--color-deep-green); /* Hover effect with deep green */
}
.page-faq__faq-qtext {
  flex: 1;
  font-size: 17px; /* Slightly larger font size */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-faq__faq-toggle {
  font-size: 26px; /* Slightly larger toggle icon */
  font-weight: bold;
  color: var(--color-gold); /* Use gold for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px; /* Slightly larger width */
  text-align: center;
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 20px 20px;
  background: var(--color-background-dark); /* Answer section background */
  border-radius: 0 0 8px 8px;
  color: var(--color-text-secondary); /* Answer text secondary color */
}
details.page-faq__faq-item .page-faq__faq-answer p {
    margin-bottom: 10px;
}


/* CTA Bottom Section */
.page-faq__cta-bottom-section {
    padding: 60px 20px;
    background-color: var(--color-deep-green);
    text-align: center;
    color: var(--color-text-main);
}

.page-faq__cta-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.page-faq__cta-bottom-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-gold);
}

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

/* Image specific styling for content images */
.page-faq__container img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 20px auto;
}

/* Responsive Styles */
@media (min-width: 769px) {
    .page-faq__hero-section {
        flex-direction: row; /* Desktop: row layout */
        text-align: left;
        padding: 40px 40px 60px;
    }

    .page-faq__hero-content-wrapper {
        margin-bottom: 0;
        margin-right: 40px;
        flex: 1;
        text-align: left;
    }

    .page-faq__hero-image-container {
        flex: 1;
        margin-top: 0;
        max-width: 600px; /* Adjust as needed */
    }

    .page-faq__main-title {
        font-size: 3.2em; /* Desktop font size for H1 */
    }
    .page-faq__section-title,
    .page-faq__cta-bottom-title {
        font-size: 2.8em;
    }
}

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

    /* Hero Section */
    .page-faq__hero-section {
        padding-top: 10px !important; /* Ensure 10px top padding */
        padding-bottom: 30px !important;
    }

    .page-faq__main-title {
        font-size: 2em; /* Adjusted font size for mobile H1 */
        margin-bottom: 10px;
    }

    .page-faq__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* Buttons and Button Containers */
    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq__btn-small {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px 15px;
        font-size: 1em;
    }

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

    /* Section Titles */
    .page-faq__section-title,
    .page-faq__cta-bottom-title {
        font-size: 1.8em;
        margin-bottom: 10px;
    }

    .page-faq__section-description,
    .page-faq__cta-bottom-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    /* FAQ Specific Mobile Styles */
    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px;
    }
    .page-faq__faq-qtext {
        font-size: 15px;
    }
    .page-faq__faq-toggle {
        font-size: 22px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 15px 15px;
    }
    .page-faq__support-illustration {
        margin-bottom: 20px !important;
    }
}