/* style/beginner-guide.css */

/* Base styles for the page */
.page-beginner-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Body background is white */
}

/* Header offset to prevent content being covered by fixed header */
.page-beginner-guide__hero-section {
  padding-top: var(--header-offset, 120px);
}

/* General container for content width */
.page-beginner-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Section styling */
.page-beginner-guide__hero-section,
.page-beginner-guide__introduction-section,
.page-beginner-guide__registration-section,
.page-beginner-guide__sicbo-rules-section,
.page-beginner-guide__strategy-section,
.page-beginner-guide__payment-section,
.page-beginner-guide__promotions-section,
.page-beginner-guide__faq-section,
.page-beginner-guide__video-section,
.page-beginner-guide__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

.page-beginner-guide__dark-bg {
  background-color: #017439; /* Primary brand color */
  color: #ffffff; /* White text on dark background */
}

.page-beginner-guide__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Hero section */
.page-beginner-guide__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background-color: #017439; /* Fallback for image */
  color: #ffffff;
}

.page-beginner-guide__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.7; /* Slightly dim image for text readability */
}

.page-beginner-guide__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  text-align: center;
}

.page-beginner-guide__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-beginner-guide__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-beginner-guide__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Section titles and descriptions */
.page-beginner-guide__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-beginner-guide__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-beginner-guide__subsection-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
  text-align: left;
}

.page-beginner-guide__sub-subsection-title {
  font-size: 1.4em;
  margin-top: 20px;
  margin-bottom: 10px;
  color: inherit;
  text-align: left;
}

/* Text blocks and paragraphs */
.page-beginner-guide__text-block {
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-beginner-guide__text-block p {
  margin-bottom: 15px;
}

.page-beginner-guide__text-block a {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
}

.page-beginner-guide__light-bg .page-beginner-guide__text-block a {
  color: #017439; /* Primary color for links on light background */
}

/* Grid layout for sections with image and text */
.page-beginner-guide__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 40px auto;
  text-align: left;
}

.page-beginner-guide__grid-layout:nth-child(odd) .page-beginner-guide__image-wrapper {
  order: 1;
}

.page-beginner-guide__grid-layout:nth-child(even) .page-beginner-guide__image-wrapper {
  order: 2;
}

.page-beginner-guide__image-wrapper {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-beginner-guide__image-content {
  width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Lists */
.page-beginner-guide__ordered-list,
.page-beginner-guide__unordered-list {
  text-align: left;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-beginner-guide__ordered-list li,
.page-beginner-guide__unordered-list li {
  margin-bottom: 10px;
}

/* Buttons */
.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  font-size: 1.1em;
  text-align: center;
}

.page-beginner-guide__btn-primary {
  background-color: #C30808; /* Registration/Login button color */
  color: #FFFF00; /* Registration/Login font color */
  border: 2px solid #C30808;
}

.page-beginner-guide__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-beginner-guide__btn-secondary {
  background-color: transparent;
  color: #ffffff; /* White text on dark background */
  border: 2px solid #ffffff;
}

.page-beginner-guide__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-beginner-guide__light-bg .page-beginner-guide__btn-secondary {
  color: #017439;
  border-color: #017439;
}

.page-beginner-guide__light-bg .page-beginner-guide__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-beginner-guide__btn-block {
  display: block;
  margin-top: 30px;
  max-width: 300px; /* Limit block button width */
  margin-left: auto;
  margin-right: auto;
}

/* FAQ section */
.page-beginner-guide__faq-list {
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-beginner-guide__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-beginner-guide__faq-item[open] {
  background-color: #f9f9f9;
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1em;
  color: #017439; /* Primary color for question */
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-question {
  color: #000000;
}

.page-beginner-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
}

.page-beginner-guide__faq-answer {
  padding: 0 20px 15px;
  font-size: 0.95em;
  color: #555555;
}

/* For <details> tag, override default styles */
.page-beginner-guide__faq-item details > summary {
  list-style: none; /* Remove default marker */
}
.page-beginner-guide__faq-item details > summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit */
}


/* Video section */
.page-beginner-guide__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.page-beginner-guide__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-beginner-guide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Final CTA buttons */
.page-beginner-guide__final-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-beginner-guide__hero-title {
    font-size: 2.8em;
  }

  .page-beginner-guide__section-title {
    font-size: 2em;
  }

  .page-beginner-guide__subsection-title {
    font-size: 1.5em;
  }

  .page-beginner-guide__grid-layout {
    grid-template-columns: 1fr;
  }

  .page-beginner-guide__grid-layout:nth-child(even) .page-beginner-guide__image-wrapper {
    order: 1;
  }
}

@media (max-width: 768px) {
  .page-beginner-guide {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-beginner-guide__hero-section {
    min-height: 400px;
    padding: 40px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-beginner-guide__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-beginner-guide__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-beginner-guide__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-beginner-guide__hero-cta-buttons .page-beginner-guide__btn-primary,
  .page-beginner-guide__hero-cta-buttons .page-beginner-guide__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-beginner-guide__section-title {
    font-size: 1.8em;
  }

  .page-beginner-guide__section-description {
    font-size: 1em;
  }

  .page-beginner-guide__subsection-title {
    font-size: 1.3em;
  }

  /* Mobile image responsiveness */
  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with images */
  .page-beginner-guide__image-wrapper,
  .page-beginner-guide__container,
  .page-beginner-guide__hero-content,
  .page-beginner-guide__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile video responsiveness */
  .page-beginner-guide video,
  .page-beginner-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video wrapper mobile adaptation */
  .page-beginner-guide__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    padding-bottom: calc(100% * 9 / 16) !important;
  }
  
  .page-beginner-guide__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}