/* style/sports.css */

/* --- Custom Color Variables --- */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --background-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;

  /* For light background sections, provide dark text colors */
  --text-dark-color: #333333;
  --text-dark-secondary-color: #555555;
}

/* --- Base Styles --- */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color for dark body background */
  background-color: var(--background-color);
}

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

.page-sports__section {
  padding: 60px 0;
  text-align: center;
}

.page-sports__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H2 */
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main-color);
  line-height: 1.2;
}

.page-sports__section-title--dark {
  color: var(--text-dark-color); /* For sections with light background */
}

.page-sports__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary-color);
}

.page-sports__section-description--dark {
  color: var(--text-dark-secondary-color); /* For sections with light background */
}

.page-sports__sub-title {
  font-size: clamp(1.5em, 3vw, 2em);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-sports__sub-title--dark {
  color: var(--text-dark-color);
}

.page-sports__paragraph {
  font-size: 1em;
  margin-bottom: 15px;
  color: var(--text-secondary-color);
}

.page-sports__paragraph--dark {
  color: var(--text-dark-secondary-color);
}

/* --- Buttons --- */
.page-sports__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-sports__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.3);
}

.page-sports__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
}

.page-sports__btn-secondary:hover {
  background-color: var(--glow-color);
  color: var(--background-color);
}

.page-sports__btn-link {
  background-color: transparent;
  color: var(--glow-color);
  text-decoration: underline;
  padding: 0;
  font-weight: normal;
}

.page-sports__btn-link:hover {
  color: var(--gold-color);
}

.page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

/* --- Card Styles --- */
.page-sports__card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

.page-sports__card--light {
  background-color: #ffffff;
  color: var(--text-dark-color);
  border: 1px solid #e0e0e0;
}

/* --- Hero Section --- */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden; /* Prevent image overflow */
  background-color: var(--background-color);
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  margin-top: 30px; /* Space below image */
}

.page-sports__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  font-weight: 800;
  color: var(--text-main-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-sports__description {
  font-size: 1.2em;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Why Choose Us Section --- */
.page-sports__why-choose-us {
  background-color: var(--deep-green-color);
}

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

.page-sports__feature-card {
  align-items: center;
  text-align: center;
}

.page-sports__feature-icon {
  width: 100%; /* Ensure image takes full width of card */
  height: auto;
  max-height: 250px; /* Limit height for feature images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Minimum image size */
}

.page-sports__feature-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main-color);
}

.page-sports__feature-text {
  color: var(--text-secondary-color);
  font-size: 1em;
}

/* --- Featured Sports Section --- */
.page-sports__featured-sports {
  background-color: #ffffff; /* Light background for this section */
  color: var(--text-dark-color);
}

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

.page-sports__sport-card {
  align-items: flex-start;
}

.page-sports__sport-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-height: 200px; /* Minimum image size */
}

.page-sports__sport-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: inherit;
}

.page-sports__sport-text {
  color: var(--text-dark-secondary-color);
  font-size: 0.95em;
}

/* --- How To Start Section --- */
.page-sports__how-to-start {
  background-color: var(--background-color);
}

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

.page-sports__step-card {
  text-align: center;
  align-items: center;
}

.page-sports__step-number {
  background: var(--button-gradient);
  color: var(--text-main-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: 700;
  margin: 0 auto 20px auto;
  box-shadow: 0 3px 10px rgba(42, 209, 111, 0.4);
}

.page-sports__step-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-sports__step-text {
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

/* --- Live Betting Section --- */
.page-sports__live-betting {
  background-color: #ffffff;
}

.page-sports__live-betting-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-sports__live-text {
  flex: 1;
  min-width: 300px;
}

.page-sports__live-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__live-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-height: 200px; /* Minimum image size */
}

/* --- Promotions Section --- */
.page-sports__promotions {
  background-color: var(--background-color);
}

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

.page-sports__promo-card {
  align-items: flex-start;
  text-align: left;
}

.page-sports__promo-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-height: 200px; /* Minimum image size */
}

.page-sports__promo-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main-color);
}

.page-sports__promo-text {
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

.page-sports__full-promo-cta {
  margin-top: 50px;
}

/* --- Mobile App Section --- */
.page-sports__mobile-app {
  background-color: #ffffff;
}

.page-sports__app-content {
  display: flex;
  flex-wrap: wrap-reverse; /* Image on right for desktop, text first for mobile */
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-sports__app-text {
  flex: 1;
  min-width: 300px;
}

.page-sports__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__app-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-height: 200px; /* Minimum image size */
}

/* --- Responsible Gaming Section --- */
.page-sports__responsible-gaming {
  background-color: var(--deep-green-color);
}

.page-sports__responsible-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-sports__responsible-feature {
  background-color: var(--card-bg-color);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--divider-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}