/* style/tintc.css */
/* 
 * Body background is #1a1a2e (dark) from shared.css.
 * All main content text should be light, e.g., #ffffff.
 */

.page-tintc {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-tintc__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #1a1a2e; /* Ensure dark background for hero section */
  color: #ffffff;
  overflow: hidden; /* Ensure no image overflow */
}

.page-tintc__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 20px;
}

.page-tintc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers the area without distortion */
  filter: none !important; /* Prohibit CSS filter */
}

.page-tintc__hero-content {
  position: relative; /* Ensure content is above any potential background elements */
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-tintc__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-tintc__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-tintc__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-tintc__btn-primary {
  background-color: #26A9E0; /* Main color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-tintc__btn-primary:hover {
  background-color: #1f8ec7;
  border-color: #1f8ec7;
}

.page-tintc__btn-secondary {
  background-color: #ffffff; /* Auxiliary color */
  color: #26A9E0;
  border: 2px solid #26A9E0;
  margin-left: 15px; /* Spacing between buttons */
}

.page-tintc__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1f8ec7;
  border-color: #1f8ec7;
}

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

.page-tintc__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-tintc__dark-bg {
  background-color: #1a1a2e; /* Body background color */
  color: #ffffff; /* Light text for dark background */
  padding: 60px 0;
}

.page-tintc__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-tintc__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit; /* Inherit color from parent section */
}

/* News Grid */
.page-tintc__news-grid,
.page-tintc__promotions-grid,
.page-tintc__updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-tintc__news-card,
.page-tintc__promotion-card,
.page-tintc__update-card {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white for cards on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #ffffff; /* Light text for cards on dark background */
}

.page-tintc__light-bg .page-tintc__news-card,
.page-tintc__light-bg .page-tintc__promotion-card,
.page-tintc__light-bg .page-tintc__update-card {
  background-color: #f8f8f8; /* Light background for cards on light background */
  color: #333333; /* Dark text for cards on light background */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


.page-tintc__news-image,
.page-tintc__promotion-image,
.page-tintc__update-image {
  width: 100%;
  height: 220px; /* Fixed height for consistent card images */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
  filter: none !important; /* Prohibit CSS filter */
}

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

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

.page-tintc__news-title a,
.page-tintc__promotion-title a,
.page-tintc__update-title a {
  color: inherit; /* Inherit color from parent card */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tintc__news-title a:hover,
.page-tintc__promotion-title a:hover,
.page-tintc__update-title a:hover {
  color: #26A9E0; /* Highlight color on hover */
}

.page-tintc__news-date,
.page-tintc__promotion-date,
.page-tintc__update-date {
  font-size: 0.9rem;
  color: #a0a0a0; /* Slightly lighter text for dates */
  margin-bottom: 15px;
}

.page-tintc__light-bg .page-tintc__news-date,
.page-tintc__light-bg .page-tintc__promotion-date,
.page-tintc__light-bg .page-tintc__update-date {
  color: #666666; /* Darker text for dates on light background */
}

.page-tintc__news-excerpt,
.page-tintc__promotion-excerpt,
.page-tintc__update-excerpt {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tintc__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  align-self: flex-start; /* Align to the start */
}

.page-tintc__read-more:hover {
  text-decoration: underline;
}

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

/* FAQ Section */
.page-tintc__faq-section {
  padding: 60px 0;
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-tintc__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-tintc__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

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

.page-tintc__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.page-tintc__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #f0f0f0;
}

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

.page-tintc__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* CTA Section */
.page-tintc__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #ffffff;
  color: #333333;
}

.page-tintc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px; /* Spacing between buttons */
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-tintc__news-grid,
  .page-tintc__promotions-grid,
  .page-tintc__updates-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-tintc__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
  }

  .page-tintc__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-tintc__description {
    font-size: 1rem;
  }

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

  .page-tintc__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-tintc__news-grid,
  .page-tintc__promotions-grid,
  .page-tintc__updates-grid {
    grid-template-columns: 1fr; /* Stack cards vertically */
    gap: 20px;
  }

  .page-tintc__news-image,
  .page-tintc__promotion-image,
  .page-tintc__update-image {
    height: auto; /* Allow image height to be auto on mobile */
    min-height: 200px; /* Maintain min height */
  }

  .page-tintc__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add horizontal padding for buttons container */
  }

  .page-tintc__cta-button {
    width: 100% !important; /* Full width for buttons */
    margin-left: 0 !important; /* Remove left margin for stacked buttons */
  }

  .page-tintc__light-bg,
  .page-tintc__dark-bg {
    padding: 40px 0;
  }

  .page-tintc__container {
    padding: 0 15px; /* Adjust container padding for mobile */
  }

  /* Mobile image responsiveness (mandatory) */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size */
    min-height: 200px !important; /* Ensure min size */
    filter: none !important; /* Prohibit CSS filter */
  }
  
  /* Mobile container responsiveness (mandatory) */
  .page-tintc__section,
  .page-tintc__card,
  .page-tintc__container,
  .page-tintc__hero-section,
  .page-tintc__latest-news,
  .page-tintc__promotions-news,
  .page-tintc__game-updates,
  .page-tintc__faq-section,
  .page-tintc__cta-section,
  .page-tintc__news-card,
  .page-tintc__promotion-card,
  .page-tintc__update-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding for hero-section to override general container padding */
  .page-tintc__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-tintc__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Mobile button responsiveness (mandatory) */
  .page-tintc__cta-button,
  .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; /* Add internal padding to button text */
    padding-right: 15px;
  }
  
  /* Button containers mobile adaptation */
  .page-tintc__cta-buttons,
  .page-tintc__button-group,
  .page-tintc__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* Allow wrapping */
    gap: 10px; /* Spacing between wrapped buttons */
    overflow: hidden !important;
  }

  /* Video related styles (though no video on this page, keeping for completeness if it were to be added) */
  .page-tintc video,
  .page-tintc__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-tintc__video-section,
  .page-tintc__video-container,
  .page-tintc__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-tintc__video-section {
    padding-top: 10px !important;
  }
}

/* Color contrast enforcement based on body background #1a1a2e (dark) */
/* All elements not explicitly inheriting or set to light background should have light text */
.page-tintc p,
.page-tintc li,
.page-tintc h1, .page-tintc h2, .page-tintc h3, .page-tintc h4, .page-tintc h5, .page-tintc h6 {
  color: inherit; /* Ensure headings and paragraphs inherit from their section */
}

/* Explicitly for light background sections */
.page-tintc__light-bg p,
.page-tintc__light-bg li,
.page-tintc__light-bg h1, .page-tintc__light-bg h2, .page-tintc__light-bg h3, .page-tintc__light-bg h4, .page-tintc__light-bg h5, .page-tintc__light-bg h6 {
  color: #333333; /* Dark text for light background */
}

.page-tintc__light-bg .page-tintc__read-more {
  color: #26A9E0; /* Brand color for links on light background */
}

/* Content area image CSS dimensions (min 200px) */
/* This is covered by .page-tintc img above and specific card image sizes */
.page-tintc__news-image,
.page-tintc__promotion-image,
.page-tintc__update-image {
  min-width: 200px;
  min-height: 200px;
}