/* style/tintc.css */

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

/* --- Base Styles --- */
.page-tintc {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* #F2FFF6 */
  background-color: var(--background); /* #08160F */
  line-height: 1.6;
}

.page-tintc__section {
  padding: 60px 0;
  position: relative;
}

.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: var(--text-main); /* #F2FFF6 */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-tintc__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-tintc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Min size requirement */
}

.page-tintc__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

.page-tintc__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

.page-tintc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Buttons --- */
.page-tintc__btn-primary,
.page-tintc__btn-secondary,
.page-tintc__read-more-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

.page-tintc__btn-secondary {
  background-color: transparent;
  color: var(--text-main); /* #F2FFF6 */
  border: 2px solid var(--deep-green); /* #0A4B2C */
}

.page-tintc__btn-secondary:hover {
  background-color: var(--deep-green); /* #0A4B2C */
  color: var(--text-main); /* #F2FFF6 */
}

.page-tintc__read-more-btn {
  background-color: var(--deep-green); /* #0A4B2C */
  color: var(--text-main); /* #F2FFF6 */
  border: none;
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-tintc__read-more-btn:hover {
  background-color: var(--primary-color); /* #11A84E */
}

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

.page-tintc__news-card {
  background-color: var(--card-bg); /* #11271B */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  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 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tintc__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Min size requirement */
}

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

.page-tintc__card-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  line-height: 1.4;
  flex-grow: 1;
}

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

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

.page-tintc__card-meta {
  font-size: 0.9em;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 15px;
}

.page-tintc__card-excerpt {
  font-size: 1em;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 20px;
}

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

/* --- Dark Section (for contrast) --- */
.page-tintc__dark-section {
  background-color: var(--deep-green); /* #0A4B2C */
}

.page-tintc__dark-section .page-tintc__section-title,
.page-tintc__dark-section .page-tintc__card-title a {
  color: var(--text-main); /* #F2FFF6 */
}

.page-tintc__dark-section .page-tintc__card-meta,
.page-tintc__dark-section .page-tintc__card-excerpt {
  color: var(--text-secondary); /* #A7D9B8 */
}

/* --- FAQ Section --- */
.page-tintc__faq-section {
  background-color: var(--background); /* #08160F */
}

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

.page-tintc__faq-item {
  background-color: var(--card-bg); /* #11271B */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--divider); /* #1E3A2A */
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-main); /* #F2FFF6 */
  cursor: pointer;
  background-color: var(--card-bg); /* #11271B */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-tintc__faq-question:hover {
  background-color: var(--deep-green); /* #0A4B2C */
}

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

.page-tintc__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-tintc__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-secondary); /* #A7D9B8 */
  line-height: 1.7;
}

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

.page-tintc__faq-answer .page-tintc__btn-primary {
  margin-top: 15px;
}

/* --- CTA Section --- */
.page-tintc__cta-section {
  background-color: var(--deep-green); /* #0A4B2C */
  text-align: center;
  padding: 80px 0;
}

.page-tintc__cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--card-bg); /* #11271B */
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.page-tintc__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  min-height: 200px; /* Min size requirement */
}

.page-tintc__cta-title {
  font-size: 2em;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-tintc__cta-description {
  font-size: 1.1em;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-tintc__section-title {
    font-size: 2.2em;
  }
  .page-tintc__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
}

@media (max-width: 768px) {
  .page-tintc__section {
    padding: 40px 0;
  }

  .page-tintc__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-tintc__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

  .page-tintc__hero-description {
    font-size: 1em;
  }

  .page-tintc__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

  .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;
  }

  .page-tintc__hero-image-wrapper,
  .page-tintc__cta-banner,
  .page-tintc__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .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-image-wrapper,
  .page-tintc__cta-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

  .page-tintc__card-image {
    height: 200px; /* Slightly smaller for mobile */
  }

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

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

  .page-tintc__cta-section {
    padding: 50px 0;
  }

  .page-tintc__cta-title {
    font-size: 1.5em;
  }

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