/* style/beginner-guide.css */

/* Base Styles & Typography */
.page-beginner-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  /* Body background is #121212 (dark) from shared.css, so default text color should be light */
  color: #ffffff; 
  background-color: #121212; /* Fallback, though body should have it */
}

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

.page-beginner-guide__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Brand color for titles */
}

.page-beginner-guide__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #017439; /* Brand color for sub-titles */
}

.page-beginner-guide__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0; /* Light grey for descriptions on dark background */
}

.page-beginner-guide__text-content {
  font-size: 1em;
  margin-bottom: 15px;
  color: #f0f0f0; /* Light grey for text on dark background */
}

.page-beginner-guide__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light grey for list items on dark background */
}

.page-beginner-guide__list li {
  margin-bottom: 8px;
}

/* Section Backgrounds */
.page-beginner-guide__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast with body */
  color: #ffffff;
}

.page-beginner-guide__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-beginner-guide__light-bg .page-beginner-guide__section-title,
.page-beginner-guide__light-bg .page-beginner-guide__section-description,
.page-beginner-guide__light-bg .page-beginner-guide__sub-title,
.page-beginner-guide__light-bg .page-beginner-guide__text-content,
.page-beginner-guide__light-bg .page-beginner-guide__list li,
.page-beginner-guide__light-bg .page-beginner-guide__card-text {
  color: #333333; /* Dark text on light background */
}

.page-beginner-guide__light-bg .page-beginner-guide__card-title {
  color: #017439; /* Brand color for titles on light background */
}

/* Buttons */
.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-beginner-guide__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-beginner-guide__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-beginner-guide__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand color */
  border: 2px solid #017439;
}

.page-beginner-guide__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Hero Section */
.page-beginner-guide__hero-section {
  position: relative;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  text-align: center;
  background: url('[GALLERY:hero_beginner_guide:1920x1080:online_betting,sportsbook,casino,welcome,green_theme]') center center / cover no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-beginner-guide__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
}

.page-beginner-guide__hero-section .page-beginner-guide__container {
  position: relative;
  z-index: 1;
}

.page-beginner-guide__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-beginner-guide__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-beginner-guide__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Introduction Section */
.page-beginner-guide__introduction-section {
  padding: 80px 0;
}

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

.page-beginner-guide__intro-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-beginner-guide__intro-card:hover {
  transform: translateY(-5px);
}

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

.page-beginner-guide__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #017439;
}

.page-beginner-guide__card-text {
  font-size: 1em;
  color: #555555;
}

/* Registration Section */
.page-beginner-guide__registration-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-beginner-guide__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-top: 60px;
}

.page-beginner-guide__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #017439;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 3px solid #1a1a1a;
}

.page-beginner-guide__section-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* Transactions Section */
.page-beginner-guide__transactions-section {
  padding: 80px 0;
}

.page-beginner-guide__transaction-block {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-beginner-guide__transactions-section .page-beginner-guide__sub-title {
  color: #017439;
}

.page-beginner-guide__transactions-section .page-beginner-guide__text-content,
.page-beginner-guide__transactions-section .page-beginner-guide__list li {
  color: #333333;
}

/* Sports Betting Section */
.page-beginner-guide__sports-betting-section {
  padding: 80px 0;
}

.page-beginner-guide__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.page-beginner-guide__content-grid--reverse {
  direction: rtl; /* Reverse order for content */
}

.page-beginner-guide__content-grid--reverse > * {
  direction: ltr; /* Restore text direction */
}

.page-beginner-guide__image-wrapper {
  text-align: center;
}

.page-beginner-guide__image-wrapper .page-beginner-guide__section-image {
  max-width: 100%;
  height: auto;
}

/* Casino Section */
.page-beginner-guide__casino-section {
  padding: 80px 0;
}

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

.page-beginner-guide__game-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-beginner-guide__game-card:hover {
  transform: translateY(-5px);
}

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

.page-beginner-guide__game-card .page-beginner-guide__card-title {
  color: #017439;
}

.page-beginner-guide__game-card .page-beginner-guide__card-text {
  color: #555555;
  flex-grow: 1;
}

.page-beginner-guide__game-card .page-beginner-guide__btn-primary {
  margin-top: 20px;
  align-self: center;
  width: auto; /* Allow button to size based on content */
}

/* Mobile App Section */
.page-beginner-guide__mobile-app-section {
  padding: 80px 0;
}

.page-beginner-guide__app-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
}

