/* style/beginner-guide.css */
.page-beginner-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default to light text for dark background */
  background-color: var(--bg-main);
}

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

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

.page-beginner-guide__dark-bg {
  background-color: var(--bg-main); /* #08160F */
  color: var(--text-main); /* #F2FFF6 */
}

.page-beginner-guide__light-bg {
  background-color: #ffffff;
  color: var(--text-main-dark); /* Using a dark color for light background */
}

/* Text contrast fix for light background sections */
.page-beginner-guide__light-bg .page-beginner-guide__heading,
.page-beginner-guide__light-bg .page-beginner-guide__text-block,
.page-beginner-guide__light-bg .page-beginner-guide__sub-heading,
.page-beginner-guide__light-bg .page-beginner-guide__list-item,
.page-beginner-guide__light-bg .page-beginner-guide__faq-qtext,
.page-beginner-guide__light-bg .page-beginner-guide__faq-answer p {
  color: #333333; /* Ensure dark text on light background */
}

.page-beginner-guide__heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: bold;
  margin-bottom: 25px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-beginner-guide__sub-heading {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-beginner-guide__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-beginner-guide__list {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 800px;
  text-align: left;
}

.page-beginner-guide__list-item {
  font-size: 17px;
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
  color: var(--text-secondary);
}

.page-beginner-guide__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--gold); /* Gold checkmark */
  font-weight: bold;
}

.page-beginner-guide__ordered-list {
  list-style: decimal;
  padding-left: 20px;
  margin: 20px auto;
  max-width: 800px;
  text-align: left;
  color: var(--text-secondary);
}

.page-beginner-guide__ordered-list .page-beginner-guide__list-item {
  padding-left: 0;
  margin-left: 10px;
  color: var(--text-secondary);
}

.page-beginner-guide__ordered-list .page-beginner-guide__list-item::before {
  content: none;
}

.page-beginner-guide__nested-list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 10px;
}

.page-beginner-guide__nested-list .page-beginner-guide__list-item {
  padding-left: 0;
  margin-left: 10px;
}

.page-beginner-guide__nested-list .page-beginner-guide__list-item::before {
  content: none;
}

/* Buttons */
.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  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: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text on green gradient */
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-beginner-guide__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-beginner-guide__btn-secondary {
  background: #ffffff;
  color: var(--deep-green); /* Deep Green text on white */
  border: 2px solid var(--deep-green);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-beginner-guide__btn-secondary:hover {
  background: var(--deep-green);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__btn-link {
  display: inline-block;
  color: var(--gold); /* Gold text for links */
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  margin-top: 15px;
  position: relative;
  padding-bottom: 2px;
}

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

.page-beginner-guide__btn-link:hover::after {
  width: 0;
}

.page-beginner-guide__cta-center {
  margin-top: 40px;
  margin-bottom: 20px;
}

/* Hero Section */
.page-beginner-guide__hero-section {
  padding: 80px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

.page-beginner-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-beginner-guide__hero-content {
  max-width: 900px;
  z-index: 1;
  text-align: center;
}

.page-beginner-guide__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-beginner-guide__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Image styles */
.page-beginner-guide__image-wrapper {
  margin: 40px auto;
  max-width: 900px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

/* Game Showcase Grid */
.page-beginner-guide__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-beginner-guide__game-card {
  background-color: var(--card-bg); /* #11271B */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.page-beginner-guide__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-beginner-guide__game-title {
  font-size: 24px;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 15px;
}

.page-beginner-guide__game-description {
  font-size: 16px;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 20px;
}

/* FAQ Section */
.page-beginner-guide__faq-section {
  background-color: #ffffff;
  color: #333333;
}

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

.page-beginner-guide__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #eef;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

.page-beginner-guide__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--deep-green);
}

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

.page-beginner-guide__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  color: #555555;
  border-top: 1px solid #e0e0e0;
  background-color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-beginner-guide__hero-section {
    padding: 60px 20px 40px;
  }

  .page-beginner-guide__main-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }

  .page-beginner-guide__hero-description {
    font-size: clamp(16px, 2.2vw, 20px);
  }

  .page-beginner-guide__heading {
    font-size: clamp(26px, 3.5vw, 38px);
  }

  .page-beginner-guide__sub-heading {
    font-size: clamp(20px, 2.8vw, 28px);
  }

  .page-beginner-guide__text-block {
    font-size: 17px;
  }
}

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

  .page-beginner-guide__hero-section {
    padding: 10px 15px 30px;
  }

  .page-beginner-guide__main-title {
    font-size: 32px;
  }

  .page-beginner-guide__hero-description {
    font-size: 16px;
  }

  .page-beginner-guide__heading {
    font-size: 28px;
  }

  .page-beginner-guide__sub-heading {
    font-size: 22px;
  }

  .page-beginner-guide__text-block {
    font-size: 16px;
  }

  .page-beginner-guide__list-item,
  .page-beginner-guide__ordered-list .page-beginner-guide__list-item {
    font-size: 15px;
  }

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

  /* Mobile image responsiveness */
  .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,
  .page-beginner-guide__hero-image-wrapper,
  .page-beginner-guide__image-wrapper,
  .page-beginner-guide__game-card,
  .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-section {
    padding-top: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-beginner-guide__hero-image-wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Mobile button responsiveness */
  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary,
  .page-beginner-guide a[class*="button"],
  .page-beginner-guide a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .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__hero-content .page-beginner-guide__btn-primary {
    margin-left: 0;
    margin-right: 0;
  }

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

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

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

/* Custom Colors */
:root {
  --bg-main: #08160F;
  --card-bg: #11271B;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --text-main-dark: #333333; /* For light backgrounds */
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}