/* style/tintc.css */

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

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

.page-tintc h1, .page-tintc h2, .page-tintc h3, .page-tintc h4, .page-tintc h5, .page-tintc h6 {
  color: var(--page-tintc-text-main);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-tintc h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

.page-tintc h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 25px;
  text-align: center;
  color: var(--page-tintc-gold);
}

.page-tintc h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 15px;
}

.page-tintc a {
  color: var(--page-tintc-gold);
  text-decoration: none;
}

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

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

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

.page-tintc__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px;
  order: 1; /* Ensure image is above content */
}

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

.page-tintc__hero-content {
  text-align: center;
  max-width: 900px;
  order: 2; /* Ensure content is below image */
  position: relative; /* For z-index if needed, but not for stacking over image */
  z-index: 1;
}

.page-tintc__hero-description {
  font-size: 1.1rem;
  color: var(--page-tintc-text-secondary);
  margin-bottom: 30px;
}

.page-tintc__btn-primary,
.page-tintc__btn-secondary,
.page-tintc__btn-small {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.page-tintc__btn-primary {
  background: var(--page-tintc-btn-gradient);
  color: var(--page-tintc-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tintc__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

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

.page-tintc__btn-secondary:hover {
  background-color: var(--page-tintc-gold);
  color: var(--page-tintc-background);
}

.page-tintc__btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
  background: var(--page-tintc-btn-gradient);
  color: var(--page-tintc-text-main);
  border: none;
  border-radius: 5px;
}

.page-tintc__btn-small:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.page-tintc__section-title {
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
  color: var(--page-tintc-text-main);
}

.page-tintc__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--page-tintc-gold);
  border-radius: 2px;
}

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

.page-tintc__latest-news-section,
.page-tintc__promotions-events-section,
.page-tintc__platform-updates-section,
.page-tintc__guides-section,
.page-tintc__faq-section,
.page-tintc__cta-section {
  padding: 80px 0;
  background-color: var(--page-tintc-background);
}

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

.page-tintc__news-card,
.page-tintc__promo-card,
.page-tintc__guide-card {
  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-border);
}

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

.page-tintc__news-card-image,
.page-tintc__promo-card-image,
.page-tintc__guide-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-tintc__news-card-content,
.page-tintc__promo-card-content,
.page-tintc__guide-card-content {
  padding: 20px;
}

.page-tintc__news-card-title,
.page-tintc__promo-card-title,
.page-tintc__guide-card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  min-height: 60px; /* Ensure consistent height for titles */
}

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

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

.page-tintc__news-card-date {
  font-size: 0.9rem;
  color: var(--page-tintc-text-secondary);
  margin-bottom: 15px;
}

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

.page-tintc__read-more-link {
  color: var(--page-tintc-gold);
  font-weight: bold;
}

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

.page-tintc__update-items {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-tintc__update-item {
  display: flex;
  align-items: center;
  background-color: var(--page-tintc-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-tintc-border);
}

.page-tintc__update-item:nth-child(even) {
  flex-direction: row-reverse;
}

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

.page-tintc__update-content {
  width: 50%;
  padding: 30px;
}

.page-tintc__update-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--page-tintc-gold);
}

.page-tintc__update-text {
  font-size: 1.05rem;
  color: var(--page-tintc-text-secondary);
}

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

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

.page-tintc__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--page-tintc-text-main);
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

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

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

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
  content: '−';
}

.page-tintc__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: var(--page-tintc-text-secondary);
}

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

.page-tintc__cta-button {
  margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tintc__update-item {
    flex-direction: column;
  }

  .page-tintc__update-item:nth-child(even) {
    flex-direction: column;
  }

  .page-tintc__update-image,
  .page-tintc__update-content {
    width: 100%;
  }
  .page-tintc__update-image {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .page-tintc__container {
    padding: 0 15px;
  }

  .page-tintc h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .page-tintc h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

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

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

  .page-tintc__btn-primary,
  .page-tintc__btn-secondary,
  .page-tintc__btn-small,
  .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;
  }

  .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;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }

  .page-tintc__latest-news-section,
  .page-tintc__promotions-events-section,
  .page-tintc__platform-updates-section,
  .page-tintc__guides-section,
  .page-tintc__faq-section,
  .page-tintc__cta-section {
    padding: 50px 0;
  }

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

  .page-tintc__news-card-image,
  .page-tintc__promo-card-image,
  .page-tintc__guide-card-image,
  .page-tintc__hero-image,
  .page-tintc__update-image,
  .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-section,
  .page-tintc__promotions-events-section,
  .page-tintc__platform-updates-section,
  .page-tintc__guides-section,
  .page-tintc__faq-section,
  .page-tintc__cta-section,
  .page-tintc__news-card,
  .page-tintc__promo-card,
  .page-tintc__guide-card,
  .page-tintc__update-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-tintc__update-content {
    padding: 20px;
  }

  .page-tintc__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }

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

  .page-tintc__update-title {
    font-size: 1.5rem;
  }

  .page-tintc__update-text {
    font-size: 0.95rem;
  }

  .page-tintc p,
  .page-tintc li {
    font-size: 16px;
    line-height: 1.6;
  }
}