/* style/ththao.css */

/* Custom Colors */
:root {
  --page-ththao-bg: #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;
}

.page-ththao {
  background-color: var(--page-ththao-bg);
  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;
}

/* Text colors */
.page-ththao__text-main {
  color: var(--page-ththao-text-main);
}

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

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

/* Background colors */
.page-ththao__dark-section {
  background-color: var(--page-ththao-bg);
}

.page-ththao__light-bg {
  background-color: var(--page-ththao-card-bg);
}

.page-ththao__card {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-border);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-ththao__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up slightly over the image for visual flow */
  background: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  border: 1px solid var(--page-ththao-border);
}

.page-ththao__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--page-ththao-text-main);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-ththao__hero-description {
  font-size: 1.1rem;
  color: var(--page-ththao-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

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

.page-ththao__video-cta {
    margin-top: 30px;
}

/* Video Section */
.page-ththao__video-section {
  padding: 60px 0;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header-offset */
}

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

.page-ththao__section-description {
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
  width: 100%; /* desktop width */
}

.page-ththao__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

/* Sports Categories */
.page-ththao__sports-categories {
  padding: 80px 0;
  text-align: center;
}

.page-ththao__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-ththao__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-ththao__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--page-ththao-gold);
}

.page-ththao__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-ththao__card-description {
  font-size: 0.95rem;
  color: var(--page-ththao-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ththao__card-link {
  margin-top: auto;
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Why Choose Us */
.page-ththao__why-choose-us {
  padding: 80px 0;
  text-align: center;
}

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

.page-ththao__feature-item {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-ththao__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-ththao-glow);
}

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

.page-ththao__feature-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-ththao__feature-text {
  font-size: 0.95rem;
  color: var(--page-ththao-text-secondary);
}

/* How To Bet */
.page-ththao__how-to-bet {
  padding: 80px 0;
  text-align: center;
}

.page-ththao__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-ththao__step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px; /* Adjust padding for CTA button */
}

.page-ththao__step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--page-ththao-gold);
  background-color: var(--page-ththao-deep-green);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  border: 3px solid var(--page-ththao-glow);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-ththao__step-cta {
  margin-top: auto; /* Push button to bottom */
  width: calc(100% - 40px);
}

.page-ththao__inline-link {
  color: var(--page-ththao-glow);
  text-decoration: underline;
}

.page-ththao__inline-link:hover {
  color: var(--page-ththao-gold);
}

/* Bet Types */
.page-ththao__bet-types {
  padding: 80px 0;
  text-align: center;
}

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

.page-ththao__bet-type-item {
  text-align: left;
}

/* Betting Tips */
.page-ththao__betting-tips {
  padding: 80px 0;
  text-align: center;
}

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

/* FAQ Section */
.page-ththao__faq-section {
  padding: 80px 0;
  text-align: center;
}

.page-ththao__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.page-ththao__faq-item {
  background-color: var(--page-ththao-card-bg);
  border: 1px solid var(--page-ththao-border);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-ththao__faq-item[open] {
  box-shadow: 0 0 20px rgba(87, 227, 141, 0.3);
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-ththao-text-main);
  position: relative;
  list-style: none;
}

.page-ththao__faq-question::-webkit-details-marker {
  display: none;
}

.page-ththao__faq-question::marker {
  display: none;
}

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

.page-ththao__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 300;
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
  transform: rotate(45deg);
}

.page-ththao__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--page-ththao-text-secondary);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Conclusion */
.page-ththao__conclusion {
  padding: 80px 0;
  text-align: center;
}

/* Images */
.page-ththao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ththao__hero-content {
    margin-top: -100px;
    padding: 30px;
  }
  .page-ththao__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-ththao__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-ththao__feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-ththao__bet-type-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-ththao__tips-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-ththao__hero-content {
    margin-top: -80px;
    padding: 25px;
  }
  .page-ththao__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-ththao__hero-description {
    font-size: 1rem;
  }
  .page-ththao__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-ththao__btn-primary, .page-ththao__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-ththao__video-wrapper {
    padding-bottom: 56.25% !important;
    height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  .page-ththao__video {
    border-radius: 0 !important;
  }
  .page-ththao__video-section {
    padding-top: 10px !important; /* body handles header-offset */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-ththao__section-title {
    font-size: clamp(1.5rem, 5.5vw, 2.2rem);
  }
  .page-ththao__section-description {
    font-size: 0.95rem;
  }
  .page-ththao__container {
    padding: 0 15px;
  }
  .page-ththao__category-grid, .page-ththao__feature-grid, .page-ththao__steps-grid, .page-ththao__bet-type-grid, .page-ththao__tips-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-ththao__category-image {
    height: 180px;
  }
  .page-ththao__faq-list {
    margin-top: 30px;
    padding: 0 15px;
  }
  .page-ththao__faq-question {
    font-size: 1rem;
    padding: 18px 20px;
  }
  .page-ththao__faq-answer {
    font-size: 0.9rem;
    padding: 0 20px 18px 20px;
  }
  .page-ththao__hero-section, .page-ththao__sports-categories, .page-ththao__why-choose-us, .page-ththao__how-to-bet, .page-ththao__bet-types, .page-ththao__betting-tips, .page-ththao__faq-section, .page-ththao__conclusion {
    padding: 40px 0;
  }
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ththao__card, .page-ththao__section, .page-ththao__container, .page-ththao__video-section, .page-ththao__video-container, .page-ththao__video-wrapper, .page-ththao__cta-buttons, .page-ththao__button-group, .page-ththao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-ththao__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-ththao__hero-content {
    margin-top: -60px;
    padding: 20px;
  }
  .page-ththao__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-ththao__section-title {
    font-size: clamp(1.4rem, 6.5vw, 2rem);
  }
  .page-ththao__category-image {
    height: 150px;
  }
  .page-ththao__faq-question {
    font-size: 0.95rem;
    padding: 15px 18px;
  }
  .page-ththao__faq-answer {
    font-size: 0.85rem;
    padding: 0 18px 15px 18px;
  }
}