.page-fortune-mouse {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #333333); /* Default text color */
  background-color: var(--background, #F5F7FA); /* Default background */
  line-height: 1.6;
}

/* Hero Section */
.page-fortune-mouse__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
}

.page-fortune-mouse__hero-image-wrapper {
  width: 100%;
  position: relative;
  margin-bottom: 40px; /* Space between image and content */
}

.page-fortune-mouse__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit hero image height */
}

.page-fortune-mouse__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-fortune-mouse__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  color: var(--primary-color, #E53935); /* Main brand color for H1 */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-fortune-mouse__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-main, #333333);
}

.page-fortune-mouse__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-fortune-mouse__btn-primary,
.page-fortune-mouse__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  text-align: center;
}

.page-fortune-mouse__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-fortune-mouse__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-fortune-mouse__btn-secondary {
  background: #ffffff;
  color: var(--primary-color, #E53935);
  border: 2px solid var(--primary-color, #E53935);
}

.page-fortune-mouse__btn-secondary:hover {
  background: var(--primary-color, #E53935);
  color: #ffffff;
  transform: translateY(-2px);
}

/* General Section Styling */
.page-fortune-mouse__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-fortune-mouse__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--primary-color, #E53935);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-fortune-mouse__text-block {
  font-size: 1.05rem;
  margin-bottom: 25px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main, #333333);
}

.page-fortune-mouse__text-block a {
  color: var(--primary-color, #E53935);
  text-decoration: underline;
}

/* Light Background Sections */
.page-fortune-mouse__light-bg {
  background-color: var(--background, #F5F7FA);
  color: var(--text-main, #333333);
}

/* Dark Background Sections */
.page-fortune-mouse__dark-section {
  background-color: var(--primary-color, #E53935);
  color: #ffffff;
}

.page-fortune-mouse__dark-section .page-fortune-mouse__section-title,
.page-fortune-mouse__dark-section .page-fortune-mouse__text-block,
.page-fortune-mouse__dark-section .page-fortune-mouse__list-title,
.page-fortune-mouse__dark-section .page-fortune-mouse__list-description {
  color: #ffffff;
}

.page-fortune-mouse__dark-section .page-fortune-mouse__text-block a {
  color: #ffffff;
  text-decoration: underline;
}


/* About Game Section */
.page-fortune-mouse__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-fortune-mouse__feature-item {
  background-color: var(--card-bg, #FFFFFF);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid var(--border, #E0E0E0);
  color: var(--text-main, #333333);
}

.page-fortune-mouse__feature-title {
  font-size: 1.5rem;
  color: var(--primary-color, #E53935);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-fortune-mouse__feature-description {
  font-size: 1rem;
}

.page-fortune-mouse__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
}

/* How to Play Section */
.page-fortune-mouse__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-fortune-mouse__list-item {
  padding: 25px;
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-radius: 8px;
  color: #ffffff;
}

.page-fortune-mouse__list-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: #ffffff;
}

.page-fortune-mouse__list-description {
  font-size: 1rem;
  color: #ffffff;
}

/* Why Betk7 Section */
.page-fortune-mouse__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fortune-mouse__benefit-card {
  background-color: var(--card-bg, #FFFFFF);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid var(--border, #E0E0E0);
  color: var(--text-main, #333333);
}

.page-fortune-mouse__benefit-title {
  font-size: 1.5rem;
  color: var(--primary-color, #E53935);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-fortune-mouse__benefit-description {
  font-size: 1rem;
}

/* Other Games Section */
.page-fortune-mouse__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fortune-mouse__game-card {
  background-color: var(--card-bg, #FFFFFF);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--border, #E0E0E0);
  color: var(--text-main, #333333);
  display: flex;
  flex-direction: column;
}

.page-fortune-mouse__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-fortune-mouse__game-title {
  font-size: 1.4rem;
  margin: 15px 10px 10px;
  font-weight: 600;
}

.page-fortune-mouse__game-title a {
  color: var(--primary-color, #E53935);
  text-decoration: none;
}

.page-fortune-mouse__game-title a:hover {
  text-decoration: underline;
}

.page-fortune-mouse__game-description {
  font-size: 0.95rem;
  padding: 0 15px 20px;
  flex-grow: 1; /* Push content to bottom */
}


/* FAQ Section */
.page-fortune-mouse__faq-list {
  margin-top: 30px;
}

.page-fortune-mouse__faq-item {
  background-color: var(--card-bg, #FFFFFF);
  border: 1px solid var(--border, #E0E0E0);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  color: var(--text-main, #333333);
}

.page-fortune-mouse__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-color, #E53935);
  position: relative;
}

.page-fortune-mouse__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-fortune-mouse__faq-qtext {
  flex-grow: 1;
}

.page-fortune-mouse__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color, #E53935);
}

.page-fortune-mouse__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main, #333333);
}

.page-fortune-mouse__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin */
}

.page-fortune-mouse__faq-answer a {
  color: var(--primary-color, #E53935);
  text-decoration: underline;
}

/* CTA Section */
.page-fortune-mouse__cta-content {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fortune-mouse__hero-image {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-fortune-mouse__hero-section {
    padding-bottom: 40px;
  }
  .page-fortune-mouse__hero-image {
    max-height: 400px;
  }
  .page-fortune-mouse__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .page-fortune-mouse__description {
    font-size: 1rem;
  }
  .page-fortune-mouse__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-fortune-mouse__btn-primary,
  .page-fortune-mouse__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  .page-fortune-mouse__container {
    padding: 30px 15px;
  }
  .page-fortune-mouse__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 25px;
  }
  .page-fortune-mouse__text-block {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .page-fortune-mouse__features-grid,
  .page-fortune-mouse__benefits-grid,
  .page-fortune-mouse__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-fortune-mouse__feature-item,
  .page-fortune-mouse__benefit-card,
  .page-fortune-mouse__game-card {
    padding: 25px;
  }
  .page-fortune-mouse__feature-title,
  .page-fortune-mouse__benefit-title {
    font-size: 1.3rem;
  }
  .page-fortune-mouse__list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-fortune-mouse__list-item {
    padding: 20px;
  }
  .page-fortune-mouse__list-title {
    font-size: 1.25rem;
  }
  .page-fortune-mouse__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }
  .page-fortune-mouse__faq-answer {
    padding: 0 15px 15px;
  }
  .page-fortune-mouse img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-fortune-mouse__section,
  .page-fortune-mouse__card,
  .page-fortune-mouse__container,
  .page-fortune-mouse__hero-section,
  .page-fortune-mouse__about-game-section,
  .page-fortune-mouse__how-to-play-section,
  .page-fortune-mouse__why-betk7-section,
  .page-fortune-mouse__tips-section,
  .page-fortune-mouse__other-games-section,
  .page-fortune-mouse__faq-section,
  .page-fortune-mouse__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  /* Specific padding for hero/cta sections to override general container padding if needed */
  .page-fortune-mouse__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-fortune-mouse__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-fortune-mouse__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-fortune-mouse__cta-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .page-fortune-mouse__main-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }
  .page-fortune-mouse__section-title {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }
  .page-fortune-mouse__hero-image {
    max-height: 300px;
  }
}

/* Global image styles for content area (min 200x200) */
.page-fortune-mouse img:not(.shared-header img, .shared-footer img) {
  min-width: 200px;
  min-height: 200px;
}
/* Ensure no CSS filters are used */
.page-fortune-mouse img {
  filter: none !important;
}