/* style/sports.css */
:root {
  --primary-color: #0A246A;
  --secondary-color: #F3C72B;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000000;
  --background-light: #f8f8f8;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-sports {
  color: var(--text-light); /* Body background is dark, so text is light */
  padding-top: 120px; /* Adjust for fixed header on desktop */
  background-color: var(--background-dark);
}

/* Common Section Styling */
.page-sports__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-sports__section-title--light {
  color: var(--text-light);
}

.page-sports__hero-section,
.page-sports__features-section,
.page-sports__promotions-section,
.page-sports__faq-section,
.page-sports__brand-section,
.page-sports__blog-section {
  padding: 60px 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.page-sports__hero-container,
.page-sports__features-container,
.page-sports__promotions-container,
.page-sports__faq-container,
.page-sports__brand-container,
.page-sports__blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-sports__cta-buttons--center {
  margin-top: 40px;
}

.page-sports__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__cta-button--primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-sports__cta-button--primary:hover {
  background: #e0b020;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-sports__cta-button--secondary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
}

.page-sports__cta-button--secondary:hover {
  background: #071b4e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-sports__cta-button--small {
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 6px;
}

/* Card Styles */
.page-sports__card {
  background: var(--card-bg-dark);
  color: var(--text-light);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.page-sports__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__card--dark {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Image Styles */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Hero Section */
.page-sports__hero-section {
  background-image: url('[GALLERY:bg:ok365 vip, cá cược thể thao, sân vận động đêm, đèn neon]');
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  position: relative;
  text-align: center;
}

.page-sports__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.page-sports__hero-container {
  position: relative;
  z-index: 1;
}

.page-sports__main-title {
  font-size: 48px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.page-sports__hero-description {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-sports__hero-image {
  margin-top: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

/* Features Section */
.page-sports__features-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-sports__feature-item {
  text-align: center;
}

.page-sports__feature-icon {
  width: 150px; /* Min size 200px requirement, but for icons, larger display images */
  height: 150px;
  margin: 0 auto 20px;
  object-fit: contain;
  border-radius: 0; /* Icons typically don't have rounded corners */
}

.page-sports__feature-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-sports__feature-description {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
}

/* Promotions Section */
.page-sports__promotions-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 80px 20px;
}

.page-sports__promotions-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  color: #e0e0e0;
}

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

.page-sports__promotion-card {
  text-align: center;
  padding: 40px;
}

.page-sports__promotion-image {
  width: 250px;
  height: 250px;
  object-fit: contain;
  margin: 0 auto 25px;
}

.page-sports__promotion-title {
  font-size: 26px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-sports__promotion-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #cccccc;
}

/* FAQ Section */
.page-sports__faq-section {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-sports__faq-section .page-sports__section-title {
  color: var(--primary-color);
}

.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--card-bg-light);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-sports__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-sports__faq-question:active {
  background: #eeeeee;
}

.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none;
}

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Plus to X */
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

/* Brand Section */
.page-sports__brand-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 80px 20px;
}

.page-sports__brand-section .page-sports__section-title {
  color: var(--secondary-color);
}

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

.page-sports__brand-item {
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__brand-image {
  width: 200px; /* Min size 200px */
  height: 200px;
  object-fit: contain;
  margin: 0 auto 20px;
  border-radius: 0;
}

.page-sports__brand-item-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-sports__brand-item-description {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
}

/* Blog Section */
.page-sports__blog-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-sports__blog-section .page-sports__section-title {
  color: var(--secondary-color);
}

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

.page-sports__blog-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: var(--card-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border-radius: 8px;
}

.page-sports__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 20px;
  height: 100%;
  box-sizing: border-box;
}

.page-sports__blog-item-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}

.page-sports__blog-item-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-sports__blog-item-excerpt {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-sports__blog-item-date {
  font-size: 14px;
  color: #999999;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__main-title {
    font-size: 42px;
  }
  .page-sports__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-sports {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-sports__hero-section {
    padding: 80px 15px;
  }

  .page-sports__main-title {
    font-size: 36px;
  }

  .page-sports__hero-description {
    font-size: 18px;
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-sports__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-sports__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-sports__features-section,
  .page-sports__promotions-section,
  .page-sports__faq-section,
  .page-sports__brand-section,
  .page-sports__blog-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-sports__hero-container,
  .page-sports__features-container,
  .page-sports__promotions-container,
  .page-sports__faq-container,
  .page-sports__brand-container,
  .page-sports__blog-container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-sports__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-sports__feature-icon {
    width: 120px;
    height: 120px;
  }

  .page-sports__feature-title {
    font-size: 20px;
  }

  .page-sports__promotions-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-sports__promotion-image {
    width: 200px;
    height: 200px;
  }

  .page-sports__promotion-title {
    font-size: 22px;
  }

  .page-sports__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }

  .page-sports__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }

  .page-sports__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

  .page-sports__faq-answer {
    padding: 0 15px;
  }

  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px !important;
  }

  .page-sports__brand-item-title {
    font-size: 20px;
  }

  .page-sports__blog-item-title {
    font-size: 18px;
  }

  .page-sports__blog-item-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: 32px;
  }
  .page-sports__hero-section {
    padding: 60px 10px;
  }
  .page-sports__hero-description {
    font-size: 16px;
  }
  .page-sports__section-title {
    font-size: 24px;
  }
  .page-sports__features-grid,
  .page-sports__promotions-grid,
  .page-sports__brand-content,
  .page-sports__blog-list {
    grid-template-columns: 1fr;
  }
  .page-sports__faq-question h3 {
    font-size: 15px;
  }
}