/* style/faq.css */

:root {
  --primary-color: #1A2E4E;
  --secondary-color: #FFD700;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --bg-dark-1: #0d0d0d; /* Assuming shared.css defines --dark-bg-1 as a dark color */
  --bg-light-1: #f8f9fa;
  --border-color: #e0e0e0;
}

.page-faq {
  color: var(--text-color-light); /* Default to light text for dark body background */
  padding-top: 120px; /* Desktop: Ensure content is not covered by fixed header */
  background-color: var(--bg-dark-1); /* Inherit from shared.css body background */
}

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

.page-faq__dark-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-faq__hero-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-faq__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

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

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

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

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

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

.page-faq__btn-secondary:hover {
  background-color: var(--text-color-light);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

/* FAQ Section */
.page-faq__faq-section {
  background-color: var(--bg-light-1);
  color: var(--text-color-dark);
  padding: 80px 0;
}

.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  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: #d0d0d0;
}

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

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: 28px;
  height: 28px;
}

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

.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 15px;
  opacity: 0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  border: 1px solid var(--border-color);
  border-top: none;
}

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

.page-faq__btn-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-faq__btn-link:hover {
  background-color: darken(var(--secondary-color), 10%);
}

/* Brand Section */
.page-faq__brand-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

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

.page-faq__brand-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__brand-item-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-faq__brand-item p,
.page-faq__brand-item ul {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color-light);
}

.page-faq__brand-item ul {
  padding-left: 20px;
  list-style-type: disc;
}

.page-faq__brand-item li {
  margin-bottom: 8px;
}

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

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

/* Blog Section */
.page-faq__blog-section {
  background-color: var(--bg-light-1);
  color: var(--text-color-dark);
  padding: 80px 0;
}

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

.page-faq__blog-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-faq__blog-item-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-faq__blog-item-link {
  text-decoration: none;
  color: inherit;
}

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

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

.page-faq__blog-item-excerpt {
  font-size: 15px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-faq__blog-item-date {
  font-size: 13px;
  color: #888;
  text-align: right;
}

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

  .page-faq__section-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .page-faq {
    padding-top: 100px !important; /* Mobile: Ensure content is not covered by fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

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

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

  .page-faq__main-title {
    font-size: 28px;
  }

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

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

  .page-faq__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

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

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

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

  .page-faq__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }

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

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

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

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

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

  .page-faq__brand-item-title {
    font-size: 20px;
  }

  .page-faq__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-faq__blog-item-title {
    font-size: 18px;
  }

  /* Image responsive for mobile */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__brand-image-wrapper,
  .page-faq__blog-item-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-faq__brand-image {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}