/* style/fortune-dragon.css */

/* Base Styles */
.page-fortune-dragon {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

.page-fortune-dragon__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-fortune-dragon__container--centered {
  text-align: center;
}

.page-fortune-dragon__section {
  padding: 60px 0;
  border-bottom: 1px solid #A84F0C; /* Border */
}

.page-fortune-dragon__section:last-of-type {
  border-bottom: none;
}

.page-fortune-dragon h1,
.page-fortune-dragon h2,
.page-fortune-dragon h3 {
  color: #FFA53A; /* Auxiliary color for headings */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-fortune-dragon h1 {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size for H1 */
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 900px; /* Constrain H1 width */
  margin-left: auto;
  margin-right: auto;
}

.page-fortune-dragon h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #FF8C1A; /* Main color for H2 */
}

.page-fortune-dragon h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FFA53A;
}

.page-fortune-dragon p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFF3E6;
}

/* Hero Section */
.page-fortune-dragon__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0D0E12; /* Background */
}

.page-fortune-dragon__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width */
}

.page-fortune-dragon__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
}

.page-fortune-dragon__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-fortune-dragon__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-fortune-dragon__hero-content p {
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.2em;
  color: #FFF3E6;
}

/* CTA Buttons */
.page-fortune-dragon__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fortune-dragon__cta-button:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #A84F0C 100%); /* Slightly different gradient on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.page-fortune-dragon__cta-button--secondary {
  background: transparent;
  border: 2px solid #FF8C1A;
  color: #FF8C1A;
}

.page-fortune-dragon__cta-button--secondary:hover {
  background: #FF8C1A;
  color: #ffffff;
}

.page-fortune-dragon__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

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

.page-fortune-dragon__grid--two-columns {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-fortune-dragon__grid-item {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #A84F0C; /* Border */
}

.page-fortune-dragon__grid-item h3 {
  color: #FF8C1A;
  margin-top: 0;
}

.page-fortune-dragon__image-card {
  margin-bottom: 20px;
}

.page-fortune-dragon__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

/* FAQ Section */
.page-fortune-dragon__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

details.page-fortune-dragon__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
}

details.page-fortune-dragon__faq-item summary.page-fortune-dragon__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF3E6; /* Text Main */
}

details.page-fortune-dragon__faq-item summary.page-fortune-dragon__faq-question::-webkit-details-marker {
  display: none;
}

details.page-fortune-dragon__faq-item summary.page-fortune-dragon__faq-question:hover {
  background: rgba(255, 140, 26, 0.1); /* Slight hover effect with main color */
}

.page-fortune-dragon__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6; /* Text Main */
}

.page-fortune-dragon__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-fortune-dragon__faq-item .page-fortune-dragon__faq-answer {
  padding: 0 20px 20px;
  background: #0D0E12; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6; /* Text Main */
}

.page-fortune-dragon__faq-answer p {
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-fortune-dragon__grid--two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-fortune-dragon__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fortune-dragon__hero-image {
    border-radius: 4px;
  }

  .page-fortune-dragon h1 {
    font-size: 2em;
  }

  .page-fortune-dragon h2 {
    font-size: 2em;
  }

  .page-fortune-dragon h3 {
    font-size: 1.5em;
  }

  .page-fortune-dragon p {
    font-size: 1em;
  }

  .page-fortune-dragon__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Image responsiveness */
  .page-fortune-dragon img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-fortune-dragon__section,
  .page-fortune-dragon__card,
  .page-fortune-dragon__container,
  .page-fortune-dragon__grid-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-fortune-dragon__grid {
    grid-template-columns: 1fr;
  }

  details.page-fortune-dragon__faq-item summary.page-fortune-dragon__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-fortune-dragon__faq-qtext {
    font-size: 15px;
    width: calc(100% - 40px); /* Adjust width for toggle */
  }
  .page-fortune-dragon__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  details.page-fortune-dragon__faq-item .page-fortune-dragon__faq-answer {
    padding: 0 15px 15px;
  }
}