/* style/fortune-mouse.css */

/* Custom Colors */
:root {
  --page-bg-color: #140C0C; /* Background */
  --card-bg-color: #2A1212; /* Card BG */
  --text-main-color: #FFF1E8; /* Text Main */
  --border-color: #6A1E1E; /* Border */
  --gold-color: #F3C54D; /* Gold */
  --deep-red-color: #7E0D0D; /* Deep Red */
  --primary-brand-color: #C61F1F; /* Main Brand Color */
  --secondary-brand-color: #E53030; /* Secondary Brand Color */
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button Gradient */
}

.page-fortune-mouse {
  background-color: var(--page-bg-color); /* Apply page background color */
  color: var(--text-main-color); /* Apply main text color for general content */
  font-family: 'Arial', sans-serif; /* Example font */
}

/* Ensure text contrast for default elements in case of shared background */
.page-fortune-mouse h1,
.page-fortune-mouse h2,
.page-fortune-mouse h3,
.page-fortune-mouse h4,
.page-fortune-mouse p,
.page-fortune-mouse li,
.page-fortune-mouse a {
  color: var(--text-main-color);
}

/* Sections */
.page-fortune-mouse__section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
}

.page-fortune-mouse__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 15px; /* Default padding for content within container */
}

/* Hero Section */
.page-fortune-mouse__hero-section {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  padding-top: 10px; /* Small top padding as per rule */
}

.page-fortune-mouse__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.page-fortune-mouse__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-fortune-mouse__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  background: var(--card-bg-color);
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  margin-top: -5px;
  border-bottom: 5px solid var(--gold-color);
}


.page-fortune-mouse__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold-color);
}

.page-fortune-mouse__hero-description {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main-color);
}

/* Call to Action Buttons */
.page-fortune-mouse__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-fortune-mouse__cta-button:hover {
  transform: translateY(-2px);
}

.page-fortune-mouse__cta-button {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: none;
}

.page-fortune-mouse__cta-button--secondary {
  background: var(--primary-brand-color);
  color: var(--text-main-color);
  border: 2px solid var(--gold-color);
}

.page-fortune-mouse__cta-button--secondary:hover {
  background: var(--secondary-brand-color);
}

.page-fortune-mouse__cta-button--tertiary {
  background: none;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
}

.page-fortune-mouse__cta-button--tertiary:hover {
  background: var(--gold-color);
  color: var(--page-bg-color);
}

.page-fortune-mouse__cta-button--gold {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: 2px solid var(--gold-color);
}

.page-fortune-mouse__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--gold-color);
  position: relative;
  padding-bottom: 10px;
}

.page-fortune-mouse__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: var(--primary-brand-color);
  border-radius: 2px;
}

.page-fortune-mouse__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-main-color);
  text-align: left;
}

/* Images within content */
.page-fortune-mouse__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

/* Lists */
.page-fortune-mouse__ordered-list,
.page-fortune-mouse__unordered-list,
.page-fortune-mouse__advantages-list {
  list-style-position: inside;
  text-align: left;
  margin-bottom: 20px;
  padding-left: 0; /* Remove default padding */
}

.page-fortune-mouse__ordered-list li,
.page-fortune-mouse__unordered-list li,
.page-fortune-mouse__advantages-list li {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 10px;
  padding-left: 20px; /* Indent list item text */
  position: relative;
  color: var(--text-main-color);
}

.page-fortune-mouse__ordered-list li::before {
  content: counter(list-item) ". ";
  counter-increment: list-item;
  position: absolute;
  left: 0;
  color: var(--gold-color);
  font-weight: bold;
}

.page-fortune-mouse__unordered-list li::before,
.page-fortune-mouse__advantages-list li::before {
  content: '•'; /* Custom bullet point */
  position: absolute;
  left: 0;
  color: var(--gold-color);
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
}

.page-fortune-mouse__list-item-title {
  color: var(--gold-color); /* Highlight list item titles */
}

/* Features Grid */
.page-fortune-mouse__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fortune-mouse__feature-card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-fortune-mouse__feature-image {
  width: 100%;
  max-width: 400px; /* Max width for feature images */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  border: 1px solid var(--deep-red-color);
}

