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

/* Base styles for the page content area */
.page-resources-how-to-choose-platform {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Inherit body background from shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header offset, applied to main content */
}

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

/* Hero Section */
.page-resources-how-to-choose-platform__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    padding-top: 0; /* Offset is handled by main tag, not hero section directly */
}

.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: 800px;
    padding: 20px;
}

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

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

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

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

/* Light background section */
.page-resources-how-to-choose-platform__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

/* Dark background section */
.page-resources-how-to-choose-platform__dark-bg {
    background-color: #017439; /* Brand color background */
    color: #ffffff; /* White text for brand color background */
    padding: 60px 0;
}

/* Image styling */
.page-resources-how-to-choose-platform__image-center {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Criteria Grid Section */
.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: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Light text for card */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 450px; /* Ensure cards have similar height */
}

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

.page-resources-how-to-choose-platform__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFFF00; /* Yellow for card titles, custom color */
}

.page-resources-how-to-choose-platform__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources-how-to-choose-platform__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to take available space */
}

/* Button Styles */
.page-resources-how-to-choose-platform__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.page-resources-how-to-choose-platform__btn-primary:hover {
    background-color: #e01010; /* Slightly darker red */
    transform: translateY(-3px);
}

.page-resources-how-to-choose-platform__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439; /* Brand color text */
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: 2px solid #017439;
    cursor: pointer;
    box-sizing: border-box;
    margin-top: auto; /* Push button to bottom of card */
}

.page-resources-how-to-choose-platform__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-3px);
}

/* List styles */
.page-resources-how-to-choose-platform__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-resources-how-to-choose-platform__list-item {
    background-color: #f9f9f9; /* Light background for list items */
    color: #333333; /* Dark text for list items */
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 5px solid #017439;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-resources-how-to-choose-platform__list-item strong {
    color: #017439;
}

/* FAQ Section */
.page-resources-how-to-choose-platform__faq-list {
    margin-top: 40px;
}

.page-resources-how-to-choose-platform__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-resources-how-to-choose-platform__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15); /* Slightly darker for question */
    transition: background-color 0.3s ease;
}

.page-resources-how-to-choose-platform__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

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

.page-resources-how-to-choose-platform__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFFF00; /* Yellow for toggle icon */
}

.page-resources-how-to-choose-platform__faq-item.active .page-resources-how-to-choose-platform__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an 'x' or 'minus' */
}

.page-resources-how-to-choose-platform__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
}

.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 all content */
    padding: 15px 25px 20px;
}

.page-resources-how-to-choose-platform__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

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

@media (max-width: 768px) {
    .page-resources-how-to-choose-platform {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources-how-to-choose-platform__hero-section {
        height: 500px;
    }
    .page-resources-how-to-choose-platform__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-resources-how-to-choose-platform__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-resources-how-to-choose-platform__btn-primary,
    .page-resources-how-to-choose-platform__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-how-to-choose-platform__criteria-grid {
        grid-template-columns: 1fr;
    }
    .page-resources-how-to-choose-platform__card {
        padding: 20px;
        min-height: auto;
    }
    .page-resources-how-to-choose-platform__section-title {
        font-size: 1.8em;
    }
    .page-resources-how-to-choose-platform__paragraph {
        font-size: 0.95em;
    }
    .page-resources-how-to-choose-platform__list-item {
        padding: 12px 15px;
    }
    .page-resources-how-to-choose-platform__faq-question {
        padding: 15px 20px;
    }
    .page-resources-how-to-choose-platform__faq-title {
        font-size: 1.1em;
    }
    .page-resources-how-to-choose-platform__faq-answer {
        padding: 0 20px;
    }
    .page-resources-how-to-choose-platform__faq-item.active .page-resources-how-to-choose-platform__faq-answer {
        padding: 10px 20px 15px;
    }

    /* Images and containers responsiveness for mobile */
    .page-resources-how-to-choose-platform img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !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;
    }
    /* Removed specific padding-top for hero-section in mobile as main handles it */
    .page-resources-how-to-choose-platform__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-resources-how-to-choose-platform__hero-section {
        height: 400px;
    }
    .page-resources-how-to-choose-platform__main-title {
        font-size: 1.8em;
    }
    .page-resources-how-to-choose-platform__hero-description {
        font-size: 0.9em;
    }
    .page-resources-how-to-choose-platform__btn-primary {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-resources-how-to-choose-platform__section-title {
        font-size: 1.5em;
    }
    .page-resources-how-to-choose-platform__card-title {
        font-size: 1.4em;
    }
    .page-resources-how-to-choose-platform__faq-title {
        font-size: 1em;
    }
}