/* style/newbie-guide.css */
.page-newbie-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF6D6); /* Default text color for the page, assuming dark body background */
  background-color: var(--bg-color, #0A0A0A); /* Inherit from shared or use custom background */
}

.page-newbie-guide__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px);
  padding-bottom: 40px;
  text-align: center;
  background: linear-gradient(135deg, #F2C14E, #FFD36B);
  position: relative;
  overflow: hidden;
}

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

.page-newbie-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-newbie-guide__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  color: #ffffff;
}

.page-newbie-guide__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFF6D6;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-newbie-guide__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-newbie-guide__btn-primary,
.page-newbie-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-newbie-guide__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: none;
}

.page-newbie-guide__btn-primary:hover {
  background: linear-gradient(180deg, #FFE080 0%, #E8B020 100%);
  transform: translateY(-2px);
}

.page-newbie-guide__btn-secondary {
  background-color: transparent;
  color: #FFF6D6;
  border: 2px solid #F2C14E;
}

.page-newbie-guide__btn-secondary:hover {
  background-color: #F2C14E;
  color: #111111;
  transform: translateY(-2px);
}

.page-newbie-guide__section {
  padding: 60px 0;
}

.page-newbie-guide__dark-section {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-newbie-guide__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-newbie-guide__section-title {
  font-size: 2.5em;
  color: inherit;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-newbie-guide__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

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

.page-newbie-guide__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-newbie-guide__step-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-newbie-guide__step-title {
  font-size: 1.5em;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-newbie-guide__step-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-newbie-guide__read-more {
  display: inline-block;
  background-color: #F2C14E;
  color: #111111;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-newbie-guide__read-more:hover {
  background-color: #FFD36B;
}

.page-newbie-guide__game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-newbie-guide__game-card {
  background-color: var(--card-bg, #111111);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #FFF6D6;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-color, #3A2A12);
}

.page-newbie-guide__game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-newbie-guide__game-title {
  font-size: 1.4em;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-newbie-guide__game-title a {
  color: #F2C14E;
  text-decoration: none;
}

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

.page-newbie-guide__game-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-newbie-guide__management-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-newbie-guide__management-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-newbie-guide__management-title {
  font-size: 1.5em;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-newbie-guide__management-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-newbie-guide__responsible-gaming-section {
  padding: 80px 0;
}

.page-newbie-guide__responsible-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-newbie-guide__responsible-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-newbie-guide__responsible-text {
  width: 50%;
  font-size: 1.1em;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-newbie-guide__responsible-text .page-newbie-guide__btn-primary {
  margin-top: 30px;
}

.page-newbie-guide__faq-section {
  padding: 60px 0;
}

.page-newbie-guide__faq-list {
  margin-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.page-newbie-guide__faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.page-newbie-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  transition: color 0.3s ease;
}

.page-newbie-guide__faq-question:hover {
  color: #F2C14E;
}

.page-newbie-guide__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
}

.page-newbie-guide__faq-item.active .page-newbie-guide__faq-toggle {
  transform: rotate(45deg);
}

.page-newbie-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-newbie-guide__faq-item.active .page-newbie-guide__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 15px 20px 15px;
}

.page-newbie-guide__faq-answer p {
  margin-bottom: 10px;
}

.page-newbie-guide__cta-bottom {
  padding: 80px 0;
  text-align: center;
  background-color: var(--card-bg, #111111);
  border-top: 1px solid var(--border-color, #3A2A12);
}

.page-newbie-guide__cta-content {
  max-width: 800px;
}

.page-newbie-guide__cta-bottom .page-newbie-guide__section-title {
  color: #FFF6D6;
}

.page-newbie-guide__cta-bottom .page-newbie-guide__section-intro {
  color: #f0f0f0;
}

.page-newbie-guide__large-btn {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-newbie-guide__hero-content {
    max-width: 700px;
  }
  .page-newbie-guide__responsible-content {
    flex-direction: column;
    text-align: center;
  }
  .page-newbie-guide__responsible-image,
  .page-newbie-guide__responsible-text {
    width: 100%;
  }
}

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

  .page-newbie-guide__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 30px;
  }

  .page-newbie-guide__main-title {
    font-size: 2.2em;
  }

  .page-newbie-guide__hero-description {
    font-size: 1em;
  }

  .page-newbie-guide__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-newbie-guide__btn-primary,
  .page-newbie-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-newbie-guide__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-newbie-guide__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-newbie-guide__step-by-step,
  .page-newbie-guide__game-cards,
  .page-newbie-guide__management-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-newbie-guide__step-card,
  .page-newbie-guide__game-card,
  .page-newbie-guide__management-card {
    padding: 20px;
  }

  .page-newbie-guide__step-image,
  .page-newbie-guide__game-image,
  .page-newbie-guide__management-image {
    height: 180px;
  }

  .page-newbie-guide__responsible-gaming-section {
    padding: 60px 0;
  }

  .page-newbie-guide__responsible-content {
    gap: 20px;
  }

  .page-newbie-guide__responsible-text {
    font-size: 1em;
  }

  .page-newbie-guide__faq-question {
    font-size: 1.1em;
    padding: 15px 0;
  }

  .page-newbie-guide__faq-answer {
    padding: 10px 15px 15px 15px;
  }

  .page-newbie-guide__cta-bottom {
    padding: 60px 0;
  }

  /* Mobile image responsiveness */
  .page-newbie-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-newbie-guide__section,
  .page-newbie-guide__card,
  .page-newbie-guide__container,
  .page-newbie-guide__step-card,
  .page-newbie-guide__game-card,
  .page-newbie-guide__management-card,
  .page-newbie-guide__faq-item,
  .page-newbie-guide__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-newbie-guide__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-newbie-guide__main-title {
    font-size: 1.8em;
  }

  .page-newbie-guide__section-title {
    font-size: 1.8em;
  }

  .page-newbie-guide__hero-section {
    padding-top: var(--header-offset, 100px) !important;
  }
}