/* style/tintc.css */

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

.page-tintc {
  background-color: var(--page-tintc-bg-color);
  color: var(--page-tintc-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-tintc__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* body already handles --header-offset */
  text-align: center;
  background-color: var(--page-tintc-deep-green);
  overflow: hidden;
}

.page-tintc__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
}

.page-tintc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-tintc__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
  z-index: 10;
}

.page-tintc__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--page-tintc-text-main);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* Section Titles & Descriptions */
.page-tintc__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--page-tintc-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-tintc__section-description {
  font-size: 1rem;
  color: var(--page-tintc-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

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

.page-tintc__news-card {
  background-color: var(--page-tintc-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-tintc-border-color);
}

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

.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;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

.page-tintc__news-card-meta {
  font-size: 0.85rem;
  color: var(--page-tintc-text-secondary);
  margin-bottom: 15px;
}

.page-tintc__news-card-excerpt {
  font-size: 0.95rem;
  color: var(--page-tintc-text-secondary);
  margin-bottom: 20px;
}

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

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

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

/* Featured News Section */
.page-tintc__featured-news-section {
  padding: 60px 0;
  background-color: var(--page-tintc-deep-green);
}

.page-tintc__featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
}

.page-tintc__featured-card {
  background-color: var(--page-tintc-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-tintc-border-color);
}

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

.page-tintc__featured-card-image {
  width: 100%;
  height: 300px; /* Larger image for featured cards */
  object-fit: cover;
  display: block;
}

.page-tintc__featured-card-content {
  padding: 25px;
}

.page-tintc__featured-card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

.page-tintc__featured-card-meta {
  font-size: 0.9rem;
  color: var(--page-tintc-text-secondary);
  margin-bottom: 15px;
}

.page-tintc__featured-card-excerpt {
  font-size: 1rem;
  color: var(--page-tintc-text-secondary);
  margin-bottom: 20px;
}

/* CTA Section */
.page-tintc__cta-section {
  padding: 80px 20px;
  background-color: var(--page-tintc-deep-green);
  text-align: center;
}

.page-tintc__cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--page-tintc-text-main);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-tintc__cta-description {
  font-size: 1.1rem;
  color: var(--page-tintc-text-secondary);
  max-width: 700px;
  margin: 0 auto 30px auto;
}

/* Buttons */
.page-tintc__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--page-tintc-button-gradient);
  color: #ffffff; /* Always white text for primary button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-tintc__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-tintc-glow-color);
}

.page-tintc__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: var(--page-tintc-glow-color);
  border: 2px solid var(--page-tintc-glow-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.page-tintc__btn-secondary:hover {
  background-color: var(--page-tintc-glow-color);
  color: var(--page-tintc-card-bg); /* Darker text on hover */
  transform: translateY(-2px);
}

/* FAQ Section */
.page-tintc__faq-section {
  padding: 60px 0;
  background-color: var(--page-tintc-bg-color);
}

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

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

.page-tintc__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--page-tintc-text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-tintc__faq-item summary:hover {
  background-color: var(--page-tintc-deep-green);
}

.page-tintc__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--page-tintc-glow-color);
  margin-left: 15px;
}

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

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

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

.page-tintc__faq-answer a {
  color: var(--page-tintc-glow-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-tintc__hero-content {
    padding: 15px;
  }
  .page-tintc__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-tintc__hero-description {
    font-size: 1rem;
  }
  .page-tintc__featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-tintc__container {
    padding: 0 15px !important;
  }
  .page-tintc__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-tintc__hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background-color: rgba(0, 0, 0, 0.6); /* Adjust background for better readability */
    width: calc(100% - 30px);
    margin: 20px auto 0 auto;
  }
  .page-tintc__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-tintc__hero-description {
    font-size: 0.95rem;
  }
  .page-tintc__section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-tintc__news-grid {
    grid-template-columns: 1fr;
  }
  .page-tintc__news-card-image,
  .page-tintc__featured-card-image {
    height: 200px;
  }
  .page-tintc__news-card-title,
  .page-tintc__featured-card-title {
    font-size: 1.2rem;
  }
  .page-tintc__cta-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  /* Image Responsive Adaptation */
  .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__featured-card,
  .page-tintc__cta-section,
  .page-tintc__faq-item,
  .page-tintc__latest-news-section,
  .page-tintc__featured-news-section,
  .page-tintc__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Button Responsive Adaptation */
  .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 !important;
    padding-right: 15px !important;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }
  .page-tintc__hero-content .page-tintc__btn-primary {
    margin-left: 0;
    margin-right: 0;
  }
  .page-tintc__view-all .page-tintc__btn-secondary {
    margin-left: 0;
    margin-right: 0;
  }
  .page-tintc__cta-section .page-tintc__btn-primary {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .page-tintc__hero-content {
    padding: 10px;
  }
  .page-tintc__main-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .page-tintc__hero-description {
    font-size: 0.9rem;
  }
  .page-tintc__news-card-content,
  .page-tintc__featured-card-content {
    padding: 15px;
  }
  .page-tintc__news-card-title,
  .page-tintc__featured-card-title {
    font-size: 1.1rem;
  }
  .page-tintc__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }
  .page-tintc__faq-answer {
    padding: 0 15px 15px 15px;
  }
}