.page-beginner-guide__app-text .page-beginner-guide__list {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

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

.page-beginner-guide__app-text .page-beginner-guide__list li::before {
  content: '✔';
  color: #017439;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.page-beginner-guide__app-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-beginner-guide__app-image-wrapper {
  text-align: center;
}

/* FAQ Section */
.page-beginner-guide__faq-section {
  padding: 80px 0;
}

.page-beginner-guide__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-beginner-guide__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

.page-beginner-guide__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

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

.page-beginner-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

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

.page-beginner-guide__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  color: #555555;
}

/* Call to Action Section */
.page-beginner-guide__call-to-action {
  padding: 80px 0;
  text-align: center;
}

.page-beginner-guide__cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Image Specifics & Optimization */
.page-beginner-guide img {
  max-width: 100%;
  height: auto;
  display: block; /* Remove extra space below images */
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-beginner-guide__hero-title {
    font-size: 3em;
  }
  .page-beginner-guide__section-title {
    font-size: 2em;
  }
  .page-beginner-guide__sub-title {
    font-size: 1.5em;
  }
  .page-beginner-guide__content-grid,
  .page-beginner-guide__app-content {
    grid-template-columns: 1fr;
  }
  .page-beginner-guide__content-grid--reverse {
    direction: ltr; /* Reset for smaller screens */
  }
  .page-beginner-guide__content-grid--reverse > * {
    direction: ltr;
  }
  .page-beginner-guide__image-wrapper {
    order: -1; /* Place image first on smaller screens */
  }
  .page-beginner-guide__app-image-wrapper {
    order: -1;
  }
}

@media (max-width: 768px) {
  .page-beginner-guide {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-beginner-guide__container {
    padding: 0 15px;
  }
  .page-beginner-guide__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    min-height: 400px;
  }
  .page-beginner-guide__hero-title {
    font-size: 2.2em;
  }
  .page-beginner-guide__hero-description {
    font-size: 1em;
  }
  .page-beginner-guide__hero-actions,
  .page-beginner-guide__app-actions,
  .page-beginner-guide__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding: 12px 15px;
  }
  .page-beginner-guide__section-title {
    font-size: 1.8em;
  }
  .page-beginner-guide__sub-title {
    font-size: 1.3em;
  }
  .page-beginner-guide__intro-grid,
  .page-beginner-guide__steps-grid,
  .page-beginner-guide__game-grid {
    grid-template-columns: 1fr;
  }
  .page-beginner-guide__section-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-beginner-guide__intro-image,
  .page-beginner-guide__game-image {
    height: 180px;
  }
  /* Content area images, videos, and containers must be responsive */
  .page-beginner-guide img,
  .page-beginner-guide video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-beginner-guide__section,
  .page-beginner-guide__container,
  .page-beginner-guide__card,
  .page-beginner-guide__intro-card,
  .page-beginner-guide__step-card,
  .page-beginner-guide__transaction-block,
  .page-beginner-guide__game-card,
  .page-beginner-guide__faq-item,
  .page-beginner-guide__image-wrapper,
  .page-beginner-guide__app-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-beginner-guide__hero-section,
  .page-beginner-guide__introduction-section,
  .page-beginner-guide__registration-section,
  .page-beginner-guide__transactions-section,
  .page-beginner-guide__sports-betting-section,
  .page-beginner-guide__casino-section,
  .page-beginner-guide__mobile-app-section,
  .page-beginner-guide__faq-section,
  .page-beginner-guide__call-to-action {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-beginner-guide__faq-answer {
    padding: 0 15px;
  }
  .page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-beginner-guide__hero-title {
    font-size: 1.8em;
  }
  .page-beginner-guide__section-title {
    font-size: 1.5em;
  }
  .page-beginner-guide__sub-title {
    font-size: 1.2em;
  }
  .page-beginner-guide__step-card {
    padding-top: 50px;
  }
  .page-beginner-guide__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    top: -15px;
  }
}