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

/* body background is dark, so text should be light */
.page-tintc {
  color: var(--text-main);
  background-color: var(--body-bg);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-tintc__section-title {
  font-size: 2.5em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.page-tintc__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--btn-gradient);
  border-radius: 2px;
}

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

.page-tintc__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

.page-tintc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-tintc__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 800px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  z-index: 10;
}

.page-tintc__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: var(--gold-color);
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-tintc__hero-description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-tintc__cta-button {
  display: inline-block;
  background: var(--btn-gradient);
  color: #fff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* News Grid Section */
.page-tintc__news-grid-section {
  padding: 60px 0;
  background-color: var(--deep-green);
}

.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);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-tintc__news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-tintc__card-image-wrapper {
  width: 100%;
  height: 220px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

.page-tintc__card-image {
  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.5em;
  margin-bottom: 10px;
  font-weight: 700;
}

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

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

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

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

.page-tintc__read-more {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start;
}

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

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

.page-tintc__view-all-news {
  background: var(--btn-gradient);
  color: #fff;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
}

/* Categories Section */
.page-tintc__categories-section,
.page-tintc__why-choose-section,
.page-tintc__access-guide-section,
.page-tintc__conclusion-section {
  padding: 60px 0;
  background-color: var(--body-bg);
}

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

.page-tintc__category-item,
.page-tintc__reason-item,
.page-tintc__guide-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-tintc__category-item:hover,
.page-tintc__reason-item:hover,
.page-tintc__guide-item:hover {
  transform: translateY(-5px);
}

.page-tintc__category-title,
.page-tintc__reason-title,
.page-tintc__guide-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-tintc__category-description,
.page-tintc__reason-description,
.page-tintc__guide-description {
  font-size: 1em;
  color: var(--text-secondary);
}

/* CTA Section */
.page-tintc__cta-section {
  background: var(--deep-green);
  padding: 80px 20px;
  text-align: center;
}

.page-tintc__cta-title {
  font-size: 2.8em;
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 800;
}

.page-tintc__cta-description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Conclusion Section */
.page-tintc__conclusion-text {
  font-size: 1.1em;
  color: var(--text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-tintc__section-title {
    font-size: 2em;
  }
  .page-tintc__hero-content {
    padding: 15px;
  }
  .page-tintc__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-tintc__hero-description {
    font-size: 1.1em;
  }
  .page-tintc__cta-title {
    font-size: 2.2em;
  }
  .page-tintc__cta-description {
    font-size: 1.1em;
  }
}

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

  /* Images and their containers */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-tintc__hero-section,
  .page-tintc__news-grid-section,
  .page-tintc__categories-section,
  .page-tintc__why-choose-section,
  .page-tintc__access-guide-section,
  .page-tintc__cta-section,
  .page-tintc__conclusion-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; /* body handles --header-offset, this is decorative */
    padding-bottom: 40px !important;
  }
  
  .page-tintc__hero-image-wrapper {
    max-height: 300px;
  }

  .page-tintc__hero-content {
    position: relative; /* Remove absolute positioning for mobile */
    top: auto;
    left: auto;
    transform: none;
    padding: 20px 0;
  }

  .page-tintc__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-tintc__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-tintc__cta-button,
  .page-tintc__view-all-news {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-tintc__news-grid {
    grid-template-columns: 1fr;
  }

  .page-tintc__news-card {
    margin-bottom: 20px;
  }

  .page-tintc__card-image-wrapper {
    height: 180px;
  }

  .page-tintc__category-list,
  .page-tintc__reason-list,
  .page-tintc__guide-list {
    grid-template-columns: 1fr;
  }

  .page-tintc__category-item,
  .page-tintc__reason-item,
  .page-tintc__guide-item {
    padding: 25px;
    margin-bottom: 20px;
  }

  .page-tintc__category-title,
  .page-tintc__reason-title,
  .page-tintc__guide-title {
    font-size: 1.5em;
  }

  .page-tintc__cta-title {
    font-size: 1.8em;
  }

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

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

  .page-tintc__hero-image {
    filter: brightness(0.6); /* Slightly more dim for smaller screens */
  }
}

/* Ensure content area images are at least 200px */
.page-tintc__card-image {
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images, except for hero image which has specific styling for readability */
.page-tintc img:not(.page-tintc__hero-image) {
  filter: none; 
}