/* style/blog-beginner-guide.css */

/* Base styles for the page, adapting to dark body background */
.page-blog-beginner-guide {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body handles the background color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-blog-beginner-guide__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability on image */
  border-radius: 10px;
}

.page-blog-beginner-guide__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog-beginner-guide__intro-text {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #F0F0F0;
  margin-bottom: 30px;
}

/* Content Area */
.page-blog-beginner-guide__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #000000; /* Dark background for content sections */
  color: #FFFFFF; /* Light text for dark background */
}

.page-blog-beginner-guide__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #26A9E0; /* Brand primary color for titles */
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
}

.page-blog-beginner-guide__sub-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: #FFFFFF;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 500;
}

.page-blog-beginner-guide p {
  margin-bottom: 15px;
  color: #F0F0F0;
}

.page-blog-beginner-guide__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #F0F0F0;
}

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

/* Buttons */
.page-blog-beginner-guide__btn-primary,
.page-blog-beginner-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;
  margin-top: 20px;
  margin-right: 10px;
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width calculation */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-blog-beginner-guide__btn-primary {
  background-color: #EA7C07; /* Login color for primary actions */
  color: #FFFFFF;
  border: 2px solid transparent;
}

.page-blog-beginner-guide__btn-primary:hover {
  background-color: #d46b00;
}

.page-blog-beginner-guide__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Brand primary color for secondary actions */
  border: 2px solid #26A9E0;
}

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

/* Image Styling */
.page-blog-beginner-guide__image-wrapper {
  margin: 30px auto;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.page-blog-beginner-guide__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.page-blog-beginner-guide__game-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #FFFFFF;
}

.page-blog-beginner-guide__game-card .page-blog-beginner-guide__sub-title {
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-blog-beginner-guide__game-card p {
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-blog-beginner-guide__faq-list {
  margin-top: 30px;
}

.page-blog-beginner-guide__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Darker card background */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #FFFFFF;
}

.page-blog-beginner-guide__faq-item summary {
  list-style: none; /* Hide default marker */
}

.page-blog-beginner-guide__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-blog-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: rgba(38, 169, 224, 0.2); /* Semi-transparent brand color for question background */
  cursor: pointer;
  font-weight: bold;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-blog-beginner-guide__faq-qtext {
  flex-grow: 1;
  color: #FFFFFF;
}

.page-blog-beginner-guide__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #FFFFFF;
}

.page-blog-beginner-guide__faq-answer {
  padding: 15px 25px 20px;
  color: #F0F0F0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog-beginner-guide__hero-section {
    padding: 40px 15px;
  }
  .page-blog-beginner-guide__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-blog-beginner-guide__intro-text {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  }
  .page-blog-beginner-guide__content-area {
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  .page-blog-beginner-guide__hero-section {
    min-height: 400px;
    padding: 20px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }
  .page-blog-beginner-guide__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-blog-beginner-guide__intro-text {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
  }

  .page-blog-beginner-guide__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  .page-blog-beginner-guide__sub-title {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  }

  /* Mobile image responsiveness */
  .page-blog-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog-beginner-guide__image-wrapper,
  .page-blog-beginner-guide__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-blog-beginner-guide__btn-primary,
  .page-blog-beginner-guide__btn-secondary,
  .page-blog-beginner-guide a[class*="button"],
  .page-blog-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;
    margin-right: 0;
    margin-bottom: 10px; /* Space between stacked buttons */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog-beginner-guide__hero-content .page-blog-beginner-guide__btn-primary {
    margin-bottom: 0;
  }
  .page-blog-beginner-guide__hero-content {
    padding: 15px;
  }

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

  .page-blog-beginner-guide__content-area,
  .page-blog-beginner-guide__game-card,
  .page-blog-beginner-guide__faq-item {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-beginner-guide__faq-question {
    padding: 15px 20px;
  }
  .page-blog-beginner-guide__faq-answer {
    padding: 10px 20px 15px;
  }
}

/* Ensure contrast for specific elements */
.page-blog-beginner-guide__dark-bg {
  background-color: #000000;
  color: #ffffff;
}

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

/* Contrast fix for text on specific backgrounds if needed (not applied by default) */
.page-blog-beginner-guide__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-blog-beginner-guide__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}