/* style/resources-tt88-slot-strategy.css */

/* Biến CSS */
:root {
  --tt88-primary: #007bff;
  --tt88-secondary: #ffc107;
  --tt88-dark-text: #333333;
  --tt88-light-text: #ffffff;
  --tt88-gray-light: #f8f9fa;
  --tt88-gray-medium: #e9ecef;
  --tt88-border-color: #dee2e6;
}

/* 🚨 Cấu hình màu sắc tổng thể dựa trên body background từ shared.css */
/* Giả định var(--dark-bg-1) là nền tối */
.page-resources-tt88-slot-strategy {
  color: var(--tt88-light-text); /* Chữ sáng trên nền tối của body */
  background-color: transparent; /* Để body background từ shared.css hiển thị */
}

/* 🚨 Fixed Navigation Bar Spacing (Desktop) */
.page-resources-tt88-slot-strategy__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Đảm bảo không bị che bởi nav fixed */
  margin-top: 0;
  background: linear-gradient(135deg, var(--tt88-primary), var(--tt88-secondary)); /* Mặc định nếu không có ảnh */
}

.page-resources-tt88-slot-strategy__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-resources-tt88-slot-strategy__hero-image {
  width: 100%;
  margin: 0;
}

.page-resources-tt88-slot-strategy__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-resources-tt88-slot-strategy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-resources-tt88-slot-strategy__introduction-section {
  padding: 60px 0;
  text-align: center;
}

.page-resources-tt88-slot-strategy__main-title {
  font-size: 3em;
  color: var(--tt88-primary); /* Sử dụng màu chính */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources-tt88-slot-strategy__heading {
  font-size: 2.2em;
  margin-bottom: 25px;
  text-align: center;
  color: var(--tt88-secondary); /* Sử dụng màu phụ */
  position: relative;
  padding-bottom: 10px;
}

.page-resources-tt88-slot-strategy__heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--tt88-primary);
  border-radius: 2px;
}

.page-resources-tt88-slot-strategy__sub-heading {
  font-size: 1.6em;
  color: var(--tt88-secondary); /* Sử dụng màu phụ */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-tt88-slot-strategy__paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: inherit; /* Kế thừa từ phần tử cha để đảm bảo contrast */
}

.page-resources-tt88-slot-strategy__link {
  color: var(--tt88-secondary); /* Màu liên kết nổi bật */
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-tt88-slot-strategy__link:hover {
  color: var(--tt88-primary);
}

.page-resources-tt88-slot-strategy__section {
  padding: 60px 0;
}

.page-resources-tt88-slot-strategy__light-bg {
  background-color: var(--tt88-gray-light);
  color: var(--tt88-dark-text); /* Chữ tối trên nền sáng */
}

.page-resources-tt88-slot-strategy__dark-bg {
  background-color: var(--tt88-primary); /* Nền màu chính */
  color: var(--tt88-light-text); /* Chữ sáng trên nền tối */
}

.page-resources-tt88-slot-strategy__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-resources-tt88-slot-strategy__grid-layout--two-col {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.page-resources-tt88-slot-strategy__card {
  background-color: var(--tt88-light-text);
  color: var(--tt88-dark-text); /* Chữ tối trên nền sáng */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-tt88-slot-strategy__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-resources-tt88-slot-strategy__card-image {
  width: 100%;
  height: 220px; /* Chiều cao cố định cho hình ảnh thẻ */
  object-fit: cover;
  display: block;
}

.page-resources-tt88-slot-strategy__card-content {
  padding: 25px;
}

.page-resources-tt88-slot-strategy__card-title {
  font-size: 1.4em;
  color: var(--tt88-primary); /* Tiêu đề thẻ màu chính */
  margin-bottom: 15px;
}

.page-resources-tt88-slot-strategy__ordered-list {
  list-style-type: decimal;
  margin-left: 25px;
  padding-left: 0;
  margin-bottom: 20px;
  color: inherit;
}

.page-resources-tt88-slot-strategy__ordered-list li {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 10px;
  color: inherit;
}

.page-resources-tt88-slot-strategy__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-resources-tt88-slot-strategy__btn-primary,
.page-resources-tt88-slot-strategy__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-resources-tt88-slot-strategy__btn-primary {
  background-color: var(--tt88-secondary);
  color: var(--tt88-dark-text); /* Nút phụ màu tối */
  border-color: var(--tt88-secondary);
}

.page-resources-tt88-slot-strategy__btn-primary:hover {
  background-color: var(--tt88-primary);
  border-color: var(--tt88-primary);
  color: var(--tt88-light-text);
}

.page-resources-tt88-slot-strategy__btn-secondary {
  background-color: transparent;
  color: var(--tt88-secondary); /* Nút phụ màu chính */
  border-color: var(--tt88-secondary);
}

.page-resources-tt88-slot-strategy__btn-secondary:hover {
  background-color: var(--tt88-secondary);
  color: var(--tt88-dark-text);
}

.page-resources-tt88-slot-strategy__image-wrapper {
  text-align: center;
  margin: 30px 0;
}

.page-resources-tt88-slot-strategy__image-wrapper--center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources-tt88-slot-strategy__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section Styles */
.page-resources-tt88-slot-strategy__faq-list {
  margin-top: 40px;
}

.page-resources-tt88-slot-strategy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-resources-tt88-slot-strategy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--tt88-light-text);
  border: 1px solid var(--tt88-border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--tt88-dark-text);
}

.page-resources-tt88-slot-strategy__faq-question:hover {
  background: var(--tt88-gray-medium);
  border-color: var(--tt88-primary);
}

.page-resources-tt88-slot-strategy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--tt88-dark-text);
}

