.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: var(--secondary-color); /* Matches body background */
}

.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: var(--header-offset, 120px); /* Desktop header offset */
    background-color: #f0f0f0; /* Light background for hero section */
}

.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%;
}

.page-faq__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden; /* Ensure image corners are rounded */
}

.page-faq__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px; /* Apply border-radius to the image */
}

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

.page-faq__hero-title {
    font-size: 42px;
    color: #017439; /* Brand color for title */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faq__hero-description {
    font-size: 18px;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Use Login/Register color */
    color: #FFFF00; /* Use Login/Register font color */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-faq__cta-button:hover {
    background: #a30606; /* Slightly darker red on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-faq__intro-section,
.page-faq__faq-list-section,
.page-faq__more-info-section {
    padding: 60px 0;
}

.page-faq__light-bg {
    background-color: #ffffff; /* Explicitly white for light sections */
    color: #333333;
}

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

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

.page-faq__section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
    color: #017439; /* Brand color for section titles */
    font-weight: bold;
}

.page-faq__dark-bg .page-faq__section-title {
    color: #ffffff; /* White text for section titles on dark background */
}

.page-faq__section-description {
    font-size: 17px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-faq__dark-bg .page-faq__section-description {
    color: #f0f0f0; /* Light grey text for descriptions on dark background */
}

/* FAQ styles */
.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  background: #f9f9f9;
  color: #555555;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Ensure enough space for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-faq__faq-answer p {
    margin-bottom: 10px;
    font-size: 15px;
    color: #555555;
}

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
    margin-left: 20px;
    margin-bottom: 10px;
    color: #555555;
}

.page-faq__faq-answer li {
    margin-bottom: 5px;
    font-size: 15px;
    color: #555555;
}

.page-faq__faq-answer a {
    color: #017439; /* Brand primary color for links in answer */
    text-decoration: underline;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-faq__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-faq__faq-question:active {
  background: #eeeeee;
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #333333; /* Dark text for question title */
}

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: #017439; /* Brand primary color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Contact CTA */
.page-faq__contact-cta {
    text-align: center;
    margin-top: 50px;
    padding: 40px 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
}

.page-faq__contact-text {
    font-size: 20px;
    margin-bottom: 25px;
    color: #333333;
    font-weight: 500;
}

.page-faq__btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #017439; /* Primary brand color */
    color: #ffffff; /* White text for contrast */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-faq__btn-primary:hover {
    background: #005a2e; /* Slightly darker green on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* More Info Section */
.page-faq__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-faq__info-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.page-faq__info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.page-faq__info-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-radius: 8px 8px 0 0;
}

.page-faq__info-card .page-faq__card-title {
    font-size: 22px;
    margin: 20px 15px 10px;
    color: #017439; /* Brand color for card titles */
    font-weight: bold;
}

.page-faq__info-card .page-faq__card-title a {
    color: #017439; /* Link color within card title */
    text-decoration: none;
}

.page-faq__info-card .page-faq__card-title a:hover {
    text-decoration: underline;
}

.page-faq__info-card p {
    font-size: 15px;
    color: #555555;
    padding: 0 15px 20px;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 38px;
    }
    .page-faq__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-faq__hero-image img {
        border-radius: 4px;
    }
    
    .page-faq__hero-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-faq__hero-description {
        font-size: 16px;
        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__intro-section,
    .page-faq__faq-list-section,
    .page-faq__more-info-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: 15px;
    }
    .page-faq__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-faq__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-faq__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-faq__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-faq__faq-answer {
        padding: 0 15px;
    }
    
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px !important;
    }

    .page-faq__contact-cta {
        padding: 30px 15px;
    }
    .page-faq__contact-text {
        font-size: 18px;
    }
    .page-faq__btn-primary {
        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__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-faq__info-card img {
        height: 200px; /* Adjust height for mobile */
    }

    /* All images in content area */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-faq__section,
    .page-faq__card,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__info-card {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 0; /* Cards already have internal padding */
      padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 24px;
    }
    .page-faq__section-title {
        font-size: 22px;
    }
    .page-faq__hero-image img {
        border-radius: 2px;
    }
    .page-faq__info-card img {
        
    }
}