/* style/tintc.css */

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

.page-tintc {
  color: var(--page-tintc-text-main); /* Default text color for dark body bg */
  background-color: var(--page-tintc-bg); /* Ensure consistency */
}

.page-tintc__dark-bg {
  background-color: var(--page-tintc-bg);
  color: var(--page-tintc-text-main);
}

.page-tintc__light-bg {
  background-color: #f8f9fa; /* A very light grey for contrast on dark site */
  color: #333333;
}

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

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

.page-tintc__hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 0;
  margin-bottom: 30px;
}

.page-tintc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

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

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

.page-tintc__intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--page-tintc-text-secondary);
}

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

.page-tintc__btn-primary,
.page-tintc__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-tintc__btn-primary {
  background: var(--page-tintc-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-tintc__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-tintc__btn-secondary {
  background-color: transparent;
  color: var(--page-tintc-primary-color);
  border: 2px solid var(--page-tintc-primary-color);
}

.page-tintc__btn-secondary:hover {
  background-color: var(--page-tintc-primary-color);
  color: #ffffff;
}

/* Section Titles and Descriptions */
.page-tintc__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: inherit;
}

.page-tintc__section-description {
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

/* Latest News Section */
.page-tintc__latest-news-section {
  padding: 60px 0;
}

.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: #ffffff; /* Light background for cards in light section */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text for light background */
}

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

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

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

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

.page-tintc__news-card-title a {
  color: var(--page-tintc-primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tintc__news-card-title a:hover {
  color: var(--page-tintc-secondary-color);
}

.page-tintc__news-card-meta {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 15px;
}

.page-tintc__news-card-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
}

.page-tintc__read-more-btn {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--page-tintc-primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.page-tintc__read-more-btn:hover {
  background-color: var(--page-tintc-secondary-color);
}

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

/* Featured Article Section */
.page-tintc__featured-article-section {
  padding: 80px 0;
}

.page-tintc__article-content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-tintc__article-image {
  flex: 0 0 50%;
  max-width: 50%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.page-tintc__article-text {
  flex: 1;
  line-height: 1.7;
  color: var(--page-tintc-text-secondary);
}

.page-tintc__article-text h3 {
  color: var(--page-tintc-text-main);
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-tintc__article-text p {
  margin-bottom: 15px;
}

.page-tintc__article-cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-tintc__faq-section {
  padding: 60px 0;
}

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

.page-tintc__faq-item {
  background-color: #ffffff; /* Light background for FAQ items */
  border: 1px solid var(--page-tintc-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333; /* Dark text for light background */
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #f0f0f0; /* Slightly darker background for summary */
  border-bottom: 1px solid var(--page-tintc-border);
  color: #333333;
  list-style: none; /* Hide default marker for details/summary */
}

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

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

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

.page-tintc__faq-item[open] .page-tintc__faq-question {
  border-bottom: 1px solid var(--page-tintc-border);
}

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

.page-tintc__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

/* Call To Action Bottom Section */
.page-tintc__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

/* General Image Styling for content images */
.page-tintc img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Ensure minimum content image size */
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-tintc__featured-article-section {
    padding: 60px 0;
  }
  .page-tintc__article-content-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .page-tintc__article-image {
    max-width: 100%;
    width: 100%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-tintc__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

  .page-tintc__intro-text {
    font-size: 1rem;
  }

  .page-tintc__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .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__latest-news-section,
  .page-tintc__featured-article-section,
  .page-tintc__faq-section,
  .page-tintc__cta-bottom-section {
    padding: 40px 0;
  }

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

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

  .page-tintc__article-image {
    min-width: unset; /* Allow to scale down on mobile */
    min-height: unset;
  }

  /* Mobile image responsiveness */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Still enforce minimum size for content images if they are not article features */
    min-height: 200px;
  }

  .page-tintc__hero-image {
    min-width: unset;
    min-height: unset;
  }

  .page-tintc__news-card-image {
    min-width: unset;
    min-height: unset;
  }

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

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

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

  .page-tintc {
    font-size: 16px;
    line-height: 1.6;
  }
}