/* style/tintc.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */
.page-tintc {
  background-color: #08160F; /* Nền chính của trang */
  color: #F2FFF6; /* Màu chữ chính */
  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;
}

/* Hero Section */
.page-tintc__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Nhỏ hơn so với --header-offset */
  overflow: hidden;
  color: #F2FFF6;
}

.page-tintc__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-tintc__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Giúp chữ nổi bật hơn */
}

.page-tintc__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-tintc__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #F2FFF6;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-tintc__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #A7D9B8;
}

/* Buttons */
.page-tintc__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-tintc__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tintc__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

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

.page-tintc__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1);
  color: #F2FFF6;
}

/* Section Titles */
.page-tintc__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2FFF6;
  position: relative;
}

.page-tintc__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2AD16F 0%, #13994A 100%);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* News Articles Section */
.page-tintc__news-articles {
  padding: 80px 0;
  background-color: #0A4B2C;
}

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

.page-tintc__article-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E;
  color: #F2FFF6;
}

.page-tintc__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-tintc__article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-tintc__article-content {
  padding: 25px;
}

.page-tintc__article-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.page-tintc__article-title a:hover {
  color: #57E38D;
}

.page-tintc__article-meta {
  font-size: 0.9rem;
  color: #A7D9B8;
  margin-bottom: 15px;
}

.page-tintc__article-summary {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 20px;
}

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

.page-tintc__read-more:hover {
  color: #F2C14E;
}

.page-tintc__view-all-button-container {
  text-align: center;
}

/* About K8BET Section */
.page-tintc__about-k8bet {
  padding: 80px 0;
  background-color: #08160F;
}

.page-tintc__about-content {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.page-tintc__text-block {
  flex: 1;
  color: #A7D9B8;
  font-size: 1.1rem;
}

.page-tintc__text-block p {
  margin-bottom: 20px;
}

.page-tintc__about-image {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Promotions CTA Section */
.page-tintc__promotions-cta {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #11A84E 0%, #22C768 100%);
  color: #F2FFF6;
}

.page-tintc__promotions-cta .page-tintc__section-title {
  color: #F2FFF6;
}

.page-tintc__promotions-cta .page-tintc__section-title::after {
  background: #F2FFF6;
}

.page-tintc__description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-tintc__faq-section {
  padding: 80px 0;
  background-color: #0A4B2C;
}

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

.page-tintc__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #F2FFF6;
  padding: 0;
}

.page-tintc__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  color: #F2FFF6;
  transition: background-color 0.3s ease;
}

.page-tintc__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-tintc__faq-item summary:hover {
  background-color: rgba(87, 227, 141, 0.1);
}

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

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

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
  content: '−';
}

.page-tintc__faq-answer {
  padding: 0 25px 25px;
  font-size: 1rem;
  color: #A7D9B8;
  line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-tintc__about-content {
    flex-direction: column;
  }
  .page-tintc__about-image {
    max-width: 100%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-tintc__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-tintc__hero-description,
  .page-tintc__description {
    font-size: 1rem;
  }

  .page-tintc__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-tintc__articles-grid {
    grid-template-columns: 1fr;
  }

  .page-tintc__hero-section,
  .page-tintc__news-articles,
  .page-tintc__about-k8bet,
  .page-tintc__promotions-cta,
  .page-tintc__faq-section {
    padding: 40px 0;
  }

  .page-tintc__article-card {
    margin: 0 15px;
  }

  .page-tintc__faq-list {
    margin: 0 15px;
  }

  /* Mobile image responsiveness */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-tintc__section,
  .page-tintc__card,
  .page-tintc__container,
  .page-tintc__hero-section,
  .page-tintc__news-articles,
  .page-tintc__about-k8bet,
  .page-tintc__promotions-cta,
  .page-tintc__faq-section,
  .page-tintc__articles-grid,
  .page-tintc__about-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-tintc__hero-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
  }

  /* Mobile button responsiveness */
  .page-tintc__cta-button,
  .page-tintc__btn-primary,
  .page-tintc__btn-secondary,
  .page-tintc a[class*="button"],
  .page-tintc a[class*="btn"] {
    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__cta-buttons,
  .page-tintc__button-group,
  .page-tintc__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-tintc__cta-buttons {
    display: flex;
    flex-direction: column; 
  }

  .page-tintc__hero-content {
    padding: 0 15px;
  }

  .page-tintc__article-content {
    padding: 15px;
  }

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

  .page-tintc__faq-answer {
    padding: 0 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-tintc__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }
  .page-tintc__main-title {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }
  .page-tintc__hero-description {
    font-size: 0.9rem;
  }
  .page-tintc__cta-button {
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-tintc__section-title {
    font-size: clamp(1.4rem, 8vw, 2rem);
  }
  .page-tintc__article-title {
    font-size: 1.2rem;
  }
  .page-tintc__article-meta,
  .page-tintc__article-summary {
    font-size: 0.85rem;
  }
  .page-tintc__read-more {
    font-size: 0.9rem;
  }
  .page-tintc__text-block {
    font-size: 0.95rem;
  }
  .page-tintc__faq-item summary {
    font-size: 0.95rem;
  }
  .page-tintc__faq-answer {
    font-size: 0.9rem;
  }
}