/* style/beginner-guide.css */
.page-beginner-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#B71C1C), so text should be light */
  background-color: #B71C1C;
}

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

/* Hero Section */
.page-beginner-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #B71C1C; /* Consistent with body background */
}

.page-beginner-guide__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width on desktop */
}

.page-beginner-guide__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-beginner-guide__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px;
}

.page-beginner-guide__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  color: #FFF5E1;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-beginner-guide__description {
  font-size: clamp(16px, 2vw, 20px);
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-beginner-guide__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-beginner-guide__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  border: none;
}

.page-beginner-guide__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__btn-secondary {
  background: #C91F17;
  color: #FFF5E1;
  border: 2px solid #F2B544;
}

.page-beginner-guide__btn-secondary:hover {
  background: #E53935;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__cta-large {
  padding: 18px 50px;
  font-size: 20px;
}

.page-beginner-guide__note {
  margin-top: 20px;
  font-size: 16px;
  color: #f0f0f0;
}

.page-beginner-guide__link-login {
  color: #F2B544;
  text-decoration: underline;
  font-weight: bold;
}

.page-beginner-guide__link-login:hover {
  color: #FFD86A;
}

/* General Section Styles */
.page-beginner-guide__section {
  padding: 60px 20px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-beginner-guide__dark-section {
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
}

.page-beginner-guide__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-beginner-guide__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
  color: inherit; /* Inherit color from section */
}

.page-beginner-guide__sub-title {
  font-size: clamp(20px, 2.5vw, 28px);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
  color: inherit;
}

.page-beginner-guide p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
  color: inherit;
}

.page-beginner-guide a {
  color: #F2B544;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-beginner-guide a:hover {
  color: #FFD86A;
  text-decoration: underline;
}

.page-beginner-guide__list {
  list-style: none;
  padding: 0;
  margin-left: 20px;
  font-size: 17px;
}

.page-beginner-guide__list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: inherit;
}

.page-beginner-guide__list li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #FFD86A;
  font-size: 18px;
  line-height: 1;
}

.page-beginner-guide__list-styled li::before {
  content: '⭐';
}

/* Content Grid for registration steps */
.page-beginner-guide__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-beginner-guide__grid-item {
  text-align: center;
  background-color: #D32F2F;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF5E1;
}

.page-beginner-guide__image-round {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 5px solid #F2B544;
  box-shadow: 0 0 0 8px rgba(242, 181, 68, 0.3);
}

.page-beginner-guide__item-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD86A;
}

/* Game Categories */
.page-beginner-guide__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-beginner-guide__game-card {
  background-color: #D32F2F;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF5E1;
  border: 1px solid #7A0E0E;
}

.page-beginner-guide__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid #F2B544;
}

.page-beginner-guide__card-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-beginner-guide__card-title a {
  color: #FFD86A;
  text-decoration: none;
}

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

.page-beginner-guide__btn-text {
  display: inline-block;
  margin-top: 15px;
  color: #F2B544;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid #F2B544;
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

.page-beginner-guide__btn-text:hover {
  color: #FFD86A;
  border-color: #FFD86A;
  transform: translateY(-2px);
}

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

.page-beginner-guide__column-item {
  background-color: #D32F2F;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF5E1;
  border: 1px solid #7A0E0E;
  text-align: center;
}

.page-beginner-guide__image-small {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 3px solid #F2B544;
}

/* FAQ Section */
.page-beginner-guide__faq-list {
  margin-top: 40px;
}

details.page-beginner-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #7A0E0E;
  overflow: hidden;
  background: #D32F2F;
  color: #FFF5E1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

details.page-beginner-guide__faq-item summary.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  color: #FFD86A;
}

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

details.page-beginner-guide__faq-item summary.page-beginner-guide__faq-question:hover {
  background: #E53935;
}

.page-beginner-guide__faq-qtext {
  flex: 1;
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1;
}

.page-beginner-guide__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFD86A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-beginner-guide__faq-item .page-beginner-guide__faq-answer {
  padding: 0 25px 20px;
  background: #7A0E0E;
  border-radius: 0 0 8px 8px;
  color: #f0f0f0;
  font-size: 16px;
}

.page-beginner-guide__text-center {
  text-align: center;
}

.page-beginner-guide__conclusion-section {
  margin-bottom: 0; /* Last section */
  border-radius: 12px;
  background-color: #C91F17; /* Deep Red */
  color: #FFF5E1;
}

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

  .page-beginner-guide__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-beginner-guide__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

  .page-beginner-guide__description {
    font-size: 16px;
    margin-bottom: 25px;
  }

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

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

  .page-beginner-guide__section {
    padding: 40px 15px;
    margin-bottom: 20px;
  }

  .page-beginner-guide__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .page-beginner-guide__sub-title {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-beginner-guide p, .page-beginner-guide li {
    font-size: 16px;
  }

  .page-beginner-guide__content-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-beginner-guide__grid-item {
    padding: 25px;
  }

  .page-beginner-guide__item-title {
    font-size: 20px;
  }

  .page-beginner-guide__game-categories {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-beginner-guide__game-card {
    padding: 20px;
  }

  .page-beginner-guide__card-title {
    font-size: 20px;
  }

  .page-beginner-guide__content-columns {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-beginner-guide__column-item {
    padding: 25px;
  }

  details.page-beginner-guide__faq-item summary.page-beginner-guide__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-beginner-guide__faq-qtext {
    font-size: 15px;
  }

  .page-beginner-guide__faq-toggle {
    font-size: 24px;
  }

  details.page-beginner-guide__faq-item .page-beginner-guide__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }

  /* Ensure all images are responsive */
  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-beginner-guide__container,
  .page-beginner-guide__section,
  .page-beginner-guide__grid-item,
  .page-beginner-guide__game-card,
  .page-beginner-guide__column-item,
  .page-beginner-guide__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-beginner-guide__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-beginner-guide__cta-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color contrast fixes */
.page-beginner-guide h1, .page-beginner-guide h2, .page-beginner-guide h3 {
  color: inherit;
}
.page-beginner-guide__dark-section p, .page-beginner-guide__dark-section li {
  color: #f0f0f0;
}
.page-beginner-guide__light-bg p, .page-beginner-guide__light-bg li {
  color: #333333;
}