/* style/sports.css */
/* Body background color is from shared.css: var(--background-color) which is #08160F. */
/* Therefore, text colors should be light (e.g., #F2FFF6, #A7D9B8) for contrast. */

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

.page-sports {
  color: var(--i5bet-text-main); /* Light text on dark body background */
  background-color: var(--i5bet-bg);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-sports__section-spacing {
  padding: 60px 0;
}

.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Max height for hero image */
  overflow: hidden;
}

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

.page-sports__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  z-index: 1; /* Ensure content is above any background elements if needed */
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  position: relative;
}

.page-sports__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--i5bet-gold);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports__hero-description {
  font-size: 1.15rem;
  color: var(--i5bet-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-sports__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-sports__btn-primary {
  background: var(--i5bet-btn-gradient);
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-sports__btn-secondary:hover {
  background-color: var(--i5bet-gold);
  color: var(--i5bet-deep-green);
  transform: translateY(-2px);
}

.page-sports__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--i5bet-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-sports__section-description {
  font-size: 1.05rem;
  color: var(--i5bet-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: -20px auto 40px auto;
}

.page-sports__card {
  background-color: var(--i5bet-card-bg);
  border: 1px solid var(--i5bet-border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--i5bet-text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sports__card-title {
  font-size: 1.5rem;
  color: var(--i5bet-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

.page-sports__category-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--i5bet-border);
}

.page-sports__category-card .page-sports__btn {
  margin-top: 20px;
}

.page-sports__live-betting-section {
  text-align: center;
}

.page-sports__live-betting-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  border: 2px solid var(--i5bet-glow);
  box-shadow: 0 0 20px rgba(87, 227, 141, 0.5);
}

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

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

.page-sports__promotions-list li {
  background-color: var(--i5bet-card-bg);
  border: 1px solid var(--i5bet-border);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  color: var(--i5bet-text-main);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-sports__promotions-list li::before {
  content: '⚡'; /* Unicode lightning bolt */
  margin-right: 10px;
  font-size: 1.2em;
  color: var(--i5bet-glow);
}

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

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

.page-sports__step-number {
  width: 60px;
  height: 60px;
  background: var(--i5bet-btn-gradient);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-sports__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-sports__faq-item {
  margin-bottom: 15px;
  padding: 0;
  background-color: var(--i5bet-card-bg);
  border: 1px solid var(--i5bet-border);
  border-radius: 10px;
  overflow: hidden;
}

.page-sports__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--i5bet-text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--i5bet-card-bg);
  transition: background-color 0.3s ease;
}

.page-sports__faq-item summary:hover {
  background-color: var(--i5bet-deep-green);
}

.page-sports__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-sports__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--i5bet-glow);
  margin-left: 15px;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  content: '−';
}

.page-sports__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--i5bet-text-secondary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-sports__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-sports__container {
    padding: 0 15px;
  }

  .page-sports__section-spacing {
    padding: 40px 0;
  }

  .page-sports__hero-section {
    padding-bottom: 40px;
  }

  .page-sports__hero-content {
    padding: 30px 15px;
    margin-top: -60px;
  }

  .page-sports__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-sports__hero-description {
    font-size: 1rem;
  }

  .page-sports__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-sports__features-grid, .page-sports__categories-grid, .page-sports__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__card-image {
    height: 180px;
  }

  .page-sports__live-betting-image {
    margin: 30px auto;
  }

  .page-sports__promotions-list {
    margin: 30px auto;
  }

  .page-sports__promotions-list li {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  .page-sports__faq-item summary {
    padding: 15px 20px;
    font-size: 1.05rem;
  }

  .page-sports__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }

  /* Mobile image responsiveness */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__hero-image-wrapper,
  .page-sports__live-betting-section,
  .page-sports__why-us-section,
  .page-sports__categories-section,
  .page-sports__promotions-section,
  .page-sports__how-to-section,
  .page-sports__faq-section
  {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Specific padding for hero section to avoid double padding */
  .page-sports__hero-section {
    padding-top: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-sports__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (min-width: 769px) {
  .page-sports__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
  .page-sports__hero-content {
    position: relative;
    z-index: 1;
    margin-top: 0; /* Adjust for desktop, no overlap needed */
  }
  .page-sports__hero-section {
    min-height: 600px; /* Ensure hero section has enough height */
    justify-content: center;
    padding: 100px 20px; /* More padding for desktop */
    padding-top: 10px; /* Keep small top padding */
  }
}