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

/* Base styles for the page, ensuring contrast with dark body background */
.page-sports-rules {
    background-color: var(--e2betvip-background);
    color: var(--e2betvip-text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-sports-rules__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-sports-rules__section {
    padding: 40px 0;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-sports-rules__dark-bg {
    background-color: var(--e2betvip-deep-green);
    color: var(--e2betvip-text-main);
}

.page-sports-rules__card-bg {
    background-color: var(--e2betvip-card-bg);
    color: var(--e2betvip-text-main);
}

.page-sports-rules__section-title {
    font-size: clamp(28px, 4vw, 38px);
    color: var(--e2betvip-gold);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.page-sports-rules__main-title {
    font-size: clamp(32px, 5vw, 48px); /* H1 with clamp for responsiveness */
    color: var(--e2betvip-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports-rules__description {
    font-size: 18px;
    color: var(--e2betvip-text-secondary);
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports-rules__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--e2betvip-text-secondary);
}

.page-sports-rules__text-block strong {
    color: var(--e2betvip-text-main);
}

.page-sports-rules__text-block a {
    color: var(--e2betvip-secondary);
    text-decoration: underline;
}

/* Hero Section */
.page-sports-rules__hero-section {
    padding-bottom: 20px;
    padding-top: 10px;
}

.page-sports-rules__hero-image-wrapper {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-sports-rules__hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.page-sports-rules__hero-content {
    text-align: center;
}

/* CTA Button */
.page-sports-rules__cta-button {
    display: inline-block;
    background: var(--e2betvip-button-gradient);
    color: var(--e2betvip-text-main);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-sports-rules__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-sports-rules__cta-button--secondary {
    background: var(--e2betvip-primary);
    border: 1px solid var(--e2betvip-gold);
}

/* Grid for General Rules */
.page-sports-rules__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-sports-rules__card {
    background-color: var(--e2betvip-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--e2betvip-border);
    color: var(--e2betvip-text-secondary);
}

.page-sports-rules__dark-card {
    background-color: var(--e2betvip-deep-green);
    border-color: var(--e2betvip-primary);
}

.page-sports-rules__card-title {
    font-size: 22px;
    color: var(--e2betvip-text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-sports-rules__card-text {
    font-size: 15px;
}

/* Specific Rules by Sport */
.page-sports-rules__sport-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-sports-rules__sport-card {
    background-color: var(--e2betvip-card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--e2betvip-border);
    color: var(--e2betvip-text-secondary);
    display: flex;
    flex-direction: column;
}

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

.page-sports-rules__list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
    color: var(--e2betvip-text-secondary);
}

.page-sports-rules__list li {
    margin-bottom: 8px;
    font-size: 15px;
}

.page-sports-rules__list li strong {
    color: var(--e2betvip-text-main);
}

.page-sports-rules__dispute-list {
    list-style: decimal;
    padding-left: 20px;
    margin-top: 20px;
}

.page-sports-rules__dispute-list li {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--e2betvip-text-secondary);
}

.page-sports-rules__dispute-list li strong {
    color: var(--e2betvip-text-main);
}

/* FAQ Section */
details.page-sports-rules__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--e2betvip-border);
  overflow: hidden;
  background: var(--e2betvip-card-bg);
  color: var(--e2betvip-text-main);
}
details.page-sports-rules__faq-item summary.page-sports-rules__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-rules__faq-item summary.page-sports-rules__faq-question::-webkit-details-marker {
  display: none;
}
details.page-sports-rules__faq-item summary.page-sports-rules__faq-question:hover {
  background: var(--e2betvip-deep-green);
}
.page-sports-rules__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--e2betvip-text-main);
}
.page-sports-rules__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--e2betvip-secondary);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-sports-rules__faq-item .page-sports-rules__faq-answer {
  padding: 0 20px 20px;
  background: var(--e2betvip-background);
  border-radius: 0 0 5px 5px;
  color: var(--e2betvip-text-secondary);
}
.page-sports-rules__faq-answer p {
    margin-top: 0;
    margin-bottom: 10px;
}
.page-sports-rules__faq-answer a {
    color: var(--e2betvip-secondary);
    text-decoration: underline;
}

.page-sports-rules__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports-rules__image-content--right {
    margin-left: auto;
    margin-right: 0;
    max-width: 600px; /* Example for a content image */
}

/* General Image Styles (for content images) */
.page-sports-rules img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Ensure minimum size for content images if not specified by width/height */
    min-width: 200px;
    min-height: 200px;
}

/* Homepage Game Trial CSS (Strictly included as per prompt, even if not used on this page) */
@media (max-width: 1023px) {
  .page-sports-rules__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-sports-rules__hero-brand,
  .page-sports-rules__hero-jackpot {
    display: none !important;
  }
  .page-sports-rules__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-sports-rules__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-sports-rules__game-trial-topbar,
  .page-sports-rules__game-trial-bottombar {
    display: none !important;
  }
  .page-sports-rules__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-sports-rules__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-sports-rules__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-sports-rules__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-sports-rules__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-sports-rules__hero-brand,
  .page-sports-rules__hero-jackpot,
  .page-sports-rules__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-sports-rules__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-sports-rules__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-sports-rules__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-sports-rules__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-sports-rules__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  .page-sports-rules__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .page-sports-rules__hot-games-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
  }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-sports-rules__container {
        padding: 0 15px;
    }

    .page-sports-rules__section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .page-sports-rules__main-title {
        font-size: 28px;
    }

    .page-sports-rules__description {
        font-size: 16px;
    }

    .page-sports-rules__cta-button {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px;
    }

    /* General image responsive rule */
    .page-sports-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-sports-rules__section,
    .page-sports-rules__card,
    .page-sports-rules__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-sports-rules__grid,
    .page-sports-rules__sport-rules-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-sports-rules__card-title {
        font-size: 20px;
    }

    .page-sports-rules__text-block {
        font-size: 15px;
    }

    details.page-sports-rules__faq-item summary.page-sports-rules__faq-question {
        padding: 15px;
    }
    .page-sports-rules__faq-qtext {
        font-size: 15px;
    }
    details.page-sports-rules__faq-item .page-sports-rules__faq-answer {
        padding: 0 15px 15px;
    }

    /* Placeholder for promo-strip (homepage specific) */
    .page-sports-rules__promo-strip-track {
      grid-template-columns: repeat(2, 1fr); /* Example for mobile, 2 columns */
      gap: 10px;
      overflow-x: hidden;
    }
    /* Placeholder for hot-games (homepage specific) */
    .page-sports-rules__hot-games-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }
    /* Placeholder for winner-ticker (homepage specific) */
    .page-sports-rules__winner-ticker {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      z-index: 100;
    }
    /* Placeholder for brand-intro (homepage specific) */
    .page-sports-rules__brand-intro {
      display: block;
    }
}

