/* style/tintc.css */

/* --- General Page Styling --- */
.page-tintc {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color from custom palette */
  background-color: var(--background); /* Body background from shared.css */
}

/* --- Hero Section --- */
.page-tintc__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  box-sizing: border-box;
  background-color: var(--deep-green); /* Ensure good contrast for content */
}

.page-tintc__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-tintc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-tintc__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-main); /* Ensure text is visible on deep green background */
}

.page-tintc__main-title {
  font-size: clamp(2em, 3.5vw, 3em); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold); /* Gold color for main title */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-tintc__subtitle {
  font-size: 1.15em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-secondary); /* Secondary text color */
}

.page-tintc__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
}

.page-tintc__btn-primary,
.page-tintc__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1em;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button fits container */
  box-sizing: border-box;
}

.page-tintc__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text on green gradient */
  border: none;
}

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

.page-tintc__btn-secondary {
  background: #ffffff;
  color: var(--primary-color); /* Brand primary color text on white */
  border: 2px solid var(--border-color); /* Border with brand color */
}

.page-tintc__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- News List Section --- */
.page-tintc__news-list-section {
  padding: 80px 0;
  background-color: var(--background); /* Dark background */
  color: var(--text-main); /* Light text on dark background */
}

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

.page-tintc__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--gold); /* Gold color for section titles */
}

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

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

.page-tintc__news-card {
  background-color: var(--card-bg); /* Darker green for card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px 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(--border-color); /* Border for cards */
}

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

.page-tintc__card-image-wrapper {
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  overflow: hidden;
}

.page-tintc__card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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.4em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  flex-grow: 1; /* Allow title to take available space */
}

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

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

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

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

.page-tintc__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--glow); /* Glow color for read more button */
  color: #000000; /* Dark text on glow background */
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
  align-self: flex-start; /* Align button to start */
}

.page-tintc__read-more-btn:hover {
  background: var(--gold); /* Gold on hover */
  transform: translateX(5px);
}

.page-tintc__load-more-container {
  text-align: center;
  margin-top: 60px;
}

/* --- FAQ Section --- */
.page-tintc__faq-section {
  padding: 80px 0;
  background-color: var(--deep-green); /* Deep green background for FAQ */
  color: var(--text-main); /* Light text on deep green */
}

.page-tintc__faq-list {
  margin-top: 40px;
}

.page-tintc__faq-item {
  background-color: var(--card-bg); /* Card background for FAQ items */
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: transparent; /* Ensure background matches item */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

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

.page-tintc__faq-item[open] > .page-tintc__faq-question {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter when open */
}

.page-tintc__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-tintc__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-tintc__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 24px;
  text-align: center;
  color: var(--glow);
}

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

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

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

.page-tintc__light-bg {
  background: #ffffff;
  color: #333333;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-tintc__main-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
  }

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

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

  .page-tintc__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already has padding-top */
  }

  .page-tintc__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-tintc__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
    margin-bottom: 15px;
  }

  .page-tintc__subtitle {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-tintc__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px; /* Add padding to container */
  }

  .page-tintc__btn-primary,
  .page-tintc__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-tintc__news-list-section,
  .page-tintc__faq-section {
    padding: 50px 0;
  }

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

  .page-tintc__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-tintc__news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px; /* Add padding to container */
  }
  
  .page-tintc__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tintc__card-content {
    padding: 20px;
  }

  .page-tintc__card-title {
    font-size: 1.2em;
  }

  .page-tintc__card-date {
    font-size: 0.85em;
  }

  .page-tintc__card-excerpt {
    font-size: 0.95em;
  }

  .page-tintc__load-more-container {
    margin-top: 40px;
    padding: 0 15px;
  }

  .page-tintc__faq-list {
    margin-top: 30px;
    padding: 0 15px; /* Add padding to container */
  }

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

  .page-tintc__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }
  
  /* Image responsive rules */
  .page-tintc img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-tintc__hero-image-wrapper,
  .page-tintc__card-image-wrapper,
  .page-tintc__container,
  .page-tintc__news-list-section,
  .page-tintc__faq-section,
  .page-tintc__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Specific padding for sections to prevent full-width content touching edges */
  .page-tintc__news-list-section .page-tintc__container,
  .page-tintc__faq-section .page-tintc__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

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

/* Ensure contrast for main content */
.page-tintc {
  color: var(--text-main); /* Light text on dark background */
  background-color: var(--background);
}

.page-tintc__card {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}