/* style/tintc.css */

/* Base styles for the page, ensuring text color contrasts with assumed dark body background */
.page-tintc {
  color: #F2FFF6; /* Text Main */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #08160F; /* Background */
}

.page-tintc a {
  color: #57E38D; /* Glow */
  text-decoration: none;
}

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

/* Hero Section */
.page-tintc__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px; /* Space for content below image */
  text-align: center;
  overflow: hidden;
  background-color: #0A4B2C; /* Deep Green */
}

.page-tintc__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
}

.page-tintc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-tintc__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  margin-top: -100px; /* Overlap with image slightly for visual flow */
  background-color: rgba(17, 39, 27, 0.8); /* Card B G with transparency */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-tintc__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-tintc__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

/* General Section Styles */
.page-tintc__section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

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

.page-tintc__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Text Main */
  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: linear-gradient(90deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  border-radius: 2px;
}

.page-tintc__text-block {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  text-align: justify;
}

/* CTA Button Styles */
.page-tintc__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tintc__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-tintc__cta-button--secondary {
  background: #11271B; /* Card B G */
  border: 2px solid #2E7A4E; /* Border */
  color: #A7D9B8; /* Text Secondary */
}

.page-tintc__cta-button--secondary:hover {
  background-color: #1E3A2A; /* Divider */
  border-color: #57E38D; /* Glow */
}

.page-tintc__cta-button--large {
  padding: 18px 40px;
  font-size: 1.3em;
}

.page-tintc__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* News Grid Styles */
.page-tintc__news-grid, .page-tintc__promo-grid, .page-tintc__guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tintc__news-card, .page-tintc__promo-card, .page-tintc__guide-card {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px 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, .page-tintc__promo-card:hover, .page-tintc__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-tintc__news-image, .page-tintc__promo-image, .page-tintc__guide-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  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.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tintc__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-tintc__card-title a:hover {
  color: #57E38D; /* Glow */
}

.page-tintc__card-date {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-tintc__card-excerpt {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tintc__read-more {
  display: inline-block;
  color: #2AD16F; /* Button gradient start color */
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-tintc__read-more:hover {
  color: #57E38D; /* Glow */
}

/* FAQ Section */
.page-tintc__faq-list {
  margin-top: 40px;
}

.page-tintc__faq-item {
  background-color: #11271B; /* Card B G */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B; /* Card B G */
  border-bottom: 1px solid transparent; /* For animation */
  transition: background-color 0.3s ease, border-color 0.3s ease;
  list-style: none; /* Hide default marker for details/summary */
}

.page-tintc__faq-item[open] .page-tintc__faq-question {
  background-color: #0A4B2C; /* Deep Green */
  border-color: #2E7A4E;
}

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

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

.page-tintc__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tintc__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-tintc__section-title {
    font-size: 2em;
  }
  .page-tintc__news-grid, .page-tintc__promo-grid, .page-tintc__guide-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-tintc__hero-content {
    margin-top: -80px;
  }
}

@media (max-width: 768px) {
  .page-tintc__hero-section {
    padding-bottom: 20px;
  }
  .page-tintc__hero-content {
    margin-top: -60px;
    padding: 15px;
  }
  .page-tintc__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-tintc__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-tintc__section {
    padding: 40px 0;
  }
  .page-tintc__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-tintc__text-block {
    font-size: 0.95em;
  }
  .page-tintc__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-tintc__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-tintc__button-group {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }
  .page-tintc__news-grid, .page-tintc__promo-grid, .page-tintc__guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-tintc__news-image, .page-tintc__promo-image, .page-tintc__guide-image {
    height: 180px;
  }
  .page-tintc__card-title {
    font-size: 1.2em;
  }
  .page-tintc__card-date, .page-tintc__card-excerpt {
    font-size: 0.9em;
  }
  .page-tintc__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-tintc__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Mobile container/section responsiveness */
  .page-tintc__section,
  .page-tintc__container,
  .page-tintc__news-card,
  .page-tintc__promo-card,
  .page-tintc__guide-card,
  .page-tintc__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Adjust hero content padding on mobile */
  .page-tintc__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

  /* Button group for mobile */
  .page-tintc__button-group {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Ensure all images are content images, not small icons */
.page-tintc img {
  min-width: 200px;
  min-height: 200px;
}

/* Contrast Fixes */
.page-tintc__dark-bg {
  color: #F2FFF6; /* Text Main */
  background-color: #0A4B2C; /* Deep Green */
}

.page-tintc__light-bg {
  color: #08160F; /* Background (dark text) */
  background-color: #F2FFF6; /* Text Main (light background) */
}

/* Hide default details summary marker */
.page-tintc__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-tintc__faq-item summary::marker {
  display: none;
}