/* style/sports.css */

/* Variables for color scheme */
:root {
  --primary-color: #1A202C; /* Dark Blue/Grey */
  --secondary-color: #FFD700; /* Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #1A202C;
  --border-color: #e0e0e0;
}

.page-sports {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark); /* Default text color for light backgrounds */
  line-height: 1.6;
}

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

.page-sports__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-sports__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-sports__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__card-button {
  display: inline-block;
  padding: 15px 30px;
  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%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-sports__btn-primary {
  background: var(--secondary-color); /* Gold */
  color: var(--primary-color); /* Dark Blue/Grey text */
}

.page-sports__btn-primary:hover {
  background: #e6c200; /* Darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-secondary {
  background: var(--primary-color); /* Dark Blue/Grey */
  color: var(--text-light); /* White text */
}

.page-sports__btn-secondary:hover {
  background: #0d1014; /* Darker primary */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-sports__card-button {
  background: var(--primary-color);
  color: var(--text-light);
  font-size: 16px;
  padding: 10px 20px;
  margin-top: 20px;
}

.page-sports__card-button:hover {
  background: #0d1014;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* General Card Styling */
.page-sports__card {
  background: var(--background-light);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.page-sports__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-sports__card-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

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

.page-sports__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-sports__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-sports__hero-section .page-sports__container {
  position: relative;
  z-index: 1;
  color: var(--text-light);
}

.page-sports__main-title {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-sports__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  color: #f0f0f0;
}

/* Overview Section */
.page-sports__overview-section {
  padding: 80px 0;
  background: var(--background-light);
}

.page-sports__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Why Choose Section */
.page-sports__why-choose-section {
  padding: 80px 0;
  background: #f9f9f9;
}

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

/* Bet Types Section */
.page-sports__bet-types-section {
  padding: 80px 0;
  background: var(--background-dark);
  color: var(--text-light);
}

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

.page-sports__bet-types-section .page-sports__text-block {
  color: #f0f0f0;
}

.page-sports__bet-types-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-sports__bet-types-list .page-sports__list-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.6;
  color: #e0e0e0;
  border-left: 5px solid var(--secondary-color);
}

.page-sports__bet-types-list .page-sports__list-item strong {
  color: var(--secondary-color);
}

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

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

.page-sports__promotion-card {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 0;
  overflow: hidden;
}

.page-sports__promotion-card .page-sports__card-image {
  margin-bottom: 0;
  border-radius: 0;
  height: 250px;
  width: 100%;
  object-fit: cover;
}

.page-sports__promotion-card .page-sports__card-title,
.page-sports__promotion-card .page-sports__card-description {
  padding: 0 20px;
  text-align: left;
}

.page-sports__promotion-card .page-sports__card-title {
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-sports__promotion-card .page-sports__card-description {
  color: #666;
  font-size: 15px;
}

.page-sports__promotion-card .page-sports__card-button {
  width: calc(100% - 40px); /* Adjust for padding */
  margin: 20px;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 6px;
  box-shadow: none;
}

.page-sports__promotion-card .page-sports__card-button:hover {
  transform: none;
  box-shadow: none;
}

/* Get Started Section */
.page-sports__get-started-section {
  padding: 80px 0;
  background: var(--background-dark);
  color: var(--text-light);
}

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

.page-sports__get-started-section .page-sports__text-block {
  color: #f0f0f0;
}

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

.page-sports__step-card {
  background: rgba(255, 255, 255, 0.08); /* Lighter dark background for cards */
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-sports__step-card .page-sports__card-title {
  color: var(--secondary-color);
}

.page-sports__step-card .page-sports__card-description {
  color: #e0e0e0;
}

.page-sports__step-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1;
}

/* Mobile App Section */
.page-sports__mobile-app-section {
  padding: 80px 0;
  background: #f9f9f9;
}

.page-sports__mobile-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
}

.page-sports__mobile-content .page-sports__image-content {
  flex: 1 1 400px;
  max-width: 500px;
  margin: 0;
}

.page-sports__mobile-text {
  flex: 1 1 400px;
  max-width: 600px;
  text-align: left;
}

.page-sports__mobile-benefits {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-sports__mobile-benefits .page-sports__list-item {
  font-size: 17px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  color: #555555;
}

.page-sports__mobile-benefits .page-sports__list-item::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 0;
}

.page-sports__mobile-text .page-sports__cta-buttons {
  justify-content: flex-start;
  margin-top: 30px;
  margin-bottom: 0;
}

/* Support Section */
.page-sports__support-section {
  padding: 80px 0;
  background: var(--background-dark);
  color: var(--text-light);
}

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

.page-sports__support-section .page-sports__text-block {
  color: #f0f0f0;
}

/* Conclusion Section */
.page-sports__conclusion-section {
  padding: 80px 0;
  background: var(--background-light);
}

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

  .page-sports__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-sports__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    padding: 0 15px;
  }

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__card-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  .page-sports__overview-section,
  .page-sports__why-choose-section,
  .page-sports__bet-types-section,
  .page-sports__promotions-section,
  .page-sports__get-started-section,
  .page-sports__mobile-app-section,
  .page-sports__support-section,
  .page-sports__conclusion-section {
    padding: 60px 0;
  }

  .page-sports__container {
    padding: 0 15px;
  }

  .page-sports__features-grid,
  .page-sports__promotions-grid,
  .page-sports__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-sports__card {
    padding: 25px;
  }

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

  .page-sports__card-description {
    font-size: 15px;
  }

  .page-sports__bet-types-list {
    margin-top: 30px;
  }

  .page-sports__bet-types-list .page-sports__list-item {
    font-size: 15px;
    padding: 15px;
  }

  .page-sports__mobile-content {
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
  }

  .page-sports__mobile-content .page-sports__image-content {
    max-width: 100%;
  }

  .page-sports__mobile-text {
    text-align: center;
    max-width: 100%;
  }

  .page-sports__mobile-text .page-sports__cta-buttons {
    justify-content: center;
  }

  .page-sports__mobile-benefits .page-sports__list-item {
    font-size: 16px;
    padding-left: 25px;
  }

  .page-sports__mobile-benefits .page-sports__list-item::before {
    left: 0;
  }

  /* Image responsiveness */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__overview-section,
  .page-sports__why-choose-section,
  .page-sports__bet-types-section,
  .page-sports__promotions-section,
  .page-sports__get-started-section,
  .page-sports__mobile-app-section,
  .page-sports__support-section,
  .page-sports__conclusion-section,
  .page-sports__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}