/* style/beginner-guide.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --login-color: #EA7C07;
}

.page-beginner-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Body background is light, so use dark text */
  background-color: var(--secondary-color);
}

.page-beginner-guide__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-beginner-guide__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-beginner-guide__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-beginner-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 10px 0 60px 0; /* Small top padding */
  overflow: hidden;
}

.page-beginner-guide__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-beginner-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-beginner-guide__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: var(--text-light);
}

.page-beginner-guide__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-beginner-guide__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-beginner-guide__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 30px;
  font-weight: bold;
  color: var(--primary-color);
}

.page-beginner-guide__section-title--white {
  color: var(--text-light);
}

.page-beginner-guide__sub-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-beginner-guide__sub-title--white {
  color: var(--text-light);
}

.page-beginner-guide__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-beginner-guide__text-block--white {
  color: var(--text-light);
}

.page-beginner-guide__btn-primary {
  display: inline-block;
  background-color: var(--login-color); /* Using login color for primary CTA */
  color: var(--text-light);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-beginner-guide__btn-primary--center {
  margin: 20px auto 0 auto;
  display: block;
  max-width: fit-content;
}

.page-beginner-guide__text-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-beginner-guide__text-link:hover {
  color: #1a8cc4;
}

.page-beginner-guide__text-link--white {
  color: var(--text-light);
}

.page-beginner-guide__text-link--white:hover {
  color: #b0e0f0;
}

.page-beginner-guide__video-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
}

.page-beginner-guide__video-container {
  width: 100%; /* Desktop width */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-beginner-guide__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 30px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure it behaves as a block element */
  cursor: pointer;
}

.page-beginner-guide__image-and-text {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-beginner-guide__image-and-text--reverse {
  flex-direction: row-reverse;
}

.page-beginner-guide__image-wrapper {
  flex: 1;
  min-width: 300px; /* Minimum width for image */
}

.page-beginner-guide__content-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-beginner-guide__text-content {
  flex: 1;
}

.page-beginner-guide__ordered-list,
.page-beginner-guide__unordered-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 0;
  text-align: left;
}

.page-beginner-guide__ordered-list li,
.page-beginner-guide__unordered-list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.page-beginner-guide__unordered-list--white li {
  color: var(--text-light);
}

.page-beginner-guide__game-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-beginner-guide__game-list li {
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 15px;
}

.page-beginner-guide__game-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-beginner-guide__game-type-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.page-beginner-guide__game-type-title a {
  text-decoration: none;
}

.page-beginner-guide__game-type-title a:hover {
  text-decoration: underline;
}

.page-beginner-guide__faq-list {
  margin-top: 30px;
  text-align: left;
}

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

.page-beginner-guide__faq-item details {
  width: 100%;
}

.page-beginner-guide__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--primary-color);
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.page-beginner-guide__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-beginner-guide__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-toggle {
  transform: rotate(45deg);
}

.page-beginner-guide__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-beginner-guide__image-and-text {
    flex-direction: column;
    text-align: center;
  }

  .page-beginner-guide__image-and-text--reverse {
    flex-direction: column;
  }

  .page-beginner-guide__text-content,
  .page-beginner-guide__image-wrapper {
    width: 100%;
    flex: none;
  }

  .page-beginner-guide__ordered-list,
  .page-beginner-guide__unordered-list {
    text-align: center;
    padding-left: 20px;
  }

  .page-beginner-guide__game-list li {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-beginner-guide__section {
    padding: 40px 0;
  }

  .page-beginner-guide__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-beginner-guide__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  .page-beginner-guide__sub-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .page-beginner-guide__hero-section {
    min-height: 400px;
    padding-bottom: 40px;
  }

  .page-beginner-guide__hero-description,
  .page-beginner-guide__text-block,
  .page-beginner-guide__ordered-list li,
  .page-beginner-guide__unordered-list li,
  .page-beginner-guide__faq-answer p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  .page-beginner-guide__btn-primary {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-beginner-guide__cta-buttons,
  .page-beginner-guide__button-group,
  .page-beginner-guide__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-beginner-guide__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-beginner-guide__section,
  .page-beginner-guide__card,
  .page-beginner-guide__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-beginner-guide video,
  .page-beginner-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-beginner-guide__video-section,
  .page-beginner-guide__video-container,
  .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;
  }
  
  .page-beginner-guide__video-section {
    padding-top: 10px !important;
  }

  .page-beginner-guide__video-wrapper {
    padding-bottom: 75% !important; /* Adjust aspect ratio for smaller screens if needed, e.g., 4:3 */
  }

  .page-beginner-guide__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
}