.page-faq {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Text Main */
  background-color: var(--background-color, #1a1a1a); /* Default dark background for contrast */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, relying on body padding from shared.css */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-faq__hero-image-wrap {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  overflow: hidden;
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent background for text on hero */
  border-radius: 10px;
  color: #FFF5E1; /* Text Main */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFD86A; /* Gold gradient start */
}

.page-faq__description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFF5E1; /* Text Main */
}

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

.page-faq__cta-buttons--inline {
    margin-top: 20px;
    justify-content: flex-start;
}

.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: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-faq__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-faq__btn-secondary {
  background: transparent;
  color: #FFD86A; /* Gold */
  border: 2px solid #F2B544; /* Border */
}

.page-faq__btn-secondary:hover {
  background: rgba(255, 216, 106, 0.1);
  transform: translateY(-2px);
}

.page-faq__btn-small {
    padding: 10px 20px;
    font-size: 16px;
}

.page-faq__section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
  margin-bottom: 30px;
  border-radius: 10px;
}

.page-faq__section:nth-of-type(odd) {
    background-color: #D32F2F; /* Card BG */
}

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

.page-faq__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFCC66; /* Glow */
  text-shadow: 0 0 8px rgba(255, 204, 102, 0.6);
}

.page-faq__section-description {
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF5E1; /* Text Main */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ styles */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #F2B544; /* Border */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #FFF5E1; /* Text Main */
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 600;
  color: #FFD34D; /* Gold */
}

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: rgba(255, 216, 106, 0.05);
  color: #FFCC66; /* Glow */
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFCC66; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg);
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #7A0E0E; /* Deep Red */
  border-radius: 0 0 10px 10px;
  color: #FFF5E1; /* Text Main */
}

details.page-faq__faq-item .page-faq__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
}

details.page-faq__faq-item .page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

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

.page-faq__image--inline {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 25px;
    margin: 30px auto;
  }

  .page-faq__main-title {
    font-size: clamp(26px, 3.8vw, 44px);
  }

  .page-faq__description {
    font-size: 17px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 12px 25px;
    font-size: 17px;
  }

  .page-faq__section {
    padding: 50px 0;
  }

  .page-faq__section-title {
    font-size: clamp(22px, 3.3vw, 36px);
  }

  .page-faq__section-description {
    font-size: 16px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
  }

  .page-faq__faq-qtext {
    font-size: 17px;
  }

  .page-faq__faq-toggle {
    font-size: 26px;
    width: 28px;
  }

  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 20px;
  }

  details.page-faq__faq-item .page-faq__faq-answer p {
      font-size: 15px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px;
    margin-bottom: 30px;
  }

  .page-faq__hero-image-wrap {
      padding-bottom: 75%; /* 4:3 Aspect Ratio for better mobile fit */
  }

  .page-faq__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
  }

  .page-faq__hero-content {
    margin: 20px auto;
    padding: 20px;
  }

  .page-faq__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-faq__cta-buttons--inline {
      flex-direction: row;
      flex-wrap: wrap !important;
      gap: 10px;
      justify-content: center;
      padding: 0;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    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__btn-small {
      width: auto !important;
      max-width: calc(50% - 5px) !important; /* Allow two buttons per row */
  }

  .page-faq__section {
    padding: 40px 0;
    margin-bottom: 20px;
  }

  .page-faq__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__section-title {
    font-size: clamp(20px, 6vw, 30px);
    margin-bottom: 15px;
  }

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

  details.page-faq__faq-item {
    margin-bottom: 10px;
  }

  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: 24px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
  }

  details.page-faq__faq-item .page-faq__faq-answer p {
      font-size: 14px;
  }

  .page-faq__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
  }
}