/* style/ththao.css */

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

/* Base Styles for the page */
.page-ththao {
  background-color: var(--page-ththao-bg-dark);
  color: var(--page-ththao-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-ththao__section {
  padding: 60px 0;
  text-align: center;
}

.page-ththao__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--page-ththao-text-main);
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-ththao__text-block {
  color: var(--page-ththao-text-secondary);
  font-size: 17px;
  max-width: 800px;
  margin: 0 auto 20px auto;
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit image height */
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

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

.page-ththao__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-ththao__main-title {
  color: var(--page-ththao-text-main);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 20px;
}

.page-ththao__hero-description {
  color: var(--page-ththao-text-secondary);
  font-size: 18px;
  margin-bottom: 30px;
}

/* Buttons */
.page-ththao__btn-primary,
.page-ththao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-ththao__btn-primary {
  background: var(--page-ththao-btn-gradient);
  color: #ffffff; /* White text for primary button */
  border: none;
}

.page-ththao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-ththao__btn-secondary {
  background-color: transparent;
  color: var(--page-ththao-glow);
  border: 2px solid var(--page-ththao-glow);
}

.page-ththao__btn-secondary:hover {
  background-color: var(--page-ththao-glow);
  color: var(--page-ththao-bg-dark);
  transform: translateY(-2px);
}

.page-ththao__cta-center {
  margin-top: 40px;
}

/* Card Styles */
.page-ththao__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ththao__card,
.page-ththao__feature-card,
.page-ththao__promotion-card,
.page-ththao__faq-item {
  background-color: var(--page-ththao-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--page-ththao-border);
  color: var(--page-ththao-text-main);
}

.page-ththao__card-image,
.page-ththao__promotion-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-ththao__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-ththao__card-title {
  font-size: 22px;
  color: var(--page-ththao-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ththao__card-description {
  color: var(--page-ththao-text-secondary);
  font-size: 16px;
  flex-grow: 1;
}

/* Content Wrapper with Image */
.page-ththao__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-ththao__text-content {
  flex: 1;
}

.page-ththao__image-wrapper {
  flex: 1;
  text-align: center;
}

.page-ththao__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.page-ththao__numbered-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-ththao__numbered-list li {
  margin-bottom: 20px;
  position: relative;
  padding-left: 35px;
  color: var(--page-ththao-text-secondary);
  font-size: 17px;
}

.page-ththao__numbered-list li::before {
  content: counter(list-item);
  counter-increment: list-item;
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--page-ththao-deep-green);
  color: var(--page-ththao-text-main);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
}

.page-ththao__list-title {
  color: var(--page-ththao-text-main);
  font-size: 20px;
  margin-bottom: 5px;
}

/* FAQ Section */
.page-ththao__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-ththao__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--page-ththao-border);
  color: var(--page-ththao-text-main);
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-ththao-text-main);
  user-select: none;
  background-color: var(--page-ththao-deep-green);
  border-radius: 12px;
}

.page-ththao__faq-question:hover {
  background-color: var(--page-ththao-deep-green);
  opacity: 0.9;
}

.page-ththao__faq-item[open] .page-ththao__faq-question {
  border-bottom: 1px solid var(--page-ththao-divider);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

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

.page-ththao__faq-toggle {
  font-size: 24px;
  margin-left: 15px;
  width: 24px;
  text-align: center;
  line-height: 1;
}

.page-ththao__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--page-ththao-text-secondary);
  line-height: 1.6;
}

/* Hide default details marker */
.page-ththao__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-ththao__faq-item summary::marker {
  display: none;
}

/* Final CTA Section */
.page-ththao__cta-final {
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ththao__hero-content {
    padding: 0 15px;
  }
  .page-ththao__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }
  .page-ththao__main-title {
    font-size: clamp(32px, 4.5vw, 50px);
  }
  .page-ththao__content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-ththao__image-wrapper {
    order: -1; /* Image first on smaller screens */
    margin-bottom: 30px;
  }
  .page-ththao__reverse-order-mobile .page-ththao__image-wrapper {
    order: 1; /* Image last on smaller screens for this specific section */
  }
  .page-ththao__reverse-order-mobile .page-ththao__text-content {
    order: 0;
  }
}

@media (max-width: 768px) {
  .page-ththao__section {
    padding: 40px 0;
  }
  .page-ththao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-ththao__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-ththao img,
  .page-ththao__hero-image,
  .page-ththao__card-image,
  .page-ththao__promotion-image,
  .page-ththao__feature-icon,
  .page-ththao__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-ththao__hero-image-wrapper,
  .page-ththao__image-wrapper,
  .page-ththao__card,
  .page-ththao__feature-card,
  .page-ththao__promotion-card,
  .page-ththao__faq-item,
  .page-ththao__grid-layout,
  .page-ththao__promotion-grid,
  .page-ththao__faq-list,
  .page-ththao__cta-center,
  .page-ththao__content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0px !important; /* Managed by container */
    padding-right: 0px !important; /* Managed by container */
  }
  .page-ththao__btn-primary,
  .page-ththao__btn-secondary,
  .page-ththao a[class*="button"],
  .page-ththao 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-ththao__cta-center a {
    display: block;
    margin-bottom: 15px;
  }
  .page-ththao__cta-center a:last-child {
    margin-bottom: 0;
  }
  .page-ththao__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-ththao__faq-answer {
    padding: 15px 20px;
    font-size: 15px;
  }
  .page-ththao__text-block {
    font-size: 16px;
  }
  .page-ththao__card-title {
    font-size: 20px;
  }
  .page-ththao__card-description {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-ththao__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }
  .page-ththao__hero-description {
    font-size: 16px;
  }
  .page-ththao__section-title {
    font-size: clamp(24px, 5vw, 32px);
  }
  .page-ththao__btn-primary,
  .page-ththao__btn-secondary {
    font-size: 16px;
    padding: 12px 20px;
  }
  .page-ththao__card-image,
  .page-ththao__promotion-image {
    height: 200px;
  }
}