.page-beginner-guide-game-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Text color for dark body background */
  background-color: #121212; /* Body background color */
}

.page-beginner-guide-game-rules__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Fixed navigation bar spacing */
.page-beginner-guide-game-rules__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
  padding-bottom: 60px;
  text-align: center;
  background: linear-gradient(135deg, #1A1A1A 0%, #333333 100%);
  position: relative;
  overflow: hidden;
}

.page-beginner-guide-game-rules__main-title {
  font-size: 3.2em;
  color: #FFD700; /* Primary color for main title */
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-beginner-guide-game-rules__hero-description {
  font-size: 1.15em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-beginner-guide-game-rules__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-beginner-guide-game-rules__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-beginner-guide-game-rules__btn-primary {
  background: #FFD700;
  color: #1A1A1A; /* Dark text on primary button */
  border: 2px solid #FFD700;
}

.page-beginner-guide-game-rules__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide-game-rules__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-beginner-guide-game-rules__btn-secondary:hover {
  background: #FFD700;
  color: #1A1A1A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide-game-rules__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-beginner-guide-game-rules__overview-section,
.page-beginner-guide-game-rules__specific-rules-section,
.page-beginner-guide-game-rules__tips-section,
.page-beginner-guide-game-rules__faq-section,
.page-beginner-guide-game-rules__contact-section {
  padding: 60px 0;
  background-color: #1A1A1A; /* Auxiliary color for sections */
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.page-beginner-guide-game-rules__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-beginner-guide-game-rules__content-wrapper:nth-child(even) {
  flex-direction: row-reverse;
}

.page-beginner-guide-game-rules__content-wrapper p {
  flex: 1;
  font-size: 1.05em;
  color: #e0e0e0;
}

.page-beginner-guide-game-rules__image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.page-beginner-guide-game-rules__subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 50px;
  color: #f0f0f0;
}

.page-beginner-guide-game-rules__game-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-beginner-guide-game-rules__game-card {
  background: #282828; /* Slightly lighter dark background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-beginner-guide-game-rules__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-beginner-guide-game-rules__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.page-beginner-guide-game-rules__game-card-title {
  font-size: 1.6em;
  color: #FFD700;
  padding: 20px 20px 10px;
  margin: 0;
}

.page-beginner-guide-game-rules__game-card-content {
  padding: 0 20px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-beginner-guide-game-rules__game-card-content p {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-beginner-guide-game-rules__game-card-link {
  display: inline-block;
  align-self: flex-start;
  padding: 10px 20px;
  background: #FFD700;
  color: #1A1A1A;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-beginner-guide-game-rules__game-card-link:hover {
  background-color: #e6c200;
}

.page-beginner-guide-game-rules__tip-list {
  list-style-type: disc;
  margin-left: 20px;
  color: #e0e0e0;
  font-size: 1.05em;
}

.page-beginner-guide-game-rules__tip-list li {
  margin-bottom: 10px;
}

.page-beginner-guide-game-rules__tip-list li strong {
  color: #FFD700;
}

.page-beginner-guide-game-rules__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-beginner-guide-game-rules__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #282828;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide-game-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #333333; /* Darker background for question header */
  border: 1px solid #444444;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-beginner-guide-game-rules__faq-question:hover {
  background: #3a3a3a;
  border-color: #555555;
}

.page-beginner-guide-game-rules__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Primary color for FAQ question text */
  pointer-events: none;
}

.page-beginner-guide-game-rules__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #1A1A1A;
  border-radius: 50%;
}

.page-beginner-guide-game-rules__faq-item.active .page-beginner-guide-game-rules__faq-toggle {
  color: #1A1A1A;
  background-color: #FFD700;
  transform: rotate(45deg); /* Change to rotate for visual effect */
}

.page-beginner-guide-game-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #1A1A1A;
  border-radius: 0 0 8px 8px;
  color: #cccccc;
}

.page-beginner-guide-game-rules__faq-item.active .page-beginner-guide-game-rules__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-beginner-guide-game-rules__faq-answer p {
  margin: 0;
  color: #cccccc;
}

.page-beginner-guide-game-rules__contact-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-beginner-guide-game-rules__main-title {
    font-size: 2.8em;
  }

  .page-beginner-guide-game-rules__section-title {
    font-size: 2.2em;
  }

  .page-beginner-guide-game-rules__game-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-beginner-guide-game-rules__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-beginner-guide-game-rules__content-wrapper:nth-child(even) {
    flex-direction: column;
  }

  .page-beginner-guide-game-rules__image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-beginner-guide-game-rules__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on mobile fixed header height */
    padding-bottom: 40px;
  }

  .page-beginner-guide-game-rules__container {
    padding: 0 15px;
  }

  .page-beginner-guide-game-rules__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-beginner-guide-game-rules__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-beginner-guide-game-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-beginner-guide-game-rules__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-beginner-guide-game-rules__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-beginner-guide-game-rules__overview-section,
  .page-beginner-guide-game-rules__specific-rules-section,
  .page-beginner-guide-game-rules__tips-section,
  .page-beginner-guide-game-rules__faq-section,
  .page-beginner-guide-game-rules__contact-section {
    padding: 40px 0;
  }

  .page-beginner-guide-game-rules__content-wrapper {
    gap: 20px;
  }

  .page-beginner-guide-game-rules__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-beginner-guide-game-rules__game-card-grid {
    grid-template-columns: 1fr;
  }

  .page-beginner-guide-game-rules__game-card-title {
    font-size: 1.4em;
  }

  .page-beginner-guide-game-rules__faq-question {
    padding: 15px 20px;
  }

  .page-beginner-guide-game-rules__faq-question h3 {
    font-size: 1em;
  }

  .page-beginner-guide-game-rules__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-beginner-guide-game-rules__faq-answer {
    padding: 0 20px;
  }

  .page-beginner-guide-game-rules__faq-item.active .page-beginner-guide-game-rules__faq-answer {
    padding: 15px 20px !important;
  }

  .page-beginner-guide-game-rules__contact-description {
    font-size: 1em;
  }

  /* Ensure all image containers are responsive */
  .page-beginner-guide-game-rules__overview-section .page-beginner-guide-game-rules__content-wrapper,
  .page-beginner-guide-game-rules__tips-section .page-beginner-guide-game-rules__content-wrapper,
  .page-beginner-guide-game-rules__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Global image responsiveness for all images */
.page-beginner-guide-game-rules img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-beginner-guide-game-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-beginner-guide-game-rules__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-beginner-guide-game-rules__content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}