/* style/tintc.css */

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

.page-tintc {
  color: var(--bj88-text-main); /* Light text on dark body background */
  background-color: var(--bj88-background); /* Ensure consistent background for content if body is transparent */
}

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

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

.page-tintc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 550px; /* Limit hero image height */
}

.page-tintc__hero-content {
  position: relative; /* Ensure content is above image if needed, but not overlaying */
  max-width: 800px;
  margin-top: 40px; /* Space below image */
  padding: 0 20px;
}

.page-tintc__hero-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--bj88-gold-color); /* Use gold for prominence */
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
}

.page-tintc__hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--bj88-text-secondary);
  margin-bottom: 30px;
}

/* General Section Styling */
.page-tintc__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bj88-text-main);
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
}

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

/* Buttons */
.page-tintc__btn-primary,
.page-tintc__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts to width */
  white-space: normal;
  word-wrap: break-word;
}

.page-tintc__btn-primary {
  background: var(--bj88-button-gradient);
  color: var(--bj88-text-main);
  border: none;
}

.page-tintc__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

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

.page-tintc__btn-secondary:hover {
  background: var(--bj88-gold-color);
  color: var(--bj88-background);
  transform: translateY(-2px);
}

/* News List Section */
.page-tintc__news-list-section {
  padding: 60px 0;
  background-color: var(--bj88-background);
}

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

.page-tintc__news-card {
  background-color: var(--bj88-card-bg);
  border-radius: 12px;
  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 25px rgba(0, 0, 0, 0.3);
}

.page-tintc__news-card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-tintc__news-card-date {
  font-size: 0.9rem;
  color: var(--bj88-text-secondary);
  margin-bottom: 10px;
  display: block;
}

.page-tintc__news-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

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

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

.page-tintc__news-card-excerpt {
  font-size: 1rem;
  color: var(--bj88-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tintc__news-card-read-more {
  display: inline-block;
  color: var(--bj88-gold-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-tintc__news-card-read-more:hover {
  text-decoration: underline;
  color: var(--bj88-primary-color);
}

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

/* Promotion CTA Section */
.page-tintc__promo-cta-section {
  background-color: var(--bj88-deep-green);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-tintc__promo-cta-section .page-tintc__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-tintc__promo-cta-image {
  width: 100%;
  max-width: 1000px; /* Max width for the image */
  height: auto;
  display: block;
  margin: 0 auto 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-tintc__promo-cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-tintc__promo-cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--bj88-gold-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-tintc__promo-cta-description {
  font-size: 1.1rem;
  color: var(--bj88-text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
}

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

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

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

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

.page-tintc__faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--bj88-gold-color);
  margin-left: 15px;
}

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
  content: '−'; /* Changed by JS */
}

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

.page-tintc__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Final CTA Section */
.page-tintc__final-cta-section {
  background-color: var(--bj88-deep-green);
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-tintc__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-tintc__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-tintc__hero-section {
    padding-top: 10px !important;
    min-height: auto;
  }
  .page-tintc__hero-image {
    max-height: 300px;
  }
  .page-tintc__hero-content {
    margin-top: 20px;
  }
  .page-tintc__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-tintc__hero-description {
    font-size: 1rem;
  }
  .page-tintc__section-title {
    font-size: 2rem;
    margin-top: 40px;
  }
  .page-tintc__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .page-tintc__news-grid {
    grid-template-columns: 1fr;
  }
  .page-tintc__news-card {
    margin-bottom: 20px;
  }
  .page-tintc__news-card-image {
    height: 180px;
  }
  .page-tintc__promo-cta-title {
    font-size: 1.8rem;
  }
  .page-tintc__promo-cta-description {
    font-size: 1rem;
  }
  .page-tintc__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-tintc__faq-answer {
    font-size: 0.95rem;
    padding: 0 20px 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile button responsiveness */
  .page-tintc__btn-primary,
  .page-tintc__btn-secondary,
  .page-tintc a[class*="button"],
  .page-tintc a[class*="btn"] {
    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;
    margin-bottom: 15px; /* Add some space between stacked buttons */
  }
  
  /* Button containers mobile adaptation */
  .page-tintc__hero-content .page-tintc__btn-primary, /* Specific button if it's alone */
  .page-tintc__view-all-button-container .page-tintc__btn-secondary, /* Specific button if it's alone */
  .page-tintc__promo-cta-section .page-tintc__btn-primary, /* Specific button if it's alone */
  .page-tintc__final-cta-section .page-tintc__btn-primary /* Specific button if it's alone */
  {
    width: auto !important; /* Allow single buttons to shrink to content, but max-width 100% still applies */
    max-width: 300px !important; /* Example: limit single button width on mobile */
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* General container adaptation for mobile */
  .page-tintc__section,
  .page-tintc__card,
  .page-tintc__container,
  .page-tintc__hero-section,
  .page-tintc__news-list-section,
  .page-tintc__promo-cta-section,
  .page-tintc__faq-section,
  .page-tintc__final-cta-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-left: 0;
      padding-right: 0;
  }
  .page-tintc__hero-content {
      padding-left: 15px;
      padding-right: 15px;
  }
}