/* style/tintc.css */

/* Base styles for the page content */
.page-tintc {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #f4f4f4; /* Body background color */
}

/* Sections */
.page-tintc__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #08160F; /* Dark background from custom colors */
  color: #F2FFF6; /* Main text color for dark background */
  text-align: center;
}

.page-tintc__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px;
}

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

.page-tintc__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.page-tintc__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6;
  letter-spacing: 0.05em;
}

.page-tintc__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #A7D9B8;
}

.page-tintc__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #11A84E; /* Brand main color for titles on light bg */
}

.page-tintc__dark-bg .page-tintc__section-title {
  color: #F2FFF6; /* Text main color for titles on dark bg */
}

.page-tintc__section-intro {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #333333; /* Default text color for light background */
}

.page-tintc__dark-bg .page-tintc__section-intro {
  color: #A7D9B8; /* Secondary text color for dark background */
}

.page-tintc__latest-news-section,
.page-tintc__categories-section,
.page-tintc__faq-section,
.page-tintc__cta-bottom-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-tintc__light-bg {
  background-color: #f4f4f4; /* Light body background */
  color: #333333;
}

.page-tintc__dark-bg {
  background-color: #08160F; /* Dark background from custom colors */
  color: #F2FFF6;
}

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

.page-tintc__news-card {
  background-color: #11271B; /* Card BG color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #F2FFF6; /* Main text color for dark card */
}

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

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

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

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

.page-tintc__card-title a {
  color: #F2FFF6; /* Main text color for card title */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tintc__card-title a:hover {
  color: #22C768; /* Accent color on hover */
}

.page-tintc__card-date {
  font-size: 0.9rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 15px;
}

.page-tintc__card-summary {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #A7D9B8; /* Secondary text color */
}

.page-tintc__read-more {
  display: inline-block;
  color: #57E38D; /* Glow color for links */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-tintc__read-more:hover {
  color: #F2C14E; /* Gold color on hover */
}

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

/* Category Grid */
.page-tintc__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  text-align: center;
}

.page-tintc__category-card {
  background-color: #11271B; /* Card BG color */
  border-radius: 12px;
  padding: 30px;
  text-decoration: none;
  color: #F2FFF6; /* Main text color for dark card */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 180px;
}

.page-tintc__category-card:hover {
  transform: translateY(-8px);
  background-color: #1E3A2A; /* Divider color on hover */
}

.page-tintc__category-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #57E38D; /* Glow color for category titles */
}

.page-tintc__category-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #A7D9B8; /* Secondary text color */
}

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

.page-tintc__faq-item {
  background-color: #ffffff; /* White background for FAQ item */
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: #333333; /* Dark text for light background */
  background-color: #f9f9f9;
  border-bottom: 1px solid #E0E0E0;
  list-style: none; /* Hide default marker for details/summary */
}

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

.page-tintc__faq-item[open] .page-tintc__faq-question {
  border-bottom: 1px solid #E0E0E0;
}

.page-tintc__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-tintc__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #11A84E;
}

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

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

.page-tintc__faq-answer p:last-child {
  margin-bottom: 0;
}

/* CTA Buttons */
.page-tintc__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-tintc__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
  opacity: 0.9;
}

.page-tintc__cta-button--secondary {
  background: #ffffff;
  color: #11A84E;
  border: 2px solid #11A84E;
  box-shadow: none;
}

.page-tintc__cta-button--secondary:hover {
  background: #f0f0f0;
  color: #0d8a3f;
  box-shadow: none;
}

.page-tintc__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* --- Responsive Styles --- */

/* All images base responsive styles */
.page-tintc img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All video base responsive styles */
.page-tintc video,
.page-tintc__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Video container base responsive styles */
.page-tintc__video-section,
.page-tintc__video-container,
.page-tintc__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* All buttons base responsive styles */
.page-tintc__cta-button,
.page-tintc__btn-primary,
.page-tintc__btn-secondary,
.page-tintc a[class*="button"],
.page-tintc a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Button container base responsive styles */
.page-tintc__cta-buttons,
.page-tintc__button-group,
.page-tintc__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

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

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

  .page-tintc__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-tintc__latest-news-section,
  .page-tintc__categories-section,
  .page-tintc__faq-section,
  .page-tintc__cta-bottom-section {
    padding: 40px 15px;
  }

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

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

  .page-tintc__card-title {
    font-size: 1.2rem;
  }

  .page-tintc__category-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-tintc__category-card {
    padding: 25px;
  }

  .page-tintc__category-title {
    font-size: 1.2rem;
  }

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

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

  .page-tintc__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-tintc__button-group {
    flex-direction: column;
    gap: 15px;
  }

  /* Force responsive for all images */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Force responsive for all video */
  .page-tintc video,
  .page-tintc__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Force responsive for video containers */
  .page-tintc__video-section,
  .page-tintc__video-container,
  .page-tintc__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Force responsive for all buttons */
  .page-tintc__cta-button,
  .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;
  }

  /* Force responsive for button containers */
  .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; /* Allow buttons to wrap */
    gap: 10px; /* Adjust gap for mobile */
  }

  .page-tintc__button-group {
    flex-direction: column !important; /* Stack buttons vertically on mobile */
  }

  /* Content sections padding adjustment */
  .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;
  }
}