.page-resources-tt88-slot-strategy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--tt88-primary);
  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-resources-tt88-slot-strategy__faq-item.active .page-resources-tt88-slot-strategy__faq-toggle {
  transform: rotate(45deg); /* Thay đổi thành dấu X */
  color: var(--tt88-primary);
}

.page-resources-tt88-slot-strategy__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  background: var(--tt88-gray-light);
  color: var(--tt88-dark-text); /* Đảm bảo chữ tối trên nền sáng */
}

.page-resources-tt88-slot-strategy__faq-item.active .page-resources-tt88-slot-strategy__faq-answer {
  max-height: 2000px !important; /* Đủ lớn cho mọi nội dung */
  padding: 20px 20px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

/* 🚨 Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-resources-tt88-slot-strategy__main-title {
    font-size: 2.5em;
  }

  .page-resources-tt88-slot-strategy__heading {
    font-size: 1.8em;
  }

  .page-resources-tt88-slot-strategy__sub-heading {
    font-size: 1.4em;
  }

  .page-resources-tt88-slot-strategy__paragraph,
  .page-resources-tt88-slot-strategy__ordered-list li {
    font-size: 1em;
  }

  .page-resources-tt88-slot-strategy__grid-layout--two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* 🚨 Mobile-specific padding for hero section to avoid fixed header overlap */
  .page-resources-tt88-slot-strategy__hero-section {
    padding-top: 10px; /* Adjust for mobile fixed header */
  }

  .page-resources-tt88-slot-strategy__section {
    padding: 40px 0;
  }

  .page-resources-tt88-slot-strategy__container {
    padding: 0 15px;
  }

  .page-resources-tt88-slot-strategy__main-title {
    font-size: 2em;
  }

  .page-resources-tt88-slot-strategy__heading {
    font-size: 1.6em;
  }

  .page-resources-tt88-slot-strategy__sub-heading {
    font-size: 1.2em;
  }

  .page-resources-tt88-slot-strategy__card-image {
    height: 180px;
  }

  .page-resources-tt88-slot-strategy__card-content {
    padding: 20px;
  }

  .page-resources-tt88-slot-strategy__card-title {
    font-size: 1.2em;
  }

  .page-resources-tt88-slot-strategy__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-tt88-slot-strategy__btn-primary,
  .page-resources-tt88-slot-strategy__btn-secondary {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* FAQ Mobile Styles */
  .page-resources-tt88-slot-strategy__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources-tt88-slot-strategy__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-resources-tt88-slot-strategy__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-resources-tt88-slot-strategy__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources-tt88-slot-strategy__faq-item.active .page-resources-tt88-slot-strategy__faq-answer {
    padding: 15px !important;
  }

  /* 🚨 Mobile image responsive adaptation */
  .page-resources-tt88-slot-strategy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources-tt88-slot-strategy__section,
  .page-resources-tt88-slot-strategy__card,
  .page-resources-tt88-slot-strategy__container,
  .page-resources-tt88-slot-strategy__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-tt88-slot-strategy__image-wrapper--center .page-resources-tt88-slot-strategy__image {
    width: auto !important;
    max-width: 100% !important; /* ensure centered images scale down */
  }
}