/* style/resources-bj88-link-common-issues.css */

/* --- General Styles --- */
.page-resources-bj88-link-common-issues {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color, #FFFFFF); /* Body background color */
}

.page-resources-bj88-link-common-issues__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-bj88-link-common-issues__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color, #26A9E0);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources-bj88-link-common-issues__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color, #26A9E0);
  border-radius: 2px;
}

.page-resources-bj88-link-common-issues__paragraph {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: justify;
}

/* --- Hero Section --- */
.page-resources-bj88-link-common-issues__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Brand colors for background */
  color: #FFFFFF; /* White text on primary background */
  overflow: hidden; /* Prevent content overflow */
}

.page-resources-bj88-link-common-issues__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above potential background effects */
}

.page-resources-bj88-link-common-issues__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-resources-bj88-link-common-issues__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease-in-out;
}

.page-resources-bj88-link-common-issues__hero-image img:hover {
  transform: scale(1.03);
}

.page-resources-bj88-link-common-issues__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
}

.page-resources-bj88-link-common-issues__hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #FFFFFF; /* White text for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-bj88-link-common-issues__hero-description {
  font-size: 22px;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for description */
}

.page-resources-bj88-link-common-issues__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login color for CTA */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-resources-bj88-link-common-issues__cta-button:hover {
  background: #d46c06;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- Intro Section --- */
.page-resources-bj88-link-common-issues__intro-section {
  padding: 80px 0;
  background-color: var(--secondary-color, #FFFFFF);
  color: #333333;
}

/* --- Content Section --- */
.page-resources-bj88-link-common-issues__content-section {
  padding: 80px 0;
  background-color: var(--primary-color, #26A9E0); /* Dark background for this section */
  color: #ffffff; /* White text for dark background */
}

.page-resources-bj88-link-common-issues__content-section .page-resources-bj88-link-common-issues__section-title {
  color: #ffffff;
}

.page-resources-bj88-link-common-issues__content-section .page-resources-bj88-link-common-issues__section-title::after {
  background-color: #ffffff;
}

.page-resources-bj88-link-common-issues__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-bj88-link-common-issues__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text on light card background */
}

.page-resources-bj88-link-common-issues__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-bj88-link-common-issues__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources-bj88-link-common-issues__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color, #26A9E0);
  padding: 20px 20px 10px;
  margin: 0;
}

.page-resources-bj88-link-common-issues__card-text {
  font-size: 16px;
  padding: 0 20px 20px;
  margin: 0;
  text-align: justify;
}

/* --- Solutions Section --- */
.page-resources-bj88-link-common-issues__solutions-section {
  padding: 80px 0;
  background-color: var(--secondary-color, #FFFFFF);
  color: #333333;
}

.page-resources-bj88-link-common-issues__solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-resources-bj88-link-common-issues__solution-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.page-resources-bj88-link-common-issues__solution-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-resources-bj88-link-common-issues__solution-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 4px solid var(--primary-color, #26A9E0);
  padding: 10px;
}

.page-resources-bj88-link-common-issues__solution-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color, #26A9E0);
  margin-bottom: 15px;
}

.page-resources-bj88-link-common-issues__solution-text {
  font-size: 16px;
  color: #555555;
  text-align: center;
}

/* --- FAQ Section --- */
.page-resources-bj88-link-common-issues__faq-section {
  padding: 80px 0;
  background-color: var(--primary-color, #26A9E0); /* Dark background for FAQ */
  color: #ffffff; /* White text */
}

.page-resources-bj88-link-common-issues__faq-section .page-resources-bj88-link-common-issues__section-title {
  color: #ffffff;
}

.page-resources-bj88-link-common-issues__faq-section .page-resources-bj88-link-common-issues__section-title::after {
  background-color: #ffffff;
}

.page-resources-bj88-link-common-issues__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

/* FAQ容器样式 */
.page-resources-bj88-link-common-issues__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ默认状态 - 答案隐藏 */
.page-resources-bj88-link-common-issues__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 20px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-resources-bj88-link-common-issues__faq-item.active .page-resources-bj88-link-common-issues__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo độ ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px !important;
  opacity: 1;
  background: #f0f8ff; /* Light background for answer */
  border-radius: 0 0 8px 8px;
  color: #333333; /* Dark text for light background */
}

/* Vấn đề phong cách */
.page-resources-bj88-link-common-issues__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #ffffff; /* White background for question */
  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;
  color: var(--primary-color, #26A9E0); /* Primary color for question text */
}

.page-resources-bj88-link-common-issues__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-bj88-link-common-issues__faq-question:active {
  background: #eeeeee;
}

/* Vấn đề tiêu đề phong cách */
.page-resources-bj88-link-common-issues__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện click */
  color: inherit; /* Kế thừa màu từ cha (.faq-question) */
}

/* Chuyển đổi biểu tượng */
.page-resources-bj88-link-common-issues__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color, #26A9E0); /* Primary color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-resources-bj88-link-common-issues__faq-item.active .page-resources-bj88-link-common-issues__faq-toggle {
  transform: rotate(45deg); /* Xoay để tạo hiệu ứng dấu trừ */
  color: #333; /* Màu tối hơn khi hoạt động */
}

