:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000000;
  --background-light-card: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

/* Base styles for the entire FAQ page content */
.page-faq {
  background-color: var(--background-dark); /* Body background is dark */
  color: var(--text-light); /* Use light text on dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* General padding for footer */
}

/* Ensure headings and paragraphs use light text by default */
.page-faq h1, .page-faq h2, .page-faq h3, .page-faq h4, .page-faq h5, .page-faq h6 {
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-faq p, .page-faq li {
  color: var(--text-light);
  margin-bottom: 10px;
}

/* Main container for page sections */
.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section (Module 1) */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  padding: 120px 20px 60px; /* Desktop padding-top for fixed header */
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #3a0000 100%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-faq__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__main-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 25px;
  color: var(--primary-color); /* Gold color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button--primary {
  background: var(--primary-color);
  color: var(--secondary-color); /* Dark red text on gold button */
  border: 2px solid var(--primary-color);
}

.page-faq__cta-button--primary:hover {
  background: darken(var(--primary-color), 10%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-faq__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--text-light); /* Light text on dark red button */
  border: 2px solid var(--secondary-color);
}

.page-faq__cta-button--secondary:hover {
  background: darken(var(--secondary-color), 10%);
  color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Section titles and descriptions */
.page-faq__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-faq__section-description {
  font-size: 1.1em;
  color: #ccc;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

/* FAQ Section (Module 2) */
.page-faq__faq-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

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

.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.3);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--background-light-card); /* Slightly transparent white on dark body */
  border: 1px solid rgba(255, 255, 255, 0.2);
  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: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light); /* Light text for question */
  pointer-events: none;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Gold color for toggle icon */
  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;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.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.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.3); /* Darker background for answer */
  color: #e0e0e0; /* Slightly lighter text for answer */
  border-radius: 0 0 8px 8px;
}

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

.page-faq__faq-answer p {
  margin-bottom: 10px;
  color: #e0e0e0;
}

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  color: #e0e0e0;
}

.page-faq__faq-answer li {
  margin-bottom: 5px;
  color: #e0e0e0;
}

.page-faq__answer-cta {
  margin-top: 20px;
  text-align: center;
}

.page-faq__cta-button--small {
  padding: 10px 25px;
  font-size: 0.9em;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Brand Section (Module 3) */
.page-faq__brand-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

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

.page-faq__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-faq__brand-item {
  background: rgba(255, 255, 255, 0.08); /* Light transparent background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-faq__brand-item h3 {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-faq__brand-item p {
  color: #e0e0e0;
  font-size: 1em;
}

.page-faq__brand-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.page-faq__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* Blog Section (Module 4) */
.page-faq__blog-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

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

.page-faq__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-faq__blog-item {
  background: rgba(255, 255, 255, 0.08); /* Light transparent background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-faq__blog-link {
  text-decoration: none;
  display: block;
  padding: 20px;
}

.page-faq__blog-item-image {
  width: 100%;
  height: 200px; /* Fixed height for blog images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-faq__blog-item-title {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-faq__blog-item-excerpt {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-faq__blog-item-date {
  font-size: 0.85em;
  color: #aaa;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }
  .page-faq__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 100px !important; /* Mobile padding-top for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-container,
  .page-faq__faq-container,
  .page-faq__brand-container,
  .page-faq__blog-container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-faq__main-title {
    font-size: 2.2em;
    margin-bottom: 20px;
  }

  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__cta-button,
  .page-faq__cta-button--small {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 1em !important;
  }

  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .page-faq__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  .page-faq__faq-question h3 {
    font-size: 1em;
    width: calc(100% - 40px);
  }

  .page-faq__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 22px;
  }

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

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px !important;
  }

  .page-faq__brand-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-faq__brand-item {
    padding: 25px;
  }

  .page-faq__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__brand-image,
  .page-faq__blog-item-image {
    height: auto !important; /* Ensure images scale */
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__cta-button {
    padding: 10px 20px !important;
    font-size: 0.9em !important;
  }
  .page-faq__faq-question h3 {
    font-size: 0.95em;
  }
  .page-faq__faq-toggle {
    font-size: 20px;
  }
}