/* style/fortunedragon.css */

.page-fortunedragon {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F5F7FA; /* Light background for the page */
}

.page-fortunedragon__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 20px 60px;
  background-color: #F5F7FA; /* Ensure consistent background */
  overflow: hidden;
}

.page-fortunedragon__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 500px;
  margin-bottom: 30px;
}

.page-fortunedragon__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1;
}

.page-fortunedragon__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #E53935;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.page-fortunedragon__hero-description {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-fortunedragon__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fortunedragon__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-fortunedragon__cta-button--secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-fortunedragon__cta-button--secondary:hover {
  background: #E53935;
  color: #ffffff;
}

.page-fortunedragon__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  background-color: #F5F7FA;
}

.page-fortunedragon__section-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-fortunedragon__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #E53935;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-fortunedragon__video-container {
  width: 100%; /* Ensure full width on desktop */
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.page-fortunedragon__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-fortunedragon__video-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 1rem;
  color: #555555;
}

.page-fortunedragon__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #F5F7FA;
}

.page-fortunedragon__paragraph {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

.page-fortunedragon__image-inline {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.page-fortunedragon__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-fortunedragon__list-item {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 10px;
  color: #333333;
}

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

.page-fortunedragon__card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #E0E0E0;
  min-height: 350px; /* Ensure cards have minimum height */
}

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

.page-fortunedragon__card-title {
  font-size: 1.5rem;
  color: #E53935;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-fortunedragon__card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  flex-grow: 1;
}

.page-fortunedragon__faq-list {
  margin-top: 40px;
}

.page-fortunedragon__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-fortunedragon__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #FFFFFF;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-fortunedragon__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-fortunedragon__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #E53935;
  margin-left: 15px;
}

.page-fortunedragon__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

.page-fortunedragon__faq-item[open] .page-fortunedragon__faq-question {
  background-color: #f0f0f0;
}

.page-fortunedragon__cta-final-section {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-fortunedragon__hero-image {
    max-height: 400px;
  }

  .page-fortunedragon__cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-fortunedragon__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fortunedragon__main-title {
    font-size: 2.5rem;
  }

  .page-fortunedragon__hero-description {
    font-size: 1.1rem;
  }

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

  .page-fortunedragon__video-section,
  .page-fortunedragon__content-area {
    padding: 30px 15px;
  }

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

  .page-fortunedragon__paragraph,
  .page-fortunedragon__list-item {
    font-size: 1rem;
  }

  .page-fortunedragon img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-fortunedragon__video,
  .page-fortunedragon__image-inline,
  .page-fortunedragon__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-fortunedragon__video-section,
  .page-fortunedragon__video-container,
  .page-fortunedragon__cards-grid,
  .page-fortunedragon__card,
  .page-fortunedragon__faq-item,
  .page-fortunedragon__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-fortunedragon__video-section {
    padding-top: 10px !important;
  }

  .page-fortunedragon__card {
    padding: 20px;
  }

  .page-fortunedragon__faq-question {
    font-size: 1.1rem;
    padding: 15px;
  }

  .page-fortunedragon__faq-answer {
    padding: 0 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-fortunedragon__main-title {
    font-size: 2rem;
  }

  .page-fortunedragon__section-title {
    font-size: 1.6rem;
  }

  .page-fortunedragon__hero-image {
    max-height: 300px;
  }
}