/* style/tintc.css */

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

.page-tintc {
  background-color: var(--page-tintc-background);
  color: var(--page-tintc-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

.page-tintc a {
  color: var(--page-tintc-secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tintc a:hover {
  color: var(--page-tintc-glow-color);
}

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

.page-tintc__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--page-tintc-text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-tintc__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 20px 60px 20px; /* body handles padding-top from header */
  position: relative;
  overflow: hidden;
  background-color: var(--page-tintc-deep-green);
}

.page-tintc__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px;
}

.page-tintc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-tintc__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-tintc__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 800;
  color: var(--page-tintc-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-tintc__hero-description {
  font-size: 1.2em;
  color: var(--page-tintc-text-main);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-tintc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-tintc__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-tintc__btn-primary {
  background: var(--page-tintc-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-tintc__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
}

.page-tintc__btn-secondary {
  background-color: transparent;
  color: var(--page-tintc-secondary-color);
  border: 2px solid var(--page-tintc-secondary-color);
  box-shadow: 0 0 10px rgba(34, 199, 104, 0.2);
}

.page-tintc__btn-secondary:hover {
  background-color: rgba(34, 199, 104, 0.1);
  transform: translateY(-3px);
  color: var(--page-tintc-glow-color);
  border-color: var(--page-tintc-glow-color);
}

.page-tintc__latest-news, .page-tintc__industry-insights, .page-tintc__platform-announcements, .page-tintc__faq-section, .page-tintc__cta-section {
  padding: 80px 0;
}

.page-tintc__light-bg {
  background-color: var(--page-tintc-background);
  color: var(--page-tintc-text-main);
}

.page-tintc__dark-section {
  background-color: var(--page-tintc-deep-green);
  color: var(--page-tintc-text-main);
}

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

.page-tintc__news-card, .page-tintc__insight-card, .page-tintc__announcement-item {
  background-color: var(--page-tintc-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-tintc-divider-color);
}

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

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

.page-tintc__card-content {
  padding: 25px;
}

.page-tintc__news-date, .page-tintc__insight-date, .page-tintc__announcement-date {
  font-size: 0.9em;
  color: var(--page-tintc-text-secondary);
  margin-bottom: 10px;
  display: block;
}

.page-tintc__news-title, .page-tintc__insight-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-tintc__news-title a, .page-tintc__insight-title a {
  color: var(--page-tintc-text-main);
  text-decoration: none;
}

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

.page-tintc__news-excerpt, .page-tintc__insight-excerpt, .page-tintc__announcement-text {
  font-size: 1em;
  color: var(--page-tintc-text-secondary);
  margin-bottom: 20px;
}

.page-tintc__read-more {
  color: var(--page-tintc-secondary-color);
  font-weight: 600;
  text-decoration: none;
}

.page-tintc__read-more:hover {
  color: var(--page-tintc-glow-color);
  text-decoration: underline;
}

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

.page-tintc__announcements-list {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.page-tintc__announcement-item {
  padding: 25px;
}

.page-tintc__announcement-title {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--page-tintc-text-main);
  margin-bottom: 10px;
}

.page-tintc__faq-list {
  margin-top: 40px;
}

.page-tintc__faq-item {
  background-color: var(--page-tintc-card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--page-tintc-divider-color);
  overflow: hidden; /* For div-based accordion */
}

.page-tintc__faq-item summary {
  list-style: none;
}

.page-tintc__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--page-tintc-text-main);
  cursor: pointer;
  background-color: rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}

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

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

.page-tintc__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--page-tintc-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-tintc__faq-item[open] .page-tintc__faq-answer {
  max-height: 2000px; /* Sufficiently large value */
  padding-top: 15px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

/* For JS-based accordion (fallback/alternative) */
.page-tintc__faq-item.active .page-tintc__faq-answer {
  max-height: 2000px !important;
  padding-top: 15px;
}

.page-tintc__cta-section {
  text-align: center;
  background-color: var(--page-tintc-deep-green);
}

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

@media (max-width: 768px) {
  .page-tintc {
    font-size: 15px;
  }

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

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

  .page-tintc__hero-section {
    padding: 10px 15px 40px 15px;
  }

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

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

  .page-tintc__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-tintc__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-tintc__latest-news, .page-tintc__industry-insights, .page-tintc__platform-announcements, .page-tintc__faq-section, .page-tintc__cta-section {
    padding: 50px 0;
  }

  .page-tintc__container {
    padding: 0 15px;
  }

  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-tintc__news-image, .page-tintc__insight-image {
    height: auto; /* Allow height to adjust naturally on mobile */
  }

  .page-tintc__news-grid, .page-tintc__insights-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 480px) {
  .page-tintc__section-title {
    font-size: 1.8em;
  }

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

  .page-tintc__announcement-title {
    font-size: 1.1em;
  }
}