/* style/fortunedragon.css */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --main-bg: #0A0A0A;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-fortunedragon {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark body background */
    background-color: var(--main-bg); /* Explicit background for main content area */
}

.page-fortunedragon__dark-bg {
    background-color: var(--main-bg);
    color: var(--text-main);
}

.page-fortunedragon__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 for visual spacing, header offset handled by body */
    overflow: hidden;
}

.page-fortunedragon__hero-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-fortunedragon__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-fortunedragon__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-fortunedragon__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 15px;
}

.page-fortunedragon__main-title {
    font-size: 3.2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 100%;
}

.page-fortunedragon__hero-description {
    font-size: 1.2em;
    color: var(--text-main);
    margin-bottom: 30px;
}

.page-fortunedragon__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: none;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-fortunedragon__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.page-fortunedragon__section {
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-fortunedragon__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-fortunedragon__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-fortunedragon__content-area {
    text-align: left;
    font-size: 1.05em;
}

.page-fortunedragon__content-area p {
    margin-bottom: 1em;
    color: var(--text-main);
}

.page-fortunedragon__content-area a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-fortunedragon__content-area a:hover {
    text-decoration: underline;
}

.page-fortunedragon__subtitle {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-fortunedragon__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

/* FAQ Section */
.page-fortunedragon__faq-section {
    padding-bottom: 80px;
}

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

details.page-fortunedragon__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
details.page-fortunedragon__faq-item summary.page-fortunedragon__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  color: var(--text-main);
  font-weight: bold;
}
details.page-fortunedragon__faq-item summary.page-fortunedragon__faq-question::-webkit-details-marker {
  display: none;
}
details.page-fortunedragon__faq-item summary.page-fortunedragon__faq-question:hover {
  background: rgba(var(--primary-color), 0.1);
  color: var(--secondary-color);
}
.page-fortunedragon__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-fortunedragon__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-fortunedragon__faq-item .page-fortunedragon__faq-answer {
  padding: 0 25px 25px;
  background: rgba(var(--card-bg), 0.8);
  border-radius: 0 0 10px 10px;
  color: var(--text-main);
  font-size: 1em;
}

.page-fortunedragon__conclusion {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fortunedragon__main-title {
        font-size: 2.8em;
    }
    .page-fortunedragon__section-title {
        font-size: 2em;
    }
    .page-fortunedragon__subtitle {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-fortunedragon__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-fortunedragon__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-fortunedragon__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-fortunedragon__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-fortunedragon__section {
        padding: 40px 15px;
    }
    .page-fortunedragon__container {
        padding: 0 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-fortunedragon__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-fortunedragon__subtitle {
        font-size: 1.3em;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-fortunedragon img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }
    .page-fortunedragon__content-area {
        font-size: 0.95em;
    }
    details.page-fortunedragon__faq-item summary.page-fortunedragon__faq-question {
        padding: 15px 20px;
    }
    .page-fortunedragon__faq-qtext {
        font-size: 1em;
    }
    .page-fortunedragon__faq-toggle {
        font-size: 24px;
        margin-left: 15px;
    }
    details.page-fortunedragon__faq-item .page-fortunedragon__faq-answer {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-fortunedragon__main-title {
        font-size: 1.8em;
    }
    .page-fortunedragon__section-title {
        font-size: 1.6em;
    }
    .page-fortunedragon__subtitle {
        font-size: 1.2em;
    }
}

/* Ensure content area images do not have smaller CSS dimensions than 200px */
.page-fortunedragon__content-area img {
  min-width: 200px;
  min-height: 200px;
}

/* Specific content area img rules to prevent small sizes */
.page-fortunedragon__content-area .page-fortunedragon__image-content {
  width: auto;
  height: auto;
  max-width: 100%;
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-fortunedragon__content-area .page-fortunedragon__image-content {
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-fortunedragon__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}