/* style/resources-how-to-choose-platform.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --register-login-font-color: #FFFF00;
    --body-text-color: #ffffff; /* Default text color for dark body background */
    --card-bg-color: #ffffff; /* White background for cards */
    --card-text-color: #333333; /* Dark text for white cards */
    --section-bg-light: #ffffff;
    --section-text-dark: #333333;
}

.page-resources-how-to-choose-platform {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--body-text-color); /* Apply default light text color for dark body */
    background-color: transparent; /* Body background is handled by shared.css */
}

.page-resources-how-to-choose-platform__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources-how-to-choose-platform__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-resources-how-to-choose-platform__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-resources-how-to-choose-platform__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: var(--secondary-color);
}

.page-resources-how-to-choose-platform__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources-how-to-choose-platform__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.page-resources-how-to-choose-platform__btn-primary,
.page-resources-how-to-choose-platform__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 10px;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-resources-how-to-choose-platform__btn-primary {
    background-color: var(--register-button-color); /* Using #C30808 for primary CTA */
    color: var(--register-login-font-color); /* Using #FFFF00 for font */
    border: 2px solid var(--register-button-color);
}

.page-resources-how-to-choose-platform__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-resources-how-to-choose-platform__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources-how-to-choose-platform__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-resources-how-to-choose-platform__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--section-bg-light); /* Explicitly set white background for content area */
    color: var(--section-text-dark); /* Dark text for white background */
}

.page-resources-how-to-choose-platform__container {
    max-width: 100%;
    margin: 0 auto;
}

.page-resources-how-to-choose-platform__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.page-resources-how-to-choose-platform__paragraph {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--section-text-dark);
}

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

.page-resources-how-to-choose-platform__card {
    background-color: var(--card-bg-color);
    color: var(--card-text-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources-how-to-choose-platform__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

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

.page-resources-how-to-choose-platform__card-text {
    font-size: 0.95em;
    color: var(--card-text-color);
}

.page-resources-how-to-choose-platform__list,
.page-resources-how-to-choose-platform__numbered-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--section-text-dark);
}

.page-resources-how-to-choose-platform__numbered-list {
    list-style-type: decimal;
}

.page-resources-how-to-choose-platform__list-item {
    margin-bottom: 10px;
    color: var(--section-text-dark);
}

.page-resources-how-to-choose-platform__cta-buttons {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-resources-how-to-choose-platform__faq-section {
    margin-top: 60px;
}

.page-resources-how-to-choose-platform__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--card-text-color);
}

.page-resources-how-to-choose-platform__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.page-resources-how-to-choose-platform__faq-question:hover {
    background-color: #f0f0f0;
}

.page-resources-how-to-choose-platform__faq-item-title {
    font-size: 1.2em;
    margin: 0;
    color: var(--primary-color);
}

.page-resources-how-to-choose-platform__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-resources-how-to-choose-platform__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--card-text-color);
}

.page-resources-how-to-choose-platform__faq-item.active .page-resources-how-to-choose-platform__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 20px;
}

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

/* --- Responsive Design --- */

/* All images base responsive style */
.page-resources-how-to-choose-platform img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All video base responsive style */
.page-resources-how-to-choose-platform video,
.page-resources-how-to-choose-platform__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* All video container base responsive style */
.page-resources-how-to-choose-platform__video-section,
.page-resources-how-to-choose-platform__video-container,
.page-resources-how-to-choose-platform__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 992px) {
    .page-resources-how-to-choose-platform__hero-title {
        font-size: 2.8em;
    }
}

@media (max-width: 768px) {
    .page-resources-how-to-choose-platform__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
    }

    .page-resources-how-to-choose-platform__hero-title {
        font-size: 2.2em;
    }

    .page-resources-how-to-choose-platform__hero-description {
        font-size: 1em;
    }

    .page-resources-how-to-choose-platform__section-title {
        font-size: 1.8em;
    }

    .page-resources-how-to-choose-platform__paragraph {
        font-size: 1em;
    }

    .page-resources-how-to-choose-platform__criteria-grid {
        grid-template-columns: 1fr;
    }

    .page-resources-how-to-choose-platform__card {
        padding: 20px;
    }

    .page-resources-how-to-choose-platform__card-title {
        font-size: 1.3em;
    }

    .page-resources-how-to-choose-platform__faq-question {
        padding: 12px 15px;
    }

    .page-resources-how-to-choose-platform__faq-item-title {
        font-size: 1.1em;
    }

    /* Mobile images responsive adaptation */
    .page-resources-how-to-choose-platform img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources-how-to-choose-platform__section,
    .page-resources-how-to-choose-platform__card,
    .page-resources-how-to-choose-platform__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile video responsive adaptation */
    .page-resources-how-to-choose-platform video,
    .page-resources-how-to-choose-platform__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-how-to-choose-platform__video-section,
    .page-resources-how-to-choose-platform__video-container,
    .page-resources-how-to-choose-platform__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Mobile button responsive adaptation */
    .page-resources-how-to-choose-platform__btn-primary,
    .page-resources-how-to-choose-platform__btn-secondary,
    .page-resources-how-to-choose-platform a[class*="button"],
    .page-resources-how-to-choose-platform 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;
        padding-right: 15px;
    }

    .page-resources-how-to-choose-platform__cta-buttons,
    .page-resources-how-to-choose-platform__button-group,
    .page-resources-how-to-choose-platform__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }
}