/* style/tintc.css */
/* Base styles for the page-tintc scope */
.page-tintc {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color, will be overridden by specific sections */
  background-color: var(--bg-main); /* From shared.css, likely #08160F */
}

/* Color variables from the provided palette */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --bg-main: #08160F; /* This is the body background color */
  --text-main: #F2FFF6; /* Main text for dark backgrounds */
  --text-secondary: #A7D9B8; /* Secondary text for dark backgrounds */
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Ensure text is readable against the primary background (dark) */
.page-tintc,
.page-tintc__hero-content p,
.page-tintc__news-card p,
.page-tintc__faq-answer p {
  color: var(--text-main); /* Light text for dark background */
}

.page-tintc a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-tintc a:hover {
  text-decoration: underline;
}

/* Container for content */
.page-tintc__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-tintc__container--flex {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Section titles */
.page-tintc__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-tintc__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--gold-color);
  border-radius: 2px;
}

/* Paragraphs */
.page-tintc__paragraph {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.page-tintc__highlight {
  color: var(--glow-color);
  font-weight: bold;
}

/* Buttons */
.page-tintc__cta-group {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-tintc__cta-group--center {
  justify-content: center;
}

.page-tintc__btn-primary,
.page-tintc__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button doesn't exceed container */
  box-sizing: border-box;
}

.page-tintc__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

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

.page-tintc__btn-secondary {
  background: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
}

.page-tintc__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--bg-main); /* Dark text for contrast */
}

/* Hero Section */
.page-tintc__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  box-sizing: border-box;
}

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

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

.page-tintc__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 800;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tintc__description {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 30px;
}

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

.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: var(--card-bg); /* Darker background for cards */
  border-radius: 10px;
  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.5);
}

.page-tintc__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  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: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tintc__card-title a {
  color: var(--text-main); /* Light text for card title */
  transition: color 0.3s ease;
}

.page-tintc__card-title a:hover {
  color: var(--gold-color);
  text-decoration: none;
}

.page-tintc__card-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-tintc__card-excerpt {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1; /* Push read more to bottom */
}

.page-tintc__read-more {
  display: inline-block;
  color: var(--glow-color);
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-tintc__read-more:hover {
  color: var(--gold-color);
}

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

/* Industry Insights Section */
.page-tintc__industry-insights-section {
  padding: 80px 0;
  background-color: var(--deep-green); /* Use a deeper green for contrast */
}

/* HL8 Commitment Section */
.page-tintc__hl8-commitment-section {
  padding: 80px 0;
  background-color: var(--bg-main);
}

/* FAQ Section */
.page-tintc__faq-section {
  padding: 80px 0;
  background-color: var(--card-bg); /* Use card background for FAQ for visual separation */
}

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

.page-tintc__faq-item {
  background-color: var(--deep-green); /* Slightly darker for individual FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-tintc__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  color: var(--text-main);
  list-style: none; /* Remove default marker */
}

.page-tintc__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-tintc__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

.page-tintc__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-tintc__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary);
}

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

/* Register CTA Section */
.page-tintc__register-cta-section {
  padding: 60px 0;
  background-color: var(--deep-green); /* Consistent dark background */
  text-align: center;
}

.page-tintc__register-cta-section .page-tintc__container--flex {
  flex-direction: column;
  align-items: center;
}

.page-tintc__register-cta-section .page-tintc__cta-content {
  margin-bottom: 30px;
}

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

  .page-tintc__container {
    padding: 0 15px;
  }

  .page-tintc__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-tintc__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust clamp for smaller screens */
  }

  .page-tintc__description {
    font-size: 1.1rem;
  }

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

  .page-tintc__btn-primary,
  .page-tintc__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-tintc__hero-section {
    padding: 10px 0 40px 0; /* Adjust padding for mobile */
    min-height: 400px;
  }

  .page-tintc__hero-content {
    padding: 15px;
  }

  .page-tintc__featured-news-section,
  .page-tintc__industry-insights-section,
  .page-tintc__hl8-commitment-section,
  .page-tintc__faq-section,
  .page-tintc__register-cta-section {
    padding: 40px 0; /* Adjust section padding */
  }

  .page-tintc__news-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .page-tintc__card-image {
    height: 180px; /* Adjust card image height */
  }

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

  .page-tintc__card-content {
    padding: 20px;
  }

  .page-tintc__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

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

  /* 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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-tintc__video-section {
    padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }
}

/* Ensure content images have minimum size and no filter */
.page-tintc img:not(.page-tintc__hero-image) { /* Exclude hero image as it's full width */
  min-width: 200px;
  min-height: 200px;
  filter: none !important; /* No filter for color */
}

.page-tintc__card-image {
  min-width: 200px;
  min-height: 200px;
}