/* style/resources-how-to-choose-qh88-online-platform.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --accent-color: #C30808; /* For Register/Login buttons */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --link-color: #017439;
    --border-color: #e0e0e0;
    --background-light: #f9f9f9;
}

.page-resources-how-to-choose-qh88-online-platform {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--secondary-color); /* Body background is white */
}

.page-resources-how-to-choose-qh88-online-platform__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-resources-how-to-choose-qh88-online-platform__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources-how-to-choose-qh88-online-platform__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-resources-how-to-choose-qh88-online-platform__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a9b4d 100%);
    color: var(--text-color-light);
}

.page-resources-how-to-choose-qh88-online-platform__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-resources-how-to-choose-qh88-online-platform__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-resources-how-to-choose-qh88-online-platform__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-resources-how-to-choose-qh88-online-platform__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-resources-how-to-choose-qh88-online-platform__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-color-light);
}

.page-resources-how-to-choose-qh88-online-platform__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-resources-how-to-choose-qh88-online-platform__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color); /* Use accent color for CTA */
    color: #FFFF00; /* Yellow text for contrast on red button */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-resources-how-to-choose-qh88-online-platform__cta-button:hover {
    background: #a80707;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-resources-how-to-choose-qh88-online-platform__cta-button--secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources-how-to-choose-qh88-online-platform__cta-button--secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.page-resources-how-to-choose-qh88-online-platform__content-section {
    padding: 80px 0;
}

.page-resources-how-to-choose-qh88-online-platform__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

.page-resources-how-to-choose-qh88-online-platform__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-resources-how-to-choose-qh88-online-platform__dark-bg .page-resources-how-to-choose-qh88-online-platform__section-title {
    color: var(--text-color-light);
}

.page-resources-how-to-choose-qh88-online-platform__dark-bg .page-resources-how-to-choose-qh88-online-platform__paragraph {
    color: #f0f0f0;
}

.page-resources-how-to-choose-qh88-online-platform__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

.page-resources-how-to-choose-qh88-online-platform__content-image--large {
    max-width: 1000px;
}

.page-resources-how-to-choose-qh88-online-platform__criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-how-to-choose-qh88-online-platform__card {
    background: var(--secondary-color);
    color: var(--text-color-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-resources-how-to-choose-qh88-online-platform__dark-bg .page-resources-how-to-choose-qh88-online-platform__card {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources-how-to-choose-qh88-online-platform__dark-bg .page-resources-how-to-choose-qh88-online-platform__card-title {
    color: var(--text-color-light);
}

.page-resources-how-to-choose-qh88-online-platform__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-how-to-choose-qh88-online-platform__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources-how-to-choose-qh88-online-platform__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-resources-how-to-choose-qh88-online-platform__list-item {
    background: var(--background-light);
    border-left: 5px solid var(--primary-color);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-how-to-choose-qh88-online-platform__list-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources-how-to-choose-qh88-online-platform__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-resources-how-to-choose-qh88-online-platform__feature-item {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
    font-size: 1.1em;
}

.page-resources-how-to-choose-qh88-online-platform__faq-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.page-resources-how-to-choose-qh88-online-platform__faq-list {
    margin-top: 40px;
}

/* FAQ容器样式 */
.page-resources-how-to-choose-qh88-online-platform__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.page-resources-how-to-choose-qh88-online-platform__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.page-resources-how-to-choose-qh88-online-platform__faq-item.active .page-resources-how-to-choose-qh88-online-platform__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--secondary-color);
  border-radius: 0 0 5px 5px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

/* Question style */
.page-resources-how-to-choose-qh88-online-platform__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-resources-how-to-choose-qh88-online-platform__faq-question:hover {
  background: var(--background-light);
  border-color: #d0d0d0;
}

.page-resources-how-to-choose-qh88-online-platform__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-resources-how-to-choose-qh88-online-platform__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click events */
}

/* Toggle icon */
.page-resources-how-to-choose-qh88-online-platform__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources-how-to-choose-qh88-online-platform__faq-item.active .page-resources-how-to-choose-qh88-online-platform__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

.page-resources-how-to-choose-qh88-online-platform__cta-bottom-section {
    padding: 80px 0;
}

.page-resources-how-to-choose-qh88-online-platform__text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-how-to-choose-qh88-online-platform__main-title {
        font-size: 2.5em;
    }
    .page-resources-how-to-choose-qh88-online-platform__section-title {
        font-size: 2em;
    }
    .page-resources-how-to-choose-qh88-online-platform__card-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-resources-how-to-choose-qh88-online-platform__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-resources-how-to-choose-qh88-online-platform__main-title {
        font-size: 2em;
        line-height: 1.3;
    }
    .page-resources-how-to-choose-qh88-online-platform__description {
        font-size: 1em;
    }
    .page-resources-how-to-choose-qh88-online-platform__cta-button {
        padding: 12px 30px;
        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-resources-how-to-choose-qh88-online-platform__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources-how-to-choose-qh88-online-platform__paragraph {
        font-size: 1em;
    }
    .page-resources-how-to-choose-qh88-online-platform__content-section,
    .page-resources-how-to-choose-qh88-online-platform__criteria-section,
    .page-resources-how-to-choose-qh88-online-platform__steps-section,
    .page-resources-how-to-choose-qh88-online-platform__why-qh88-section,
    .page-resources-how-to-choose-qh88-online-platform__faq-section,
    .page-resources-how-to-choose-qh88-online-platform__cta-bottom-section {
        padding: 40px 0;
    }
    .page-resources-how-to-choose-qh88-online-platform__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-how-to-choose-qh88-online-platform__hero-image img,
    .page-resources-how-to-choose-qh88-online-platform__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources-how-to-choose-qh88-online-platform__criteria-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources-how-to-choose-qh88-online-platform__card {
        padding: 20px;
    }
    .page-resources-how-to-choose-qh88-online-platform__card-title {
        font-size: 1.2em;
    }
    .page-resources-how-to-choose-qh88-online-platform__list-item {
        padding: 20px;
    }
    .page-resources-how-to-choose-qh88-online-platform__list-title {
        font-size: 1.2em;
    }
    .page-resources-how-to-choose-qh88-online-platform__feature-item {
        font-size: 1em;
    }
    .page-resources-how-to-choose-qh88-online-platform__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-resources-how-to-choose-qh88-online-platform__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-resources-how-to-choose-qh88-online-platform__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-resources-how-to-choose-qh88-online-platform__faq-answer {
        padding: 0 15px;
    }
    .page-resources-how-to-choose-qh88-online-platform__faq-item.active .page-resources-how-to-choose-qh88-online-platform__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-resources-how-to-choose-qh88-online-platform__main-title {
        font-size: 1.8em;
    }
    .page-resources-how-to-choose-qh88-online-platform__section-title {
        font-size: 1.5em;
    }
}

/* Ensure all image containers have proper sizing for mobile */
.page-resources-how-to-choose-qh88-online-platform__section,
.page-resources-how-to-choose-qh88-online-platform__card,
.page-resources-how-to-choose-qh88-online-platform__container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* All img tags must have min-width/height of 200px */
.page-resources-how-to-choose-qh88-online-platform img {
    min-width: 200px;
    min-height: 200px;
}