/* style/beginner-guide.css */

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

.page-beginner-guide {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-beginner-guide__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit hero image height */
  overflow: hidden;
  position: relative;
}

.page-beginner-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-beginner-guide__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  margin-top: -100px; /* Overlap slightly with image for visual flow, but not on text */
  background-color: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
}

.page-beginner-guide__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-beginner-guide__hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-beginner-guide__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-beginner-guide__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-beginner-guide__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-main);
  transform: translateY(-3px);
}

.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__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.page-beginner-guide__section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-beginner-guide__features-grid,
.page-beginner-guide__steps-grid,
.page-beginner-guide__games-grid,
.page-beginner-guide__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-beginner-guide__feature-card,
.page-beginner-guide__step-card,
.page-beginner-guide__game-card,
.page-beginner-guide__promo-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-beginner-guide__card-title {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.page-beginner-guide__feature-card p,
.page-beginner-guide__step-card p,
.page-beginner-guide__game-card p,
.page-beginner-guide__promo-card p,
.page-beginner-guide__text-block p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 10px;
}

.page-beginner-guide__step-number {
  width: 50px;
  height: 50px;
  background: var(--button-gradient);
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-beginner-guide__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-beginner-guide__grid-2-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-beginner-guide__text-block {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

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

.page-beginner-guide__ordered-list li,
.page-beginner-guide__unordered-list li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 1rem;
}

.page-beginner-guide__ordered-list li strong,
.page-beginner-guide__unordered-list li strong {
  color: var(--text-main);
}

.page-beginner-guide__image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-color);
}

.page-beginner-guide__image-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
}

.page-beginner-guide__btn-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--gold-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}

.page-beginner-guide__btn-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.page-beginner-guide__btn-link:hover::after {
  transform: scaleX(1);
}

.page-beginner-guide__faq-list {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  text-align: left;
}

.page-beginner-guide__faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid var(--divider-color);
  padding-bottom: 15px;
}

.page-beginner-guide__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-main);
  font-weight: 600;
  padding: 10px 0;
  list-style: none; /* For details/summary */
}

.page-beginner-guide__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for WebKit browsers */
}

.page-beginner-guide__faq-toggle {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

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

.page-beginner-guide__faq-answer {
  color: var(--text-secondary);
  font-size: 1rem;
  padding: 10px 0 5px 0;
  line-height: 1.5;
}

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

.page-beginner-guide__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video */
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-beginner-guide__hero-content {
    margin-top: -60px;
  }
}

@media (max-width: 768px) {
  .page-beginner-guide__hero-section {
    padding-bottom: 20px;
  }

  .page-beginner-guide__hero-content {
    margin-top: -40px;
    padding: 15px;
  }

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

  .page-beginner-guide__hero-description {
    font-size: 1rem;
  }

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

  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

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

  .page-beginner-guide__section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .page-beginner-guide__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-beginner-guide__features-grid,
  .page-beginner-guide__steps-grid,
  .page-beginner-guide__games-grid,
  .page-beginner-guide__promo-grid,
  .page-beginner-guide__grid-2-columns {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .page-beginner-guide__feature-card,
  .page-beginner-guide__step-card,
  .page-beginner-guide__game-card,
  .page-beginner-guide__promo-card,
  .page-beginner-guide__text-block,
  .page-beginner-guide__image-container,
  .page-beginner-guide__faq-list {
    padding: 20px;
  }

  .page-beginner-guide__card-title {
    font-size: 1.3rem;
  }

  .page-beginner-guide__feature-card p,
  .page-beginner-guide__step-card p,
  .page-beginner-guide__game-card p,
  .page-beginner-guide__promo-card p,
  .page-beginner-guide__text-block p,
  .page-beginner-guide__ordered-list li,
  .page-beginner-guide__unordered-list li,
  .page-beginner-guide__faq-answer {
    font-size: 0.9rem;
  }

  .page-beginner-guide__image-full-width,
  .page-beginner-guide__image-responsive,
  .page-beginner-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset;
    min-height: unset;
  }

  .page-beginner-guide__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-beginner-guide__video-wrapper {
    padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-beginner-guide__video-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }
}

/* Ensure all images and video containers are responsive and don't overflow */
.page-beginner-guide img,
.page-beginner-guide video {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-beginner-guide__section,
.page-beginner-guide__card,
.page-beginner-guide__container,
.page-beginner-guide__video-section,
.page-beginner-guide__video-container,
.page-beginner-guide__video-wrapper,
.page-beginner-guide__cta-buttons,
.page-beginner-guide__button-group,
.page-beginner-guide__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent horizontal scroll */
}