.page-beginners-guide {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Body background is #000000, so text should be light */
  line-height: 1.6;
}

.page-beginners-guide__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

.page-beginners-guide__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-beginners-guide__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.page-beginners-guide__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-beginners-guide__hero-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-beginners-guide__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-beginners-guide__section {
  padding: 60px 20px;
  background: #000000;
}

.page-beginners-guide__introduction .page-beginners-guide__container,
.page-beginners-guide__safety .page-beginners-guide__container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-beginners-guide__introduction .page-beginners-guide__image--left {
  order: -1; /* Image appears before text on mobile */
}

.page-beginners-guide__safety .page-beginners-guide__image--right {
  order: -1; /* Image appears before text on mobile */
}

.page-beginners-guide__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-beginners-guide__heading {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-beginners-guide__paragraph {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 15px;
  text-align: justify;
}

.page-beginners-guide__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-beginners-guide__image--left {
  float: left;
  margin-right: 30px;
  margin-bottom: 20px;
  width: 45%;
}

.page-beginners-guide__image--right {
  float: right;
  margin-left: 30px;
  margin-bottom: 20px;
  width: 45%;
}

.page-beginners-guide__steps {
  background: rgba(38, 169, 224, 0.05);
}

.page-beginners-guide__step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-beginners-guide__card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #FFFFFF;
  border: 1px solid rgba(38, 169, 224, 0.2);
}

.page-beginners-guide__card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 20px;
  text-align: left;
}

.page-beginners-guide__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 20px;
}

.page-beginners-guide__card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-beginners-guide__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: #f0f0f0;
}

.page-beginners-guide__list li {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-beginners-guide__btn-primary,
.page-beginners-guide__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-beginners-guide__btn-primary {
  background: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-beginners-guide__btn-primary:hover {
  background: #1e87b7;
  border-color: #1e87b7;
}

.page-beginners-guide__btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-beginners-guide__btn-secondary:hover {
  background: #26A9E0;
  color: #FFFFFF;
}

.page-beginners-guide__btn-large {
  padding: 15px 30px;
  font-size: 1.2em;
}

.page-beginners-guide__faq-section {
  background: #000000;
}

.page-beginners-guide__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-beginners-guide__faq-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(38, 169, 224, 0.2);
}

.page-beginners-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background: rgba(38, 169, 224, 0.15);
  color: #FFFFFF;
  font-weight: bold;
  font-size: 1.2em;
}

.page-beginners-guide__faq-question:hover {
  background: rgba(38, 169, 224, 0.25);
}

.page-beginners-guide__faq-title {
  margin: 0;
  color: #FFFFFF;
  font-size: 1.2em;
}

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

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

.page-beginners-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

.page-beginners-guide__faq-answer p {
  margin-top: 0;
  margin-bottom: 15px;
}

.page-beginners-guide__conclusion {
  padding: 80px 20px;
  background: rgba(38, 169, 224, 0.1);
  text-align: center;
}

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

/* Desktop specific styles */
@media (min-width: 769px) {
  .page-beginners-guide__introduction .page-beginners-guide__container,
  .page-beginners-guide__safety .page-beginners-guide__container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .page-beginners-guide__introduction .page-beginners-guide__image--left {
    order: 0;
    margin-right: 30px;
  }

  .page-beginners-guide__safety .page-beginners-guide__image--right {
    order: 0;
    margin-left: 30px;
  }

  .page-beginners-guide__introduction .page-beginners-guide__paragraph,
  .page-beginners-guide__safety .page-beginners-guide__paragraph {
    text-align: left;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-beginners-guide__hero-section {
    height: auto;
    min-height: 400px;
  }

  .page-beginners-guide__hero-title {
    font-size: 2.2em;
  }

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

  .page-beginners-guide__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-beginners-guide__heading {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  .page-beginners-guide__image--left,
  .page-beginners-guide__image--right {
    float: none;
    width: 100%;
    margin: 0 auto 20px auto;
  }

  .page-beginners-guide__card-title {
    font-size: 1.5em;
  }

  .page-beginners-guide__btn-primary,
  .page-beginners-guide__btn-secondary,
  .page-beginners-guide a[class*="button"],
  .page-beginners-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-beginners-guide__hero-cta-buttons,
  .page-beginners-guide__button-group,
  .page-beginners-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-beginners-guide__hero-cta-buttons {
    display: flex;
    flex-direction: column; 
  }

  .page-beginners-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-beginners-guide__section,
  .page-beginners-guide__card,
  .page-beginners-guide__container,
  .page-beginners-guide__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-beginners-guide__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
  }

  .page-beginners-guide__faq-question {
    font-size: 1em;
  }

  .page-beginners-guide__faq-title {
    font-size: 1em;
  }
}