/* --- CTA Banner Section --- */
.page-resources-bj88-link-common-issues__cta-banner {
  padding: 60px 0;
  background-color: var(--secondary-color, #FFFFFF);
  text-align: center;
  color: #333333;
}

.page-resources-bj88-link-common-issues__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-resources-bj88-link-common-issues__cta-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color, #26A9E0);
  margin-bottom: 20px;
}

.page-resources-bj88-link-common-issues__cta-text {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 600px;
}

.page-resources-bj88-link-common-issues__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color, #26A9E0);
  color: #ffffff;
  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;
}

.page-resources-bj88-link-common-issues__btn-primary:hover {
  background: #1e87b8;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- Color Contrast Classes (Smart Contrast System) --- */
.page-resources-bj88-link-common-issues__dark-bg {
  background: var(--primary-color, #26A9E0);
  color: #ffffff; /* Deep blue background, white text */
}

.page-resources-bj88-link-common-issues__light-bg {
  background: var(--secondary-color, #FFFFFF);
  color: #333333; /* White background, dark text */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-resources-bj88-link-common-issues__hero-content h1 {
    font-size: 42px;
  }
  .page-resources-bj88-link-common-issues__hero-description {
    font-size: 20px;
  }
  .page-resources-bj88-link-common-issues__section-title {
    font-size: 32px;
  }
  .page-resources-bj88-link-common-issues__card-title {
    font-size: 20px;
  }
  .page-resources-bj88-link-common-issues__solution-title {
    font-size: 22px;
  }
  .page-resources-bj88-link-common-issues__faq-question h3 {
    font-size: 17px;
  }
  .page-resources-bj88-link-common-issues__cta-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .page-resources-bj88-link-common-issues {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 🚨 Mobile Hero Section */
  .page-resources-bj88-link-common-issues__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-bj88-link-common-issues__hero-content h1 {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-resources-bj88-link-common-issues__hero-description {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .page-resources-bj88-link-common-issues__cta-button {
    padding: 12px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-top: 15px;
  }

  .page-resources-bj88-link-common-issues__intro-section,
  .page-resources-bj88-link-common-issues__content-section,
  .page-resources-bj88-link-common-issues__solutions-section,
  .page-resources-bj88-link-common-issues__faq-section,
  .page-resources-bj88-link-common-issues__cta-banner {
    padding: 40px 0;
  }
  
  .page-resources-bj88-link-common-issues__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  /* 🚨 Mobile Images */
  .page-resources-bj88-link-common-issues img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources-bj88-link-common-issues__card-image {
    height: 200px; /* Adjust height for mobile cards */
  }

  /* 🚨 Mobile Containers */
  .page-resources-bj88-link-common-issues__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* FAQ Mobile */
  .page-resources-bj88-link-common-issues__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources-bj88-link-common-issues__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px); /* Adjust width to make space for toggle */
  }
  
  .page-resources-bj88-link-common-issues__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-resources-bj88-link-common-issues__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources-bj88-link-common-issues__faq-item.active .page-resources-bj88-link-common-issues__faq-answer {
    padding: 15px !important;
  }

  /* CTA Banner Mobile */
  .page-resources-bj88-link-common-issues__cta-title {
    font-size: 24px;
  }
  .page-resources-bj88-link-common-issues__cta-text {
    font-size: 16px;
  }
  .page-resources-bj88-link-common-issues__btn-primary {
    padding: 12px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-resources-bj88-link-common-issues__paragraph {
    font-size: 16px;
  }
  .page-resources-bj88-link-common-issues__solution-icon {
    width: 100px;
    height: 100px;
  }
  .page-resources-bj88-link-common-issues__solution-title {
    font-size: 20px;
  }
  .page-resources-bj88-link-common-issues__solution-text {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources-bj88-link-common-issues__hero-content h1 {
    font-size: 28px;
  }
  .page-resources-bj88-link-common-issues__hero-description {
    font-size: 16px;
  }
  .page-resources-bj88-link-common-issues__section-title {
    font-size: 24px;
  }
  .page-resources-bj88-link-common-issues__card-title {
    font-size: 18px;
  }
  .page-resources-bj88-link-common-issues__card-text {
    font-size: 14px;
  }
  .page-resources-bj88-link-common-issues__solution-title {
    font-size: 18px;
  }
  .page-resources-bj88-link-common-issues__faq-question h3 {
    font-size: 15px;
  }
  .page-resources-bj88-link-common-issues__cta-title {
    font-size: 22px;
  }
}

/* Ensure links in dark sections have good contrast */
.page-resources-bj88-link-common-issues__dark-bg a {
  color: #f0f0f0; /* Light color for links on dark background */
  text-decoration: underline;
}

.page-resources-bj88-link-common-issues__dark-bg a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Ensure links in light sections have good contrast */
.page-resources-bj88-link-common-issues__light-bg a {
  color: var(--primary-color, #26A9E0); /* Primary color for links on light background */
  text-decoration: underline;
}

.page-resources-bj88-link-common-issues__light-bg a:hover {
  color: #1e87b8;
  text-decoration: none;
}