/* style/ththao.css */

/* Custom Variables based on provided color scheme */
:root {
  --page-ththao-bg-dark: #08160F; /* Background */
  --page-ththao-card-bg: #11271B; /* Card BG */
  --page-ththao-text-main: #F2FFF6; /* Text Main */
  --page-ththao-text-secondary: #A7D9B8; /* Text Secondary */
  --page-ththao-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  --page-ththao-border-color: #2E7A4E; /* Border */
  --page-ththao-glow-color: #57E38D; /* Glow */
  --page-ththao-gold-color: #F2C14E; /* Gold */
  --page-ththao-divider-color: #1E3A2A; /* Divider */
  --page-ththao-deep-green: #0A4B2C; /* Deep Green */
}

/* Base styles for the page, assuming body has dark background from shared.css */
.page-ththao {
  color: var(--page-ththao-text-main); /* Light text on dark background */
  background-color: var(--page-ththao-bg-dark); /* Ensure consistency if shared.css doesn't apply directly */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--page-ththao-deep-green); /* A darker brand color for hero background */
  overflow: hidden; /* Ensure no image overflow */
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Match content width */
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-ththao__hero-content {
  width: 100%;
  max-width: 900px;
  text-align: center;
  z-index: 1;
}

.page-ththao__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  color: var(--page-ththao-gold-color); /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-ththao__intro-text {
  font-size: 1.15rem;
  color: var(--page-ththao-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-ththao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.page-ththao__btn-primary,
.page-ththao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

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

.page-ththao__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-ththao-glow-color);
}

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

.page-ththao__btn-secondary:hover {
  background: var(--page-ththao-glow-color);
  color: var(--page-ththao-bg-dark); /* Dark text on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-ththao__large-btn {
  padding: 18px 40px;
  font-size: 1.2rem;
}

.page-ththao__small-btn {
  padding: 10px 20px;
  font-size: 0.95rem;
}

/* General Section Styles */
.page-ththao__section {
  padding: 80px 20px;
}

.page-ththao__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-ththao__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-ththao-gold-color);
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-ththao__sub-title {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 600;
  color: var(--page-ththao-glow-color);
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-ththao__paragraph {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Color schemes for sections */
.page-ththao__dark-bg {
  background-color: var(--page-ththao-bg-dark);
  color: var(--page-ththao-text-main);
}

.page-ththao__light-bg {
  background-color: var(--page-ththao-deep-green); /* Using a brand color for contrast */
  color: var(--page-ththao-text-main);
}

.page-ththao__text-secondary {
  color: var(--page-ththao-text-secondary);
}

/* Card Styles */
.page-ththao__card {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
}

.page-ththao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 12px var(--page-ththao-glow-color);
}

.page-ththao__card-image {
  width: 100%;
  height: auto;
  max-height: 250px; /* Limit height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as a block element */
}

.page-ththao__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--page-ththao-gold-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-ththao__card-text {
  font-size: 1rem;
  color: var(--page-ththao-text-secondary);
  flex-grow: 1; /* Allow text to grow and push button to bottom */
}

/* Feature Grid */
.page-ththao__feature-grid,
.page-ththao__game-list,
.page-ththao__promo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Steps Grid */
.page-ththao__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ththao__step-card {
  padding-top: 40px; /* Adjust padding for icon */
  position: relative;
}

.page-ththao__step-icon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--page-ththao-btn-gradient);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  border: 4px solid var(--page-ththao-border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Responsible Gaming */
.page-ththao__responsibility-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-ththao__bullet-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
}

.page-ththao__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--page-ththao-text-secondary);
}

.page-ththao__list-item::before {
  content: '✓'; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: var(--page-ththao-glow-color);
  font-weight: 700;
  font-size: 1.2em;
}

/* FAQ Section */
.page-ththao__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-ththao__faq-item {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-border-color);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: var(--page-ththao-text-main);
}

.page-ththao__faq-item summary {
  list-style: none; /* Hide default marker */
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-ththao-gold-color);
  user-select: none;
  position: relative;
}

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

.page-ththao__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-ththao__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  width: 24px;
  text-align: center;
  color: var(--page-ththao-glow-color);
}

/* For <details> element, the 'open' attribute handles the state */
/* The JS will update the text content of .page-ththao__faq-toggle */

.page-ththao__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--page-ththao-text-secondary);
  line-height: 1.7;
  overflow: hidden;
  /* max-height is not strictly needed for <details> but good for fallback/transition */
  max-height: 0;
  transition: max-height 0.4s ease-out;
}