/* style/tintc.css */

/* Base styles for the page */
.page-tintc {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-color);
}

/* Color variables for the page */
.page-tintc__dark-bg {
  background-color: var(--background);
  color: var(--text-main);
}

.page-tintc__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-tintc__text-main {
  color: var(--text-main);
}

.page-tintc__text-secondary {
  color: var(--text-secondary);
}

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

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

.page-tintc__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-tintc__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
}

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

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

.page-tintc__hero-cta {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-tintc__hero-cta:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

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

/* Section titles */
.page-tintc__section-title {
  font-size: 2.5em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

/* Latest News Section */
.page-tintc__latest-news-section {
  padding: 80px 0;
  background-color: var(--background);
}

.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-b-g);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-main);
}

.page-tintc__news-card:hover {
  transform: translateY(-5px);
}

.page-tintc__news-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

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

.page-tintc__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--text-main);
}

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

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

.page-tintc__read-more {
  color: var(--main-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-tintc__view-all {
  text-align: center;
}

.page-tintc__button-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-tintc__button-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Categories Section */
.page-tintc__categories-section {
  padding: 80px 0;
  background-color: var(--deep-green);
}

.page-tintc__category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-tintc__category-item {
  background-color: var(--main-color);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-tintc__category-item:hover {
  background-color: var(--aux-color);
}

/* CTA Section */
.page-tintc__cta-section {
  padding: 80px 0;
  background-color: var(--background);
}

.page-tintc__cta-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--card-b-g);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-tintc__cta-content {
  flex: 1;
  padding: 40px;
  color: var(--text-main);
}

.page-tintc__cta-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: var(--text-main);
}

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

.page-tintc__cta-image {
  flex: 0 0 400px; /* Fixed width for image on desktop */
  height: auto;
  object-fit: cover;
}

/* FAQ Section */
.page-tintc__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-tintc__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333333;
  list-style: none; /* For details/summary */
}

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

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

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

.page-tintc__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
}

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

.page-tintc__faq-answer a {
  color: var(--main-color);
  text-decoration: none;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-tintc__hero-content {
    padding: 0 15px;
  }
  .page-tintc__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-tintc__cta-image {
    flex: 0 0 300px;
  }
}

@media (max-width: 768px) {
  .page-tintc__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-tintc__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-tintc__intro-text {
    font-size: 1em;
  }
  .page-tintc__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-tintc__news-grid {
    grid-template-columns: 1fr;
  }
  .page-tintc__latest-news-section,
  .page-tintc__categories-section,
  .page-tintc__cta-section,
  .page-tintc__faq-section {
    padding: 50px 0;
  }
  .page-tintc__cta-wrapper {
    flex-direction: column;
  }
  .page-tintc__cta-content {
    padding: 30px 20px;
    text-align: center;
  }
  .page-tintc__cta-image {
    flex: none;
    width: 100%;
    height: auto;
  }
  .page-tintc__category-list {
    flex-direction: column;
    align-items: center;
  }
  .page-tintc__category-item {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }

  /* Mobile image adaptation */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-tintc__hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .page-tintc__news-thumbnail {
    height: 180px !important;
  }
  .page-tintc__cta-image {
    width: 100% !important;
    height: auto !important;
  }

  /* Mobile button adaptation */
  .page-tintc__hero-cta,
  .page-tintc__button-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;
  }
  .page-tintc__view-all,
  .page-tintc__cta-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-tintc__container,
  .page-tintc__hero-section,
  .page-tintc__latest-news-section,
  .page-tintc__categories-section,
  .page-tintc__cta-section,
  .page-tintc__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-tintc__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }
  .page-tintc__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-tintc__section-title {
    font-size: 1.8em;
  }
  .page-tintc__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-tintc__faq-answer {
    padding: 0 20px 15px;
  }
}

/* Color contrast fixes if needed */
.page-tintc__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-tintc__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}