/* 
  7 Kings Marketing - Digital Services Component
  Bootstrap 5 Accordion Integration - Stacked Image Shutter Effect
*/

.digital-services-component {
    padding: 80px 0;
    background-color: #f8f9fa;
    width: 100%;
    margin: 0 auto;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.digital-services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    padding: 0 15px;
}

.digital-services-header .digital-eyebrow {
    flex: 0 0 25%;
}

/* Header, Eyebrow, Title (Keeping from previous version) */
.digital-services-header .digital-eyebrow .field--name-field-eyebrow {
    display: flex;
    align-items: center;
    color: #6C757D;
    font-size: 15px;
    font-weight: 500;
}

.digital-services-header .digital-eyebrow .field--name-field-eyebrow::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #30A3FF;
    margin-right: 12px;
}

.digital-services-header .digital-title h2 {
    font-size: 48px;
    font-weight: 700;
    color: #002B44;
}

/* 2-Column Layout */
.digital-services-layout {
    display: flex !important;
    flex-wrap: wrap;
    border-top: 1px solid #d9e1e7;
}

.accordion-column {
    flex: 0 0 50%;
    max-width: 50%;
}

.images-stack-column {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Accordion Rows */
.digital-services-items .accordion-item {
    background-color: #f1f5f7 !important;
    border: none !important;
    border-bottom: 1px solid #d9e1e7 !important;
    border-radius: 0 !important;
}

.digital-accordion-button {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
}

.digital-accordion-button:focus {
    box-shadow: none !important;
}

.digital-accordion-button::after {
    display: none !important;
}

.digital-accordion-button .item-number {
    font-size: 15px;
    color: #6a7d8a;
    width: 170px;
    padding-left: 20px;
}

.digital-accordion-button .item-title {
    /* padding: 24px 0 24px 45px; */
    padding: 7px 0 7px 45px;
    border-left: 1px solid #d9e1e7 !important;
    font-size: 26px;
    color: #8c98a0;
    transition: all 0.3s ease;
}

/* Hide header title when expanded as requested earlier */
.digital-accordion-button:not(.collapsed) .item-title {
    font-size: 0;
    padding: 2rem;
}

.digital-accordion-button:not(.collapsed) {
    /* border-top: 1px solid #d9e1e7 !important; */
}

/* Expanded Content (Left side) */
.service-item-content-left {
    padding: 0 40px 40px 170px;
}

.service-detail-col {
    margin-top: 31px;
}

.service-detail-col .field--name-field-item-title {
    font-size: 25px;
    color: #0A0A0A;
    font-weight: 600;
    margin-bottom: 20px;
}

.service-detail-col .field--name-field-item-description {
    font-size: 17px;
    color: #555;
    line-height: 1.75;
    margin-bottom: 30px;
}

.service-features-list .field--item {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #002B44;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-features-list .field--item::before {
    content: "+";
    color: #30A3FF;
    font-weight: 800;
    margin-right: 12px;
}

.service-read-more a {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccd1d8;
    color: #002B44;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.service-read-more a::before {
    content: "\2192";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #30A3FF;
    color: #fff;
    border-radius: 50%;
    margin-right: 15px;
}

/* Shutter Image Stack Column */
.images-stack-column {
    background-color: #f1f5f7;
    overflow: hidden;
}

.images-stack-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.image-stack-item {
    height: 46px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.image-stack-item.is-active {
    flex-grow: 1;
}

.image-stack-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.image-stack-item:not(.is-active) img {
    transform: scale(1.1);
    /* Zoom effect for slices if desired */
    filter: brightness(0.9);
}

/* Sync with vertical line */
.images-stack-wrapper::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #d9e1e7;
    z-index: 10;
}

@media (max-width: 991px) {
    .accordion-column {
        border-right: none;
    }
}