/* style/tintc.css */

/* Base styles for the tintc page */
.page-tintc {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color, #F2FFF6); /* Default text color for the page content */
  background-color: var(--background-color, #08160F); /* Page background color from shared */
  line-height: 1.6;
}

/* Ensure headings have good contrast and are not excessively large on desktop */
.page-tintc h1,
.page-tintc h2,
.page-tintc h3,
.page-tintc h4,
.page-tintc h5,
.page-tintc h6 {
  color: var(--text-main-color, #F2FFF6);
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  font-weight: bold;
}

.page-tintc__main-title {
  font-size: clamp(2rem, 5vw, 3rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

.page-tintc__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
  color: var(--gold-color, #F2C14E); /* Using gold for section titles */
}

.page-tintc__section-description {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary-color, #A7D9B8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-tintc__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  background-color: var(--deep-green-color, #0A4B2C); /* Darker green background for hero */
}

.page-tintc__hero-image {
  width: 100%;
  max-width: 1920px;
  height: auto;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 10px;
}

.page-tintc__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

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

.page-tintc__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tintc__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tintc__cta-button--large {
  padding: 18px 35px;
  font-size: 1.15rem;
}


/* News List Section */
.page-tintc__news-list-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.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: 12px;
  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.4);
}

.page-tintc__news-card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
}

.page-tintc__news-card-content {
  padding: 20px;
  flex-grow: 1; /* Allow content to fill available space */
  display: flex;
  flex-direction: column;
}

.page-tintc__news-card-title {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.page-tintc__news-card-title a:hover {
  color: var(--glow-color, #57E38D);
}

.page-tintc__news-card-date {
  font-size: 0.9rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 15px;
}

.page-tintc__news-card-excerpt {
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1; /* Allow excerpt to take up space */
}

.page-tintc__read-more-button {
  display: inline-block;
  margin-top: auto; /* Push button to the bottom */
  padding: 10px 20px;
  background: var(--glow-color, #57E38D); /* Using glow color for read more for contrast */
  color: #11271B; /* Dark text on light button */
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
  text-align: center;
}

.page-tintc__read-more-button:hover {
  background-color: #4CAF50; /* Slightly darker green on hover */
}

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

.page-tintc__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--gold-color, #F2C14E);
  color: #11271B; /* Dark text on gold button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-tintc__view-all-button:hover {
  background-color: #e0b03d; /* Slightly darker gold on hover */
}


/* Promotions Section */
.page-tintc__promotions-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

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

.page-tintc__promo-card {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-tintc__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-tintc__promo-title {
  font-size: 1.4rem;
  color: var(--glow-color, #57E38D);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-tintc__promo-details {
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 25px;
}

.page-tintc__promo-button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-tintc__promo-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
}


/* FAQ Section */
.page-tintc__faq-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-tintc__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-tintc__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, #2E7A4E);
  overflow: hidden; /* For details tag */
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  cursor: pointer;
  background-color: var(--deep-green-color, #0A4B2C); /* Slightly darker for summary */
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
  list-style: none; /* For details tag */
  -webkit-touch-callout: none; /* Disable text selection on iOS */
  -webkit-user-select: none; /* Disable text selection on iOS */
  -moz-user-select: none; /* Disable text selection on Firefox */
  -ms-user-select: none; /* Disable text selection on IE/Edge */
  user-select: none; /* Disable text selection */
}

/* For details tag, hide default marker */
.page-tintc__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-tintc__faq-item summary::marker {
  display: none;
}


.page-tintc__faq-item[open] .page-tintc__faq-question {
  border-bottom: none; /* Remove border when open */
}

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

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

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


/* Call to Action Section */
.page-tintc__cta-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 40px 20px;
  background-color: var(--deep-green-color, #0A4B2C);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-tintc__cta-content {
  max-width: 700px;
}

.page-tintc__cta-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold-color, #F2C14E);
  margin-bottom: 20px;
}

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

.page-tintc__cta-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* Responsive Styles */
@media (min-width: 769px) {
  .page-tintc__cta-section {
    flex-direction: row;
    justify-content: space-around;
    text-align: left;
  }
  .page-tintc__cta-content {
    text-align: left;
    margin-right: 30px;
  }
  .page-tintc__cta-image {
    max-width: 40%;
  }
}

@media (max-width: 768px) {
  .page-tintc {
    font-size: 15px;
  }

  .page-tintc__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

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

  .page-tintc__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-tintc__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-tintc__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 20px;
  }

  .page-tintc__news-list-section,
  .page-tintc__promotions-section,
  .page-tintc__faq-section,
  .page-tintc__cta-section {
    margin: 40px auto;
    padding: 0 15px;
  }

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

  .page-tintc__news-card-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-tintc__news-card-title {
    font-size: 1.1rem;
  }

  .page-tintc__news-card-excerpt {
    font-size: 0.95rem;
  }

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

  .page-tintc__promo-details {
    font-size: 0.95rem;
  }

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

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

  .page-tintc__cta-section {
    flex-direction: column;
    padding: 30px 15px;
    gap: 20px;
  }

  .page-tintc__cta-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

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

  .page-tintc__cta-image {
    max-width: 100%;
  }

  /* Responsive image styles */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-tintc__hero-section,
  .page-tintc__news-list-section,
  .page-tintc__promotions-section,
  .page-tintc__faq-section,
  .page-tintc__cta-section,
  .page-tintc__news-card,
  .page-tintc__promo-card,
  .page-tintc__faq-item,
  .page-tintc__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Ensure no horizontal scroll */
  }

  /* Buttons responsive */
  .page-tintc__cta-button,
  .page-tintc__read-more-button,
  .page-tintc__view-all-button,
  .page-tintc__promo-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-align: center; /* Center text in full-width buttons */
  }

  /* If multiple buttons in a row, stack them */
  .page-tintc__cta-buttons,
  .page-tintc__button-group { /* Add relevant BEM classes if needed */
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

/* Color Contrast Safeguards - Applied to relevant elements */
.page-tintc {
  color: var(--text-main-color, #F2FFF6); /* Main text for page */
}

.page-tintc p,
.page-tintc li,
.page-tintc__hero-description,
.page-tintc__news-card-excerpt,
.page-tintc__promo-details,
.page-tintc__faq-answer,
.page-tintc__cta-description {
  color: var(--text-secondary-color, #A7D9B8); /* Secondary text for paragraphs */
}

.page-tintc__news-card-title a,
.page-tintc__faq-qtext {
  color: var(--text-main-color, #F2FFF6); /* Link/question text */
}

.page-tintc__news-card-title a:hover {
  color: var(--glow-color, #57E38D); /* Hover color */
}

.page-tintc__read-more-button {
  background: var(--glow-color, #57E38D);
  color: #11271B; /* Dark text on glow green for contrast */
}

.page-tintc__view-all-button {
  background: var(--gold-color, #F2C14E);
  color: #11271B; /* Dark text on gold for contrast */
}

.page-tintc__cta-button {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text on green gradient for contrast */
}

.page-tintc__promo-button {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text on green gradient for contrast */
}

/* Ensure images have no filters */
.page-tintc img {
  filter: none !important;
}