/* style/tintc.css */

/* Body background is #121212 (dark) from shared.css, so main text color should be light */
.page-tintc {
  color: #ffffff; /* Default text color for the page content */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #121212; /* Ensure consistency with body background */
}

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

.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: 40px;
  background-color: #1a1a1a;
}

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

.page-tintc__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-tintc__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-tintc__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-tintc__btn-primary {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-tintc__latest-news-section, .page-tintc__dark-bg {
  background-color: #1a1a1a; /* Darker background for contrast with body */
  padding: 60px 0;
  color: #ffffff;
}

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

.page-tintc__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-tintc__section-intro, .page-tintc__section-outro {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: inherit;
}

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

.page-tintc__news-card, .page-tintc__featured-card {
  background-color: #2a2a2a; /* Slightly lighter dark for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

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

.page-tintc__news-card-image, .page-tintc__featured-card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

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

.page-tintc__news-card-date {
  font-size: 0.85em;
  color: #bbbbbb;
  margin-bottom: 10px;
}

.page-tintc__news-card-title, .page-tintc__featured-card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-tintc__news-card-title a, .page-tintc__featured-card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tintc__news-card-title a:hover, .page-tintc__featured-card-title a:hover {
  color: #ffffff;
}

.page-tintc__news-card-excerpt, .page-tintc__featured-card-excerpt {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-tintc__news-card-link, .page-tintc__featured-card-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  align-self: flex-start; /* Align to start */
}

.page-tintc__news-card-link:hover, .page-tintc__featured-card-link:hover {
  color: #ffffff;
}

.page-tintc__view-all {
  text-align: center;
}

.page-tintc__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-tintc__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-tintc__cta-section, .page-tintc__dark-section {
  background-color: #26A9E0; /* Brand color as background */
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

.page-tintc__cta-content {
  max-width: 800px;
}

.page-tintc__cta-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-tintc__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-tintc__faq-section {
  background-color: #ffffff;
  padding: 60px 0;
  color: #333333; /* Dark text on light background */
}

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

.page-tintc__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  transition: background-color 0.3s ease;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
  list-style: none; /* Remove default marker for summary */
}

.page-tintc__faq-item[open] .page-tintc__faq-question {
  background-color: #e6e6e6;
}

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

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

.page-tintc__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-tintc__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  line-height: 1.7;
  color: #555555;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-tintc__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-tintc__section-title {
    font-size: clamp(1.6em, 4vw, 2.2em);
  }
}

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

  .page-tintc__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tintc__hero-section {
    padding-bottom: 30px;
  }

  .page-tintc__hero-content {
    padding: 0 15px;
  }

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

  .page-tintc__news-grid, .page-tintc__featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tintc__news-card-image, .page-tintc__featured-card-image {
    height: 180px;
  }

  .page-tintc__news-card-title, .page-tintc__featured-card-title {
    font-size: 1.2em;
  }

  .page-tintc__cta-section {
    padding: 60px 0;
  }

  .page-tintc__cta-title {
    font-size: clamp(1.6em, 5vw, 2.5em);
  }

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

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

  .page-tintc__faq-answer {
    padding: 0 20px 15px;
  }

  /* Mobile image responsiveness */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !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 !important;
    padding-right: 15px !important;
  }

  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Video section top padding (if video were present) */
  .page-tintc__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}