/* style/ththao.css */
/* Body padding-top handled by shared.css: body { padding-top: var(--header-offset); } */

.page-ththao {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--background);
}

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

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, then larger bottom */
  background-color: var(--background);
  overflow: hidden;
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height of the image wrapper */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-ththao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px; /* Ensure image is not too small */
}

.page-ththao__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  z-index: 1;
  color: var(--text-main);
}

.page-ththao__hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Use clamp for responsive H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-ththao__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-ththao__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General Section Styles */
.page-ththao__section {
  padding: 60px 0;
  background-color: var(--background);
}

.page-ththao__dark-section {
  background-color: var(--card-bg);
}

.page-ththao__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-ththao__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--deep-green) 0%, var(--glow) 50%, var(--deep-green) 100%);
  border-radius: 2px;
}

.page-ththao__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-secondary);
  text-align: justify;
}

.page-ththao__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 40px auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-width: 100%;
}

/* Buttons */
.page-ththao__btn-primary,
.page-ththao__btn-secondary,
.page-ththao__btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-ththao__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-ththao__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  opacity: 0.9;
}

.page-ththao__btn-secondary {
  background: transparent;
  color: var(--glow);
  border: 2px solid var(--glow);
  box-shadow: 0 4px 15px rgba(87, 227, 141, 0.2);
}

.page-ththao__btn-secondary:hover {
  background: var(--glow);
  color: var(--background);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
}

.page-ththao__btn-tertiary {
  background: var(--deep-green);
  color: var(--text-main);
  border: none;
  padding: 10px 20px;
  font-size: 0.95rem;
}

.page-ththao__btn-tertiary:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

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

/* Grid Container for Bet Types */
.page-ththao__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ththao__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-secondary);
}

.page-ththao__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-ththao__card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Ordered List for Guide */
.page-ththao__ordered-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-ththao__list-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  padding-left: 70px; /* Space for step number */
}

.page-ththao__list-item::before {
  content: counter(list-item);
  counter-increment: list-item;
  position: absolute;
  left: 20px;
  top: 25px;
  width: 35px;
  height: 35px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.page-ththao__list-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-ththao__list-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

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

.page-ththao__promotion-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ththao__promotion-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  max-width: 100%;
}

.page-ththao__promotion-card .page-ththao__card-title {
  margin-top: 0;
  padding: 0 20px;
}

.page-ththao__promotion-card .page-ththao__card-text {
  padding: 0 20px;
  flex-grow: 1;
}

.page-ththao__promotion-card .page-ththao__btn-tertiary {
  margin-top: 20px;
}

.page-ththao__promotion-note {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
  color: var(--text-secondary);
}

/* FAQ Section */
.page-ththao__faq-list {
  margin-top: 40px;
}

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

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--card-bg);
  border-bottom: 1px solid transparent; /* default */
  transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
  list-style: none; /* For details/summary */
  user-select: none;
}

.page-ththao__faq-item[open] > .page-ththao__faq-question {
  border-bottom-color: var(--border);
  background-color: var(--deep-green);
}

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

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

.page-ththao__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow);
}

.page-ththao__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.page-ththao__faq-item[open] .page-ththao__faq-answer {
  max-height: 1000px; /* Arbitrary large value for expansion */
  transition: max-height 0.4s ease-in;
}

.page-ththao__faq-answer p {
  margin: 0;
}

/* Conclusion Section */
.page-ththao__conclusion-section .page-ththao__text-block {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ththao__hero-image-wrapper {
    max-height: 500px;
  }
  .page-ththao__hero-image {
    min-height: 300px;
  }
  .page-ththao__section {
    padding: 40px 0;
  }
  .page-ththao__section-title {
    margin-bottom: 30px;
  }
  .page-ththao__card {
    padding: 25px;
  }
  .page-ththao__list-item {
    padding: 20px;
    padding-left: 60px;
  }
  .page-ththao__list-item::before {
    left: 15px;
    top: 20px;
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  .page-ththao__promotion-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-ththao__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-ththao__hero-image-wrapper {
    max-height: 400px;
    margin-bottom: 30px;
  }
  .page-ththao__hero-image {
    min-height: 200px;
  }
  .page-ththao__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-ththao__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-ththao__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-ththao__btn-primary,
  .page-ththao__btn-secondary,
  .page-ththao__btn-tertiary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-ththao__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-ththao__section {
    padding: 30px 0;
  }
  .page-ththao__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 25px;
    padding-bottom: 10px;
  }
  .page-ththao__section-title::after {
    width: 60px;
    height: 3px;
  }
  .page-ththao__text-block {
    font-size: 0.95rem;
  }
  .page-ththao__container {
    padding: 0 15px;
  }
  .page-ththao__grid-container,
  .page-ththao__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ththao__card {
    padding: 20px;
  }
  .page-ththao__card-title {
    font-size: 1.2rem;
  }
  .page-ththao__card-text {
    font-size: 0.9rem;
  }
  .page-ththao__list-item {
    padding: 15px;
    padding-left: 55px;
    margin-bottom: 15px;
  }
  .page-ththao__list-item::before {
    left: 10px;
    top: 15px;
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  .page-ththao__list-title {
    font-size: 1.1rem;
  }
  .page-ththao__list-text {
    font-size: 0.95rem;
  }
  .page-ththao__promotion-image {
    height: 180px;
  }
  .page-ththao__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-ththao__faq-toggle {
    font-size: 1.5rem;
  }
  .page-ththao__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }
  /* Mobile image specific rules */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-ththao__section,
  .page-ththao__card,
  .page-ththao__container,
  .page-ththao__hero-image-wrapper,
  .page-ththao__promotions-grid,
  .page-ththao__grid-container,
  .page-ththao__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-ththao__hero-section {
    padding-top: 10px !important;
  }
  .page-ththao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-ththao__hero-section {
    padding-bottom: 30px;
  }
  .page-ththao__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-ththao__hero-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .page-ththao__hero-description {
    font-size: 0.9rem;
  }
  .page-ththao__section-title {
    font-size: clamp(1.4rem, 7vw, 1.8rem);
  }
  .page-ththao__list-item {
    padding-left: 50px;
  }
  .page-ththao__list-item::before {
    width: 25px;
    height: 25px;
    font-size: 0.9rem;
    left: 10px;
    top: 15px;
  }
  .page-ththao__faq-question {
    font-size: 0.95rem;
    padding: 12px 15px;
  }
  .page-ththao__faq-toggle {
    font-size: 1.3rem;
  }
  .page-ththao__faq-answer {
    font-size: 0.9rem;
    padding: 0 15px 12px 15px;
  }
}