/* style/tintc.css */

/* Custom Colors */
:root {
  --page-tintc-primary-color: #11A84E;
  --page-tintc-secondary-color: #22C768;
  --page-tintc-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-tintc-card-bg: #11271B;
  --page-tintc-background: #08160F;
  --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-color: #0A4B2C;
}

/* Base styles for the page content, ensuring contrast against dark body background */
.page-tintc {
  background-color: var(--page-tintc-background); /* #08160F */
  color: var(--page-tintc-text-main); /* #F2FFF6 */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-tintc h1, .page-tintc h2, .page-tintc h3, .page-tintc h4, .page-tintc h5, .page-tintc h6 {
  color: var(--page-tintc-text-main);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

.page-tintc h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-tintc h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  text-align: center;
  margin-bottom: 1em;
}

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

.page-tintc p {
  margin-bottom: 1em;
  color: var(--page-tintc-text-secondary);
}

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

.page-tintc a:hover {
  text-decoration: underline;
  color: var(--page-tintc-secondary-color);
}

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

.page-tintc__section-spacing {
  padding: 60px 0;
}

.page-tintc__section-title {
  color: var(--page-tintc-gold-color);
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

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

/* Hero Section */
.page-tintc__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 80px;
  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.4); /* Darken image for text readability */
}

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

.page-tintc__main-title {
  color: var(--page-tintc-gold-color);
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
  margin-bottom: 20px;
}

.page-tintc__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--page-tintc-text-main);
}

.page-tintc__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-tintc__btn-primary,
.page-tintc__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tintc__btn-primary {
  background: var(--page-tintc-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-tintc__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
  transform: translateY(-2px);
  text-decoration: none;
}

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

.page-tintc__btn-secondary:hover {
  background-color: rgba(242, 193, 78, 0.1);
  color: var(--page-tintc-text-main);
  transform: translateY(-2px);
  text-decoration: none;
}

/* 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: var(--page-tintc-card-bg); /* #11271B */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--page-tintc-border-color);
}

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

.page-tintc__news-card-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.page-tintc__news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-tintc__news-card:hover .page-tintc__news-card-image {
  transform: scale(1.05);
}

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

.page-tintc__news-card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

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

.page-tintc__news-card-title a:hover {
  color: var(--page-tintc-gold-color);
  text-decoration: none;
}

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

.page-tintc__news-card-excerpt {
  font-size: 1em;
  color: var(--page-tintc-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tintc__read-more-btn {
  display: inline-block;
  background-color: var(--page-tintc-primary-color);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

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

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

/* Dark Section */
.page-tintc__dark-section {
  background-color: var(--page-tintc-deep-green-color); /* #0A4B2C */
  color: var(--page-tintc-text-main);
}

.page-tintc__dark-section .page-tintc__section-title {
  color: var(--page-tintc-gold-color);
}

.page-tintc__dark-section p {
  color: var(--page-tintc-text-secondary);
}

/* Content Blocks */
.page-tintc__content-block {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1em;
}

.page-tintc__content-block p {
  margin-bottom: 1.5em;
}

/* Promotions Section */
.page-tintc__promotions-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-tintc__promotions-banner {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-tintc__promotions-content p {
  margin-bottom: 30px;
  font-size: 1.1em;
}

/* CTA Section */
.page-tintc__cta-content {
  text-align: center;
}

.page-tintc__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* FAQ Section */
.page-tintc__faq-list {
  max-width: 800px;
  margin: 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;
  transition: all 0.3s ease;
}

.page-tintc__faq-item[open] {
  background-color: var(--page-tintc-deep-green-color);
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-tintc-text-main);
  cursor: pointer;
  list-style: none;
  outline: none;
  transition: background-color 0.3s ease;
}

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

.page-tintc__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.2); /* var(--page-tintc-border-color) with transparency */
}

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tintc__section-spacing {
    padding: 40px 0;
  }
  .page-tintc__hero-content {
    padding: 15px;
  }
  .page-tintc__news-grid {
    gap: 20px;
  }
  .page-tintc__news-card-image-wrapper {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-tintc h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-tintc h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }
  .page-tintc h3 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }
  .page-tintc__hero-section {
    padding-bottom: 60px;
  }
  .page-tintc__hero-description {
    font-size: 1em;
  }
  .page-tintc__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-tintc__btn-primary,
  .page-tintc__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-tintc__container {
    padding: 0 15px;
  }
  .page-tintc__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tintc__news-card-image-wrapper {
    height: 200px;
  }
  .page-tintc__news-card-content {
    padding: 15px;
  }
  .page-tintc__news-card-title {
    font-size: 1.2em;
  }
  .page-tintc__read-more-btn {
    padding: 8px 15px;
  }
  .page-tintc__content-block {
    font-size: 1em;
  }
  .page-tintc__promotions-banner {
    border-radius: 8px;
  }
  .page-tintc__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-tintc__faq-answer {
    padding: 0 20px 15px;
  }
  /* Mobile image responsiveness */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-tintc__section,
  .page-tintc__card,
  .page-tintc__container,
  .page-tintc__hero-section,
  .page-tintc__latest-news-section,
  .page-tintc__industry-insights-section,
  .page-tintc__updates-section,
  .page-tintc__promotions-section,
  .page-tintc__faq-section,
  .page-tintc__cta-section,
  .page-tintc__hero-cta-group,
  .page-tintc__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow for containers */
  }
  .page-tintc__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-tintc__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }
}