/* style/resources-live-rules.css */
/* 
  Global Styles for .page-resources-live-rules
  Body background is #0a0a0a (dark), so main text color should be light (#ffffff).
  Sections with light background will have dark text.
*/
.page-resources-live-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Inherited from body, explicitly set for clarity */
}

/* Fixed Header Offset */
/* The hero section is the first visible content, so it handles the header offset */
.page-resources-live-rules__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Section Styling */
.page-resources-live-rules__section-title {
  font-size: 2.5em;
  color: #ffffff; /* Default for dark background */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources-live-rules__sub-title {
  font-size: 1.8em;
  color: #017439; /* Brand color for sub-titles on light background */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-live-rules__paragraph,
.page-resources-live-rules__list-item {
  font-size: 1.1em;
  margin-bottom: 15px;
}

.page-resources-live-rules__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Hero Section */
.page-resources-live-rules__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #017439; /* Main brand color for hero background */
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
}

.page-resources-live-rules__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
  padding: 0 20px;
}

.page-resources-live-rules__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-resources-live-rules__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-live-rules__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-resources-live-rules__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Darken the image to ensure text contrast */
}

/* CTA Buttons */
.page-resources-live-rules__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  margin-top: 30px;
}

.page-resources-live-rules__btn-primary,
.page-resources-live-rules__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Ensure padding/border included in width */
}

.page-resources-live-rules__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-resources-live-rules__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-resources-live-rules__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-resources-live-rules__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

/* Section Backgrounds and Text Colors */
.page-resources-live-rules__dark-bg {
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff;
}

.page-resources-live-rules__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-resources-live-rules__light-bg .page-resources-live-rules__section-title {
  color: #017439; /* Brand color for titles on light background */
}

.page-resources-live-rules__light-bg .page-resources-live-rules__paragraph,
.page-resources-live-rules__light-bg .page-resources-live-rules__list-item {
  color: #333333;
}

.page-resources-live-rules__light-bg a {
  color: #017439;
  text-decoration: underline;
}

.page-resources-live-rules__light-bg a:hover {
  color: #005f2e;
}

/* Lists */
.page-resources-live-rules__unordered-list,
.page-resources-live-rules__ordered-list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-resources-live-rules__ordered-list {
  list-style-type: decimal;
}

.page-resources-live-rules__nested-list {
  list-style-type: circle;
  margin-left: 20px;
  margin-top: 10px;
}

/* Video Section */
.page-resources-live-rules__video-section {
  text-align: center;
  margin-top: 40px;
  padding: 0 20px;
}

.page-resources-live-rules__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto 20px auto;
  border-radius: 10px;
}

.page-resources-live-rules__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer; /* For JS click handling */
}

.page-resources-live-rules__video-caption {
  font-style: italic;
  margin-top: 10px;
  color: #f0f0f0;
}

.page-resources-live-rules__video-cta {
  margin-top: 30px;
  background-color: #017439;
  color: #ffffff;
  border-color: #017439;
}

.page-resources-live-rules__video-cta:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

/* Content Images */
.page-resources-live-rules__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Features Grid (Security Section) */
.page-resources-live-rules__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-live-rules__feature-item {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-resources-live-rules__feature-item:hover {
  transform: translateY(-5px);
}

.page-resources-live-rules__feature-image {
  max-width: 100%;
  height: auto;
  width: 250px; /* Fixed width for consistency */
  height: 187px; /* 4:3 aspect ratio based on 400x300 example */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-resources-live-rules__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-resources-live-rules__feature-description {
  font-size: 1em;
  color: #555555;
}

/* FAQ Section */
.page-resources-live-rules__faq {
  padding-bottom: 80px;
}

.page-resources-live-rules__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-resources-live-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #e0e0e0;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
  color: #333333;
}

.page-resources-live-rules__faq-question:hover {
  background-color: #d0d0d0;
}

.page-resources-live-rules__faq-question h3 {
  margin: 0;
  color: #333333;
}

.page-resources-live-rules__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
}

.page-resources-live-rules__faq-item.active .page-resources-live-rules__faq-toggle {
  transform: rotate(45deg); /* Plus to X */
}

.page-resources-live-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-resources-live-rules__faq-item.active .page-resources-live-rules__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 20px;
}

.page-resources-live-rules__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  color: #555555;
}

/* Call to Action Bottom */
.page-resources-live-rules__cta-bottom {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-live-rules__hero-title {
    font-size: 2.8em;
  }
  .page-resources-live-rules__hero-description {
    font-size: 1.1em;
  }
  .page-resources-live-rules__section-title {
    font-size: 2em;
  }
  .page-resources-live-rules__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  /* Ensure hero section maintains offset on mobile */
  .page-resources-live-rules__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources-live-rules__container {
    padding: 40px 15px;
  }

  .page-resources-live-rules__hero-title {
    font-size: 2.2em;
  }
  .page-resources-live-rules__hero-description {
    font-size: 1em;
  }
  .page-resources-live-rules__section-title {
    font-size: 1.8em;
  }
  .page-resources-live-rules__sub-title {
    font-size: 1.4em;
  }
  .page-resources-live-rules__paragraph,
  .page-resources-live-rules__list-item {
    font-size: 1em;
  }

  /* Images responsive */
  .page-resources-live-rules img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure content images take full width */
    height: auto !important;
    display: block !important;
  }
  .page-resources-live-rules__hero-image {
    max-width: 100% !important;
    height: 100% !important; /* Hero image needs to cover its wrapper */
    width: 100% !important;
  }
  .page-resources-live-rules__feature-image {
    width: 100% !important; /* Feature images also take full width of their container */
    height: auto !important;
  }

  /* Videos responsive */
  .page-resources-live-rules video,
  .page-resources-live-rules__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-live-rules__video-section,
  .page-resources-live-rules__video-container,
  .page-resources-live-rules__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  /* 🚨 IMPORTANT: As per instruction, re-setting padding-top for the section containing the video in mobile. */
  .page-resources-live-rules__live-streaming-guide {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Buttons responsive */
  .page-resources-live-rules__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }
  .page-resources-live-rules__btn-primary,
  .page-resources-live-rules__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
  }

  /* Content containers responsive */
  .page-resources-live-rules__section,
  .page-resources-live-rules__card,
  .page-resources-live-rules__container,
  .page-resources-live-rules__introduction,
  .page-resources-live-rules__live-streaming-guide,
  .page-resources-live-rules__game-rules,
  .page-resources-live-rules__betting-tips,
  .page-resources-live-rules__security-commitment,
  .page-resources-live-rules__responsible-gambling,
  .page-resources-live-rules__faq,
  .page-resources-live-rules__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-live-rules__features-grid {
    grid-template-columns: 1fr; /* Single column for features */
  }

  .page-resources-live-rules__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-resources-live-rules__faq-answer {
    padding: 0 15px;
  }
  .page-resources-live-rules__faq-item.active .page-resources-live-rules__faq-answer {
    padding: 10px 15px;
  }
}