/* style/tintc.css */

/* Base styles for the page */
.page-tintc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
}

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

.page-tintc__flex-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Custom Colors */
.page-tintc__dark-bg {
  background-color: var(--background);
  color: var(--text-main);
}

.page-tintc__deep-green-bg {
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-tintc__gold-bg {
  background-color: var(--gold);
  color: #333333; /* Ensure contrast on gold background */
}

.page-tintc__text-main {
  color: var(--text-main);
}

.page-tintc__text-secondary {
  color: var(--text-secondary);
}

.page-tintc__text-dark-gold {
  color: #333333; /* Dark text for gold background */
}

.page-tintc__card {
  background-color: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.page-tintc__cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tintc__btn-primary {
  background: linear-gradient(180deg, var(--glow) 0%, var(--main-color) 100%);
  color: #ffffff;
  border: none;
}

.page-tintc__btn-primary:hover {
  background: linear-gradient(180deg, var(--deep-green) 0%, var(--main-color) 100%);
  box-shadow: 0 6px 15px rgba(var(--main-color-rgb), 0.4);
}

.page-tintc__btn-dark-gold {
  background: linear-gradient(180deg, #F2C14E 0%, #D4A73D 100%); /* Slightly darker gradient for contrast */
  color: #333333;
  border: none;
}

.page-tintc__btn-dark-gold:hover {
  background: linear-gradient(180deg, #D4A73D 0%, #F2C14E 100%);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.4);
}

/* Hero Section */
.page-tintc__hero-section {
  position: relative;
  padding: 80px 0 40px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

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

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

.page-tintc__hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 1;
  padding: 0 20px;
}

.page-tintc__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-tintc__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Section Titles */
.page-tintc__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

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

/* Latest News Section */
.page-tintc__latest-news {
  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 {
  display: flex;
  flex-direction: column;
}

.page-tintc__news-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.page-tintc__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.page-tintc__card-title a {
  text-decoration: none;
  color: var(--text-main);
}

.page-tintc__card-title a:hover {
  color: var(--main-color);
}

.page-tintc__card-meta {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.page-tintc__card-excerpt {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tintc__read-more {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-tintc__arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.page-tintc__read-more:hover .page-tintc__arrow {
  transform: translateX(5px);
}

.page-tintc__button-group {
  text-align: center;
  margin-top: 20px;
}

/* Featured Articles Section */
.page-tintc__featured-articles {
  padding: 60px 0;
}

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

.page-tintc__article-card {
  display: flex;
  flex-direction: column;
}

.page-tintc__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

/* Promotions CTA Section */
.page-tintc__promotions-cta {
  padding: 60px 0;
}

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

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

.page-tintc__faq-item {
  margin-bottom: 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  list-style: none; /* For details/summary */
}

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

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

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

.page-tintc__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.8;
}

/* Final CTA Section */
.page-tintc__final-cta {
  padding: 60px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-tintc__hero-content {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .page-tintc__container,
  .page-tintc__hero-content,
  .page-tintc__news-grid,
  .page-tintc__articles-grid,
  .page-tintc__faq-list {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tintc__hero-section,
  .page-tintc__latest-news,
  .page-tintc__featured-articles,
  .page-tintc__promotions-cta,
  .page-tintc__faq-section,
  .page-tintc__final-cta {
    padding: 40px 0 !important;
  }

  .page-tintc__hero-section {
    padding-top: 10px !important; /* body handles header offset */
  }

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

  .page-tintc__description {
    font-size: 1rem;
  }

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

  .page-tintc__section-description {
    font-size: 0.95rem;
  }

  .page-tintc__news-grid,
  .page-tintc__articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-tintc__news-image,
  .page-tintc__article-image {
    height: 180px; /* Adjust height for mobile */
  }

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

  .page-tintc__card-excerpt {
    font-size: 0.9rem;
  }

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

  /* All buttons */
  .page-tintc__cta-button,
  .page-tintc__btn-primary,
  .page-tintc__btn-dark-gold {
    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;
  }

  /* Button containers */
  .page-tintc__button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video specific mobile styles - not used in this page but included for completeness if video were added */
  .page-tintc video,
  .page-tintc__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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;
  }
}

/* Color variables from custom palette */
:root {
  --main-color: #11A84E;
  --secondary-color: #22C768;
  --glow: #57E38D;
  --gold: #F2C14E;
  --border: #2E7A4E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
  
  --background: #08160F;
  --card-bg: #11271B;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
}