/* style/tintc.css */

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

/* Base styles for the page content */
.page-tintc {
  background-color: var(--page-tintc-bg);
  color: var(--page-tintc-text-main); /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom before footer */
}

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

/* Section titles */
.page-tintc__section-title {
  font-size: 2.5em;
  color: var(--page-tintc-text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

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

/* Hero Section */
.page-tintc__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--page-tintc-deep-green); /* A slightly different dark green for hero background */
}

.page-tintc__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 40px; /* Space between image and content */
}

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

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

.page-tintc__main-title {
  color: var(--page-tintc-gold); /* Use gold for main title for emphasis */
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-tintc__hero-description {
  font-size: 1.2em;
  color: var(--page-tintc-text-main);
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-tintc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 15px; /* Add padding to prevent buttons from touching edges */
}

.page-tintc__btn-primary,
.page-tintc__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  min-width: 180px; /* Ensure a minimum width */
  max-width: 100%; /* Important for responsiveness */
}

.page-tintc__btn-primary {
  background: var(--page-tintc-btn-gradient);
  color: var(--page-tintc-text-main); /* Light text on dark/gradient button */
  border: 2px solid transparent;
}

.page-tintc__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-tintc__btn-secondary {
  background: transparent;
  color: var(--page-tintc-glow); /* Use glow color for secondary button text */
  border: 2px solid var(--page-tintc-glow);
}

.page-tintc__btn-secondary:hover {
  background: var(--page-tintc-glow);
  color: var(--page-tintc-bg); /* Dark text on light hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.3);
}

/* Latest News Section */
.page-tintc__latest-news-section {
  padding: 80px 0;
  background-color: var(--page-tintc-bg);
}

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

.page-tintc__news-card {
  background-color: var(--page-tintc-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-tintc__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.page-tintc__news-card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 150px; /* Enforce minimum size */
}

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

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

.page-tintc__news-card-title a {
  color: var(--page-tintc-text-main); /* Light text for titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-tintc__news-card-excerpt {
  font-size: 1em;
  color: var(--page-tintc-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1; /* Allow excerpt to take available space */
}

.page-tintc__read-more-btn {
  display: inline-block;
  color: var(--page-tintc-glow);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom of card */
}

.page-tintc__read-more-btn:hover {
  color: var(--page-tintc-gold);
}

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

/* Promotions CTA Section */
.page-tintc__promotions-cta-section {
  padding: 80px 0;
  background-color: var(--page-tintc-deep-green); /* Slightly different background for visual break */
}

.page-tintc__promotions-cta-card {
  background-color: var(--page-tintc-card-bg);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: row; /* Default desktop layout */
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-tintc__promotions-cta-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 150px; /* Enforce minimum size */
}

.page-tintc__promotions-cta-content {
  width: 50%;
  padding: 40px;
  box-sizing: border-box;
}

.page-tintc__promotions-cta-title {
  font-size: 2em;
  color: var(--page-tintc-text-main);
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* FAQ Section */
.page-tintc__faq-section {
  padding: 80px 0;
  background-color: var(--page-tintc-bg);
}

.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-divider);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-tintc__faq-item[open] {
  background-color: var(--page-tintc-deep-green); /* Slightly darker when open */
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-tintc-text-main);
  cursor: pointer;
  -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 */
}

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

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

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

/* Bottom CTA Section */
.page-tintc__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-tintc-deep-green);
}

.page-tintc__cta-bottom-title {
  font-size: 2.2em;
  color: var(--page-tintc-gold);
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-tintc__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-tintc__section-title {
    font-size: 2em;
  }
  .page-tintc__promotions-cta-card {
    flex-direction: column;
  }
  .page-tintc__promotions-cta-image,
  .page-tintc__promotions-cta-content {
    width: 100%;
  }
  .page-tintc__promotions-cta-content {
    padding: 30px;
  }
}

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

  /* Force responsive images, videos, buttons */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-tintc__video,
  .page-tintc video {
    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-cta-section,
  .page-tintc__faq-section,
  .page-tintc__cta-bottom-section,
  .page-tintc__video-section,
  .page-tintc__video-container,
  .page-tintc__video-wrapper,
  .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;
    overflow: hidden !important; /* Prevent content overflow */
  }
  
  /* Specific padding for hero section */
  .page-tintc__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-tintc__hero-content {
    padding: 0 15px !important; /* Adjust padding for text within hero */
  }

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

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

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

  .page-tintc__promotions-cta-title {
    font-size: 1.6em;
  }

  .page-tintc__promotions-cta-content {
    padding: 20px;
  }

  .page-tintc__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-tintc__btn-primary,
  .page-tintc__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-tintc__news-card-image {
    height: 180px;
  }
  
  .page-tintc__news-card-title {
    font-size: 1.2em;
  }
  
  .page-tintc__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-tintc__faq-answer {
    padding: 0 20px 15px;
  }
}