/* style/tintc.css */

/* Base Styles & Typography */
.page-tintc {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Default text color for dark backgrounds */
  background-color: var(--background-color, #08160F); /* Assume shared.css provides dark background */
}

.page-tintc h1, .page-tintc h2, .page-tintc h3 {
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-tintc h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
}

.page-tintc h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
}

.page-tintc h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.page-tintc p {
  margin-bottom: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-tintc a {
  color: var(--primary-color, #11A84E);
  text-decoration: none;
}

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

/* Sections */
.page-tintc__section-title {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  position: relative;
}

.page-tintc__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color, #11A84E);
  border-radius: 2px;
}

.page-tintc__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  color: var(--text-secondary-color, #A7D9B8);
}

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

/* Color Contrast System */
.page-tintc__dark-bg {
  background-color: var(--background-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
}

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

.page-tintc__light-bg .page-tintc__section-title, .page-tintc__light-bg .page-tintc__news-title a, .page-tintc__light-bg .page-tintc__faq-question .page-tintc__faq-qtext {
  color: #333333;
}

.page-tintc__light-bg .page-tintc__news-date, .page-tintc__light-bg .page-tintc__news-summary, .page-tintc__light-bg .page-tintc__read-more, .page-tintc__light-bg .page-tintc__faq-answer p {
  color: #555555;
}

.page-tintc__text-contrast-fix {
  color: var(--text-main-color, #F2FFF6) !important;
  text-shadow: none !important;
}

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

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

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

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

.page-tintc__main-title {
  margin-bottom: 1.5rem;
  color: var(--text-main-color, #F2FFF6);
}

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

/* CTA Button */
.page-tintc__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  font-weight: bold;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  white-space: nowrap;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

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

/* Latest News Section */
.page-tintc__latest-news {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

.page-tintc__latest-news .page-tintc__section-title::after {
  background-color: var(--primary-color, #11A84E);
}

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

.page-tintc__news-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

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

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

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

.page-tintc__news-date {
  font-size: 0.9rem;
  color: #777777;
  margin-bottom: 10px;
}

.page-tintc__news-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.page-tintc__news-title a {
  color: #333333;
  font-weight: bold;
  text-decoration: none;
}

.page-tintc__news-title a:hover {
  color: var(--primary-color, #11A84E);
  text-decoration: underline;
}

.page-tintc__news-summary {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tintc__read-more {
  display: inline-block;
  color: var(--primary-color, #11A84E);
  font-weight: bold;
  text-decoration: none;
}

.page-tintc__read-more:hover {
  text-decoration: underline;
}

.page-tintc__button-group {
  text-align: center;
  margin-top: 40px;
}

/* Featured Article Section */
.page-tintc__featured-article {
  padding: 80px 0;
  background-color: var(--card-bg-color, #11271B);
  color: var(--text-main-color, #F2FFF6);
}

.page-tintc__featured-article .page-tintc__section-title::after {
  background-color: var(--gold-color, #F2C14E);
}

.page-tintc__article-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-tintc__article-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 2rem;
  display: block;
}

.page-tintc__article-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Benefits Section */
.page-tintc__benefits-section {
  padding: 80px 0;
  background-color: #f0f5f0;
  color: #333333;
}

.page-tintc__benefits-section .page-tintc__section-title::after {
  background-color: var(--primary-color, #11A84E);
}

.page-tintc__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 3rem;
}

.page-tintc__benefit-item {
  text-align: center;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-tintc__benefit-item:hover {
  transform: translateY(-5px);
}

.page-tintc__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

.page-tintc__benefit-title {
  font-size: 1.25rem;
  color: #333333;
  margin-bottom: 1rem;
}

.page-tintc__benefit-item p {
  font-size: 0.95rem;
  color: #555555;
}

/* FAQ Section */
.page-tintc__faq-section {
  padding: 80px 0;
  background-color: var(--background-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
}

.page-tintc__faq-section .page-tintc__section-title::after {
  background-color: var(--gold-color, #F2C14E);
}

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

.page-tintc__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color, #F2FFF6);
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--card-bg-color, #11271B);
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
  list-style: none;
  color: var(--text-main-color, #F2FFF6);
}

.page-tintc__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-tintc__faq-qtext {
  flex-grow: 1;
  color: var(--text-main-color, #F2FFF6);
}

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

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

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

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

.page-tintc__cta-bottom .page-tintc__section-title::after {
  background-color: var(--glow-color, #57E38D);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tintc__hero-image-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-tintc {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-tintc h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-tintc h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .page-tintc h3 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  .page-tintc__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-tintc__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 1.5rem;
  }

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

  .page-tintc__cta-button,
  .page-tintc__button-group .page-tintc__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
  }

  .page-tintc__button-group {
    padding: 0 15px;
  }

  .page-tintc__latest-news,
  .page-tintc__featured-article,
  .page-tintc__benefits-section,
  .page-tintc__faq-section,
  .page-tintc__cta-bottom {
    padding: 50px 0;
  }

  .page-tintc__container {
    padding: 0 15px;
  }

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

  .page-tintc__news-card {
    margin-bottom: 20px;
  }

  .page-tintc__news-image {
    height: 180px;
  }

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

  .page-tintc__benefit-item {
    padding: 20px;
  }

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

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

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

  .page-tintc__hero-image-wrapper,
  .page-tintc__news-card,
  .page-tintc__article-content,
  .page-tintc__benefit-item,
  .page-tintc__faq-item,
  .page-tintc__cta-bottom,
  .page-tintc__latest-news,
  .page-tintc__featured-article,
  .page-tintc__benefits-section,
  .page-tintc__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  /* Specific padding for sections in mobile */
  .page-tintc__latest-news .page-tintc__container,
  .page-tintc__featured-article .page-tintc__container,
  .page-tintc__benefits-section .page-tintc__container,
  .page-tintc__faq-section .page-tintc__container,
  .page-tintc__cta-bottom .page-tintc__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

}

@media (max-width: 480px) {
  .page-tintc__hero-image-wrapper {
    max-height: 200px;
  }
  .page-tintc__news-image {
    height: 150px;
  }
  .page-tintc__benefit-icon {
    width: 80px;
    height: 80px;
  }
}