:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --background-dark: #0a0a0a;
  --card-bg-dark-theme: rgba(255, 255, 255, 0.1);
  --border-color-dark-theme: rgba(255, 255, 255, 0.2);
}

.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark-bg); /* Body background is dark (#0a0a0a), so text is light */
  background-color: var(--background-dark);
  line-height: 1.6;
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

.page-faq__title-section {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  border-bottom: 1px solid var(--border-color-dark-theme);
}

.page-faq__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-faq__title-description {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

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

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-dark-bg);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-faq__cta-button:hover {
  background: var(--secondary-color);
  color: var(--text-color-light-bg);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

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

.page-faq__section-description {
  font-size: 1.05em;
  color: #cccccc;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
}

/* FAQ Section */
.page-faq__faq-area {
  padding: 40px 0;
}

.page-faq__faq-list {
  margin-top: 30px;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background: var(--card-bg-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(0, 123, 255, 0.2); /* Slightly transparent primary color */
  color: var(--text-color-dark-bg);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  border: 1px solid transparent; /* Initial transparent border */
}

.page-faq__faq-question:hover {
  background: rgba(0, 123, 255, 0.3);
  border-color: var(--primary-color);
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--text-color-dark-bg);
}

.page-faq__faq-toggle {
  font-size: 2.2em;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(180deg);
  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.3s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
  color: #e0e0e0;
}

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

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

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

.page-faq__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-color-light-bg);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  margin-top: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-faq__btn-small:hover {
  background: #e6b100;
  transform: translateY(-1px);
}

/* Brand Section */
.page-faq__brand-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  border-top: 1px solid var(--border-color-dark-theme);
}

.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: var(--card-bg-dark-theme);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color-dark-theme);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-faq__brand-item h3 {
  color: var(--primary-color);
  font-size: 1.6em;
  margin-top: 20px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-faq__brand-item p {
  color: #cccccc;
  font-size: 1em;
  line-height: 1.7;
}

.page-faq__brand-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Blog Section */
.page-faq__blog-section {
  padding: 60px 0;
  background-color: var(--background-dark);
  border-top: 1px solid var(--border-color-dark-theme);
}

.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: var(--card-bg-dark-theme);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color-dark-theme);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-faq__blog-link {
  text-decoration: none;
  display: block;
  color: var(--text-color-dark-bg);
}

.page-faq__blog-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color-dark-theme);
}

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

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

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

.page-faq__cta-buttons--centered {
  margin-top: 50px;
}

/* 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 {
    padding-top: 100px; /* Adjust for fixed header on mobile */
  }
  .page-faq__container {
    padding: 0 15px;
  }
  .page-faq__main-title {
    font-size: 2.2em;
  }
  .page-faq__title-description {
    font-size: 1em;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-faq__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }
  .page-faq__section-title {
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 15px;
  }
  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
  }
  .page-faq__faq-question h3 {
    font-size: 1.1em;
  }
  .page-faq__faq-toggle {
    font-size: 2em;
    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-content {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-faq__brand-item {
    padding: 25px;
  }
  .page-faq__blog-list {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-faq__blog-item-title {
    font-size: 1.2em;
    margin: 15px 15px 8px 15px;
  }
  .page-faq__blog-item-excerpt {
    margin: 0 15px 12px 15px;
  }
  .page-faq__blog-item-date {
    margin: 0 15px 15px 15px;
  }
  .page-faq img, .page-faq__faq-image, .page-faq__brand-icon, .page-faq__blog-thumbnail {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-faq__cta-buttons--centered .page-faq__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-faq__brand-section .page-faq__container, .page-faq__blog-section .page-faq__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-faq__brand-item, .page-faq__blog-item {
    margin-left: 15px;
    margin-right: 15px;
  }
}