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

.digital-services-component {
    padding: 80px 0;
    background-color: #F0F2F4;;
    width: 100%;
    margin: 0 auto;
    font-family: '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: #3B4553;
    font-size: 16px;
    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: 43.9px;
    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: #F0F2F4 !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: #3B4553;
    width: 106px;
    /* 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: #3B4553;
    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 79px 40px 103px;
}

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

.service-detail-col .field--name-field-item-title {
    font-size: 25.9px;
    color: #0A0A0A;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: -0.18px;
    line-height: 39.2px; 
}

.service-detail-col .field--name-field-item-description {
    font-size: 18px;
    color: #555;
    line-height: 27px;
    font-weight: 400;
    letter-spacing: -0.18px;
}

.service-features-list .field--item {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #062B3E;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 29.99px;
}

.service-features-list .field--item::before {
    content: "";
    color: #30A3FF;
    font-weight: 800;
    margin-right: 12px;
    background-image: url(../images/pluse-icone-sr.svg);
    width: 14px;
    height: 14px;
}

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

.service-read-more a::before {
    content: "";
    width: 36px;
    height: 35px;
    background: #30A3FF;
    margin-right: 14px;
    background-image: url(../images/arrow-icon-sr.svg);
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 67%;
    background-size: auto;
}

/* 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;
    margin-bottom: 20px;
}
.image-stack-item.is-active > .field--name-field-item-image{
  height: 100%;
}

.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;
    }
}