/* style/sports.css */

/* Custom Colors */
:root {
  --page-sports-bg: #08160F;
  --page-sports-card-bg: #11271B;
  --page-sports-text-main: #F2FFF6;
  --page-sports-text-secondary: #A7D9B8;
  --page-sports-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-sports-btn-border: #2E7A4E;
  --page-sports-glow: #57E38D;
  --page-sports-gold: #F2C14E;
  --page-sports-divider: #1E3A2A;
  --page-sports-deep-green: #0A4B2C;
}

.page-sports {
  background-color: var(--page-sports-bg);
  color: var(--page-sports-text-main);
  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;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  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;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over image a bit for visual flow */
  background: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid var(--page-sports-btn-border);
}

.page-sports__main-title {
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--page-sports-text-main);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

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

.page-sports__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-tertiary,
.page-sports__btn-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-sports__btn-primary {
  background: var(--page-sports-btn-gradient);
  color: var(--page-sports-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

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

.page-sports__btn-secondary:hover {
  background-color: var(--page-sports-glow);
  color: var(--page-sports-bg);
  transform: translateY(-2px);
}

.page-sports__btn-tertiary {
  background: var(--page-sports-deep-green);
  color: var(--page-sports-text-main);
  border: 1px solid var(--page-sports-btn-border);
  padding: 10px 20px;
  font-size: 0.95rem;
}

.page-sports__btn-tertiary:hover {
  background-color: var(--page-sports-btn-border);
  transform: translateY(-1px);
}

.page-sports__btn-link {
  color: var(--page-sports-glow);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font-size: 1rem;
}

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

/* Section Titles */
.page-sports__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--page-sports-text-main);
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  line-height: 1.3;
}

/* General Text */
.page-sports p {
  color: var(--page-sports-text-secondary);
  margin-bottom: 20px;
}

.page-sports a {
  color: var(--page-sports-glow);
  text-decoration: none;
}

.page-sports a:hover {
  text-decoration: underline;
  color: var(--page-sports-gold);
}

/* Intro Section */
.page-sports__intro-section {
  padding: 40px 0;
}

/* Sports Types Section */
.page-sports__sports-types-section {
  background-color: var(--page-sports-card-bg);
  padding: 60px 0;
}

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

.page-sports__sport-card {
  background-color: var(--page-sports-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 25px;
  border: 1px solid var(--page-sports-divider);
}

.page-sports__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-sports__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--page-sports-text-main);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-sports__card-description {
  font-size: 0.95rem;
  color: var(--page-sports-text-secondary);
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Live Betting Section */
.page-sports__live-betting-section {
  padding: 60px 0;
}

.page-sports__live-betting-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-sports__text-block {
  flex: 1;
}

.page-sports__image-block {
  flex: 1;
  text-align: center;
}

.page-sports__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-sports__promo-card {
  background-color: var(--page-sports-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 25px;
  border: 1px solid var(--page-sports-divider);
}

/* Guide Section */
.page-sports__guide-section {
  padding: 60px 0;
}

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

.page-sports__guide-item {
  background-color: var(--page-sports-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-sports-divider);
}

.page-sports__guide-icon-wrapper {
  background-color: var(--page-sports-deep-green);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px var(--page-sports-glow);
}

.page-sports__guide-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.page-sports__guide-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--page-sports-text-main);
  margin-bottom: 15px;
}

.page-sports__image-full-width {
  margin-top: 60px;
  text-align: center;
}

/* Why Us Section */
.page-sports__why-us-section {
  background-color: var(--page-sports-bg);
  padding: 60px 0;
}

.page-sports__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-sports__feature-item {
  background-color: var(--page-sports-card-bg);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: var(--page-sports-text-secondary);
  position: relative;
  padding-left: 45px;
  border: 1px solid var(--page-sports-divider);
}

.page-sports__feature-item::before {
  content: '✓';
  color: var(--page-sports-glow);
  font-size: 1.5rem;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 60px 0;
  background-color: var(--page-sports-card-bg);
}

.page-sports__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__faq-item {
  background-color: var(--page-sports-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-sports-divider);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-sports-text-main);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.page-sports__faq-toggle {
  font-size: 1.5rem;
  color: var(--page-sports-glow);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  transform: rotate(45deg);
}

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

/* CTA Footer Section */
.page-sports__cta-footer-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-sports-deep-green);
}

.page-sports__cta-footer-section .page-sports__section-title {
  color: var(--page-sports-text-main);
  margin-top: 0;
}

.page-sports__cta-footer-section p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-sports__text-center {
  text-align: center;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    margin-top: -100px;
    padding: 30px 20px;
  }

  .page-sports__live-betting-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  /* General mobile overrides */
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__intro-section,
  .page-sports__sports-types-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__guide-section,
  .page-sports__why-us-section,
  .page-sports__faq-section,
  .page-sports__cta-footer-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-sports__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body handles --header-offset, keep small top padding */
  }

  .page-sports__hero-content {
    margin-top: -80px;
    padding: 25px 15px;
  }

  .page-sports__main-title {
    font-size: 2rem;
  }

  .page-sports__description {
    font-size: 1rem;
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Buttons mobile adaptation */
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-tertiary,
  .page-sports__btn-link,
  .page-sports a[class*="button"],
  .page-sports a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

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

  .page-sports__card-image {
    height: auto; /* Allow image height to adapt */
  }

  .page-sports__guide-icon-wrapper {
    width: 100px;
    height: 100px;
  }

  .page-sports__guide-icon {
    width: 70px;
    height: 70px;
  }

  .page-sports__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  .page-sports__feature-item::before {
    top: 20px;
    transform: translateY(0);
  }
  .page-sports__feature-item {
    padding-top: 15px;
    padding-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: 1.7rem;
  }

  .page-sports__section-title {
    font-size: 1.5rem;
  }

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