/* Game trial specific styles (from prompt, for homepage) */
.page-sports-rules__game-trial-overlay{
  z-index:5;
  pointer-events:auto;
}
.page-sports-rules__game-trial-overlay.is-hidden{
  display:none!important;
  pointer-events:none!important;
}
.page-sports-rules__game-trial-start{
  z-index:6;
  pointer-events:auto;
  touch-action:manipulation;
}
.page-sports-rules__game-trial-shell{
  border:1px solid var(--e2betvip-border);
  border-radius:10px;
  overflow:hidden;
}
.page-sports-rules__reward-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-sports-rules__reward-modal[hidden] {
  display: none !important;
}
.page-sports-rules__reward-modal-content {
  background: var(--e2betvip-card-bg);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  color: var(--e2betvip-text-main);
}
.page-sports-rules__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--e2betvip-text-secondary);
  cursor: pointer;
  line-height: 1;
}
.page-sports-rules__reward-modal-close:hover {
  color: var(--e2betvip-gold);
}
.page-sports-rules__reward-modal h3 {
  color: var(--e2betvip-gold);
  font-size: 28px;
  margin-bottom: 15px;
}
.page-sports-rules__reward-modal p {
  color: var(--e2betvip-text-secondary);
  margin-bottom: 25px;
}
.page-sports-rules__reward-modal .page-sports-rules__cta-button {
  margin-top: 10px;
}