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

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --background-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --black-color: #000000;
}

.page-resources-platform-features {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-color);
}

.page-resources-platform-features__hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    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 not hidden by fixed header */
}

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

.page-resources-platform-features__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.page-resources-platform-features__hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    max-width: 900px;
    padding: 0 20px;
}

.page-resources-platform-features__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-resources-platform-features__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-resources-platform-features__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-resources-platform-features__section {
    padding: 80px 20px;
    text-align: center;
}

.page-resources-platform-features__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-resources-platform-features__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-resources-platform-features__section-description {
    font-size: 1.1em;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

.page-resources-platform-features__why-choose .page-resources-platform-features__section-title,
.page-resources-platform-features__why-choose .page-resources-platform-features__section-description {
    color: var(--text-dark);
}

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

.page-resources-platform-features__feature-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

.page-resources-platform-features__feature-item:hover {
    transform: translateY(-10px);
}

.page-resources-platform-features__feature-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-resources-platform-features__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources-platform-features__feature-text {
    font-size: 1em;
    color: var(--text-dark);
}

.page-resources-platform-features__outstanding-features {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources-platform-features__outstanding-features .page-resources-platform-features__section-title {
    color: var(--text-light);
}

.page-resources-platform-features__outstanding-features .page-resources-platform-features__section-description {
    color: var(--text-light);
}

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

.page-resources-platform-features__card {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: var(--text-dark);
}

.page-resources-platform-features__card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources-platform-features__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-resources-platform-features__card-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

.page-resources-platform-features__card-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.page-resources-platform-features__card-link:hover::after {
    transform: scaleX(1);
}

.page-resources-platform-features__promotions-section {
    background-color: var(--background-color);
}

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

.page-resources-platform-features__promo-item {
    background: var(--secondary-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-dark);
}

.page-resources-platform-features__promo-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources-platform-features__promo-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-resources-platform-features__promo-text {
    font-size: 0.95em;
    color: var(--text-dark);
}

.page-resources-platform-features__center-buttons {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-resources-platform-features__faq-section {
    background-color: #f8f8f8;
    text-align: left;
}

.page-resources-platform-features__faq-list {
    margin-top: 40px;
}

.page-resources-platform-features__faq-item {
    background: var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-resources-platform-features__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: var(--secondary-color);
    color: var(--text-dark);
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

.page-resources-platform-features__faq-question:hover {
    background: #f5f5f5;
}

.page-resources-platform-features__faq-title {
    margin: 0;
    font-size: 1.1em;
    color: var(--primary-color);
}

.page-resources-platform-features__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-resources-platform-features__faq-item.active .page-resources-platform-features__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-platform-features__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

.page-resources-platform-features__faq-item.active .page-resources-platform-features__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 20px;
}

.page-resources-platform-features__faq-answer p {
    margin-top: 0;
    margin-bottom: 10px;
}

.page-resources-platform-features__cta-bottom {
    padding: 60px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}

.page-resources-platform-features__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-resources-platform-features__cta-title {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-resources-platform-features__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-light);
}

/* Buttons */
.page-resources-platform-features__btn-primary,
.page-resources-platform-features__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-resources-platform-features__btn-primary {
    background-color: var(--login-color); /* Using login color for primary CTA */
    color: var(--text-light);
    border: 2px solid var(--login-color);
}

.page-resources-platform-features__btn-primary:hover {
    background-color: #c96806; /* Darken login color */
    border-color: #c96806;
}

.page-resources-platform-features__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-resources-platform-features__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* Specific button styling for sections where background is light */
.page-resources-platform-features__promotions-section .page-resources-platform-features__btn-primary {
    background-color: var(--login-color);
    color: var(--text-light);
    border-color: var(--login-color);
}

.page-resources-platform-features__promotions-section .page-resources-platform-features__btn-primary:hover {
    background-color: #c96806;
    border-color: #c96806;
}

.page-resources-platform-features__promotions-section .page-resources-platform-features__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-resources-platform-features__promotions-section .page-resources-platform-features__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-platform-features__hero-title {
        font-size: 3em;
    }
    .page-resources-platform-features__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-platform-features__hero-section {
        height: 60vh;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-resources-platform-features__hero-title {
        font-size: 2.2em;
    }
    .page-resources-platform-features__hero-description {
        font-size: 1em;
    }
    .page-resources-platform-features__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-platform-features__btn-primary,
    .page-resources-platform-features__btn-secondary {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-resources-platform-features__section {
        padding: 60px 15px;
    }

    .page-resources-platform-features__section-title {
        font-size: 1.8em;
    }
    .page-resources-platform-features__section-description {
        font-size: 0.95em;
    }

    .page-resources-platform-features__features-grid,
    .page-resources-platform-features__feature-cards,
    .page-resources-platform-features__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-resources-platform-features__feature-item,
    .page-resources-platform-features__card,
    .page-resources-platform-features__promo-item,
    .page-resources-platform-features__faq-item {
        padding: 20px;
    }

    .page-resources-platform-features__feature-icon,
    .page-resources-platform-features__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-platform-features__section,
    .page-resources-platform-features__card,
    .page-resources-platform-features__container,
    .page-resources-platform-features__cta-buttons,
    .page-resources-platform-features__button-group,
    .page-resources-platform-features__btn-container,
    .page-resources-platform-features__video-section,
    .page-resources-platform-features__video-container,
    .page-resources-platform-features__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-resources-platform-features__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-platform-features__cta-bottom {
        padding: 40px 15px;
    }

    .page-resources-platform-features__cta-title {
        font-size: 1.8em;
    }
    .page-resources-platform-features__cta-description {
        font-size: 1em;
    }

    /* Ensure content area images are responsive and not smaller than 200px */
    .page-resources-platform-features__feature-item img,
    .page-resources-platform-features__promo-item img {
      min-width: 200px !important;
      min-height: 200px !important;
    }

    /* Buttons specific mobile overrides */
    .page-resources-platform-features__cta-button,
    .page-resources-platform-features__btn-primary,
    .page-resources-platform-features__btn-secondary,
    .page-resources-platform-features a[class*="button"],
    .page-resources-platform-features 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-features__cta-buttons,
    .page-resources-platform-features__button-group,
    .page-resources-platform-features__btn-container {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-resources-platform-features__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-resources-platform-features__hero-title {
        font-size: 1.8em;
    }
    .page-resources-platform-features__hero-description {
        font-size: 0.9em;
    }
    .page-resources-platform-features__section-title {
        font-size: 1.5em;
    }
    .page-resources-platform-features__cta-title {
        font-size: 1.6em;
    }
}

/* Color Contrast Adjustments */
.page-resources-platform-features__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources-platform-features__dark-bg .page-resources-platform-features__section-title,
.page-resources-platform-features__dark-bg .page-resources-platform-features__section-description {
    color: var(--text-light);
}

.page-resources-platform-features__light-bg {
    background-color: var(--background-color);
    color: var(--text-dark);
}

.page-resources-platform-features__light-bg .page-resources-platform-features__section-title {
    color: var(--primary-color);
}

.page-resources-platform-features__light-bg .page-resources-platform-features__section-description {
    color: var(--text-dark);
}

.page-resources-platform-features__btn-primary {
    background-color: var(--login-color);
    color: var(--text-light);
    border-color: var(--login-color);
}

.page-resources-platform-features__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.page-resources-platform-features__promotions-section .page-resources-platform-features__btn-primary {
    background-color: var(--login-color);
    color: var(--text-light);
    border-color: var(--login-color);
}

.page-resources-platform-features__promotions-section .page-resources-platform-features__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Ensure content area images are not smaller than 200px (Desktop) */
.page-resources-platform-features__feature-item img,
.page-resources-platform-features__promo-item img {
  min-width: 200px;
  min-height: 200px;
}

/* No CSS filters allowed for images */
.page-resources-platform-features img {
  filter: none; /* Explicitly ensure no filters are applied */
}