/* 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 tối theo custom color */
  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;
}

.page-tintc__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.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); /* Làm tối ảnh nền để chữ dễ đọc */
}

.page-tintc__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #F2FFF6; /* Màu chữ chính */
}

.page-tintc__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #F2FFF6;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-tintc__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #A7D9B8; /* Màu chữ phụ */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tintc__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tintc__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-tintc__video-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
  box-sizing: border-box;
}

.page-tintc__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto 20px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.page-tintc__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  cursor: pointer;
  display: block;
}

.page-tintc__video-description {
  font-size: 1rem;
  color: #A7D9B8;
  max-width: 800px;
  margin: 0 auto;
}

.page-tintc__section-title {
  font-size: 2.2rem;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-tintc__section-description {
  font-size: 1.05rem;
  color: #A7D9B8;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-tintc__news-section,
.page-tintc__event-section,
.page-tintc__guide-section,
.page-tintc__success-story-section,
.page-tintc__faq-section,
.page-tintc__cta-section {
  padding: 60px 0;
  background-color: #08160F;
  box-sizing: border-box;
}

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

.page-tintc__news-card,
.page-tintc__event-card,
.page-tintc__guide-card,
.page-tintc__story-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-tintc__news-card:hover,
.page-tintc__event-card:hover,
.page-tintc__guide-card:hover,
.page-tintc__story-card:hover {
  transform: translateY(-5px);
}

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

.page-tintc__news-card-content,
.page-tintc__event-card-content,
.page-tintc__guide-card-content,
.page-tintc__story-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-tintc__news-card-title,
.page-tintc__event-card-title,
.page-tintc__guide-card-title,
.page-tintc__story-card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-tintc__news-card-title a:hover,
.page-tintc__event-card-title a:hover,
.page-tintc__guide-card-title a:hover,
.page-tintc__story-card-title a:hover {
  color: #22C768;
}

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

.page-tintc__news-card-excerpt,
.page-tintc__event-card-excerpt,
.page-tintc__guide-card-excerpt,
.page-tintc__story-card-excerpt {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 20px;
}

.page-tintc__news-card-link,
.page-tintc__event-card-link,
.page-tintc__guide-card-link,
.page-tintc__story-card-link {
  display: inline-block;
  color: #57E38D; /* Glow color for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push link to bottom */
}

.page-tintc__news-card-link:hover,
.page-tintc__event-card-link:hover,
.page-tintc__guide-card-link:hover,
.page-tintc__story-card-link:hover {
  color: #2AD16F;
}

.page-tintc__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-tintc__cta-button--secondary {
  background: none;
  border: 2px solid #2AD16F;
  color: #2AD16F;
  margin-left: 20px;
}

.page-tintc__cta-button--secondary:hover {
  background: #2AD16F;
  color: #F2FFF6;
}

.page-tintc__faq-list {
  margin-top: 40px;
}

.page-tintc__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border */
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: bold;
  color: #F2FFF6;
  user-select: none;
  list-style: none; /* For details/summary */
}

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

.page-tintc__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
  transition: transform 0.3s ease;
}

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
  transform: rotate(45deg);
}

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

.page-tintc__faq-answer p {
  margin: 0;
  color: #A7D9B8;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tintc__hero-section {
    padding: 60px 20px;
  }
  .page-tintc__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-tintc__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-tintc__hero-section {
    padding: 40px 15px;
  }
  .page-tintc__hero-content {
    padding: 0 15px;
  }
  .page-tintc__main-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }
  .page-tintc__intro-text {
    font-size: 0.95rem;
  }
  .page-tintc__cta-button {
    padding: 12px 25px;
    font-size: 0.9rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Reset margin for secondary button */
  }
  .page-tintc__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tintc__section-title {
    font-size: 1.8rem;
  }
  .page-tintc__section-description {
    font-size: 0.95rem;
  }
  .page-tintc__news-grid,
  .page-tintc__event-grid,
  .page-tintc__guide-grid,
  .page-tintc__story-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tintc__news-card-image,
  .page-tintc__event-card-image,
  .page-tintc__guide-card-image,
  .page-tintc__story-card-image {
    height: 180px;
  }
  .page-tintc__news-card-title,
  .page-tintc__event-card-title,
  .page-tintc__guide-card-title,
  .page-tintc__story-card-title {
    font-size: 1.1rem;
  }
  .page-tintc__news-card-excerpt,
  .page-tintc__event-card-excerpt,
  .page-tintc__guide-card-excerpt,
  .page-tintc__story-card-excerpt {
    font-size: 0.9rem;
  }
  .page-tintc__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-tintc__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9rem;
  }
  .page-tintc__video-section {
    padding: 40px 0;
  }
  .page-tintc__video-wrapper {
    padding-bottom: 56.25% !important;
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-tintc__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-tintc__news-section,
  .page-tintc__event-section,
  .page-tintc__guide-section,
  .page-tintc__success-story-section,
  .page-tintc__faq-section,
  .page-tintc__cta-section {
    padding: 40px 0;
  }
  .page-tintc__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure all images are responsive */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}