/* style/sports.css */

/* --- Base Styles --- */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
  line-height: 1.6;
}

.page-sports a {
  color: #F3C54D; /* Gold for links */
  text-decoration: none;
}

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

.page-sports__section-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 15px; /* Added for mobile constraint */
}

.page-sports__section-title {
  font-size: 2.5rem;
  color: #FFF1E8;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-sports__section-description {
  font-size: 1.1rem;
  color: #FFF1E8;
  max-width: 800px;
  margin: 0 auto;
}

/* --- Hero Section --- */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0; /* No top padding here, body handles it */
  background-color: #140C0C;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-sports__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px; /* Space between image and content */
  box-sizing: border-box;
}

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-sports__intro-text {
  font-size: 1.3rem;
  color: #FFF1E8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 20px;
  justify-content: center;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't exceed container */
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C; /* Dark text for light button */
  border: none;
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #FFC06A 0%, #E87A24 100%);
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  background: transparent;
  color: #F3C54D; /* Gold text */
  border: 2px solid #F3C54D; /* Gold border */
}

.page-sports__btn-secondary:hover {
  background: rgba(243, 197, 77, 0.1); /* Light gold background */
  transform: translateY(-2px);
}

/* --- Video Section --- */
.page-sports__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0; /* Adjusted padding */
  background-color: #140C0C;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-sports__video-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-sports__video-link {
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  overflow: hidden;
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer; /* Added for video click functionality */
}

.page-sports__cta-buttons--video {
  margin-top: 20px;
}

/* --- Content Area --- */
.page-sports__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
  background-color: #140C0C; /* Dark background */
  color: #FFF1E8; /* Light text for dark background */
}

.page-sports__content-area p {
  margin-bottom: 1em;
  font-size: 1rem;
}

.page-sports__content-area h2 {
  font-size: 2rem;
  color: #F3C54D; /* Gold */
  margin-bottom: 25px;
  text-align: center;
}

