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

/* Base Styles */
.page-resources-how-to-choose-reliable-platform {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #ffffff); /* Ensure contrast with body background */
}

.page-resources-how-to-choose-reliable-platform__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    margin-bottom: 30px;
    text-align: center;
    padding-top: 40px;
}

.page-resources-how-to-choose-reliable-platform__sub-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources-how-to-choose-reliable-platform__paragraph {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-resources-how-to-choose-reliable-platform__keyword {
    font-weight: bold;
    color: #017439;
}

.page-resources-how-to-choose-reliable-platform__text-link {
    color: #017439;
    text-decoration: underline;
}
.page-resources-how-to-choose-reliable-platform__text-link:hover {
    color: #005f2c;
    text-decoration: none;
}


/* Hero Section */
.page-resources-how-to-choose-reliable-platform__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff; /* White text for dark background */
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-resources-how-to-choose-reliable-platform__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: none; /* Ensure no image color changes */
}

.page-resources-how-to-choose-reliable-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-reliable-platform__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

.page-resources-how-to-choose-reliable-platform__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-resources-how-to-choose-reliable-platform__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources-how-to-choose-reliable-platform__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.page-resources-how-to-choose-reliable-platform__btn-primary,
.page-resources-how-to-choose-reliable-platform__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-how-to-choose-reliable-platform__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-resources-how-to-choose-reliable-platform__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-resources-how-to-choose-reliable-platform__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Content Area */
.page-resources-how-to-choose-reliable-platform__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-resources-how-to-choose-reliable-platform__image-container {
    text-align: center;
    margin: 40px 0;
}

.page-resources-how-to-choose-reliable-platform__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: none; /* Ensure no image color changes */
}

.page-resources-how-to-choose-reliable-platform__ordered-list,
.page-resources-how-to-choose-reliable-platform__unordered-list {
    margin-bottom: 20px;
    padding-left: 25px;
}

.page-resources-how-to-choose-reliable-platform__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* CTA Section */
.page-resources-how-to-choose-reliable-platform__cta-section {
    text-align: center;
    margin: 60px 0;
    padding: 40px 20px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 10px;
}

.page-resources-how-to-choose-reliable-platform__cta-text {
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: bold;
}

/* FAQ Section */
.page-resources-how-to-choose-reliable-platform__faq-container {
    max-width: 900px;
    margin: 40px auto;
}

.page-resources-how-to-choose-reliable-platform__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

.page-resources-how-to-choose-reliable-platform__faq-title {
    font-size: 1.2em;
    color: #333333;
    margin: 0;
}

.page-resources-how-to-choose-reliable-platform__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-resources-how-to-choose-reliable-platform__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Adjust padding for closed state */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
}

.page-resources-how-to-choose-reliable-platform__faq-item.active .page-resources-how-to-choose-reliable-platform__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px; /* Padding for open state */
}

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

/* Color Contrast Specifics */
.page-resources-how-to-choose-reliable-platform__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-resources-how-to-choose-reliable-platform__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-how-to-choose-reliable-platform__hero-title {
        font-size: 2.8em;
    }
    .page-resources-how-to-choose-reliable-platform__hero-description {
        font-size: 1.2em;
    }
    .page-resources-how-to-choose-reliable-platform__section-title {
        font-size: 2em;
    }
    .page-resources-how-to-choose-reliable-platform__sub-title {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-resources-how-to-choose-reliable-platform {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources-how-to-choose-reliable-platform__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

    .page-resources-how-to-choose-reliable-platform__hero-title {
        font-size: 2em;
    }
    .page-resources-how-to-choose-reliable-platform__hero-description {
        font-size: 1em;
    }
    .page-resources-how-to-choose-reliable-platform__hero-cta {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px; /* Add padding to buttons container */
    }
    .page-resources-how-to-choose-reliable-platform__btn-primary,
    .page-resources-how-to-choose-reliable-platform__btn-secondary {
        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-reliable-platform__content-area {
        padding: 30px 15px;
    }

    .page-resources-how-to-choose-reliable-platform__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

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

    /* Mobile image responsiveness */
    .page-resources-how-to-choose-reliable-platform img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no image color changes */
    }
    .page-resources-how-to-choose-reliable-platform__image-container,
    .page-resources-how-to-choose-reliable-platform__cta-section,
    .page-resources-how-to-choose-reliable-platform__faq-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-resources-how-to-choose-reliable-platform__ordered-list,
    .page-resources-how-to-choose-reliable-platform__unordered-list {
        padding-left: 20px;
    }
    .page-resources-how-to-choose-reliable-platform__faq-question {
        padding: 15px;
    }
    .page-resources-how-to-choose-reliable-platform__faq-answer {
        padding: 0 15px;
    }
    .page-resources-how-to-choose-reliable-platform__faq-item.active .page-resources-how-to-choose-reliable-platform__faq-answer {
        padding: 15px;
    }
}