/* style/the-thao.css */

:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B;
}

.page-the-thao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--deep-navy); /* From shared.css, ensure text contrast */
}

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--deep-navy);
  color: var(--text-main);
}

.page-the-thao__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 0 20px;
}

.page-the-thao__hero-image-wrapper {
  flex: 1 1 50%;
  min-width: 300px;
  order: 1; /* Image first */
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-the-thao__hero-content {
  flex: 1 1 40%;
  min-width: 300px;
  order: 2; /* Content after image */
  text-align: left;
}

.page-the-thao__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-the-thao__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-the-thao__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-the-thao__btn-secondary {
  background-color: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
}

.page-the-thao__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--deep-navy);
  transform: translateY(-3px);
}

.page-the-thao__btn-large {
  padding: 18px 35px;
  font-size: 1.2rem;
}

.page-the-thao__dark-section {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-the-thao__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-the-thao__intro-text {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: var(--text-secondary);
}

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

.page-the-thao__feature-item {
  background-color: var(--deep-navy);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-the-thao__icon-box-media {
  width: 200px;
  height: 200px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold-color);
  box-shadow: 0 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-the-thao__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

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

.page-the-thao__feature-description {
  font-size: 1rem;
  color: var(--text-secondary);
}

.page-the-thao__flex-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-the-thao__text-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-the-thao__image-wrapper {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-the-thao__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: block;
}

.page-the-thao__benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-the-thao__benefit-item {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-the-thao__benefit-item::before {
  content: '✔';
  color: var(--gold-color);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
}

.page-the-thao__guide-intro {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}

.page-the-thao__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-the-thao__guide-step {
  background-color: var(--deep-navy);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.page-the-thao__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--gold-color);
  color: var(--deep-navy);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 5px rgba(242, 193, 78, 0.3);
}

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

.page-the-thao__step-description {
  font-size: 1rem;
  color: var(--text-secondary);
}

.page-the-thao__guide-cta {
  text-align: center;
  margin-top: 40px;
}

.page-the-thao__guide-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__popular-sports-intro {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}

.page-the-thao__sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.page-the-thao__sport-item {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-the-thao__sport-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-the-thao__sport-description {
  font-size: 1rem;
  color: var(--text-secondary);
}

.page-the-thao__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-the-thao__faq-item {
  background-color: var(--deep-navy);
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-the-thao__faq-item summary {
  display: block;
  padding: 20px 25px;
  cursor: pointer;
  outline: none;
  list-style: none;
  position: relative;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  transition: background-color 0.3s ease;
}

.page-the-thao__faq-item summary:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-the-thao__faq-item summary::-webkit-details-marker, 
.page-the-thao__faq-item summary::marker {
  display: none;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.page-the-thao__cta-bottom {
  background-color: var(--deep-navy);
  color: var(--text-main);
  text-align: center;
  padding-bottom: 60px;
}

/* General image responsiveness */
.page-the-thao img:not(.page-the-thao__icon-box-media img) {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-the-thao__hero-image-wrapper {
    order: 1;
  }

  .page-the-thao__hero-content {
    order: 2;
  }

  .page-the-thao__cta-buttons {
    justify-content: center;
  }

  .page-the-thao__flex-container {
    flex-direction: column;
    gap: 30px;
  }

  .page-the-thao__image-wrapper {
    order: 1;
  }

  .page-the-thao__text-content {
    order: 2;
  }
}

@media (max-width: 768px) {
  .page-the-thao {
    font-size: 15px;
  }

  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }

  .page-the-thao__hero-container,
  .page-the-thao__content-area {
    padding: 0 15px;
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-the-thao__description,
  .page-the-thao__intro-text,
  .page-the-thao__feature-description,
  .page-the-thao__benefit-item,
  .page-the-thao__guide-intro,
  .page-the-thao__step-description,
  .page-the-thao__popular-sports-intro,
  .page-the-thao__sport-description,
  .page-the-thao__faq-answer {
    font-size: 0.95rem;
  }

  .page-the-thao__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  /* Buttons responsiveness */
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-the-thao__btn,
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-the-thao__btn-large {
    padding: 15px 25px;
    font-size: 1.1rem;
  }

  /* Module 1: Three-column intro, square images */
  .page-the-thao__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__icon-box-media {
    width: 150px;
    height: 150px;
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.2);
  }

  /* Guide section */
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }

  /* Popular Sports */
  .page-the-thao__sports-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* General images for content sections */
  .page-the-thao img:not(.page-the-thao__icon-box-media img) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure content containers are responsive */
  .page-the-thao__hero-section,
  .page-the-thao__intro-section,
  .page-the-thao__why-choose-section,
  .page-the-thao__guide-section,
  .page-the-thao__popular-sports-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-bottom,
  .page-the-thao__feature-item,
  .page-the-thao__guide-step,
  .page-the-thao__sport-item,
  .page-the-thao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__content-area {
    padding-left: 15px;
    padding-right: 15px;
  }
}