/* .services-accordion-block {
    max-width: 1200px;
    margin: 0 auto;
} */

.header-list-wrapper{
    width: auto;
}

.heading-span{
    color: #009688;
}

.services-container {
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: 2rem; */
    /* max-width: 1200px;
    margin: 0 auto; */
}

.services-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

/* Services List Styles */
.services-list {
    /* border-right: 1px solid var(--wp--preset--color--border-light, #e0e0e0); */
    /* min-width: 500px; */
    margin-right: 1rem;
    background-color: #f4f4f4;
}

.service-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    /* border-radius: 8px; */
    transition: all 0.3s ease;
    margin: 0;
    border-top: 2px solid #ccc;
    /* border-bottom: 2px solid #ccc; */

}

.service-item h3{
    margin: 0;
}

.services-list > div:last-child .service-item {
    border-bottom: 2px solid #ccc; /* Apply bottom border to the very last service item */
}

.service-item:hover {
    background: #f8f9fa;
}

.service-item.active {
    color: var(--accent-color);
}

.service-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Service Details Styles */
.service-details {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: white;
    border-radius: 10px;
    background: var(--primary-color, #153c6e);  /* Robust Change */
	background-position: center;
}

.service-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.service-content.active {
    display: block;
}

.service-description {
    margin-bottom: 1.5rem;
    /* color: var(--wp--preset--color--text-secondary, #666); */
    line-height: 1.6;
}

.service-content .view-more-button {
  /* background: transparent; */
    background:var(--accent-color);
  /* color: var(--wp--preset--color--primary);
  border: 2px solid var(--wp--preset--color--primary); */
  padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--lg);
  border-radius: 8px;
  font-weight: 400;
  text-decoration: none;
  color: white;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-content .view-more-button:hover{
    background: var(--wp--preset--color--primary);
}

/* .services-description{
    max-width: 90%;
} */

/* Features List Styles */
.service-features h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--wp--preset--color--text-primary, #333);
}

.service-features ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style: none;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--wp--preset--color--text-secondary, #666);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--wp--preset--color--primary, #e91e63);
    font-weight: bold;
}

/* Editor-specific styles */
.add-service-button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    background: #f0f0f0;
    border: 1px dashed #999;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.remove-service {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item:hover .remove-service {
    opacity: 1;
}

.services-placeholder {
    padding: 2rem;
    text-align: center;
    border: 2px dashed #ccc;
    border-radius: 8px;
    margin: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-content-mobile{
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .services-heading, .services-description{
        text-align: center;
    }

    .services-heading, .services-description{
        text-align: center;
    }

    .services-list {
        padding-right: 0;
        background-color: #f4f4f4;
        margin-right: 0;
    }

    .service-details {
        display: none; /* Hide the right container on mobile */
    }

    /* Mobile accordion styles */
    .service-item {
        /* border-bottom: 2px solid #ccc; */
        width: 100%;
    }

    .service-item + .service-content-mobile {
        display: none;
        padding: 1rem;
        /* background: linear-gradient(34deg,rgb(26,79,92) 11%,rgb(233,30,99) 100%); */
        color: black;
    }

    .view-more-button{
        border: 1px solid var(--accent-color);
        background-color: transparent;
        color: var(--accent-color);
        padding: 10px 20px ;
        border-radius: 10px;
        text-decoration: none;
        transition: background 0.5s ease;
    }

    .view-more-button:hover{
        border: 0;

        background-color: var(--primary-color);
        color: white;
    }

    .service-item.active + .service-content-mobile {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    .service-item.active {
        border-bottom: 0;
    }

    .service-content-mobile[data-index='5']{
        border-bottom: 2px solid #ccc;
    }



    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}