.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #ffffff; /* Explicitly set for content area if body is transparent/var */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    margin-bottom: 40px;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-faq__hero-image {
    width: 100%;
    height: 675px; /* Fixed height for desktop, will adjust for mobile */
    object-fit: cover;
    display: block;
}

.page-faq__hero-content {
    position: relative; /* Changed from absolute to relative to ensure text is below image as per rule */
    padding: 40px 20px;
    max-width: 900px;
    margin: -100px auto 0 auto; /* Pull content up slightly over the image if desired, but below it */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.page-faq__main-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #017439; /* Brand primary color for title */
    margin-bottom: 20px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__intro-text {
    font-size: 18px;
    color: #555555;
    margin-bottom: 30px;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-faq__btn-primary {
    background-color: #C30808; /* Custom Register color */
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #C30808;
}

.page-faq__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-faq__btn-secondary {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF; /* White text for brand color background */
    border: 2px solid #017439;
}

.page-faq__btn-secondary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

/* General Section Styling */
.page-faq__section {
    padding: 60px 0;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.page-faq__dark-section {
    background-color: #017439; /* Brand primary color for dark section */
    color: #ffffff; /* White text for dark section */
}

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

.page-faq__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
}

.page-faq__section-title--white {
    color: #ffffff;
}

/* FAQ List Section */
.page-faq__faq-list-section {
    background-color: #ffffff;
}

.page-faq__faq-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column for FAQ items */
    gap: 15px;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger radius */
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Subtle shadow */
}
details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  color: #333333;
}
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: #f5f5f5;
  color: #017439; /* Highlight text on hover */
}
.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px; /* Slightly larger font */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-faq__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  color: #666666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px; /* Larger icon area */
  height: 32px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, color 0.3s ease;
}
details.page-faq__faq-item[open] .page-faq__faq-toggle {
    color: #017439; /* Brand color when open */
    transform: rotate(45deg); /* Rotate to form an 'x' or diamond */
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px; /* Increased padding */
  background: #fcfcfc;
  border-top: 1px solid #eee;
  border-radius: 0 0 8px 8px;
  color: #555555;
}
.page-faq__faq-answer p {
    margin-bottom: 1em;
}
.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}
.page-faq__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

/* CTA Section */
.page-faq__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand primary color */
}

.page-faq__cta-description {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-buttons--center {
    justify-content: center;
}

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

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
    .page-faq__hero-image {
        height: 500px; /* Adjust height for tablets */
    }
    .page-faq__hero-content {
        margin-top: -80px;
        padding: 30px 15px;
        max-width: 700px;
    }
    .page-faq__main-title {
        font-size: 36px;
    }
    .page-faq__intro-text {
        font-size: 16px;
    }
    .page-faq__section-title {
        font-size: 30px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
    }
    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px 20px;
    }
    .page-faq__faq-qtext {
        font-size: 16px;
    }
    .page-faq__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 20px 20px;
    }
    .page-faq__cta-description {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-faq__hero-image {
        height: 400px; /* Smaller height for mobile */
        object-fit: contain !important; /* Specific for mobile banner */
    }
    .page-faq__hero-content {
        margin-top: -60px;
        padding: 25px 15px;
        max-width: 100% !important; /* Ensure content container is full width */
        width: 100% !important; /* Ensure content container is full width */
        box-sizing: border-box !important;
        left: 0;
        transform: none;
        border-radius: 0;
        box-shadow: none;
    }
    .page-faq__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-faq__intro-text {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        font-size: 16px;
    }
    .page-faq__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden;
    }

    /* General Section Styling */
    .page-faq__section {
        padding: 40px 0;
    }
    .page-faq__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-faq__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    /* FAQ List Section */
    details.page-faq__faq-item {
        margin-bottom: 10px;
        border-radius: 5px;
    }
    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px 15px;
    }
    .page-faq__faq-qtext {
        font-size: 15px;
    }
    .page-faq__faq-toggle {
        font-size: 22px;
        width: 24px;
        height: 24px;
        margin-left: 10px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 15px 15px;
    }

    /* CTA Section */
    .page-faq__cta-section {
        padding: 50px 0;
    }
    .page-faq__cta-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Global image responsive rules for mobile */
    .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-section,
    .page-faq__faq-list-section,
    .page-faq__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-faq__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}