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

/* Base styles for the page content, considering body background is #1a1a2e (dark) */
.page-index-core-features {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Inherit from body or shared, will be dark */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-index-core-features__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-index-core-features__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    background-color: #0A1931; /* Use main brand color for hero background */
}

.page-index-core-features__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-index-core-features__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.5); /* Darken video for text readability */
}

.page-index-core-features__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Above video, below content */
    cursor: pointer;
}

.page-index-core-features__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-index-core-features__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Auxiliary color for emphasis */
    line-height: 1.2;
}

.page-index-core-features__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

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

.page-index-core-features__btn-primary {
    background-color: #FFD700; /* Auxiliary color for primary action */
    color: #0A1931; /* Dark text for light background */
    border: 2px solid #FFD700;
}

.page-index-core-features__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-index-core-features__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-index-core-features__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A1931;
}

.page-index-core-features__btn-text {
    background-color: transparent;
    color: #FFD700;
    border: none;
    padding: 0;
    text-decoration: underline;
}

.page-index-core-features__btn-text:hover {
    color: #e6c200;
    text-decoration: none;
}

/* Section common styles */
.page-index-core-features__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #FFD700;
    position: relative;
    padding-bottom: 10px;
}

.page-index-core-features__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    border-radius: 2px;
}

.page-index-core-features__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #f0f0f0;
}

/* Dark Background Section */
.page-index-core-features__dark-section {
    background-color: #0A1931; /* Main brand color for dark sections */
    color: #ffffff;
    padding: 80px 0;
}

/* About Section */
.page-index-core-features__about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-core-features__card {
    background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    color: #ffffff; /* Ensure light text */
}

.page-index-core-features__card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.page-index-core-features__card-image {
    width: 100%;
    max-width: 400px; /* Constrain image size within card */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-index-core-features__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFD700;
}

.page-index-core-features__card-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Features Section */
.page-index-core-features__features-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Body background color */
}

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

.page-index-core-features__feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    height: 100%; /* Ensure cards are same height */
    display: flex;
    flex-direction: column;
}

.page-index-core-features__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-index-core-features__feature-image {
    width: 100%;
    height: 250px; /* Fixed height for feature images */
    object-fit: cover;
    display: block;
}

.page-index-core-features__feature-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index-core-features__feature-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #FFD700;
}

.page-index-core-features__feature-title a {
    color: #FFD700;
    text-decoration: none;
}

.page-index-core-features__feature-title a:hover {
    text-decoration: underline;
}

.page-index-core-features__feature-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* Advantages Section */
.page-index-core-features__advantages-section {
    padding: 80px 0;
}

.page-index-core-features__advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-core-features__advantage-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    color: #ffffff;
}

.page-index-core-features__advantage-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.page-index-core-features__advantage-icon {
    width: 100px; /* Display size, source image is 200x200 */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-index-core-features__advantage-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #FFD700;
}

.page-index-core-features__advantage-text {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 15px;
}

/* Getting Started Section */
.page-index-core-features__getting-started-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Body background color */
}

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

.page-index-core-features__step-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    color: #ffffff;
}

.page-index-core-features__step-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.page-index-core-features__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #FFD700;
    color: #0A1931;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-index-core-features__step-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFD700;
}

.page-index-core-features__step-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-index-core-features__faq-section {
    padding: 80px 0;
}

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

.page-index-core-features__faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index-core-features__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-index-core-features__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-index-core-features__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-index-core-features__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Adjust padding to match question */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

.page-index-core-features__faq-item.active .page-index-core-features__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px !important; /* Ensure padding is applied when active */
}

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

/* Call to Action Section */
.page-index-core-features__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-index-core-features__cta-content {
    max-width: 900px;
}

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

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

@media (max-width: 768px) {
    .page-index-core-features {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-index-core-features__hero-section {
        min-height: 500px;
        padding: 40px 0;
    }

    .page-index-core-features__hero-title {
        font-size: 2.2em;
    }

    .page-index-core-features__hero-description {
        font-size: 1em;
    }

    .page-index-core-features__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-index-core-features__btn-primary,
    .page-index-core-features__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 20px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-index-core-features__container {
        padding: 0 15px;
    }

    .page-index-core-features__section-title {
        font-size: 1.8em;
    }

    .page-index-core-features__section-description {
        margin-bottom: 30px;
    }

    .page-index-core-features__about-cards,
    .page-index-core-features__feature-grid,
    .page-index-core-features__advantage-grid,
    .page-index-core-features__steps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-index-core-features__card,
    .page-index-core-features__feature-card,
    .page-index-core-features__advantage-item,
    .page-index-core-features__step-card {
        padding: 25px;
    }

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

    .page-index-core-features__feature-content {
        padding: 20px;
    }

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

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

    .page-index-core-features__faq-item.active .page-index-core-features__faq-answer {
        padding: 15px 20px 20px 20px !important;
    }

    /* Images and Videos Responsive */
    .page-index-core-features img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover; /* Ensure images fill their space */
    }

    .page-index-core-features video,
    .page-index-core-features__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-index-core-features__video-section,
    .page-index-core-features__video-container,
    .page-index-core-features__video-wrapper,
    .page-index-core-features__section,
    .page-index-core-features__card,
    .page-index-core-features__container,
    .page-index-core-features__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-index-core-features__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-index-core-features__hero-title {
        font-size: 1.8em;
    }
    .page-index-core-features__section-title {
        font-size: 1.5em;
    }
    .page-index-core-features__hero-content {
        padding: 20px 15px;
    }
}