/* File: styles/features.css */

.features-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 2rem;
    background-color: #FDF0E9; 
}

.container-features {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    flex-wrap: wrap;
}

.text-content {
    max-width: 50%;
    margin-top: 80px;
}

.text-content h3 {
    color: #00AEEF; 
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: normal
}

.text-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #391400;

}

.text-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #391400;

}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #391400;

}

.feature-list .icon {
    margin-right: 0.5rem;
}

.image-content {
    max-width: 50%;
}

.svg-image {
    width: 100%;
    height: auto; 
}

/* Dropdown Section */

.services-section {
    background-color: #FDF0E9;
    padding: 2rem;
}

.service-item {
    margin-bottom: 1rem;
}
.separator {
    border-bottom: 1px solid #F3D1BF;
    margin-bottom: 1rem;
    margin: 0 10rem 0 8rem;
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 1rem 0;
}

.service-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.service-header .icon {
    margin-left: 6.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.service-header .toggle-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    margin-right: 10rem;
}

.service-content {
    display: none;
    padding: 1rem 0;
    color: #5a4e4e;
    line-height: 1.6;
}

.service-item.active .service-content {
    display: block;
    align-content: center;
    margin: 0 13rem 0 13rem;
}

.service-item.active .toggle-icon {
    transform: rotate(180deg); 
}


@media (max-width: 950px) {
    .features-section {
        flex-direction: column;
        align-items: center; /* Center aligns content */
        padding: 2rem 1rem; /* Reduces padding for smaller screens */
    }

    .container-features {
        flex-direction: column; /* Stacks content vertically */
        gap: 1.5rem; /* Reduces gap between text and image */
    }

    .text-content {
        max-width: 100%; /* Allows text content to use full width */
        margin-top: 20px;
        text-align: center; /* Centers text for improved readability */
    }

    .text-content h1 {
        font-size: 2rem; /* Adjusts heading size */
    }

    .text-content p {
        margin-bottom: 1rem; /* Adjusts margin for better spacing */
    }

    .feature-list li {
        justify-content: start; /* Centers list items */
        margin-bottom: 0.5rem; /* Reduces space between list items */
    }

    .feature-list {
        padding-left: 10px; /* Removes default padding */
    }


    .image-content {
        max-width: 100%; /* Ensures image takes up full width */
        margin-top: 20px; /* Adds spacing above the image */
    }

    .svg-image {
        width: 100%; /* Ensures image scales properly */
        max-width: 600px; /* Optionally limit the max width of the image */
        height: auto; /* Maintains aspect ratio */
        justify-content: center;
    }

    .service-header .icon {
        margin-left: 1.3rem; /* Adjusts icon spacing */
    }

    .service-header .toggle-icon {
        margin-right: 0; /* Adjusts icon spacing */
    }

    .service-item {
        display: flex;
        flex-direction: column; /* Stacks elements vertically */
        align-items: center; /* Centers content horizontally */
        text-align: center; /* Centers text */
    }

    .service-header {
        width: 100%;
    }

    .service-content {
        max-width: 90%; /* Ensures the content doesn't stretch too wide */
        margin: 0 auto;
    }

    .service-content p {
        line-height: 1.6;
        max-width: 100%; /* Restricts paragraph width for better readability */
    }

    .service-content {
        display: none; /* Keep it hidden initially until triggered */
        padding: 1rem; /* Adjust padding for improved readability */
        /* color: #5a4e4e; */
        line-height: 1.6;
        max-width: 80%; /* Limit width for better text flow */
        margin: 0 auto; /* Center-align the text within the container */
    }
    
    .service-item.active .service-content {
        display: block;
        align-content: center;
        max-width: 100%; /* Adjust this as needed */
    }

    .service-item.active .service-content {
        margin: 0;
    }
}
