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

.page-sports {
  font-family: Arial, sans-serif;
  color: var(--benbet-text-main); /* Main text color for dark background */
  background-color: var(--benbet-bg); /* Page background from custom palette */
}

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

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

.page-sports__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--benbet-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-sports__sub-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: var(--benbet-text-main);
  margin-bottom: 15px;
  text-align: left;
}

.page-sports__section-description,
.page-sports__text-content {
  font-size: 18px;
  color: var(--benbet-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

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

.page-sports__card {
  background-color: var(--benbet-card-bg);
  border: 1px solid var(--benbet-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--benbet-text-main);
  height: 100%; /* Ensure cards in a grid have equal height */
  box-sizing: border-box;
}

.page-sports__card p {
  color: var(--benbet-text-secondary);
  font-size: 16px;
  line-height: 1.5;
  flex-grow: 1;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: var(--benbet-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

.page-sports__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(17, 168, 78, 0.6);
}

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

.page-sports__btn-secondary:hover {
  background: var(--benbet-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

.page-sports__text-link {
  color: var(--benbet-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-sports__text-link:hover {
  color: var(--benbet-glow);
  text-decoration: underline;
}

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

.page-sports__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.page-sports__main-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: var(--benbet-text-main);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-sports__hero-description {
  font-size: 20px;
  color: var(--benbet-text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

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

/* Why Choose Us Section */
.page-sports__why-choose-us-section {
  background-color: var(--benbet-card-bg);
  color: var(--benbet-text-main);
}

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

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

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

.page-sports__feature-text {
  font-size: 16px;
  color: var(--benbet-text-secondary);
  line-height: 1.6;
}

/* Betting Types Section */
.page-sports__betting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-sports__betting-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--benbet-text-main);
  margin-bottom: 10px;
}

/* Live Betting Section */
.page-sports__live-betting-section {
  background-color: var(--benbet-card-bg);
  color: var(--benbet-text-main);
}

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

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

.page-sports__live-betting-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-sports__live-betting-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-sports__list-icon {
  color: var(--benbet-gold);
  margin-right: 10px;
  font-weight: bold;
}

.page-sports__list li {
  margin-bottom: 10px;
  font-size: 17px;
  color: var(--benbet-text-secondary);
}

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

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

.page-sports__promotion-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--benbet-text-main);
  margin-bottom: 10px;
}

.page-sports__promotion-text {
  font-size: 16px;
  color: var(--benbet-text-secondary);
  line-height: 1.6;
}

.page-sports__view-all-promos {
  margin-top: 40px;
}

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

.page-sports__step-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--benbet-text-main);
  margin-bottom: 10px;
}

.page-sports__step-text {
  font-size: 16px;
  color: var(--benbet-text-secondary);
  line-height: 1.6;
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-sports__faq-item {
  background-color: var(--benbet-card-bg);
  border: 1px solid var(--benbet-border);
  border-radius: 12px;
  padding: 20px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0;
  color: var(--benbet-text-main);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.5;
}

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

.page-sports__faq-qtext {
  flex-grow: 1;
  margin-right: 10px;
}

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--benbet-gold);
  transition: transform 0.3s ease;
}

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

.page-sports__faq-answer {
  padding-top: 15px;
  border-top: 1px solid var(--benbet-divider);
  margin-top: 15px;
  color: var(--benbet-text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.page-sports__faq-answer p {
  margin: 0;
  color: var(--benbet-text-secondary);
}

.page-sports__view-all-faq {
  margin-top: 40px;
}

/* Expert Tips Section */
.page-sports__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__tip-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--benbet-text-main);
  margin-bottom: 10px;
}

.page-sports__tip-text {
  font-size: 16px;
  color: var(--benbet-text-secondary);
  line-height: 1.6;
}

/* Contact Section */
.page-sports__contact-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Image and Video Responsive Styles */
.page-sports img,
.page-sports video {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-sports__hero-image-wrapper,
.page-sports__live-betting-image-wrapper,
.page-sports__betting-image,
.page-sports__promotion-image,
.page-sports__feature-icon {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    padding: 30px 15px;
  }

  .page-sports__main-title {
    font-size: clamp(32px, 4.5vw, 56px);
  }

  .page-sports__hero-description {
    font-size: 18px;
  }
}

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

  .page-sports__section-title {
    font-size: clamp(24px, 4vw, 36px);
  }

  .page-sports__section-description,
  .page-sports__text-content {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  .page-sports__cta-buttons,
  .page-sports__contact-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: 16px;
  }

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

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

  .page-sports__live-betting-text {
    order: 2;
  }

  .page-sports__live-betting-image-wrapper {
    order: 1;
    margin-bottom: 20px;
  }

  .page-sports img,
  .page-sports video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-image-wrapper,
  .page-sports__live-betting-image-wrapper,
  .page-sports__betting-image,
  .page-sports__promotion-image,
  .page-sports__feature-icon,
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .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;
    overflow: hidden !important;
  }
  
  .page-sports__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-sports__faq-item summary {
    font-size: 16px;
  }

  .page-sports__faq-answer {
    font-size: 15px;
  }
}