/* style/beginner-guide.css */

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

.page-beginner-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white); /* Default body background is white */
}

.page-beginner-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom for content */
  text-align: center;
  overflow: hidden;
}

.page-beginner-guide__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-beginner-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-beginner-guide__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-beginner-guide__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-beginner-guide__intro-text {
  font-size: 1.1em;
  color: var(--text-dark);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-beginner-guide__section {
  padding: 60px 0;
  background-color: var(--bg-white);
}

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

.page-beginner-guide__dark-section .page-beginner-guide__section-title,
.page-beginner-guide__dark-section .page-beginner-guide__intro-text,
.page-beginner-guide__dark-section .page-beginner-guide__content-block p,
.page-beginner-guide__dark-section .page-beginner-guide__content-block li {
  color: var(--text-light);
}

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

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

.page-beginner-guide__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-beginner-guide__dark-section .page-beginner-guide__section-title {
  color: var(--secondary-color);
}

.page-beginner-guide__content-block {
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  color: var(--text-dark);
}

.page-beginner-guide__dark-section .page-beginner-guide__content-block {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  box-shadow: none;
}

.page-beginner-guide__content-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-beginner-guide__step-list,
.page-beginner-guide__feature-list,
.page-beginner-guide__game-category-list,
.page-beginner-guide__safety-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-beginner-guide__feature-list,
.page-beginner-guide__game-category-list,
.page-beginner-guide__safety-list {
  list-style-type: disc;
}

.page-beginner-guide__step-list li,
.page-beginner-guide__feature-list li,
.page-beginner-guide__game-category-list li,
.page-beginner-guide__safety-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-beginner-guide__image-full {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 30px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  font-size: 1.1em;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-beginner-guide__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

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

.page-beginner-guide__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-beginner-guide__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-beginner-guide__cta-section {
  text-align: center;
  padding: 80px 0;
}

.page-beginner-guide__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-beginner-guide__cta-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-beginner-guide__cta-description {
  font-size: 1.1em;
  color: var(--secondary-color);
  margin-bottom: 40px;
}

.page-beginner-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-beginner-guide__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-question {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-bottom-color: var(--primary-color);
}

.page-beginner-guide__faq-question:hover {
  background-color: #f0f0f0;
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-question:hover {
  background-color: #1e87b7;
}

.page-beginner-guide__faq-toggle {
  font-size: 1.2em;
  font-weight: 700;
  margin-left: 15px;
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-toggle {
  color: var(--secondary-color);
}

.page-beginner-guide__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

/* Ensure content images are not smaller than 200px */
.page-beginner-guide__content-block img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-beginner-guide__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
  .page-beginner-guide__section-title {
    font-size: 2em;
  }
  .page-beginner-guide__cta-title {
    font-size: 2.2em;
  }
}

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

  .page-beginner-guide__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 40px;
  }

  .page-beginner-guide__hero-image {
    max-height: 50vh;
  }

  .page-beginner-guide__hero-content {
    margin-top: 30px;
  }

  .page-beginner-guide__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-beginner-guide__intro-text {
    font-size: 1em;
  }

  .page-beginner-guide__section,
  .page-beginner-guide__cta-section {
    padding: 40px 0;
  }

  .page-beginner-guide__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-beginner-guide__content-block {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-beginner-guide__content-block p,
  .page-beginner-guide__step-list li,
  .page-beginner-guide__feature-list li,
  .page-beginner-guide__game-category-list li,
  .page-beginner-guide__safety-list li {
    font-size: 0.95em;
  }

  .page-beginner-guide__image-full {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-beginner-guide__container,
  .page-beginner-guide__registration-section .page-beginner-guide__content-block,
  .page-beginner-guide__deposit-section .page-beginner-guide__content-block,
  .page-beginner-guide__games-section .page-beginner-guide__content-block,
  .page-beginner-guide__withdrawal-section .page-beginner-guide__content-block,
  .page-beginner-guide__safety-support-section .page-beginner-guide__content-block,
  .page-beginner-guide__faq-section .page-beginner-guide__faq-list,
  .page-beginner-guide__cta-section .page-beginner-guide__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-beginner-guide__btn-primary,
  .page-beginner-guide__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;
    font-size: 1em;
  }

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

  .page-beginner-guide__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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