/* style/faq.css */
:root {
  --primary-color: #C0392B;
  --secondary-color: #F39C12;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --bg-light: #f9f9f9;
  --border-color: #e0e0e0;
}

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default light text for dark body background */
  background-color: var(--bg-dark);
  padding-top: 120px; /* Desktop: Ensure content is not hidden by fixed header */
}

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

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

.page-faq__title-section {
  text-align: center;
  padding: 80px 20px;
  background-image: url('[GALLERY:bg:hi88 casino,đăng nhập,phần thưởng,2026,banner]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-faq__title-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

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

.page-faq__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__title-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button:hover {
  background: #e68a00; /* Slightly darker secondary color */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: var(--secondary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  border: 1px solid var(--primary-color);
  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: #a82e21; /* Darker primary */
  border-color: #a82e21;
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--text-light);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  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(180deg);
}

.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(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 0 0 8px 8px;
}

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

.page-faq__faq-answer p {
  margin: 0;
  font-size: 16px;
}

/* Brand Section */
.page-faq__brand-section {
  padding: 60px 20px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
}

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

.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: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-faq__brand-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

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

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

.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: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-faq__blog-item-content {
  padding: 20px;
}

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

.page-faq__blog-item-excerpt {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.5;
}

.page-faq__blog-item-date {
  font-size: 14px;
  color: #777;
  display: block;
  text-align: right;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 40px;
  }
  .page-faq__section-title {
    font-size: 32px;
  }
  .page-faq__faq-question h3 {
    font-size: 17px;
  }
  .page-faq__brand-item-title {
    font-size: 22px;
  }
  .page-faq__blog-item-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-faq {
    padding-top: 100px !important; /* Mobile: Ensure content is not hidden by fixed header */
  }
  .page-faq__title-section {
    padding: 60px 15px;
  }
  .page-faq__main-title {
    font-size: 32px;
    line-height: 1.2;
  }
  .page-faq__title-description {
    font-size: 16px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 18px !important;
  }
  .page-faq__section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  .page-faq__faq-section,
  .page-faq__brand-section,
  .page-faq__blog-section {
    padding: 40px 15px;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
  }
  .page-faq__faq-question h3 {
    font-size: 16px;
  }
  .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-content,
  .page-faq__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-faq__brand-item {
    padding: 25px;
  }
  .page-faq__brand-item-title {
    font-size: 20px;
  }
  .page-faq__blog-item-image {
    height: 180px;
  }
  .page-faq__blog-item-content {
    padding: 15px;
  }
  .page-faq__blog-item-title {
    font-size: 17px;
  }
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__faq-container {
    padding-left: 0;
    padding-right: 0;
  }
}