/* style/sports.css */

:root {
  --happy8-green-main: #11A84E;
  --happy8-green-secondary: #22C768;
  --happy8-bg-dark: #08160F;
  --happy8-card-bg: #11271B;
  --happy8-text-main: #F2FFF6;
  --happy8-text-secondary: #A7D9B8;
  --happy8-border: #2E7A4E;
  --happy8-glow: #57E38D;
  --happy8-gold: #F2C14E;
  --happy8-divider: #1E3A2A;
  --happy8-deep-green: #0A4B2C;
}

.page-sports {
  font-family: Arial, sans-serif;
  color: var(--happy8-text-main); /* Default text color for dark background */
  background-color: var(--happy8-bg-dark); /* Default page background */
}

.page-sports h1, .page-sports h2, .page-sports h3, .page-sports h4, .page-sports h5, .page-sports h6 {
  color: var(--happy8-text-main);
  font-weight: bold;
  line-height: 1.2;
}

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

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

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

.page-sports__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 20px;
  color: var(--happy8-gold);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-sports__hero-description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: var(--happy8-text-secondary);
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--happy8-text-main);
  border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

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

.page-sports__btn-secondary:hover {
  background: var(--happy8-green-secondary);
  color: var(--happy8-text-main);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-sports__btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

.page-sports__section {
  padding: 80px 20px;
  text-align: center;
}

.page-sports__dark-section {
  background-color: var(--happy8-card-bg);
  color: var(--happy8-text-main);
}

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

.page-sports__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  color: var(--happy8-text-main);
}

.page-sports__section-description {
  font-size: 1.1rem;
  color: var(--happy8-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-sports__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
}

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

.page-sports__text-block p {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1.05rem;
  color: var(--happy8-text-secondary);
}

.page-sports__text-block a {
  color: var(--happy8-green-secondary);
  text-decoration: none;
  font-weight: bold;
}

.page-sports__text-block a:hover {
  text-decoration: underline;
}

.page-sports__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-sports__intro-section .page-sports__text-block p:first-of-type {
  color: var(--happy8-text-main);
}

.page-sports__sports-grid,
.page-sports__betting-grid,
.page-sports__guide-steps {
  display: grid;
  gap: 30px;
}

.page-sports__sports-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-sports__sport-card, .page-sports__betting-card, .page-sports__guide-step {
  background-color: var(--happy8-bg-dark);
  border: 1px solid var(--happy8-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__sport-card:hover, .page-sports__betting-card:hover, .page-sports__guide-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.page-sports__sport-title, .page-sports__betting-title, .page-sports__guide-title {
  font-size: 1.5rem;
  color: var(--happy8-green-secondary);
  margin-bottom: 15px;
}

.page-sports__sport-text, .page-sports__betting-text, .page-sports__guide-text {
  font-size: 1rem;
  color: var(--happy8-text-secondary);
  line-height: 1.6;
}

.page-sports__betting-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

.page-sports__guide-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-sports__cta-wrapper {
  margin-top: 50px;
  text-align: center;
}

.page-sports__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-sports__faq-item {
  background-color: var(--happy8-card-bg);
  border: 1px solid var(--happy8-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--happy8-text-main);
  background-color: var(--happy8-deep-green);
  border-bottom: 1px solid var(--happy8-divider);
  list-style: none; /* For details/summary */
}

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

.page-sports__faq-qtext {
  flex-grow: 1;
}

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--happy8-gold);
}

.page-sports__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--happy8-text-secondary);
  line-height: 1.7;
  border-top: none;
}

.page-sports__faq-answer p {
  margin-bottom: 10px;
}

.page-sports__faq-answer a {
  color: var(--happy8-green-secondary);
  text-decoration: none;
  font-weight: bold;
}

.page-sports__faq-answer a:hover {
  text-decoration: underline;
}

/* Conclusion Section specific styles */
.page-sports__conclusion-section {
  padding: 100px 20px;
  background-color: var(--happy8-deep-green);
}

.page-sports__conclusion-section .page-sports__section-title {
  color: var(--happy8-gold);
}

.page-sports__conclusion-section .page-sports__section-description {
  color: var(--happy8-text-main);
}

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

  .page-sports__section {
    padding: 60px 20px;
  }

  .page-sports__content-wrapper {
    flex-direction: column;
  }

  .page-sports__content-wrapper--reverse-mobile {
    flex-direction: column-reverse;
  }

  .page-sports__image-block {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-bottom: 40px;
  }

  .page-sports__main-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

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

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

  .page-sports__btn-primary, .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !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: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-sports__section-description {
    font-size: 0.95rem;
  }

  .page-sports__text-block p {
    font-size: 0.95rem;
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__content-wrapper,
  .page-sports__sports-grid,
  .page-sports__betting-grid,
  .page-sports__guide-steps,
  .page-sports__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-sports__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  
  .page-sports__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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