/* style/tintc.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không cần lặp lại ở đây */
.page-tintc {
  color: #ffffff; /* Áp dụng màu chữ sáng cho toàn bộ nội dung do body có 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__section-title {
  font-size: clamp(28px, 4vw, 42px); /* Sử dụng clamp cho tiêu đề */
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0;
}

.page-tintc__section-intro {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-tintc__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px; /* Nhỏ hơn so với --header-offset */
  padding-top: 10px; /* Chỉ một khoảng cách nhỏ ở trên */
  overflow: hidden;
  text-align: center;
}

.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.4); /* Làm tối ảnh nền để chữ nổi bật */
}

.page-tintc__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Nền bán trong suốt cho nội dung để tăng độ tương phản */
  border-radius: 8px;
}

.page-tintc__main-title {
  font-size: clamp(32px, 5vw, 56px); /* Sử dụng clamp cho H1 */
  font-weight: 900;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-tintc__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* Buttons */
.page-tintc__btn-primary,
.page-tintc__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Cho phép xuống dòng */
  word-wrap: break-word; /* Ngắt từ khi cần */
}

.page-tintc__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin-right: 15px;
}

.page-tintc__btn-primary:hover {
  background: #1e87c0;
  border-color: #1e87c0;
}

.page-tintc__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-tintc__btn-secondary:hover {
  background: #e0e0e0;
  color: #1e87c0;
}

/* Latest News Section */
.page-tintc__latest-news-section {
  padding: 80px 0;
  background: #1a1a2e; /* Nền tối */
}

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

.page-tintc__news-card {
  background: rgba(255, 255, 255, 0.1); /* Nền card bán trong suốt */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-tintc__news-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-tintc__news-card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tintc__news-card-title a {
  color: #26A9E0; /* Màu thương hiệu cho tiêu đề link */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tintc__news-card-title a:hover {
  color: #FFFFFF;
}

.page-tintc__news-card-meta {
  font-size: 14px;
  color: #b0b0b0;
  margin-bottom: 15px;
}

.page-tintc__news-card-excerpt {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tintc__read-more-btn {
  display: inline-block;
  margin-top: auto;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

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

/* In-depth Analysis Section */
.page-tintc__in-depth-analysis-section {
  padding: 80px 0;
  background: #20203a; /* Nền tối hơn một chút */
}

.page-tintc__article-block {
  margin-bottom: 60px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.08); /* Nền khối bài viết bán trong suốt */
  border-radius: 10px;
}

.page-tintc__article-block:last-child {
  margin-bottom: 0;
}

.page-tintc__article-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-tintc__article-text {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-tintc__article-text a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-tintc__article-text a:hover {
  color: #FFFFFF;
}

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

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

.page-tintc__faq-item {
  background: rgba(255, 255, 255, 0.1); /* Nền FAQ item bán trong suốt */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 19px;
  font-weight: bold;
  cursor: pointer;
  background: #26A9E0; /* Màu nền cho câu hỏi */
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none; /* Ẩn marker mặc định của summary */
}

.page-tintc__faq-question::-webkit-details-marker {
  display: none; /* Ẩn marker mặc định của summary trên Webkit */
}

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

.page-tintc__faq-toggle {
  font-size: 24px;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
  transform: rotate(45deg); /* Xoay dấu + thành X khi mở */
}

.page-tintc__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.05); /* Nền câu trả lời nhẹ hơn */
  color: #f0f0f0;
}

.page-tintc__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-tintc__faq-answer a:hover {
  color: #FFFFFF;
}

/* CTA Section */
.page-tintc__cta-section {
  padding: 80px 0;
  background: #20203a;
  text-align: center;
}

.page-tintc__cta-section .page-tintc__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-tintc__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-tintc__cta-content {
  max-width: 800px;
}

.page-tintc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Đảm bảo wrapper nút có chiều rộng 100% */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tintc__hero-content {
    padding: 15px;
  }

  .page-tintc__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-tintc__container {
    padding: 0 15px !important;
  }

  .page-tintc__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 20px;
  }

  .page-tintc__section-intro {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  .page-tintc__main-title {
    font-size: clamp(28px, 7vw, 48px);
  }

  .page-tintc__hero-description {
    font-size: 18px;
  }

  .page-tintc__btn-primary,
  .page-tintc__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tintc__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tintc__news-card-image {
    height: 180px;
  }

  .page-tintc__news-card-title {
    font-size: 20px;
  }

  .page-tintc__article-title {
    font-size: 24px;
  }

  .page-tintc__article-text {
    font-size: 16px;
  }

  .page-tintc__faq-question {
    font-size: 17px;
    padding: 15px 20px;
  }

  .page-tintc__faq-answer {
    font-size: 15px;
    padding: 15px 20px;
  }

  /* Responsive images */
  .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__latest-news-section,
  .page-tintc__in-depth-analysis-section,
  .page-tintc__faq-section,
  .page-tintc__cta-section,
  .page-tintc__news-card,
  .page-tintc__article-block,
  .page-tintc__faq-item,
  .page-tintc__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Đảm bảo không tràn ngang */
  }
}

@media (max-width: 480px) {
  .page-tintc__hero-content {
    padding: 10px;
  }

  .page-tintc__main-title {
    font-size: clamp(24px, 8vw, 40px);
  }

  .page-tintc__hero-description {
    font-size: 16px;
  }

  .page-tintc__btn-primary,
  .page-tintc__btn-secondary {
    padding: 12px 20px;
  }

  .page-tintc__news-card-title {
    font-size: 18px;
  }

  .page-tintc__faq-question {
    font-size: 16px;
  }
}