/* style/sports.css */

/* Base styles for the sports page, ensuring light text on dark background */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  line-height: 1.6;
  padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Ensure all links have proper contrast and hover states */
.page-sports a {
  color: #FFA53A; /* Auxiliary color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sports a:hover {
  color: #FFB04D; /* Glow color for hover */
  text-decoration: underline;
}

/* Headings colors */
.page-sports h1,
.page-sports h2,
.page-sports h3,
.page-sports h4,
.page-sports h5,
.page-sports h6 {
  color: #FFF3E6; /* Text Main for headings */
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.2;
}

/* Page titles */
.page-sports__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}

.page-sports__section-title {
  font-size: clamp(24px, 3.5vw, 40px); /* Responsive font size for H2 */
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
}

.page-sports__sub-title {
  font-size: clamp(20px, 2.5vw, 28px); /* Responsive font size for H3 */
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Section padding and background */
.page-sports__section {
  padding: 60px 0;
}

.page-sports__intro-section,
.page-sports__giftcode-guide,
.page-sports__other-games,
.page-sports__cta-final {
  background-color: #17191F; /* Card B G for sections with darker background */
}

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

/* Text blocks and paragraphs */
.page-sports__text-block {
  margin-bottom: 20px;
  font-size: 16px;
}

.page-sports__center-text {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px; /* Constrain width for readability */
}

.page-sports__center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* HERO section specific styles */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0D0E12; /* Background */
}

.page-sports__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-sports__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
}

.page-sports__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-sports__description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button fits container */
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%); /* Slightly lighter on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__btn-secondary {
  background: #17191F; /* Card B G */
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #A84F0C; /* Border color */
}

.page-sports__btn-secondary:hover {
  background: #2a2d36;
  color: #FFB04D;
  border-color: #FF8C1A;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Grid layout for features and other games */
.page-sports__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Card styles */
.page-sports__card {
  background-color: #17191F; /* Card B G */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border color */
  display: flex;
  flex-direction: column;
}

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

.page-sports__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
}

.page-sports__card-title {
  font-size: 22px;
  margin-bottom: 15px;
  flex-grow: 1; /* Allow title to take up available space */
}

.page-sports__card-text {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Lists */
.page-sports__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-sports__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 16px;
}

.page-sports__list li::before {
  content: '✓'; /* Checkmark icon */
  color: #FFA53A; /* Auxiliary color */
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 18px;
  line-height: 1;
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 40px;
}

details.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 12px; /* Increased border-radius for consistency */
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background: #17191F; /* Card B G */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

details.page-sports__faq-item summary.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Adjusted padding for consistency */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF3E6; /* Text Main */
  font-size: 18px;
  font-weight: 600;
}

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

details.page-sports__faq-item summary.page-sports__faq-question:hover {
  background: #2a2d36; /* Slightly lighter background on hover */
}

.page-sports__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-sports__faq-toggle {
  font-size: 28px; /* Increased size for toggle icon */
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px; /* Adjusted width */
  text-align: center;
}

details.page-sports__faq-item .page-sports__faq-answer {
  padding: 0 25px 25px; /* Adjusted padding */
  background: #0D0E12; /* Background */
  border-radius: 0 0 12px 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-sports__hero-image {
    margin-bottom: 20px;
  }
  .page-sports__description {
    font-size: 16px;
  }
  .page-sports__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-sports__grid {
    gap: 20px;
  }
  .page-sports__card {
    padding: 20px;
  }
  .page-sports__card-title {
    font-size: 20px;
  }
  .page-sports__card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-sports__hero-image img {
    border-radius: 8px;
  }
  
  .page-sports__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-sports__section-title {
    font-size: clamp(20px, 6vw, 32px);
    margin-bottom: 30px;
  }

  .page-sports__sub-title {
    font-size: clamp(18px, 5vw, 24px);
  }

  .page-sports__description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-sports__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-sports__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Ensure height adjusts */
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto; /* Center single button */
  }

  .page-sports__grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-sports__card {
    padding: 20px;
    border-radius: 8px;
  }

  .page-sports__card-image {
    height: 160px;
    border-radius: 6px;
  }

  .page-sports__card-title {
    font-size: 18px;
  }

  .page-sports__card-text {
    font-size: 14px;
  }

  .page-sports__list li {
    font-size: 15px;
    padding-left: 25px;
  }

  .page-sports__list li::before {
    font-size: 16px;
  }

  details.page-sports__faq-item {
    border-radius: 8px;
  }

  details.page-sports__faq-item summary.page-sports__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  
  .page-sports__faq-qtext {
    font-size: 16px;
  }

  .page-sports__faq-toggle {
    font-size: 24px;
    width: 25px;
  }

  details.page-sports__faq-item .page-sports__faq-answer {
    padding: 0 20px 20px;
    border-radius: 0 0 8px 8px;
    font-size: 15px;
  }

  /* Universal image responsive styles for mobile */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .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;
  }
  .page-sports__container.page-sports__dark-bg {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure no CSS filters are applied to images */
.page-sports img {
  filter: none !important;
}

/* Ensure content area images have minimum size */
.page-sports__card-image,
.page-sports__hero-image img {
  min-width: 200px;
  min-height: 200px;
}