/* style/tintc.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */

.page-tintc {
  background-color: #08160F; /* Nền tối theo tùy chỉnh */
  color: #F2FFF6; /* Chữ sáng trên nền tối */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-tintc__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-tintc__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Chỉ một khoảng đệm nhỏ, không sử dụng var(--header-offset) */
  text-align: center;
  overflow: hidden;
}

.page-tintc__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-tintc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-tintc__hero-content {
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-tintc__main-title {
  color: #F2FFF6; /* Chữ sáng */
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-tintc__hero-description {
  color: #A7D9B8; /* Chữ phụ */
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-tintc__section-title {
  color: #F2FFF6;
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-tintc__section-description {
  color: #A7D9B8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1em;
}

.page-tintc__latest-news, .page-tintc__categories, .page-tintc__game-updates, .page-tintc__promotions, .page-tintc__industry-insights, .page-tintc__cta-section, .page-tintc__faq-section {
  padding: 60px 0;
}

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

.page-tintc__news-card {
  background-color: #11271B; /* Nền thẻ tối */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Viền thẻ */
}

.page-tintc__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.page-tintc__news-card-image {
  width: 100%;
  height: 225px; /* Chiều cao cố định cho ảnh thẻ */
  object-fit: cover;
  display: block;
}

.page-tintc__news-card-content {
  padding: 25px;
}

.page-tintc__news-card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tintc__news-card-title a {
  color: #F2FFF6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tintc__news-card-title a:hover {
  color: #57E38D; /* Hiệu ứng hover cho tiêu đề */
}

.page-tintc__news-card-meta {
  color: #A7D9B8;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.page-tintc__news-card-excerpt {
  color: #A7D9B8;
  margin-bottom: 20px;
}

.page-tintc__read-more {
  color: #57E38D;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-tintc__read-more:hover {
  color: #F2C14E; /* Màu vàng Gold khi hover */
}

.page-tintc__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Cho phép xuống dòng */
  word-wrap: break-word; /* Ngắt từ khi quá dài */
  box-sizing: border-box;
}

.page-tintc__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Chữ sáng trên nền nút */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-tintc__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.page-tintc__btn-secondary {
  background-color: transparent;
  color: #57E38D;
  border: 2px solid #57E38D;
}

.page-tintc__btn-secondary:hover {
  background-color: #57E38D;
  color: #11271B;
}

.page-tintc__btn-link {
  background-color: transparent;
  color: #57E38D;
  border: none;
  padding: 0;
  font-size: 1em;
  text-decoration: underline;
}

.page-tintc__btn-link:hover {
  color: #F2C14E;
}

.page-tintc__view-all-btn-wrapper {
  text-align: center;
  margin-top: 50px;
}

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

.page-tintc__category-item {
  background-color: #11271B;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid #2E7A4E;
}

.page-tintc__category-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-tintc__category-title {
  color: #F2FFF6;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-tintc__category-description {
  color: #A7D9B8;
  margin-bottom: 25px;
}

.page-tintc__cta-section {
  text-align: center;
  padding: 80px 0;
}

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

.page-tintc__faq-section {
  padding: 80px 0;
}

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

.page-tintc__faq-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-tintc__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: #F2FFF6;
  font-weight: bold;
  font-size: 1.15em;
  list-style: none; /* Ẩn marker mặc định */
}

.page-tintc__faq-item summary::-webkit-details-marker {
  display: none; /* Ẩn marker mặc định cho WebKit */
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-tintc__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-tintc__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D;
}

.page-tintc__faq-answer {
  padding: 0 25px 20px;
  color: #A7D9B8;
  font-size: 1em;
  line-height: 1.7;
  /* Sử dụng transition cho details */
}

/* Media Queries cho thiết bị di động */
@media (max-width: 768px) {
  .page-tintc__container {
    padding: 0 15px;
  }

  .page-tintc__hero-section {
    padding: 40px 0;
    padding-top: 10px !important;
  }

  .page-tintc__hero-image {
    height: auto;
  }

  .page-tintc__main-title {
    font-size: 2em; /* Điều chỉnh kích thước tiêu đề chính cho di động */
  }

  .page-tintc__hero-description {
    font-size: 1em;
  }

  .page-tintc__section-title {
    font-size: 2em;
  }

  .page-tintc__section-description {
    font-size: 1em;
  }

  .page-tintc__latest-news, .page-tintc__categories, .page-tintc__game-updates, .page-tintc__promotions, .page-tintc__industry-insights, .page-tintc__cta-section, .page-tintc__faq-section {
    padding: 40px 0;
  }

  .page-tintc__news-grid, .page-tintc__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tintc__news-card-title {
    font-size: 1.3em;
  }

  .page-tintc__news-card-image {
    height: 180px; /* Điều chỉnh chiều cao ảnh thẻ cho di động */
  }

  .page-tintc__btn {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-tintc__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-tintc__btn-primary, .page-tintc__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tintc__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

  /* Responsive images */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-tintc__hero-container,
  .page-tintc__latest-news,
  .page-tintc__categories,
  .page-tintc__game-updates,
  .page-tintc__promotions,
  .page-tintc__industry-insights,
  .page-tintc__cta-section,
  .page-tintc__faq-section,
  .page-tintc__news-card,
  .page-tintc__category-item,
  .page-tintc__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left và padding-right đã được xử lý bởi .page-tintc__container */
    overflow: hidden !important;
  }

  /* Đảm bảo các vùng chứa nút cũng có padding phù hợp */
  .page-tintc__cta-buttons,
  .page-tintc__view-all-btn-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }
}