.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #FFFFFF; /* Default body background */
}

.page-faq__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
    padding-bottom: 40px;
    background-color: #f0f0f0;
    overflow: hidden;
}

.page-faq__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 45%; /* Aspect ratio 16:9 for 1920x1080 */
    overflow: hidden;
}

.page-faq__hero-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area */
    display: block;
}

.page-faq__hero-content {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    padding: 30px 20px 0;
}

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

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* For button responsiveness */
    box-sizing: border-box; /* For button responsiveness */
    white-space: normal; /* For button responsiveness */
    word-wrap: break-word; /* For button responsiveness */
}

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

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

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

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

.page-faq__content-section {
    padding: 60px 0;
    background-color: #ffffff;
}

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

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

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

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

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
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;
  font-size: 18px; /* Larger font for question */
  font-weight: 600;
  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;
}
.page-faq__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}
.page-faq__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  color: #017439; /* Brand color for icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px; /* Larger width */
  text-align: center;
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
}
.page-faq__faq-answer p {
    margin-bottom: 10px;
    font-size: 16px;
}
.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-faq__game-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.page-faq__game-link {
    display: inline-block;
    background-color: #e0f2f1; /* Light background for game links */
    color: #017439;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-faq__game-link:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-faq__additional-info {
    margin-top: 60px;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
    text-align: center;
}

.page-faq__sub-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #017439;
    margin-bottom: 20px;
}

.page-faq__additional-info p {
    font-size: 17px;
    color: #555555;
    margin-bottom: 20px;
}

.page-faq__additional-info img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-faq__cta-bottom {
    margin-top: 60px;
    text-align: center;
    padding: 40px;
    background-color: #e6f7ed; /* Lighter shade of brand color */
    border-radius: 10px;
}

.page-faq__cta-bottom .page-faq__btn-primary,
.page-faq__cta-bottom .page-faq__btn-secondary {
    margin: 10px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 36px;
    }
    .page-faq__intro-description {
        font-size: 17px;
    }
    .page-faq__section-title {
        font-size: 32px;
    }
    details.page-faq__faq-item summary.page-faq__faq-question {
        font-size: 17px;
        padding: 16px 18px;
    }
    .page-faq__faq-toggle {
        font-size: 26px;
        width: 30px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 18px 18px;
    }
    .page-faq__additional-info,
    .page-faq__cta-bottom {
        padding: 30px;
    }
    .page-faq__sub-section-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
    }
    .page-faq__hero-image-wrapper {
        padding-bottom: 56.25%; /* 16:9 for mobile, or could be taller */
    }
    .page-faq__hero-content {
        padding: 20px 15px 0;
    }
    .page-faq__main-title {
        font-size: 28px !important;
        margin-bottom: 15px;
    }
    .page-faq__intro-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important;
        padding: 12px 20px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__content-section {
        padding: 40px 0;
    }
    .page-faq__container {
        padding: 0 15px;
    }
    .page-faq__section-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    .page-faq__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    details.page-faq__faq-item {
      margin-bottom: 10px;
    }
    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px;
        font-size: 16px;
    }
    .page-faq__faq-qtext {
        font-size: 16px;
    }
    .page-faq__faq-toggle {
        font-size: 24px;
        width: 28px;
        margin-left: 10px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 15px 15px;
    }
    .page-faq__faq-answer p {
        font-size: 15px;
    }

    .page-faq__game-categories {
        justify-content: center;
    }
    .page-faq__game-link {
        font-size: 14px;
        padding: 6px 12px;
    }

    .page-faq__additional-info,
    .page-faq__cta-bottom {
        padding: 20px;
    }
    .page-faq__sub-section-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    .page-faq__additional-info p {
        font-size: 15px;
        margin-bottom: 15px;
    }
    .page-faq__additional-info img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-faq__cta-bottom .page-faq__btn-primary,
    .page-faq__cta-bottom .page-faq__btn-secondary {
        margin: 8px 0;
        width: 100%;
    }
    /* Ensure all images are responsive in mobile */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-faq__container,
    .page-faq__content-section,
    .page-faq__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Ensure all content areas and image containers handle overflow on mobile */
.page-faq__content-section,
.page-faq__additional-info,
.page-faq__cta-bottom {
    overflow-x: hidden;
}