/* style/tintc.css */
.page-tintc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Default to Text Main */
  background-color: var(--background-color-custom, #08160F); /* Custom background color */
}

.page-tintc__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-tintc__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--background-color-custom, #08160F);
}

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

.page-tintc__hero-content {
  text-align: center;
  max-width: 900px;
  color: var(--text-main-color, #F2FFF6);
}

.page-tintc__main-title {
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  /* Flexible font size, not fixed large value */
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.page-tintc__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-tintc__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--text-main-color, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.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: var(--card-bg-color, #11271B);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-tintc__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px var(--glow-color, #57E38D);
}

.page-tintc__news-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-tintc__news-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-tintc__news-title a {
  color: var(--text-main-color, #F2FFF6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tintc__news-title a:hover {
  color: var(--gold-color, #F2C14E);
}

.page-tintc__news-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tintc__read-more {
  display: inline-block;
  color: var(--gold-color, #F2C14E);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-tintc__read-more:hover {
  color: var(--glow-color, #57E38D);
  text-decoration: underline;
}

.page-tintc__articles-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.page-tintc__article-item {
  display: flex;
  background-color: var(--card-bg-color, #11271B);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-tintc__article-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.page-tintc__article-content {
  padding: 20px;
  color: var(--text-main-color, #F2FFF6);
}

.page-tintc__article-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.page-tintc__article-title a {
  color: var(--text-main-color, #F2FFF6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tintc__article-title a:hover {
  color: var(--gold-color, #F2C14E);
}

.page-tintc__article-meta {
  font-size: 0.85rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 10px;
}

.page-tintc__article-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-tintc__faq-section {
  background-color: var(--deep-green-color, #0A4B2C);
  padding: 60px 20px;
  border-radius: 10px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color, #2E7A4E);
}

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

.page-tintc__faq-item {
  background-color: var(--card-bg-color, #11271B);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--divider-color, #1E3A2A);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  color: var(--text-main-color, #F2FFF6);
}

.page-tintc__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main-color, #F2FFF6);
  transition: background-color 0.3s ease;
}

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

.page-tintc__faq-item summary:hover {
  background-color: rgba(var(--primary-color-rgb), 0.1);
}

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

.page-tintc__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color, #F2C14E);
}

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

.page-tintc__cta-section {
  text-align: center;
  background-color: var(--card-bg-color, #11271B);
  border-radius: 10px;
  padding: 50px 20px;
  margin-top: 60px;
  border: 1px solid var(--border-color, #2E7A4E);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.page-tintc__cta-description {
  font-size: 1.1rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 30px;
}

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

.page-tintc__btn-primary,
.page-tintc__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For mobile adaptability */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-tintc__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-tintc__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 10px var(--glow-color, #57E38D);
}

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

.page-tintc__btn-secondary:hover {
  background-color: rgba(var(--glow-color-rgb), 0.1);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tintc__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-tintc__article-item {
    flex-direction: column;
    align-items: center;
  }

  .page-tintc__article-image {
    width: 100%;
    height: 200px;
  }

  .page-tintc__article-content {
    padding: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-tintc__hero-section,
  .page-tintc__section {
    padding: 40px 15px;
  }

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

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

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

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

  .page-tintc__btn-primary,
  .page-tintc__btn-secondary {
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Mobile image responsiveness */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-tintc__hero-section,
  .page-tintc__latest-news,
  .page-tintc__featured-articles,
  .page-tintc__faq-section,
  .page-tintc__cta-section,
  .page-tintc__news-card,
  .page-tintc__article-item,
  .page-tintc__faq-item,
  .page-tintc__cta-buttons,
  .page-tintc__news-grid,
  .page-tintc__articles-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-tintc__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

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

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