.services-section {
    display: flex;
    gap: 80px;
    @media (width <= 1024px) {
       gap: 40px; 
    }
    @media (width <= 768px) {
        flex-direction: column;
    }
}

.services-list {
    --gap: 20px;
    display: flex;
    flex: 1 1 50%;
    flex-direction: column;
    gap: var(--gap);
}

.service-item {
    padding: 34px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    background-color: transparent;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;

    @media (width <= 1024px) {
        padding: 22px;
    }
    
    &:not(:first-child, :last-child)::before {
        content: '';
        position: absolute;
        top: calc(-1 * (var(--gap) / 2));
        left: 0;
        width: 100%;
        height: 1px;
        background-color: white;
    }

    &:not(:first-child, :last-child)::after {
        content: '';
        position: absolute;
        bottom: calc(-1 * (var(--gap) / 2));
        left: 0;
        width: 100%;
        height: 1px;
        background-color: white;
    }
}

.service-item :is(h1, h2, h3, h4, h5, h6) {
    font-size: 24px;
    margin-bottom: 10px;
    margin: 0;
    flex: 1;
    text-wrap: pretty;
    @media (width <= 768px) {
        font-size: 26px !important;
    }
}

.service-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 1px solid white;
    background-color: transparent;

    @media (width <= 768px) {
        width: 42px;
        height: 42px;
    }
}

.service-item.active .icon {
    transform: rotate(-45deg);
    border-color: var(--e-global-color-secondary);
    background-color: var(--e-global-color-secondary);

}

.service-item.active[data-icon-type="plus"] .icon .fa-plus:before {
    content: "\f068"; /* fa-minus */
}

.service-item:hover {
    background-color: rgba(255, 255, 255, 0.055);
}

.service-item.active:hover {
    background-color: var(--e-global-color-primary, #1a1a1a);
}

.service-item .arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.service-item.active .arrow {
    transform: translateY(-50%) rotate(10deg);
}

.content-area {
    position: relative;
    flex: 1 1 50%;
    min-height: 400px;
}

.service-content {
    position: absolute;
    opacity: 0;
    display: none;
    transition: opacity 1s ease, display 1s ease;
    transition-behavior: allow-discrete;
    width: 100%;
}

.service-content.active {
    opacity: 1;
    display: block;
    
    @starting-style {
        opacity: 0;
        display: block;
    }
}

.content-area .service-content img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 20px;
    max-height: 300px;
    object-fit: cover;
}

.service-content .content-text {
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .services-section {
        grid-template-columns: 1fr;
    }
} 