/* style/resources-platform-advantages.css */

/* Base styles for the page content */
.page-resources-platform-advantages {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Matches body background */
}

/* Container for consistent spacing */
.page-resources-platform-advantages__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-resources-platform-advantages__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources-platform-advantages__dark-section {
    background-color: #017439; /* Brand color as background */
    color: #ffffff;
}

.page-resources-platform-advantages__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-resources-platform-advantages__hero-section {
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    padding-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources-platform-advantages__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom color for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-platform-advantages__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-platform-advantages__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Call to Action Group */
.page-resources-platform-advantages__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-resources-platform-advantages__btn-primary,
.page-resources-platform-advantages__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-resources-platform-advantages__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-resources-platform-advantages__btn-primary:hover {
    background-color: #a80707;
    border-color: #a80707;
}

.page-resources-platform-advantages__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-resources-platform-advantages__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

/* Section Title */
.page-resources-platform-advantages__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: inherit; /* Inherit from section for contrast */
}

/* Text Block */
.page-resources-platform-advantages__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-platform-advantages__text-block a {
    color: #FFFF00; /* Highlight links */
    text-decoration: underline;
}

.page-resources-platform-advantages__text-block a:hover {
    color: #a80707;
}

/* Images in content */
.page-resources-platform-advantages__image-full {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-platform-advantages__image-centered {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Features Grid */
.page-resources-platform-advantages__features-section {
    padding: 80px 0;
}

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

.page-resources-platform-advantages__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark section */
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff; /* Light text for dark card background */
}

.page-resources-platform-advantages__feature-card .page-resources-platform-advantages__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFFF00; /* Highlight card titles */
}

.page-resources-platform-advantages__feature-card .page-resources-platform-advantages__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources-platform-advantages__feature-card .page-resources-platform-advantages__card-link {
    display: inline-block;
    color: #FFFF00;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.page-resources-platform-advantages__feature-card .page-resources-platform-advantages__card-link:hover {
    color: #a80707;
}

/* Video Section */
.page-resources-platform-advantages__video-section {
    padding: 80px 0;
    text-align: center;
}

.page-resources-platform-advantages__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px; /* Max width for video */
    margin: 0 auto 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-platform-advantages__video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.page-resources-platform-advantages__video-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Promotions Section */
.page-resources-platform-advantages__promotions-section {
    padding: 80px 0;
}

/* FAQ Section */
.page-resources-platform-advantages__faq-section {
    padding: 80px 0;
    text-align: center;
}

.page-resources-platform-advantages__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark section */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff; /* Light text for dark background */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-platform-advantages__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-resources-platform-advantages__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-platform-advantages__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFFF00;
}

.page-resources-platform-advantages__faq-item.active .page-resources-platform-advantages__faq-toggle {
    transform: rotate(45deg); /* Change to X or rotate */
    content: '−'; /* Change to minus sign */
}

.page-resources-platform-advantages__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    text-align: left;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources-platform-advantages__faq-item.active .page-resources-platform-advantages__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 15px 25px;
}

.page-resources-platform-advantages__faq-answer p {
    margin-bottom: 10px;
    font-size: 1em;
    color: #f0f0f0;
}

/* Contact CTA Section */
.page-resources-platform-advantages__contact-cta-section {
    padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-platform-advantages__main-title {
        font-size: 2.5em;
    }
    .page-resources-platform-advantages__section-title {
        font-size: 2em;
    }
    .page-resources-platform-advantages__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .page-resources-platform-advantages__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Fixed header offset on mobile for the first section if shared.css doesn't handle body padding */
    .page-resources-platform-advantages__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources-platform-advantages__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-resources-platform-advantages__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-resources-platform-advantages__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-platform-advantages__btn-primary,
    .page-resources-platform-advantages__btn-secondary,
    .page-resources-platform-advantages a[class*="button"],
    .page-resources-platform-advantages 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-platform-advantages__cta-buttons,
    .page-resources-platform-advantages__button-group,
    .page-resources-platform-advantages__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-resources-platform-advantages__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources-platform-advantages__text-block {
        font-size: 0.95em;
    }

    .page-resources-platform-advantages__grid {
        grid-template-columns: 1fr;
    }

    /* Image responsive handling */
    .page-resources-platform-advantages img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-platform-advantages__section,
    .page-resources-platform-advantages__card,
    .page-resources-platform-advantages__container,
    .page-resources-platform-advantages__video-section,
    .page-resources-platform-advantages__video-container,
    .page-resources-platform-advantages__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video responsive handling */
    .page-resources-platform-advantages__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .page-resources-platform-advantages__video-wrapper video {
        width: 100% !important;
        height: 100% !important;
    }

    .page-resources-platform-advantages__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-resources-platform-advantages__faq-answer {
        padding: 0 20px;
    }

    .page-resources-platform-advantages__faq-item.active .page-resources-platform-advantages__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources-platform-advantages__main-title {
        font-size: 1.7em;
    }
    .page-resources-platform-advantages__section-title {
        font-size: 1.5em;
    }
    .page-resources-platform-advantages__btn-primary,
    .page-resources-platform-advantages__btn-secondary {
        padding: 12px 20px;
    }
    .page-resources-platform-advantages__faq-question {
        font-size: 1em;
    }
}