/* style/tintc.css */
/* 
  Body background color: #08160F (Deep Green, dark)
  Text Main: #F2FFF6 (Light)
  Text Secondary: #A7D9B8 (Light)
  Card BG: #11271B (Dark)
*/

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

/* Base styles for the news page */
.page-tintc {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Default light text color for dark background */
  background-color: var(--background-color); /* Ensure consistent with body background */
  line-height: 1.6;
  font-size: 16px;
}

.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; /* Image on top, text below */
  align-items: center;
  justify-content: center;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  background-color: var(--background-color);
}

.page-tintc__hero-image {
  width: 1920px;
  height: 1080px;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height for hero image */
}

.page-tintc__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Pull content up slightly over image for better flow */
  background-color: var(--card-bg-color); /* Dark background for text block */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.page-tintc__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size constraint */
  color: var(--text-main-color);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

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

/* Call to Action Button */
.page-tintc__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tintc__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(34, 199, 104, 0.4);
}

/* Section Titles */
.page-tintc__section-title {
  font-size: 2.5rem;
  color: var(--gold-color);
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

/* Text Blocks */
.page-tintc__text-block {
  font-size: 1rem;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  text-align: justify;
}

/* News List Section */
.page-tintc__news-list-section,
.page-tintc__featured-updates,
.page-tintc__news-categories,
.page-tintc__benefits-section,
.page-tintc__faq-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

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

.page-tintc__news-card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-tintc__card-image {
  width: 800px;
  height: 450px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

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

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

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

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

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

.page-tintc__card-excerpt {
  font-size: 1rem;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1; /* Allow excerpt to take available space */
}

.page-tintc__read-more-button {
  display: inline-block;
  color: var(--glow-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start; /* Align to start of flex container */
}

.page-tintc__read-more-button:hover {
  text-decoration: underline;
  color: var(--gold-color);
}

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

/* News Categories Section */
.page-tintc__category-item {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tintc__category-title {
  font-size: 1.8rem;
  color: var(--glow-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-tintc__category-description {
  font-size: 1rem;
  color: var(--text-secondary-color);
  line-height: 1.7;
  text-align: justify;
}

/* FAQ Section */
.page-tintc__faq-list {
  margin-top: 40px;
}

.page-tintc__faq-item {
  background-color: var(--card-bg-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-tintc__faq-item summary {
  list-style: none; /* Hide default arrow */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main-color);
  background-color: var(--card-bg-color);
  border-bottom: 1px solid var(--divider-color);
  transition: background-color 0.3s ease;
}

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

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

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

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tintc__hero-content {
    padding: 30px 15px;
    margin-top: -60px;
  }
  .page-tintc__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }
  .page-tintc__section-title {
    font-size: 2.2rem;
  }
  .page-tintc__news-card {
    height: auto; /* Allow cards to adjust height */
  }
}

@media (max-width: 768px) {
  .page-tintc__hero-section {
    padding-bottom: 40px;
  }
  .page-tintc__hero-image {
    max-height: 350px;
  }
  .page-tintc__hero-content {
    margin-top: -40px;
    padding: 20px 15px;
  }
  .page-tintc__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-tintc__hero-description {
    font-size: 1rem;
  }
  .page-tintc__cta-button {
    padding: 12px 25px;
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-tintc__section-title {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 30px;
  }
  .page-tintc__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tintc__news-list-section,
  .page-tintc__featured-updates,
  .page-tintc__news-categories,
  .page-tintc__benefits-section,
  .page-tintc__faq-section {
    padding: 40px 0;
  }

  /* Image, Video, Button Responsive Overrides */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-tintc video,
  .page-tintc__video { /* Assuming no video on this page, but as a safeguard */
    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__video-section,
  .page-tintc__video-container,
  .page-tintc__video-wrapper,
  .page-tintc__cta-buttons,
  .page-tintc__button-group,
  .page-tintc__btn-container,
  .page-tintc__news-card,
  .page-tintc__category-item,
  .page-tintc__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden; /* Ensure no overflow */
  }

  /* Specific padding for sections in mobile */
  .page-tintc__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-tintc__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-tintc__faq-item summary,
  .page-tintc__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Adjust padding for the container within sections */
  .page-tintc__news-list-section .page-tintc__container,
  .page-tintc__featured-updates .page-tintc__container,
  .page-tintc__news-categories .page-tintc__container,
  .page-tintc__benefits-section .page-tintc__container,
  .page-tintc__faq-section .page-tintc__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tintc__faq-item summary {
    font-size: 1rem;
  }
  .page-tintc__faq-answer {
    font-size: 0.95rem;
  }
}