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

:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --background-dark: #0D0E12;
    --card-background: #17191F;
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
}

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

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

.page-index-platform-features__dark-section {
    background-color: var(--background-dark);
    color: var(--text-main);
}

.page-index-platform-features__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Minimal top padding, rely on body for header offset */
    padding-bottom: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.page-index-platform-features__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px;
    margin-bottom: 40px;
}

.page-index-platform-features__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-index-platform-features__hero-title {
    font-size: 3.2em;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-index-platform-features__hero-description {
    font-size: 1.2em;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-index-platform-features__btn-primary,
.page-index-platform-features__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    text-align: center;
}

.page-index-platform-features__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
    color: #ffffff;
    border: none;
}

.page-index-platform-features__btn-primary:hover {
    background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

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

.page-index-platform-features__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-index-platform-features__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 50px;
    padding-top: 40px;
}

.page-index-platform-features__section-description {
    font-size: 1.1em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-platform-features__features-section {
    padding: 80px 0;
}

.page-index-platform-features__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-index-platform-features__feature-card {
    background-color: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-index-platform-features__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.page-index-platform-features__feature-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-index-platform-features__card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-index-platform-features__card-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-index-platform-features__card-text {
    font-size: 1em;
    color: var(--text-main);
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-index-platform-features__btn-text {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.page-index-platform-features__btn-text:hover {
    color: var(--glow-color);
}

.page-index-platform-features__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-index-platform-features__cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-index-platform-features__faq-section {
    padding: 80px 0;
}

.page-index-platform-features__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-index-platform-features__faq-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-index-platform-features__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
}

.page-index-platform-features__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-index-platform-features__faq-item[open] .page-index-platform-features__faq-toggle {
    transform: rotate(45deg);
}

.page-index-platform-features__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-main);
    line-height: 1.7;
}

.page-index-platform-features__faq-answer p {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-index-platform-features__hero-title {
        font-size: 2.8em;
    }

    .page-index-platform-features__section-title {
        font-size: 2.2em;
    }

    .page-index-platform-features__feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

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

    .page-index-platform-features__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-index-platform-features__hero-section {
        padding-top: 10px !important; /* Fixed header spacing */
        padding-bottom: 40px;
        min-height: auto;
    }

    .page-index-platform-features__hero-image {
        max-height: 400px;
        margin-bottom: 20px;
    }

    .page-index-platform-features__hero-content {
        padding: 0 15px;
    }

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

    .page-index-platform-features__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-index-platform-features__hero-buttons,
    .page-index-platform-features__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden;
    }

    .page-index-platform-features__btn-primary,
    .page-index-platform-features__btn-secondary,
    .page-index-platform-features a[class*="button"],
    .page-index-platform-features a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-index-platform-features__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-top: 20px;
    }

    .page-index-platform-features__section-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-index-platform-features__features-section,
    .page-index-platform-features__cta-section,
    .page-index-platform-features__faq-section {
        padding: 40px 0;
    }

    .page-index-platform-features__feature-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-index-platform-features__feature-image {
        height: 200px;
    }

    .page-index-platform-features__card-title {
        font-size: 1.4em;
    }

    .page-index-platform-features__card-text {
        font-size: 0.95em;
    }

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

    .page-index-platform-features__faq-answer {
        padding: 0 20px 15px;
    }

    /* Universal image and container responsive styles */
    .page-index-platform-features img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-index-platform-features__section,
    .page-index-platform-features__card,
    .page-index-platform-features__container,
    .page-index-platform-features__feature-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden;
    }

    .page-index-platform-features__feature-card { /* Override padding for feature card as it has its own padding for content */
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-index-platform-features__feature-grid { /* Ensure grid does not overflow */
        padding-left: 15px;
        padding-right: 15px;
        width: calc(100% - 30px); /* Adjust for padding */
        max-width: calc(100% - 30px);
        margin-left: auto;
        margin-right: auto;
        overflow-x: hidden;
    }
}