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

/* Kiểu toàn cục cho phạm vi page-tintc */
.page-tintc {
  background-color: var(--bg-color, #08160F); /* Màu nền mặc định nếu --bg-color không được đặt */
  color: #F2FFF6; /* Màu văn bản chính cho nền tối */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 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,
.page-tintc__cta-title {
  font-size: clamp(28px, 4vw, 48px); /* Kích thước font H1 linh hoạt */
  font-weight: 700;
  color: #F2FFF6; /* Màu văn bản chính */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tintc__section-description,
.page-tintc__intro-text,
.page-tintc__cta-description {
  font-size: 18px;
  color: #A7D9B8; /* Màu văn bản phụ */
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Phần Hero */
.page-tintc__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Đệm trên nhỏ vì body xử lý --header-offset */
  overflow: hidden; /* Đảm bảo không tràn */
}

.page-tintc__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Khoảng cách giữa hình ảnh và nội dung */
}

.page-tintc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-tintc__hero-content {
  text-align: center;
  z-index: 1; /* Đảm bảo nội dung nằm trên bất kỳ phần tử nền nào */
  max-width: 900px;
}

.page-tintc__main-title {
  font-size: clamp(32px, 5vw, 56px); /* Kích thước font H1 linh hoạt */
  font-weight: 800;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tintc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%; /* Đảm bảo vùng chứa nút có chiều rộng đầy đủ cho khả năng đáp ứng */
  max-width: 500px; /* Giới hạn chiều rộng tối đa cho máy tính để bàn */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.page-tintc__btn-primary,
.page-tintc__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Cho phép văn bản xuống dòng */
  word-wrap: break-word; /* Cho phép các từ dài xuống dòng */
}

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

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

.page-tintc__btn-secondary {
  background: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
  box-shadow: 0 2px 10px rgba(46, 122, 78, 0.3);
}

.page-tintc__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  color: #F2FFF6;
  border-color: #F2FFF6;
  box-shadow: 0 4px 15px rgba(46, 122, 78, 0.5);
  transform: translateY(-2px);
}

/* Phần Tin tức mới nhất */
.page-tintc__latest-news-section {
  padding: 80px 0;
  background-color: #08160F; /* Đảm bảo nền tối */
}

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

.page-tintc__news-card {
  background-color: #11271B; /* Màu nền thẻ */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-tintc__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-tintc__card-image {
  width: 100%;
  height: 220px; /* Chiều cao cố định để nhất quán */
  object-fit: cover;
  display: block;
}

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

.page-tintc__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tintc__card-meta {
  font-size: 14px;
  color: #A7D9B8;
  margin-bottom: 15px;
}

.page-tintc__card-excerpt {
  font-size: 16px;
  color: #A7D9B8;
  flex-grow: 1; /* Cho phép đoạn trích chiếm không gian có sẵn */
}

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

/* Phần Bài viết nổi bật */
.page-tintc__featured-article-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Màu xanh đậm cho một phần riêng biệt */
  color: #F2FFF6;
}

.page-tintc__featured-article-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-tintc__featured-image {
  width: 100%;
  max-width: 600px; /* Chiều rộng tối đa cho hình ảnh */
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-tintc__text-block {
  flex: 1;
}

.page-tintc__article-subtitle {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #F2C14E; /* Màu vàng cho phụ đề */
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-tintc__featured-article-content p {
  font-size: 17px;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Phần Câu hỏi thường gặp */
.page-tintc__faq-section {
  padding: 80px 0;
  background-color: #08160F;
}

.page-tintc__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-tintc__faq-item {
  background-color: #11271B;
  border-radius: 10px;
  padding: 20px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.page-tintc__faq-item[open] {
  background-color: #1E3A2A; /* Hơi tối hơn khi mở */
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  color: #F2FFF6;
  list-style: none; /* Xóa dấu mặc định cho details/summary */
}

.page-tintc__faq-question::-webkit-details-marker {
  display: none; /* Ẩn dấu mặc định cho trình duyệt webkit */
}

.page-tintc__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-tintc__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: #57E38D; /* Màu sáng cho nút bật/tắt */
  width: 30px;
  text-align: center;
}

.page-tintc__faq-answer {
  padding-top: 15px;
  font-size: 17px;
  color: #A7D9B8;
  line-height: 1.6;
  /* Các thuộc tính này chỉ cần thiết nếu sử dụng JS cho hiệu ứng accordion, không phải details/summary */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-tintc__faq-item[open] .page-tintc__faq-answer {
  max-height: 500px; /* Điều chỉnh khi cần cho nội dung, nếu sử dụng JS */
}

/* Phần CTA cuối trang */
.page-tintc__cta-bottom-section {
  padding: 80px 0;
  background-color: #11271B; /* Màu nền thẻ cho CTA riêng biệt */
  text-align: center;
}

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

/* Điều chỉnh đáp ứng */
@media (max-width: 1024px) {
  .page-tintc__featured-article-content {
    flex-direction: column;
    align-items: center;
  }
  .page-tintc__featured-image {
    max-width: 100%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-tintc__hero-section,
  .page-tintc__latest-news-section,
  .page-tintc__featured-article-section,
  .page-tintc__faq-section,
  .page-tintc__cta-bottom-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hình ảnh đáp ứng */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Vùng chứa đáp ứng */
  .page-tintc__section,
  .page-tintc__card,
  .page-tintc__container,
  .page-tintc__news-grid,
  .page-tintc__featured-article-content,
  .page-tintc__faq-list,
  .page-tintc__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0; /* Đã xử lý bởi đệm của phần */
    padding-right: 0; /* Đã xử lý bởi đệm của phần */
  }

  /* Nút đáp ứng */
  .page-tintc__cta-buttons {
    flex-direction: column;
    gap: 15px;
    flex-wrap: wrap !important; /* Đảm bảo nút xuống dòng nếu nhiều */
  }
  .page-tintc__btn-primary,
  .page-tintc__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tintc__main-title {
    font-size: 30px;
  }

  .page-tintc__section-title {
    font-size: 26px;
  }

  .page-tintc__article-subtitle {
    font-size: 22px;
  }

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

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

  .page-tintc__faq-toggle {
    font-size: 20px;
  }

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

/* Để details/summary hoạt động tự nhiên mà không cần JS để mở/đóng,
   nhưng JS sẽ xử lý nội dung bật/tắt +/- */
.page-tintc__faq-item summary {
  list-style: none;
}

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

/* Đảm bảo độ tương phản màu cho tất cả các phần tử văn bản */
.page-tintc h1, .page-tintc h2, .page-tintc h3, .page-tintc h4, .page-tintc h5, .page-tintc h6 {
  color: #F2FFF6;
}
.page-tintc p, .page-tintc li, .page-tintc time {
  color: #A7D9B8;
}
.page-tintc__btn-primary {
  color: #F2FFF6; /* Văn bản trắng trên nút gradient xanh */
}
.page-tintc__btn-secondary {
  color: #2AD16F; /* Văn bản xanh trên nút trong suốt/hơi trắng */
}
.page-tintc__btn-secondary:hover {
  color: #F2FFF6; /* Văn bản trắng khi di chuột */
}