.page-sports__content-area h3 {
  font-size: 1.5rem;
  color: #E53030; /* Accent Red */
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-sports__feature-item {
  background-color: #2A1212; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid #6A1E1E; /* Border */
}

.page-sports__feature-item:hover {
  transform: translateY(-5px);
}

.page-sports__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-sports__feature-title {
  color: #F3C54D; /* Gold */
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* --- Sport List --- */
.page-sports__sport-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-sports__sport-item {
  background-color: #2A1212; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid #6A1E1E; /* Border */
}

.page-sports__sport-item:hover {
  transform: translateY(-3px);
}

.page-sports__sport-thumbnail {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 50%;
  margin-bottom: 15px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
  min-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__sport-name {
  color: #F3C54D; /* Gold */
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* --- Bet Type List --- */
.page-sports__bet-type-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-sports__bet-type-item {
  background-color: #2A1212; /* Card BG */
  border-left: 5px solid #E53030; /* Accent Red */
  border-radius: 5px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  border-right: 1px solid #6A1E1E;
  border-top: 1px solid #6A1E1E;
  border-bottom: 1px solid #6A1E1E;
}

.page-sports__bet-type-item:hover {
  background-color: #3A1A1A;
}

.page-sports__bet-type-title {
  color: #F3C54D; /* Gold */
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* --- Bonuses Section --- */
.page-sports__promo-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  min-height: 200px; /* Minimum image size */
}

.page-sports__bonus-list {
  list-style: disc;
  padding-left: 25px;
  margin: 20px 0 30px;
  color: #FFF1E8;
  font-size: 1rem;
}

.page-sports__bonus-list li {
  margin-bottom: 10px;
}

/* --- Live Betting Section --- */
.page-sports__live-betting-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  min-height: 200px; /* Minimum image size */
}

/* --- Strategies Section --- */
.page-sports__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-sports__strategy-item {
  background-color: #2A1212; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  border: 1px solid #6A1E1E; /* Border */
}

.page-sports__strategy-item:hover {
  background-color: #3A1A1A;
}

.page-sports__strategy-title {
  color: #F3C54D; /* Gold */
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* --- Security & Responsible Gaming Section --- */
.page-sports__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.page-sports__security-image {
  flex: 1 1 400px;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  min-height: 200px; /* Minimum image size */
}

.page-sports__security-text {
  flex: 1 1 400px;
}

.page-sports__security-text p {
  margin-bottom: 15px;
}

/* --- How to Start Section --- */
.page-sports__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-sports__step-item {
  background-color: #2A1212; /* Card BG */
  border-left: 5px solid #C61F1F; /* Main Red */
  border-radius: 5px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-right: 1px solid #6A1E1E;
  border-top: 1px solid #6A1E1E;
  border-bottom: 1px solid #6A1E1E;
}

.page-sports__step-title {
  color: #F3C54D; /* Gold */
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.page-sports__step-item .page-sports__btn-primary,
.page-sports__step-item .page-sports__btn-secondary {
  margin-top: 15px;
  width: auto; /* Override max-width: 100% for specific buttons */
  max-width: 250px; /* Limit width */
}

/* --- FAQ Section --- */
.page-sports__faq {
  padding-bottom: 80px;
}

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

.page-sports__faq-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #F3C54D; /* Gold */
  background-color: #2A1212; /* Card BG */
  position: relative;
  list-style: none; /* For details/summary */
}

.page-sports__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

.page-sports__faq-item[open] .page-sports__faq-question {
  background-color: #3A1A1A; /* Slightly darker when open */
}

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

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #E53030; /* Accent Red */
}

.page-sports__faq-answer {
  padding: 0 25px 20px;
  color: #FFF1E8; /* Text Main */
  font-size: 1rem;
  line-height: 1.6;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-sports__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-sports__intro-text {
    font-size: 1.15rem;
  }
  .page-sports__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-image {
    max-height: 400px;
  }
  .page-sports__hero-content {
    padding: 30px 15px;
  }
  .page-sports__main-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }
  .page-sports__intro-text {
    font-size: 1rem;
  }
  .page-sports__section-title {
    font-size: 1.8rem;
  }
  .page-sports__section-description {
    font-size: 0.95rem;
  }

  /* Images responsive */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-sports__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Buttons responsive */
  .page-sports__cta-button,
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .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; /* Added for mobile padding */
    padding-right: 15px; /* Added for mobile padding */
  }
  .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; /* Added for mobile padding */
    padding-right: 15px; /* Added for mobile padding */
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-sports__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
  }

  .page-sports__content-area {
    padding: 40px 15px;
  }

  .page-sports__feature-grid,
  .page-sports__sport-list,
  .page-sports__bet-type-list,
  .page-sports__strategy-list {
    grid-template-columns: 1fr; /* Stack columns */
  }

  .page-sports__security-content {
    flex-direction: column; /* Stack image and text */
  }
  .page-sports__security-image {
    max-width: 100%;
  }

  .page-sports__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-sports__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }
  .page-sports__step-item .page-sports__btn-primary,
  .page-sports__step-item .page-sports__btn-secondary {
    max-width: 100%;
  }
}

/* Ensure all images and containers within page-sports do not cause horizontal scroll */
.page-sports__section,
.page-sports__card,
.page-sports__container,
.page-sports__feature-item,
.page-sports__sport-item,
.page-sports__bet-type-item,
.page-sports__strategy-item,
.page-sports__step-item {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Image dimensions check (min 200x200) */
.page-sports img:not(.page-sports__hero-image) { /* Hero can be larger */
  min-width: 200px;
  min-height: 200px;
}

/* Specific override for sport thumbnails which are small in design but need min 200x200 */
.page-sports__sport-thumbnail {
  min-width: 200px;
  min-height: 200px;
  width: 100%; /* Make them fill container, but respect min size */
  max-width: 200px; /* Cap their width */
  height: auto; /* Maintain aspect ratio */
}

/* Contrast Fixes - although the background is dark, these are general safety */
.page-sports__dark-bg {
  color: #ffffff; /* Dark background with light text */
  background: #C61F1F;
}

.page-sports__light-bg {
  color: #333333; /* Light background with dark text */
  background: #ffffff;
}

.page-sports__medium-bg {
  color: #000000; /* Medium background with dark text */
  background: #E53030;
}

/* Ensure content text is always readable */
.page-sports p,
.page-sports li,
.page-sports__faq-answer {
  color: #FFF1E8; /* Text Main for general content */
}

/* Ensure heading colors are distinct and readable on dark background */
.page-sports h2 {
  color: #F3C54D; /* Gold */
}

.page-sports h3 {
  color: #E53030; /* Accent Red */
}

/* Button text color already handled by specific button styles */
/* Primary button has dark text on light gradient */
/* Secondary button has gold text on transparent background with gold border */