/* style/tintc.css */

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

/* Base styles for the page */
.page-tintc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--background-color); /* Matches the body background if it's dark */
}

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

.page-tintc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.6);
  min-height: 400px; /* Ensure hero image has a minimum height */
}

.page-tintc__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
  color: var(--text-main);
}

.page-tintc__main-title {
  font-size: clamp(2.2em, 5vw, 3.5em);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-tintc__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-secondary);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* CTA Button Base */
.page-tintc__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-main);
  background: var(--button-gradient);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tintc__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tintc__cta-button--secondary {
  background: none;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  margin-left: 20px;
}

.page-tintc__cta-button--secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-main);
}

/* General Section Styling */
.page-tintc__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main);
}

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

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

/* Dark Background Section */
.page-tintc__dark-bg {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-tintc__dark-bg .page-tintc__section-title,
.page-tintc__dark-bg .page-tintc__section-description {
  color: var(--text-main);
}

/* Light Background Section */
.page-tintc__light-bg {
  background-color: var(--background-color);
  color: var(--text-main);
}

.page-tintc__light-bg .page-tintc__section-title,
.page-tintc__light-bg .page-tintc__section-description {
  color: var(--text-main);
}

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

.page-tintc__news-card,
.page-tintc__promo-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

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

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

.page-tintc__card-title,
.page-tintc__promo-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tintc__card-title a,
.page-tintc__promo-title a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tintc__card-title a:hover,
.page-tintc__promo-title a:hover {
  color: var(--glow-color);
}

.page-tintc__card-date {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-tintc__card-excerpt,
.page-tintc__promo-excerpt {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

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

.page-tintc__read-more:hover {
  color: var(--glow-color);
}

/* Update List Layout */
.page-tintc__update-list,
.page-tintc__trend-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-tintc__update-item,
.page-tintc__trend-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-tintc__update-item:hover,
.page-tintc__trend-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

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

.page-tintc__update-content,
.page-tintc__trend-content {
  padding: 25px;
}

.page-tintc__update-title,
.page-tintc__trend-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tintc__update-title a,
.page-tintc__trend-title a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tintc__update-title a:hover,
.page-tintc__trend-title a:hover {
  color: var(--glow-color);
}

.page-tintc__update-date,
.page-tintc__trend-date {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-tintc__update-excerpt,
.page-tintc__trend-excerpt {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Button Group */
.page-tintc__button-group {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

.page-tintc__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--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 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main);
  background-color: var(--deep-green);
  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(--primary-color);
}

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

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

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
  color: var(--glow-color);
}

.page-tintc__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider-color);
}

/* CTA Section */
.page-tintc__cta-section {
  padding-top: 60px;
  padding-bottom: 80px;
  text-align: center;
}

/* Global image reset */
.page-tintc img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tintc__main-title {
    font-size: clamp(2em, 6vw, 3em);
  }

  .page-tintc__section-title {
    font-size: 2em;
  }

  .page-tintc__news-grid,
  .page-tintc__promo-grid,
  .page-tintc__update-list,
  .page-tintc__trend-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-tintc__hero-content {
    padding: 15px;
  }

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

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

  .page-tintc__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-tintc__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

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

  .page-tintc__cta-button,
  .page-tintc__cta-button--secondary {
    width: 100% !important;
    margin: 0 0 10px 0 !important; /* Reset margin and stack buttons */
    padding: 12px 20px;
  }

  .page-tintc__button-group {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-tintc__news-card,
  .page-tintc__promo-card,
  .page-tintc__update-item,
  .page-tintc__trend-item,
  .page-tintc__hero-section,
  .page-tintc__featured-news,
  .page-tintc__latest-updates,
  .page-tintc__events-promotions,
  .page-tintc__market-trends,
  .page-tintc__faq-section,
  .page-tintc__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-tintc__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

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

@media (max-width: 480px) {
  .page-tintc__main-title {
    font-size: clamp(1.5em, 9vw, 2em);
  }

  .page-tintc__section-title {
    font-size: 1.5em;
  }

  .page-tintc__card-title,
  .page-tintc__promo-title,
  .page-tintc__update-title,
  .page-tintc__trend-title {
    font-size: 1.2em;
  }
}