/* style/faq.css */

:root {
  --primary-color: #CC0000;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --border-light: #e0e0e0;
}

/* Base styles for the page-faq scope */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for the page, assuming dark body bg */
  background-color: var(--dark-bg-1); /* Inherited from shared.css, dark background */
}

/* HERO Section - This is not the homepage, but a hero-like intro for FAQ */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 60px; /* Adjusted padding-top for fixed header */
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
  background: linear-gradient(135deg, var(--primary-color) 0%, #a00000 100%); /* Darker gradient for better contrast */
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__hero-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-faq__hero-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-faq__hero-description {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-faq__hero-description a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq__hero-description a:hover {
  color: #ffffff;
}

.page-faq__highlight-text {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-faq__cta-button:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-button--large {
  padding: 18px 50px;
  font-size: 20px;
}

/* Content Wrapper */
.page-faq__content-wrapper {
  padding: 60px 0;
  background: var(--bg-light); /* Light background for main content */
  color: var(--text-dark);
}

.page-faq__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-faq__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-description {
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-dark);
}

/* FAQ List Styles */
.page-faq__faq-list {
  margin-top: 30px;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-faq__faq-question:hover {
  background: var(--bg-light);
  border-color: #d0d0d0;
}

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

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none; /* Allow click on entire question area */
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: var(--text-light);
  background-color: var(--primary-color);
  transform: rotate(45deg); /* Rotate to form an 'x' or '-' */
}

.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, opacity 0.3s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fdfdfd;
  border-radius: 0 0 8px 8px;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
}

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

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
  margin-left: 25px;
  margin-bottom: 15px;
  list-style-type: disc;
  font-size: 16px;
}

.page-faq__faq-answer ol {
  list-style-type: decimal;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-faq__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq__faq-answer a:hover {
  color: #a00000;
}

/* Conclusion Block */
.page-faq__conclusion-block {
  margin-top: 60px;
  padding: 40px;
  background: #ffffff; /* Light background for contrast */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-dark);
}

.page-faq__conclusion-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-faq__conclusion-text {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.page-faq__conclusion-text a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq__conclusion-text a:hover {
  color: #a00000;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-faq__hero-title {
    font-size: 36px;
  }
  .page-faq__hero-description {
    font-size: 17px;
  }
  .page-faq__section-title {
    font-size: 30px;
  }
  .page-faq__conclusion-title {
    font-size: 28px;
  }
  .page-faq__conclusion-block {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on actual header height */
    padding-bottom: 40px;
  }
  .page-faq__hero-title {
    font-size: 28px;
  }
  .page-faq__hero-description {
    font-size: 15px;
  }
  .page-faq__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-faq__section-title {
    font-size: 26px;
  }
  .page-faq__section-description {
    font-size: 14px;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .page-faq__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-faq__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px !important;
  }
  .page-faq__faq-answer p,
  .page-faq__faq-answer ol,
  .page-faq__faq-answer ul,
  .page-faq__faq-answer li {
    font-size: 14px;
  }
  .page-faq__conclusion-title {
    font-size: 24px;
  }
  .page-faq__conclusion-text {
    font-size: 15px;
  }
  .page-faq__cta-button--large {
    padding: 15px 35px;
    font-size: 18px;
  }
  
  /* Mobile image specific rules */
  .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-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 24px;
  }
  .page-faq__hero-description {
    font-size: 14px;
  }
  .page-faq__section-title {
    font-size: 22px;
  }
  .page-faq__faq-question h3 {
    font-size: 15px;
  }
  .page-faq__faq-toggle {
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-faq__conclusion-title {
    font-size: 20px;
  }
  .page-faq__conclusion-text {
    font-size: 14px;
  }
  .page-faq__cta-button--large {
    padding: 12px 25px;
    font-size: 16px;
  }
}