/* style/sports.css */

/* Variables from shared.css or defined here for consistency */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #EA7C07; /* Login button color */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-color-light: #ffffff;
  --bg-color-dark: #26A9E0; /* Using primary color for dark sections */
  --border-color: #e0e0e0;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --header-offset: 120px; /* Default value, overridden by shared.css */
}

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

/* Ensure main content is below fixed header */
.page-sports {
  padding-top: var(--header-offset, 120px); /* Apply header offset to main content */
}

.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;
  padding-bottom: 15px;
}

.page-sports__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

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

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

.page-sports__section-description {
  text-align: center;
  font-size: 18px;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__section-description--light {
  color: rgba(255, 255, 255, 0.9);
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color), #4CAF50); /* Adjusted gradient for better visual */
  overflow: hidden;
}

.page-sports__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-sports__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.page-sports__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-color-light);
}

.page-sports__hero-content h1 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-sports__hero-content p {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-sports__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-sports__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

.page-sports__cta-button--primary {
  background: var(--secondary-color); /* Use login color for primary CTA */
  color: var(--text-color-light);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 6px 15px rgba(234, 124, 7, 0.4);
}

.page-sports__cta-button--primary:hover {
  background: #d16e06; /* Manually darkened #EA7C07 */
  border-color: #d16e06;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(234, 124, 7, 0.6);
}

.page-sports__cta-button--secondary {
  background: transparent;
  color: var(--text-color-light);
  border: 2px solid var(--text-color-light);
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.2);
}

.page-sports__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

/* Introduction Section */
.page-sports__introduction-section {
  padding: 80px 0;
  background-color: var(--bg-color-light);
}

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

.page-sports__card {
  background: var(--bg-color-light);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-sports__card img {
  width: 100%; /* Card image takes full width of card */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure responsiveness */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-sports__card p {
  font-size: 16px;
  color: var(--text-color-dark);
}

/* Popular Sports Section */
.page-sports__popular-sports-section {
  padding: 80px 0;
  background: var(--bg-color-dark); /* Using primary color as dark background */
}

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

.page-sports__sport-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 30px;
  text-align: center;
  color: var(--text-color-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-sports__sport-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
}

.page-sports__sport-card img {
  width: 100%; /* Card image takes full width of card */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure responsiveness */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-sports__sport-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color-light);
  margin-bottom: 15px;
}

.page-sports__sport-card p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  flex-grow: 1; /* Make paragraphs take available space */
}

.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--text-color-light);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid var(--text-color-light);
  box-sizing: border-box;
}

.page-sports__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
}

/* Betting Guide Section */
.page-sports__betting-guide-section {
  padding: 80px 0;
  background-color: var(--bg-color-light);
}

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

.page-sports__step-card {
  background: var(--bg-color-light);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__step-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: var(--text-color-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
  min-width: 60px; /* Ensure icon size is not affected by image size rules */
  min-height: 60px; /* Ensure icon size is not affected by image size rules */
}

.page-sports__step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-sports__step-card p {
  font-size: 16px;
  color: var(--text-color-dark);
  flex-grow: 1;
}

.page-sports__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  box-sizing: border-box;
}

.page-sports__btn-primary:hover {
  background: #2297cb; /* Manually darkened #26A9E0 */
  border-color: #2297cb;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.4);
}

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

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

.page-sports__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 30px;
  text-align: center;
  color: var(--text-color-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-sports__promo-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
}

.page-sports__promo-card img {
  width: 100%; /* Card image takes full width of card */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure responsiveness */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-sports__promo-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color-light);
  margin-bottom: 15px;
}

.page-sports__promo-card p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  flex-grow: 1;
}

/* Security & Support Section */
.page-sports__security-support-section {
  padding: 80px 0;
  background-color: var(--bg-color-light);
}

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

.page-sports__info-item {
  background: var(--bg-color-light);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__info-item img {
   /* Specific size for icons */
   /* Specific size for icons */
  object-fit: contain;
  margin-bottom: 20px;
   /* Ensure icon size is consistent */
  min- /* Ensure icon size is consistent */
  min- /* Ensure icon size is consistent */
}

.page-sports__info-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-sports__info-item p {
  font-size: 16px;
  color: var(--text-color-dark);
  flex-grow: 1;
}