.page-fortune-mouse__feature-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-fortune-mouse__feature-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main-color);
  text-align: center;
}

/* Dark Background Section */
.page-fortune-mouse__dark-bg {
  background-color: var(--deep-red-color); /* Deeper red for contrast */
  color: var(--text-main-color);
}
.page-fortune-mouse__dark-bg .page-fortune-mouse__section-title {
  color: var(--gold-color);
}
.page-fortune-mouse__dark-bg .page-fortune-mouse__cta-button--secondary {
  background: var(--gold-color);
  color: var(--deep-red-color);
  border-color: var(--text-main-color);
}
.page-fortune-mouse__dark-bg .page-fortune-mouse__cta-button--secondary:hover {
  background: var(--text-main-color);
  color: var(--deep-red-color);
}

/* Video Section */
.page-fortune-mouse__video-section {
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as per rule */
  background-color: var(--card-bg-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.page-fortune-mouse__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px; /* Max width for video */
  margin: 30px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 = 0.5625) */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  background-color: #000;
}

.page-fortune-mouse__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* FAQ Section */
.page-fortune-mouse__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-fortune-mouse__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-fortune-mouse__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--gold-color);
  cursor: pointer;
  list-style: none; /* Remove default marker for summary */
  position: relative;
}

.page-fortune-mouse__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

.page-fortune-mouse__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 10px;
  transition: transform 0.3s ease;
  color: var(--primary-brand-color);
}

.page-fortune-mouse__faq-item[open] .page-fortune-mouse__faq-toggle {
  transform: rotate(45deg);
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-fortune-mouse__hero-section {
    min-height: 400px;
  }

  .page-fortune-mouse__hero-image {
    min-height: 400px;
  }

  .page-fortune-mouse__main-title {
    font-size: 2rem;
  }

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

  .page-fortune-mouse__section {
    padding: 40px 15px; /* Adjust section padding for mobile */
  }

  .page-fortune-mouse__container {
    padding: 0 10px; /* Smaller container padding */
  }

  .page-fortune-mouse__section-title {
    font-size: 1.8rem;
  }

  .page-fortune-mouse__text-block,
  .page-fortune-mouse__ordered-list li,
  .page-fortune-mouse__unordered-list li,
  .page-fortune-mouse__advantages-list li,
  .page-fortune-mouse__feature-description,
  .page-fortune-mouse__faq-answer {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Image responsive */
  .page-fortune-mouse img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  .page-fortune-mouse__hero-image {
    min-height: 300px !important; /* Adjust hero image min-height for mobile */
  }

  /* Container for images and videos */
  .page-fortune-mouse__section,
  .page-fortune-mouse__container,
  .page-fortune-mouse__feature-card,
  .page-fortune-mouse__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to prevent content touching edges */
    padding-right: 15px;
    overflow: hidden; /* Prevent overflow */
  }

  /* Video responsive */
  .page-fortune-mouse video,
  .page-fortune-mouse__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fortune-mouse__video-section,
  .page-fortune-mouse__video-container,
  .page-fortune-mouse__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-fortune-mouse__video-section {
    padding-top: 10px !important; /* Small top padding as per rule */
  }

  /* Button responsive */
  .page-fortune-mouse__cta-button,
  .page-fortune-mouse__btn-primary,
  .page-fortune-mouse__btn-secondary,
  .page-fortune-mouse a[class*="button"],
  .page-fortune-mouse 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; /* Ensure button text has padding */
    padding-right: 15px;
    margin-bottom: 10px; /* Space between stacked buttons */
  }
  
  .page-fortune-mouse__cta-section .page-fortune-mouse__cta-button {
    margin-bottom: 15px; /* More space for primary CTAs */
  }

  .page-fortune-mouse__cta-buttons,
  .page-fortune-mouse__button-group,
  .page-fortune-mouse__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;
    display: flex;
    flex-direction: column;
  }

  .page-fortune-mouse__features-grid {
    grid-template-columns: 1fr; /* Stack feature cards */
  }

  .page-fortune-mouse__hero-content {
    padding: 30px 15px;
  }
}