/* -------------------------------------------------------------------------- */
/*                              Base Page Styles                              */
/* -------------------------------------------------------------------------- */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #F5F7FA; /* Default background color */
    padding-top: 10px; /* Small top padding, relying on shared for body padding-top */
}

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

.page-sports__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #E53935;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-sports__description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
    max-width: 100%;
}

.page-sports__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
}

.page-sports__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-sports__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-sports__btn-secondary:hover {
    background: #E53935;
    color: #ffffff;
}

.page-sports__card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.page-sports__card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-sports__card-title {
    font-size: 22px;
    font-weight: 700;
    color: #E53935;
    margin-bottom: 10px;
}

.page-sports__card-button {
    margin-top: 15px;
    width: 100%;
}

.page-sports__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* -------------------------------------------------------------------------- */
/*                                Hero Section                                */
/* -------------------------------------------------------------------------- */
.page-sports__hero-section {
    position: relative;
    color: #ffffff;
    text-align: center;
    padding: 0;
    overflow: hidden;
    display: flex; /* Changed to flex for vertical stacking */
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-sports__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height of image wrapper */
    overflow: hidden;
    position: relative;
}

.page-sports__hero-image {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Cover the container */
    display: block;
    position: relative;
    z-index: 1;
}

.page-sports__hero-content {
    position: relative; /* Changed to relative */
    z-index: 2; /* Ensure content is above image */
    padding: 40px 15px;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text readability */
    border-radius: 10px;
    transform: translateY(-50px); /* Adjust position slightly */
    margin-bottom: -50px; /* Compensate for translateY */
}

.page-sports__main-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-sports__hero-section .page-sports__description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

/* -------------------------------------------------------------------------- */
/*                           Introduction Section                           */
/* -------------------------------------------------------------------------- */
.page-sports__introduction-section {
    padding: 60px 0;
}

.page-sports__introduction-section p {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
}

/* -------------------------------------------------------------------------- */
/*                            Sports Types Section                            */
/* -------------------------------------------------------------------------- */
.page-sports__sports-types-section {
    background-color: #F5F7FA;
    padding: 60px 0;
}

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

/* -------------------------------------------------------------------------- */
/*                            Live Betting Section                            */
/* -------------------------------------------------------------------------- */
.page-sports__live-betting-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #E53935 0%, #FF5A4F 100%);
    color: #ffffff;
    text-align: center;
}

.page-sports__live-betting-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__live-betting-section p {
    font-size: 17px;
    max-width: 900px;
    margin: 0 auto 30px;
}

.page-sports__live-betting-section .page-sports__btn-primary {
    background: #ffffff;
    color: #E53935;
    margin-top: 20px;
}

.page-sports__live-betting-section .page-sports__btn-primary:hover {
    background: #f0f0f0;
    color: #E53935;
}

/* -------------------------------------------------------------------------- */
/*                           Promotions Section                             */
/* -------------------------------------------------------------------------- */
.page-sports__promotions-section {
    padding: 60px 0;
}

.page-sports__promo-list {
    list-style: disc;
    margin: 30px auto;
    max-width: 800px;
    padding-left: 25px;
    font-size: 17px;
}

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

.page-sports__promotions-section .page-sports__btn-primary {
    margin-top: 30px;
}

/* -------------------------------------------------------------------------- */
/*                         Responsible Gambling Section                       */
/* -------------------------------------------------------------------------- */
.page-sports__responsible-gambling-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

.page-sports__responsibility-list {
    list-style: disc;
    margin: 30px auto;
    max-width: 800px;
    padding-left: 25px;
    font-size: 17px;
}

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

.page-sports__responsible-gambling-section .page-sports__btn-secondary {
    margin-top: 30px;
}

/* -------------------------------------------------------------------------- */
/*                                 FAQ Section                                */
/* -------------------------------------------------------------------------- */
details.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-sports__faq-item summary.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #f5f5f5;
}
.page-sports__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-sports__faq-item .page-sports__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

/* -------------------------------------------------------------------------- */
/*                              Responsive Design                             */
/* -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .page-sports__hero-content {
        transform: translateY(-30px);
        margin-bottom: -30px;
        padding: 30px 15px;
    }
    .page-sports__main-title {
        font-size: 40px;
    }
    .page-sports__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-sports__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-sports__hero-section {
        min-height: 400px;
    }
    .page-sports__hero-image-wrapper {
        max-height: 300px;
    }
    .page-sports__hero-content {
        padding: 20px 15px;
        transform: translateY(-20px);
        margin-bottom: -20px;
    }
    .page-sports__main-title {
        font-size: 32px;
    }
    .page-sports__description {
        font-size: 16px;
    }
    .page-sports__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .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;
        padding: 12px 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-sports__section-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding-top: 30px;
    }
    .page-sports__introduction-section,
    .page-sports__sports-types-section,
    .page-sports__live-betting-section,
    .page-sports__promotions-section,
    .page-sports__responsible-gambling-section,
    .page-sports__faq-section {
        padding: 40px 0;
    }
    .page-sports__grid-3-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-sports__card {
        padding: 15px;
    }
    .page-sports__card-title {
        font-size: 20px;
    }
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    details.page-sports__faq-item summary.page-sports__faq-question {
      padding: 15px;
    }
    .page-sports__faq-qtext {
      font-size: 15px;
    }
    details.page-sports__faq-item .page-sports__faq-answer {
      padding: 0 15px 15px;
    }
}