:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #222222;
}

/* Base styles for page-faq to ensure content is below fixed header */
.page-faq {
  padding-top: 120px; /* Desktop: Adjust based on actual fixed header height */
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--bg-light);
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  overflow: hidden;
}

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

.page-faq__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: var(--text-light);
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.9;
  color: var(--text-light);
}

.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  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);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: var(--text-light);
  color: var(--secondary-color);
}

.page-faq__btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary {
  background: var(--secondary-color);
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-faq__btn-secondary:hover {
  background: #a30000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  display: block;
}

/* General Section Styling */
.page-faq__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: var(--secondary-color);
  position: relative;
}

.page-faq__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-faq__faq-section,
.page-faq__brand-section,
.page-faq__blog-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-faq__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-faq__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-faq__dark-bg .page-faq__section-title {
  color: var(--primary-color);
}

/* FAQ Section */
.page-faq__faq-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-faq__faq-list {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  margin-bottom: 5px;
  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 #e0e0e0;
  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: #f5f5f5;
  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-dark);
  pointer-events: none; /* Prevent h3 from blocking click event on parent */
}

.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; /* Prevent toggle icon from blocking click event on parent */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

.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-top: 1px solid #eee;
  border-radius: 0 0 8px 8px;
}

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

.page-faq__faq-answer p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-dark);
}

.page-faq__faq-image-wrapper {
  margin-top: 40px;
  text-align: center;
}

.page-faq__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* Brand Section */
.page-faq__brand-container {
  text-align: center;
}

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

.page-faq__brand-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

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

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

.page-faq__brand-item p {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-light);
}

.page-faq__brand-image-wrapper {
  margin-top: 50px;
  text-align: center;
}

.page-faq__brand-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* Blog Section */
.page-faq__blog-container {
  text-align: center;
}

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

.page-faq__blog-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  height: 100%;
  box-sizing: border-box;
}

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

.page-faq__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.page-faq__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

.page-faq__blog-item-excerpt {
  font-size: 0.95em;
  color: #666;
  margin: 0 20px 15px;
  line-height: 1.6;
}

.page-faq__blog-item-date {
  display: block;
  font-size: 0.85em;
  color: #999;
  margin: 0 20px 20px;
}

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

  .page-faq__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    padding-top: 100px !important; /* Mobile: Adjust based on actual fixed header height */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    padding: 40px 15px;
  }

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

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

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

  .page-faq__cta-button {
    width: 100% !important;
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-faq__faq-section,
  .page-faq__brand-section,
  .page-faq__blog-section {
    padding: 50px 15px;
  }

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

  .page-faq__faq-question h3 {
    font-size: 1em;
  }

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

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

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

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

  .page-faq__brand-item h3 {
    font-size: 1.2em;
  }

  .page-faq__blog-image {
    height: 180px;
  }

  .page-faq__blog-item-title {
    font-size: 1.1em;
    margin: 15px 15px 8px;
  }

  .page-faq__blog-item-excerpt,
  .page-faq__blog-item-date {
    margin: 0 15px 15px;
  }

  /* Ensure all images are responsive */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__hero-image,
  .page-faq__faq-image,
  .page-faq__brand-image,
  .page-faq__blog-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-faq__hero-image-wrapper,
  .page-faq__faq-image-wrapper,
  .page-faq__brand-image-wrapper,
  .page-faq__blog-list,
  .page-faq__blog-item,
  .page-faq__brand-content,
  .page-faq__brand-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
}

/* Ensure color contrast for dark background elements */
.page-faq__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-faq__dark-bg .page-faq__section-title {
  color: var(--primary-color);
}

.page-faq__dark-bg .page-faq__brand-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for items on dark background */
  color: var(--text-light);
}

.page-faq__dark-bg .page-faq__brand-item h3 {
  color: var(--primary-color);
}

.page-faq__dark-bg .page-faq__brand-item p {
  color: var(--text-light);
}

/* Ensure color contrast for light background elements */
.page-faq__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-faq__light-bg .page-faq__section-title {
  color: var(--secondary-color);
}

.page-faq__light-bg .page-faq__faq-question h3 {
  color: var(--text-dark);
}

.page-faq__light-bg .page-faq__faq-answer p {
  color: var(--text-dark);
}

.page-faq__light-bg .page-faq__blog-item-title {
  color: var(--secondary-color);
}

.page-faq__light-bg .page-faq__blog-item-excerpt {
  color: #666;
}

.page-faq__light-bg .page-faq__blog-item-date {
  color: #999;
}

/* General link color for content */
.page-faq a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-faq a:hover {
  text-decoration: underline;
}