/* style/tintc.css */

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

/* Main page container */
.page-tintc {
  background-color: var(--page-tintc-bg); /* Dark background */
  color: var(--page-tintc-text-main); /* Light text for contrast */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom for content */
}

/* Fixed Header Spacing (handled by body in shared.css, so no padding-top here) */

/* Hero Section */
.page-tintc__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: var(--page-tintc-deep-green);
}

.page-tintc__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 500px;
  display: block;
  margin-bottom: 20px;
}

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

.page-tintc__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--page-tintc-gold);
  margin-bottom: 15px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
  /* No fixed font-size, rely on clamp if needed, otherwise browser default + weight */
}

.page-tintc__intro-text {
  font-size: 1.1em;
  color: var(--page-tintc-text-secondary);
  margin-bottom: 30px;
}

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

/* Section Titles */
.page-tintc__section-title {
  font-size: 2.5em;
  color: var(--page-tintc-text-main);
  text-align: center;
  margin-bottom: 40px;
  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(--page-tintc-glow);
  border-radius: 2px;
}

/* Featured News Section */
.page-tintc__featured-news-section {
  padding: 60px 0;
  background-color: var(--page-tintc-bg);
}

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

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

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

.page-tintc__featured-content {
  width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-tintc__featured-title {
  font-size: 1.8em;
  color: var(--page-tintc-text-main);
  margin-bottom: 10px;
}

.page-tintc__featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-tintc__featured-description {
  font-size: 1em;
  color: var(--page-tintc-text-secondary);
  margin-bottom: 20px;
}

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

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

.page-tintc__news-card {
  background-color: var(--page-tintc-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-tintc-border);
  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__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

.page-tintc__news-title {
  font-size: 1.3em;
  color: var(--page-tintc-text-main);
  margin-bottom: 8px;
  flex-grow: 1;
}

.page-tintc__news-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-tintc__news-meta {
  font-size: 0.85em;
  color: var(--page-tintc-text-secondary);
  margin-bottom: 12px;
}

.page-tintc__news-description {
  font-size: 0.95em;
  color: var(--page-tintc-text-secondary);
  margin-bottom: 15px;
}

.page-tintc__btn-link {
  display: inline-block;
  color: var(--page-tintc-glow);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-tintc__btn-link:hover {
  color: var(--page-tintc-gold);
}

/* Pagination */
.page-tintc__pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.page-tintc__pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--page-tintc-card-bg);
  color: var(--page-tintc-text-main);
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid var(--page-tintc-border);
}

.page-tintc__pagination-link:hover {
  background-color: var(--page-tintc-deep-green);
  color: var(--page-tintc-gold);
}

.page-tintc__pagination-link--active {
  background-color: var(--page-tintc-deep-green);
  color: var(--page-tintc-gold);
  border-color: var(--page-tintc-glow);
}

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

.page-tintc__cta-title {
  font-size: 2.8em;
  color: var(--page-tintc-gold);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-tintc__cta-description {
  font-size: 1.2em;
  color: var(--page-tintc-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-tintc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.page-tintc__btn-primary,
.page-tintc__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.page-tintc__btn-primary {
  background: var(--page-tintc-btn-gradient);
  color: #ffffff; /* White text for contrast */
  border: none;
}

.page-tintc__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-tintc-glow);
}

.page-tintc__btn-secondary {
  background-color: transparent;
  color: var(--page-tintc-glow);
  border: 2px solid var(--page-tintc-glow);
}

.page-tintc__btn-secondary:hover {
  background-color: var(--page-tintc-glow);
  color: var(--page-tintc-deep-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-tintc__faq-section {
  padding: 60px 0;
  background-color: var(--page-tintc-bg);
}

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

.page-tintc__faq-item {
  background-color: var(--page-tintc-card-bg);
  border: 1px solid var(--page-tintc-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tintc__faq-item summary {
  list-style: none;
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: var(--page-tintc-text-main);
  font-size: 1.1em;
  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(--page-tintc-deep-green);
}

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

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

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
  content: '−';
}

.page-tintc__faq-answer {
  padding: 15px 25px 20px;
  background-color: rgba(0, 0, 0, 0.1); /* Slightly different background for answer */
  color: var(--page-tintc-text-secondary);
  border-top: 1px solid var(--page-tintc-divider);
  font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-tintc__main-title {
    font-size: 2.8em;
  }
  .page-tintc__cta-title {
    font-size: 2.5em;
  }
  .page-tintc__featured-card {
    flex-direction: column;
  }
  .page-tintc__featured-image,
  .page-tintc__featured-content {
    width: 100%;
  }
  .page-tintc__news-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-tintc {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-tintc__hero-section {
    padding: 10px 15px 40px;
  }
  .page-tintc__hero-content,
  .page-tintc__container {
    padding: 0 15px;
  }
  .page-tintc__main-title {
    font-size: 2.2em;
    margin-bottom: 10px;
  }
  .page-tintc__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-tintc__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-tintc__featured-news-section,
  .page-tintc__news-grid-section,
  .page-tintc__cta-section,
  .page-tintc__faq-section {
    padding: 40px 0;
  }
  .page-tintc__news-image {
    height: 160px;
  }
  .page-tintc__cta-title {
    font-size: 2em;
  }
  .page-tintc__cta-description {
    font-size: 1em;
  }
  .page-tintc__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-tintc__btn-primary,
  .page-tintc__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-tintc__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-tintc__faq-answer {
    padding: 10px 20px 15px;
  }

  /* Image responsive adaptations */
  .page-tintc img {
    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__featured-card,
  .page-tintc__news-card,
  .page-tintc__cta-section,
  .page-tintc__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  /* Specific overrides for padding on sections that already have it */
  .page-tintc__featured-news-section.page-tintc__container,
  .page-tintc__news-grid-section.page-tintc__container,
  .page-tintc__cta-section.page-tintc__container,
  .page-tintc__faq-section.page-tintc__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-tintc__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-tintc__main-title {
    font-size: 1.8em;
  }
  .page-tintc__section-title {
    font-size: 1.8em;
  }
  .page-tintc__cta-title {
    font-size: 1.8em;
  }
  .page-tintc__news-image {
    height: 140px;
  }
}