/* style/tintc.css */

/* --- Base Styles --- */
.page-tintc {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for the page, as body background is dark */
  background-color: transparent; /* Main content area will inherit body background or define its own sections */
}

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

.page-tintc__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem); /* Using clamp for responsive H2 */
  color: #017439; /* Brand green for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-tintc__section-intro {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* --- Hero Section --- */
.page-tintc__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-tintc__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of the image wrapper */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-tintc__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
  color: #ffffff; /* Ensure text is white on dark background */
}

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

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

/* --- Buttons --- */
.page-tintc__btn-primary,
.page-tintc__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-tintc__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-tintc__btn-primary:hover {
  background-color: #02944b;
  border-color: #02944b;
}

.page-tintc__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

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

.page-tintc__cta-button {
  margin: 10px;
}

/* --- Latest News Section --- */
.page-tintc__latest-news {
  background-color: #0a0a0a; /* Dark background */
  padding: 60px 0;
  color: #ffffff; /* White text */
}

.page-tintc__latest-news .page-tintc__section-title {
  color: #017439; /* Brand green for titles */
}

.page-tintc__latest-news .page-tintc__section-intro {
  color: #f0f0f0;
}

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

.page-tintc__news-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff; /* White text for card content */
}

.page-tintc__news-card:hover {
  transform: translateY(-5px);
}

.page-tintc__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.page-tintc__card-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tintc__card-title a {
  color: #ffffff; /* White link text for card titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tintc__card-title a:hover {
  color: #017439; /* Brand green on hover */
}

.page-tintc__card-meta {
  font-size: 0.9rem;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-tintc__card-excerpt {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tintc__read-more-button {
  align-self: flex-start;
}

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

/* --- Event Highlights Section --- */
.page-tintc__event-highlights {
  background-color: #017439; /* Brand green background */
  padding: 60px 0;
  color: #ffffff; /* White text */
}

.page-tintc__event-highlights .page-tintc__section-title {
  color: #ffffff; /* White titles on brand green background */
}

.page-tintc__event-highlights .page-tintc__section-intro {
  color: #f0f0f0;
}

.page-tintc__event-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-top: 40px;
}

.page-tintc__event-item {
  background-color: rgba(0, 0, 0, 0.2); /* Darker transparent background */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff; /* White text */
}

.page-tintc__event-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.page-tintc__event-title a {
  color: #ffffff; /* White link text */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tintc__event-title a:hover {
  color: #ffcc00; /* Gold-like color on hover for contrast */
}

.page-tintc__event-date {
  font-size: 0.95rem;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-tintc__event-description {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-tintc__event-button {
  color: #ffffff;
  border-color: #ffffff;
}

.page-tintc__event-button:hover {
  background-color: #ffffff;
  color: #017439;
}

/* --- CTA Section --- */
.page-tintc__cta-section {
  background-color: #0a0a0a; /* Dark background */
  padding: 80px 0;
  color: #ffffff; /* White text */
}

.page-tintc__cta-content {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for CTA box */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-tintc__cta-image {
  width: 40%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-tintc__cta-text {
  flex: 1;
  text-align: left;
}

.page-tintc__cta-text .page-tintc__section-title {
  text-align: left;
  color: #017439; /* Brand green title */
}

.page-tintc__cta-text .page-tintc__description {
  text-align: left;
  color: #f0f0f0;
}

.page-tintc__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 15px;
  margin-top: 30px;
}

/* --- FAQ Section --- */
.page-tintc__faq-section {
  background-color: #0a0a0a; /* Dark background */
  padding: 60px 0;
  color: #ffffff; /* White text */
}

.page-tintc__faq-section .page-tintc__section-title {
  color: #017439; /* Brand green title */
}

.page-tintc__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
  color: #ffffff; /* White text */
}

.page-tintc__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-tintc__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #017439; /* Brand green for toggle icon */
}

/* For details tag, hide default marker */
.page-tintc__faq-item summary {
  list-style: none;
}
.page-tintc__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-tintc__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-tintc__faq-answer p {
  margin-bottom: 10px;
}
.page-tintc__faq-answer p:last-child {
  margin-bottom: 0;
}
.page-tintc__faq-answer a {
  color: #ffcc00; /* Gold-like color for links in FAQ answer */
  text-decoration: underline;
}
.page-tintc__faq-answer a:hover {
  color: #ffffff;
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
  .page-tintc__hero-image-wrapper {
    max-height: 450px;
  }
  .page-tintc__cta-content {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  .page-tintc__cta-image {
    width: 80%;
    margin-bottom: 20px;
  }
  .page-tintc__cta-text {
    text-align: center;
  }
  .page-tintc__cta-text .page-tintc__section-title,
  .page-tintc__cta-text .page-tintc__description {
    text-align: center;
  }
  .page-tintc__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-tintc__container {
    padding: 0 15px; /* Add padding for mobile containers */
  }

  .page-tintc__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-tintc__hero-image-wrapper {
    max-height: 300px;
  }
  .page-tintc__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .page-tintc__description {
    font-size: 1rem;
  }

  .page-tintc__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 15px;
  }
  .page-tintc__section-intro {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-tintc__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tintc__card-image {
    height: 180px;
  }
  .page-tintc__card-title {
    font-size: 1.2rem;
  }
  .page-tintc__card-excerpt {
    font-size: 0.95rem;
  }

  .page-tintc__event-title {
    font-size: 1.3rem;
  }
  .page-tintc__event-description {
    font-size: 0.95rem;
  }

  /* Mobile image responsiveness */
  .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__latest-news,
  .page-tintc__event-highlights,
  .page-tintc__cta-section,
  .page-tintc__faq-section,
  .page-tintc__news-card,
  .page-tintc__event-item,
  .page-tintc__cta-content,
  .page-tintc__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Specific override for hero-section and full-width elements that manage their own inner padding */
  .page-tintc__hero-section,
  .page-tintc__latest-news,
  .page-tintc__event-highlights,
  .page-tintc__cta-section,
  .page-tintc__faq-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-tintc__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }


  /* Mobile button responsiveness */
  .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; /* Ensure inner padding for button text */
    padding-right: 15px;
  }
  .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-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }
  .page-tintc__cta-buttons {
    display: flex; /* Ensure flex context for column direction */
  }

  /* FAQ toggle size for mobile */
  .page-tintc__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-tintc__faq-answer {
    padding: 10px 20px 15px;
  }
}