/* style/tintc.css */

/* Base styles for the Tin Tức page */
.page-tintc {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default background */
}

/* Section spacing and container */
.page-tintc__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.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; /* Small top padding as body handles --header-offset */
  overflow: hidden;
  color: #ffffff;
}

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

.page-tintc__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for readability */
  border-radius: 8px;
}

.page-tintc__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.page-tintc__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-tintc__content-area {
  padding: 60px 0;
}

.page-tintc__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-tintc__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: justify;
}

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

.page-tintc__news-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tintc__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

.page-tintc__card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tintc__card-title a:hover {
  color: #1a7bb0;
}

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

.page-tintc__card-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tintc__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tintc__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-tintc__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background-color: #26A9E0;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-tintc__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding-bottom: 20px;
  text-align: center;
}

.page-tintc__promo-card .page-tintc__card-image {
  height: 200px;
  margin-bottom: 15px;
}

.page-tintc__promo-card .page-tintc__card-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-tintc__promo-card .page-tintc__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 25px;
  padding: 0 15px;
}

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

.page-tintc__cta-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.page-tintc__cta-section .page-tintc__section-title {
  color: #ffffff;
}

.page-tintc__cta-section .page-tintc__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tintc__cta-section .page-tintc__text-block a {
  color: #EA7C07;
  text-decoration: underline;
}

.page-tintc__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-tintc__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

/* FAQ styles */
.page-tintc__faq-list {
  margin-top: 30px;
  margin-bottom: 50px;
  border-top: 1px solid #eee;
}

.page-tintc__faq-item {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  padding: 10px 0;
  list-style: none;
}

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

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

.page-tintc__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-tintc__faq-answer {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  padding-top: 10px;
  padding-bottom: 5px;
  padding-right: 20px;
}

.page-tintc__faq-answer p {
  margin-bottom: 10px;
}

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

/* Ensure content images are not smaller than 200px */
.page-tintc img:not(.page-tintc__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

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

  .page-tintc__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

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

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

@media (max-width: 768px) {
  .page-tintc__container,
  .page-tintc__hero-section,
  .page-tintc__content-area,
  .page-tintc__cta-section,
  .page-tintc__news-card,
  .page-tintc__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tintc__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, small top padding for section */
  }

  .page-tintc__content-area {
    padding: 40px 15px;
  }

  .page-tintc__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-tintc__hero-description {
    font-size: 0.95rem;
  }

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

  .page-tintc__card-image {
    height: 180px;
  }

  .page-tintc__card-title {
    font-size: 1.2rem;
  }

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

  .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;
  }

  /* Image responsive rules */
  .page-tintc img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video responsive rules (if any, though not explicitly in this page's content) */
  .page-tintc video,
  .page-tintc__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-tintc__video-section,
  .page-tintc__video-container,
  .page-tintc__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}