/* style/tintc.css */

/* Base styles for the page-tintc scope */
.page-tintc {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for the page, derived from custom colors */
  background-color: var(--background); /* Use custom background color */
}

/* Custom CSS Variables from the color palette */
: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-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Hero Section */
.page-tintc__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-main);
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden; /* Ensure content doesn't overflow */
}

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

.page-tintc__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-tintc__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-tintc__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* General Section Styles */
.page-tintc__section {
  padding: 60px 20px;
  background-color: var(--background);
  color: var(--text-main);
}

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

.page-tintc__section-title {
  font-size: 2.2em;
  color: var(--gold-color); /* Use gold for section titles for emphasis */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-tintc__section-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Article Grid and Cards */
.page-tintc__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tintc__article-card {
  background-color: var(--card-bg); /* Use custom card background color */
  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__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

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

.page-tintc__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
}

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

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

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

.page-tintc__article-excerpt {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow excerpt to grow and push read-more to bottom */
}

.page-tintc__read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

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

/* Buttons */
.page-tintc__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button-gradient); /* Use custom button gradient */
  color: var(--text-main); /* Ensure white text on dark button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-tintc__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  opacity: 0.9;
}

/* FAQ Section */
.page-tintc__faq-section {
  background-color: var(--deep-green-color); /* Use deep green for FAQ section */
}

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

.page-tintc__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-tintc__faq-item[open] {
  background-color: var(--deep-green-color); /* Slightly darker when open */
  border-color: var(--primary-color);
}

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

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

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

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

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

.page-tintc__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider-color);
  margin-top: -1px; /* Overlap border for cleaner look */
}

/* CTA Section */
.page-tintc__cta-section {
  background-color: var(--deep-green-color); /* Use deep green for CTA */
  text-align: center;
  padding: 80px 20px;
  border-top: 1px solid var(--divider-color);
}

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

.page-tintc__cta-title {
  font-size: 2.5em;
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-tintc__cta-description {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* --- Responsive Design --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-tintc__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }

  .page-tintc__section-title {
    font-size: 2em;
  }

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

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

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

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

  .page-tintc__main-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 15px;
  }

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

  .page-tintc__section,
  .page-tintc__cta-section {
    padding: 40px 15px;
  }

  .page-tintc__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-tintc__section-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-tintc__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tintc__article-image {
    height: 200px; /* Adjust image height for mobile cards */
  }

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

  .page-tintc__article-title {
    font-size: 1.2em;
    margin-bottom: 8px;
  }

  .page-tintc__article-meta {
    font-size: 0.85em;
    margin-bottom: 10px;
  }

  .page-tintc__article-excerpt {
    font-size: 0.95em;
    margin-bottom: 15px;
  }

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

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

  .page-tintc__cta-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-tintc__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* Image responsive rules */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Button responsive rules */
  .page-tintc__btn-primary {
    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;
  }
}