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

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

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

.page-the-thao-bong-da__section-title {
  font-size: 2.5em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-the-thao-bong-da__section-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Carousel Section */
.page-the-thao-bong-da__hero-carousel-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  overflow: hidden;
  margin-bottom: 50px;
}

.page-the-thao-bong-da__hero-slider {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for desktop */
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-the-thao-bong-da__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column; /* Ensure image is above content */
}

.page-the-thao-bong-da__hero-slide.is-active {
  opacity: 1;
}

.page-the-thao-bong-da__hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-the-thao-bong-da__hero-content {
  position: relative;
  z-index: 2; /* Ensure content is above the image */
  padding: 40px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  text-align: center;
  max-width: 800px;
  margin-top: 150px; /* Push content down below image */
  transform: translateY(100%); /* Start below view */
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.page-the-thao-bong-da__hero-slide.is-active .page-the-thao-bong-da__hero-content {
  transform: translateY(0); /* Animate into view */
  opacity: 1;
}

.page-the-thao-bong-da__hero-title {
  font-size: 2.8em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-the-thao-bong-da__hero-description {
  font-size: 1.1em;
  color: var(--text-main);
  margin-bottom: 30px;
}

.page-the-thao-bong-da__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-the-thao-bong-da__hero-slider-prev,
.page-the-thao-bong-da__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--text-main);
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 1.5em;
  z-index: 10;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.page-the-thao-bong-da__hero-slider-prev:hover,
.page-the-thao-bong-da__hero-slider-next:hover {
  background-color: var(--secondary-color);
}

.page-the-thao-bong-da__hero-slider-prev {
  left: 20px;
}

.page-the-thao-bong-da__hero-slider-next {
  right: 20px;
}

.page-the-thao-bong-da__hero-slider-prev::before {
  content: '‹';
}

.page-the-thao-bong-da__hero-slider-next::before {
  content: '›';
}

/* Guide Section */
.page-the-thao-bong-da__guide-section {
  background-color: var(--card-bg);
  padding: 60px 0;
  margin-bottom: 50px;
  border-radius: 15px;
  box-shadow: 0 0 20px var(--border-color);
  border: 1px solid var(--border-color);
}

.page-the-thao-bong-da__guide-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-the-thao-bong-da__guide-card {
  flex: 0 0 calc(20% - 16px); /* 5 cards per row, accounting for gap */
  max-width: calc(20% - 16px);
  background-color: var(--deep-navy);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.page-the-thao-bong-da__guide-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-the-thao-bong-da__guide-card img {
  width: 100%;
  height: 350px;
  object-fit: cover; /* Ensure images fill the space */
  display: block;
}

/* Vertical offset for guide cards */
.page-the-thao-bong-da__guide-card--pos-1 { padding-top: 50px; }
.page-the-thao-bong-da__guide-card--pos-2 { padding-top: 25px; }
.page-the-thao-bong-da__guide-card--pos-3 { padding-top: 0px; }
.page-the-thao-bong-da__guide-card--pos-4 { padding-top: 25px; }
.page-the-thao-bong-da__guide-card--pos-5 { padding-top: 50px; }

/* Content Section */
.page-the-thao-bong-da__content-section {
  padding: 40px 0;
  margin-bottom: 50px;
}

.page-the-thao-bong-da__home-content-box {
  max-width: 91%;
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid var(--secondary-color);
  border-radius: 15px;
  box-shadow: 0 0 20px var(--secondary-color);
  height: 700px; /* Fixed height for desktop */
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-the-thao-bong-da__home-content-inner {
  height: 100%;
  overflow-y: auto; /* Scrollable content for desktop */
  padding-right: 15px; /* Space for scrollbar */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--secondary-color) var(--card-bg);
}

.page-the-thao-bong-da__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-the-thao-bong-da__home-content-inner::-webkit-scrollbar-track {
  background: var(--card-bg);
  border-radius: 10px;
}

.page-the-thao-bong-da__home-content-inner::-webkit-scrollbar-thumb {
  background-color: var(--secondary-color);
  border-radius: 10px;
  border: 2px solid var(--card-bg);
}

.page-the-thao-bong-da__content-title {
  font-size: 2.2em;
  color: var(--gold-color);
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

.page-the-thao-bong-da__content-subtitle {
  font-size: 1.8em;
  color: var(--text-main);
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao-bong-da__content-section p {
  margin-bottom: 15px;
  color: var(--text-main);
  font-size: 1em;
}

.page-the-thao-bong-da__content-section strong {
  color: var(--gold-color);
}

.page-the-thao-bong-da__content-list,
.page-the-thao-bong-da__content-ordered-list {
  margin-bottom: 15px;
  padding-left: 25px;
  color: var(--text-main);
}

.page-the-thao-bong-da__content-list li,
.page-the-thao-bong-da__content-ordered-list li {
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 1em;
}

.page-the-thao-bong-da__content-image-wrapper {
  text-align: center;
  margin: 30px 0;
}

.page-the-thao-bong-da__content-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-the-thao-bong-da__content-image-wrapper figcaption {
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 10px;
  font-size: 0.9em;
}

.page-the-thao-bong-da__text-link {
  color: var(--gold-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-the-thao-bong-da__text-link:hover {
  color: var(--secondary-color);
}

/* Blog Section */
.page-the-thao-bong-da__blog-section {
  padding: 60px 0;
  background-color: var(--card-bg);
  margin-bottom: 50px;
  border-radius: 15px;
  box-shadow: 0 0 20px var(--border-color);
  border: 1px solid var(--border-color);
}

.page-the-thao-bong-da__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
  gap: 30px;
}

.page-the-thao-bong-da__blog-card {
  background-color: var(--deep-navy);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.page-the-thao-bong-da__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.page-the-thao-bong-da__blog-card img {
  width: 100%;
  height: 200px; /* Fixed height for blog card images */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-the-thao-bong-da__blog-card-title {
  font-size: 1.3em;
  color: var(--gold-color);
  margin: 0 15px 10px;
  font-weight: 600;
  line-height: 1.4;
}

.page-the-thao-bong-da__blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-the-thao-bong-da__blog-card-title a:hover {
  color: var(--secondary-color);
}

.page-the-thao-bong-da__blog-card-date {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin: 0 15px 10px;
}

.page-the-thao-bong-da__blog-card-description {
  font-size: 1em;
  color: var(--text-main);
  margin: 0 15px 20px;
}

.page-the-thao-bong-da__blog-card-link {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-main);
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  margin-left: 15px;
  transition: background-color 0.3s ease;
}

.page-the-thao-bong-da__blog-card-link:hover {
  background-color: var(--primary-color);
}

.page-the-thao-bong-da__cta-full-width {
  text-align: center;
  margin-top: 40px;
}

/* Final CTA Section */
.page-the-thao-bong-da__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--primary-color);
  border-radius: 15px;
  margin-bottom: 50px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-the-thao-bong-da__cta-section .page-the-thao-bong-da__section-title {
  color: var(--gold-color);
}

.page-the-thao-bong-da__cta-section .page-the-thao-bong-da__section-description {
  color: var(--text-main);
}

.page-the-thao-bong-da__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* General Button Styles */
.page-the-thao-bong-da__btn-primary,
.page-the-thao-bong-da__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao-bong-da__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao-bong-da__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-the-thao-bong-da__btn-secondary {
  background-color: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao-bong-da__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--deep-navy);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao-bong-da__hero-slider {
    height: 500px;
  }

  .page-the-thao-bong-da__hero-content {
    padding: 30px;
    max-width: 700px;
    margin-top: 100px;
  }

  .page-the-thao-bong-da__hero-title {
    font-size: 2.2em;
  }

  .page-the-thao-bong-da__hero-description {
    font-size: 1em;
  }

  .page-the-thao-bong-da__guide-card {
    flex: 0 0 calc(33.333% - 14px); /* 3 cards per row */
    max-width: calc(33.333% - 14px);
    padding-top: 0 !important; /* Reset padding for 3-column layout */
  }

  .page-the-thao-bong-da__blog-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
  }

  .page-the-thao-bong-da__home-content-box {
    max-width: 95%;
  }
}

@media (max-width: 768px) {
  .page-the-thao-bong-da__container {
    padding: 15px;
  }

  .page-the-thao-bong-da__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-the-thao-bong-da__section-description {
    font-size: 0.95em;
  }

  /* Hero Carousel */
  .page-the-thao-bong-da__hero-carousel-section {
    padding-top: 10px !important;
    margin-bottom: 30px;
  }

  .page-the-thao-bong-da__hero-slider {
    height: 400px;
    border-radius: 10px;
  }

  .page-the-thao-bong-da__hero-content {
    padding: 20px;
    max-width: 90%;
    margin-top: 50px;
  }

  .page-the-thao-bong-da__hero-title {
    font-size: 1.6em;
    margin-bottom: 10px;
  }

  .page-the-thao-bong-da__hero-description {
    font-size: 0.9em;
    margin-bottom: 20px;
  }

  .page-the-thao-bong-da__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
  }

  .page-the-thao-bong-da__hero-slider-prev,
  .page-the-thao-bong-da__hero-slider-next {
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    padding: 10px;
  }

  .page-the-thao-bong-da__hero-slider-prev {
    left: 10px;
  }

  .page-the-thao-bong-da__hero-slider-next {
    right: 10px;
  }

  /* Guide Section */
  .page-the-thao-bong-da__guide-section {
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 10px;
  }

  .page-the-thao-bong-da__guide-grid {
    display: grid; /* Use grid for more control */
    grid-template-columns: repeat(6, 1fr); /* Base 6 columns */
    gap: 15px;
  }

  .page-the-thao-bong-da__guide-card {
    padding-top: 0 !important; /* Reset padding */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
  }

  /* Specific grid spans for 2+3 layout */
  .page-the-thao-bong-da__guide-card--pos-1,
  .page-the-thao-bong-da__guide-card--pos-2 {
    grid-column: span 3; /* First two cards span 3 columns each (1/2 row) */
    max-width: 100%; /* Ensure they take full available width in their span */
    flex: none; /* Override flex properties */
  }

  .page-the-thao-bong-da__guide-card--pos-3,
  .page-the-thao-bong-da__guide-card--pos-4,
  .page-the-thao-bong-da__guide-card--pos-5 {
    grid-column: span 2; /* Next three cards span 2 columns each (1/3 row) */
    max-width: 100%; /* Ensure they take full available width in their span */
    flex: none; /* Override flex properties */
  }

  .page-the-thao-bong-da__guide-card img {
    height: 200px; /* Adjust image height for mobile */
    object-fit: contain; /* Ensure full image is visible */
  }

  /* Content Section */
  .page-the-thao-bong-da__content-section {
    padding: 20px 0;
    margin-bottom: 30px;
  }

  .page-the-thao-bong-da__home-content-box {
    max-width: 100%;
    height: auto; /* Auto height for mobile */
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px var(--secondary-color);
  }

  .page-the-thao-bong-da__home-content-inner {
    height: auto; /* No fixed height or scroll on mobile */
    overflow-y: visible;
    padding-right: 0;
  }

  .page-the-thao-bong-da__content-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }

  .page-the-thao-bong-da__content-subtitle {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-the-thao-bong-da__content-section p,
  .page-the-thao-bong-da__content-list li,
  .page-the-thao-bong-da__content-ordered-list li {
    font-size: 0.95em;
  }

  .page-the-thao-bong-da__content-image-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Blog Section */
  .page-the-thao-bong-da__blog-section {
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 10px;
  }

  .page-the-thao-bong-da__blog-grid {
    grid-template-columns: 1fr; /* 1 column for mobile */
    gap: 20px;
  }

  .page-the-thao-bong-da__blog-card img {
    
  }

  .page-the-thao-bong-da__blog-card-title {
    font-size: 1.1em;
  }

  .page-the-thao-bong-da__cta-full-width {
    margin-top: 30px;
  }

  /* Final CTA Section */
  .page-the-thao-bong-da__cta-section {
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 10px;
  }

  .page-the-thao-bong-da__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General Button Mobile Styles */
  .page-the-thao-bong-da__btn-primary,
  .page-the-thao-bong-da__btn-secondary,
  .page-the-thao-bong-da a[class*="button"],
  .page-the-thao-bong-da a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* General Image Mobile Styles */
  .page-the-thao-bong-da img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-the-thao-bong-da__section,
  .page-the-thao-bong-da__card,
  .page-the-thao-bong-da__container,
  .page-the-thao-bong-da__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}