/* Base styles for the Thể Thao page */
.page-the-thao {
  font-family: Arial, sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color for the page */
  background-color: var(--background, #08160F); /* Fallback to custom background */
}

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding as per requirement */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  background-color: var(--deep-green, #0A4B2C); /* Fallback background */
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height to maintain aspect ratio */
  overflow: hidden;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-the-thao__hero-content-wrapper {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over the image if needed, but not OVERLAP */
  background-color: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-the-thao__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

/* General Section Styles */
.page-the-thao__section {
  padding: 60px 0;
  background-color: var(--background, #08160F);
}

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

.page-the-thao__section-title {
  font-size: 2.5rem;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-the-thao__sub-title {
  font-size: 1.8rem;
  color: var(--text-main, #F2FFF6);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__text-block {
  font-size: 1.05rem;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-the-thao__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-the-thao__list-item {
  font-size: 1.05rem;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.7;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-the-thao__list-item::before {
  content: "✅";
  position: absolute;
  left: 0;
  color: var(--glow, #57E38D);
}

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-outline {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main, #F2FFF6);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-the-thao__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-the-thao__btn-secondary {
  background-color: transparent;
  color: var(--glow, #57E38D);
  border: 2px solid var(--glow, #57E38D);
}

.page-the-thao__btn-secondary:hover {
  background-color: var(--glow, #57E38D);
  color: var(--background, #08160F);
  transform: translateY(-2px);
}

.page-the-thao__btn-outline {
  background-color: transparent;
  color: var(--glow, #57E38D);
  border: 1px solid var(--border, #2E7A4E);
  padding: 10px 20px;
  font-size: 0.9rem;
  margin-top: 15px; /* Added for card buttons */
}

.page-the-thao__btn-outline:hover {
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
  border-color: var(--glow, #57E38D);
}

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

/* Sport Grid Section */
.page-the-thao__sport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__sport-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards have equal height */
}

.page-the-thao__sport-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-the-thao__card-title {
  font-size: 1.4rem;
  color: var(--text-main, #F2FFF6);
  padding: 15px 20px 10px;
  font-weight: bold;
}

.page-the-thao__card-description {
  font-size: 0.95rem;
  color: var(--text-secondary, #A7D9B8);
  padding: 0 20px 15px;
  line-height: 1.6;
  flex-grow: 1; /* Allow description to take available space */
}

/* Guide Section */
.page-the-thao__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}