/* style/tintc.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --page-bg: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại tại đây */
.page-tintc {
  color: var(--text-main);
  background-color: var(--page-bg);
  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, 3.5vw, 42px);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

/* Hero Section */
.page-tintc__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body đã có padding-top, đây là phần đệm nhỏ */
  text-align: center;
  overflow: hidden;
}

.page-tintc__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

.page-tintc__hero-video-link {
  display: block;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.page-tintc__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Kéo nội dung lên một chút để chồng lên phần dưới của ảnh */
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 1;
  position: relative;
}

.page-tintc__hero-title {
  font-size: clamp(32px, 4.5vw, 56px);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-tintc__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tintc__hero-cta {
  display: inline-block;
  padding: 14px 30px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.page-tintc__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

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

.page-tintc__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.page-tintc__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--page-bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Latest News Section */
.page-tintc__latest-news-section {
  padding: 60px 0;
  background-color: var(--page-bg);
}

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

.page-tintc__news-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-tintc__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 10px var(--glow-color);
}

.page-tintc__news-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.page-tintc__news-card-content {
  padding: 20px;
}

.page-tintc__news-card-title {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: 600;
}

.page-tintc__news-card-date {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-tintc__news-card-excerpt {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

/* Categories Section */
.page-tintc__categories-section {
  padding: 60px 0;
  background-color: var(--deep-green-color);
}

.page-tintc__category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-tintc__category-item {
  background-color: var(--card-bg);
  color: var(--text-main);
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-tintc__category-item:hover {
  background-color: var(--gold-color);
  color: var(--page-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Featured Article Section */
.page-tintc__featured-article {
  padding: 60px 0;
  background-color: var(--page-bg);
}

.page-tintc__article-highlight {
  display: flex;
  gap: 40px;
  align-items: center;
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-tintc__article-image {
  width: 50%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.page-tintc__article-content {
  width: 50%;
}

.page-tintc__article-title {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.page-tintc__article-date {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-tintc__article-excerpt {
  font-size: 17px;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Download CTA Section */
.page-tintc__download-cta {
  padding: 80px 0;
  background-color: var(--deep-green-color);
  text-align: center;
}

.page-tintc__cta-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

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

/* FAQ Section */
.page-tintc__faq-section {
  padding: 60px 0;
  background-color: var(--page-bg);
}

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

.page-tintc__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details */
}

.page-tintc__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-tintc__faq-item[open] .page-tintc__faq-question {
  background-color: var(--deep-green-color);
}

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

.page-tintc__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-tintc__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-tintc__article-highlight {
    flex-direction: column;
    text-align: center;
  }

  .page-tintc__article-image,
  .page-tintc__article-content {
    width: 100%;
    max-width: 100%;
  }
  .page-tintc__article-image {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-tintc {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-tintc__hero-content {
    padding: 30px 15px;
    margin-top: -60px;
  }

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

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

  .page-tintc__category-list {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    flex-wrap: nowrap;
  }

  .page-tintc__category-item {
    flex-shrink: 0;
  }

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

  .page-tintc__hero-cta,
  .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;
  }

  /* Images and video 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__latest-news-section,
  .page-tintc__categories-section,
  .page-tintc__featured-article,
  .page-tintc__download-cta,
  .page-tintc__faq-section {
    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;
    padding-bottom: 40px !important;
  }

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

  .page-tintc__article-image {
    height: auto;
  }

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

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