/* style/newbie-guide.css */

/* General Styling */
.page-newbie-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

/* Hero Section */
.page-newbie-guide__hero-section {
  position: relative;
  padding: 100px 0 60px; /* Adjust padding as needed, initial top padding for header offset */
  background: linear-gradient(135deg, #26A9E0, #1a7bb0); /* Gradient using brand color */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
}

.page-newbie-guide__hero-content {
  max-width: 800px;
  z-index: 1;
  position: relative;
}

.page-newbie-guide__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-newbie-guide__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-newbie-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-newbie-guide__btn-primary,
.page-newbie-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.page-newbie-guide__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-newbie-guide__btn-primary:hover {
  background-color: #e06c00;
  border-color: #e06c00;
}

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

.page-newbie-guide__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

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

.page-newbie-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
  filter: none; /* Ensure no filter is applied */
}

/* Section Styling */
.page-newbie-guide__section {
  padding: 60px 0;
  color: #f0f0f0; /* Default text color */
}

.page-newbie-guide__introduction {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-newbie-guide__steps {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-newbie-guide__tips {
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
}

.page-newbie-guide__faq {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-newbie-guide__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-newbie-guide__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #EA7C07; /* Accent color */
  border-radius: 2px;
}

.page-newbie-guide__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light grey for paragraphs on dark background */
}

/* Step Cards */
.page-newbie-guide__step-card {
  background-color: rgba(255, 255, 255, 0.08); /* Light background for cards */
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
}

.page-newbie-guide__step-icon {
  background-color: #EA7C07;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-newbie-guide__step-title {
  font-size: 1.8em;
  color: #26A9E0; /* Brand color for step titles */
  margin-bottom: 20px;
}

.page-newbie-guide__step-list {
  list-style-type: decimal;
  text-align: left;
  margin: 0 auto 20px;
  padding-left: 25px;
  max-width: 700px;
  color: #f0f0f0;
}

.page-newbie-guide__step-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-newbie-guide__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  filter: none; /* Ensure no filter is applied */
  min-width: 200px;
  min-height: 200px;
}

/* Game List */
.page-newbie-guide__game-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-newbie-guide__game-list li {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-newbie-guide__game-list li h4 {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-newbie-guide__game-list li h4 a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-newbie-guide__game-list li h4 a:hover {
  color: #EA7C07;
}

.page-newbie-guide__game-list li p {
  color: #f0f0f0;
  font-size: 1em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-newbie-guide__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  filter: none; /* Ensure no filter is applied */
  min-width: 200px;
  min-height: 200px;
}

/* Tip List */
.page-newbie-guide__tip-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-newbie-guide__tip-list li {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-newbie-guide__tip-list li strong {
  color: #EA7C07; /* Accent color for strong text */
}

/* FAQ Section */
.page-newbie-guide__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Light background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #f0f0f0;
}

.page-newbie-guide__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  background-color: rgba(255, 255, 255, 0.15);
  color: #f0f0f0;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker */
}

.page-newbie-guide__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-newbie-guide__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-newbie-guide__faq-qtext {
  color: #26A9E0; /* Brand color for FAQ questions */
}

.page-newbie-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #EA7C07;
  transition: transform 0.3s ease;
}

.page-newbie-guide__faq-item[open] .page-newbie-guide__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '−' effect */
}

.page-newbie-guide__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.05em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.08);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-newbie-guide__main-title {
    font-size: 3em;
  }
  .page-newbie-guide__hero-description {
    font-size: 1.2em;
  }
  .page-newbie-guide__section-title {
    font-size: 2em;
  }
  .page-newbie-guide__step-title {
    font-size: 1.6em;
  }
  .page-newbie-guide__game-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Fixed header offset for mobile */
  .page-newbie-guide__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-newbie-guide__container {
    padding: 0 15px !important; /* Mobile padding */
  }

  .page-newbie-guide__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-newbie-guide__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-newbie-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-newbie-guide__btn-primary,
  .page-newbie-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-newbie-guide__paragraph {
    font-size: 0.95em;
  }

  .page-newbie-guide__step-card {
    padding: 20px;
  }
  .page-newbie-guide__step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }
  .page-newbie-guide__step-title {
    font-size: 1.4em;
  }

  .page-newbie-guide__step-list,
  .page-newbie-guide__tip-list {
    padding-left: 20px;
  }

  .page-newbie-guide__game-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-newbie-guide__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-newbie-guide__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95em;
  }

  /* Mobile image responsiveness */
  .page-newbie-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos/buttons must be responsive */
  .page-newbie-guide__section,
  .page-newbie-guide__card,
  .page-newbie-guide__container,
  .page-newbie-guide__hero-image-wrapper,
  .page-newbie-guide__cta-buttons,
  .page-newbie-guide__game-list,
  .page-newbie-guide__tip-list,
  .page-newbie-guide__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-newbie-guide__cta-buttons {
    flex-wrap: wrap !important;
    gap: 15px;
  }
  .page-newbie-guide__step-image,
  .page-newbie-guide__game-image {
    min-width: unset;
    min-height: unset;
  }
}