@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

.aafe-services-showcase-wrapper {
    position: relative;
    width: 100%;
    background-color: #0a0a0a; /* Default dark theme */
    padding: 50px; /* Default padding */
    --aafe-hover-scale: 1.03;
    --aafe-transition: 300ms;
    --aafe-overlay-color: rgba(0,0,0,0.5);
}

.aafe-services-showcase-wrapper * {
    box-sizing: border-box;
    transition: all var(--aafe-transition, 300ms) ease;
}

/* Typography Standard */
.aafe-services-showcase-wrapper h1,
.aafe-services-showcase-wrapper h2,
.aafe-services-showcase-wrapper h3,
.aafe-services-showcase-wrapper h4,
.aafe-services-showcase-wrapper h5,
.aafe-services-showcase-wrapper h6 { 
    font-family: 'Sora', sans-serif; 
    margin: 0;
}

.aafe-services-showcase-wrapper p,
.aafe-services-showcase-wrapper span,
.aafe-services-showcase-wrapper li,
.aafe-services-showcase-wrapper a,
.aafe-services-showcase__label,
.aafe-services-showcase__desc { 
    font-family: 'Inter', sans-serif; 
}

/* Layout */
.aafe-services-showcase__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px; /* Overridden by widget control */
}

/* Left Side: Previews */
.aafe-services-showcase__left {
    width: 30%; /* Overridden by widget control */
    position: sticky;
    top: 50px;
}

.aafe-services-showcase__preview-container {
    position: relative;
    width: 100%;
}

.aafe-services-showcase__preview-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
}

.aafe-services-showcase__preview-item.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.aafe-services-showcase__img-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
    overflow: hidden;
}

.aafe-services-showcase__overlay {
    position: absolute;
    inset: 0;
    background-color: var(--aafe-overlay-color);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity var(--aafe-transition, 300ms) ease;
}

.aafe-services-showcase__img {
    width: 100%;
    height: 300px; /* Overridden by control */
    object-fit: cover;
    display: block;
}

.aafe-services-showcase__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aafe-services-showcase__label {
    font-size: 14px;
    color: #aaaaaa;
}

.aafe-services-showcase__desc {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
}

/* Right Side: List */
.aafe-services-showcase__right {
    width: calc(100% - 30% - 40px); /* Adjusts via calc */
}

.aafe-services-showcase__list {
    display: flex;
    flex-direction: column;
}

.aafe-services-showcase__list-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 30px 0;
    border-bottom: 1px solid #222222;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aafe-services-showcase__list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.aafe-services-showcase__mobile-body {
    display: none; /* Hidden on desktop */
}

.aafe-services-showcase__list-item:last-child {
    border-bottom: none;
}

.aafe-services-showcase__list-title {
    font-size: 60px;
    color: #333333;
    letter-spacing: -0.04em;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.aafe-services-showcase__list-num {
    font-size: 14px;
    font-weight: 700;
    color: #555555;
    transition: color 0.3s ease;
}

.aafe-services-showcase__list-num-val {
    transition: color 0.3s ease;
}

/* Hover/Active States */
.aafe-services-showcase__list-item:hover .aafe-services-showcase__list-title {
    transform: translateX(10px);
}

.aafe-services-showcase__list-item.is-active .aafe-services-showcase__list-title {
    color: #ffffff;
}

.aafe-services-showcase__list-item.is-active .aafe-services-showcase__list-num-val {
    color: #ff3333;
}

/* Standard Hover Effects System */
.aafe-services-showcase-wrapper[data-hover="lift"] .aafe-services-showcase__preview-item.is-active:hover .aafe-services-showcase__img-wrap {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.aafe-services-showcase-wrapper[data-hover="scale"] .aafe-services-showcase__preview-item.is-active:hover .aafe-services-showcase__img {
    transform: scale(var(--aafe-hover-scale, 1.03));
}

.aafe-services-showcase-wrapper[data-hover="glow"] .aafe-services-showcase__preview-item.is-active:hover .aafe-services-showcase__img-wrap {
    box-shadow: 0 0 0 3px #4F46E5, 0 8px 30px rgba(79,70,229,0.25);
}

.aafe-services-showcase-wrapper[data-hover="border-pop"] .aafe-services-showcase__img-wrap {
    border: 2px solid transparent;
}
.aafe-services-showcase-wrapper[data-hover="border-pop"] .aafe-services-showcase__preview-item.is-active:hover .aafe-services-showcase__img-wrap {
    border-color: #4F46E5;
    transform: scale(1.01);
}

.aafe-services-showcase-wrapper[data-hover="overlay"] .aafe-services-showcase__preview-item.is-active:hover .aafe-services-showcase__overlay {
    opacity: 1;
}

.aafe-services-showcase-wrapper[data-hover="shine"] .aafe-services-showcase__img-wrap {
    position: relative;
    overflow: hidden;
}
.aafe-services-showcase-wrapper[data-hover="shine"] .aafe-services-showcase__preview-item::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
    z-index: 3;
}
.aafe-services-showcase-wrapper[data-hover="shine"] .aafe-services-showcase__preview-item.is-active:hover::after {
    left: 125%;
    transition: left var(--aafe-transition, 600ms) ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .aafe-services-showcase__list-title {
        font-size: 40px;
    }
}

@media (max-width: 767px) {
    .aafe-services-showcase__inner {
        flex-direction: column !important;
    }
    .aafe-services-showcase__left {
        display: none !important; /* Hide sticky left column */
    }
    .aafe-services-showcase__right {
        width: 100% !important;
    }
    .aafe-services-showcase__list-title {
        font-size: 32px;
    }
    
    /* Mobile Accordion Logic */
    .aafe-services-showcase__mobile-body {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows var(--aafe-transition, 300ms) ease;
        width: 100%;
    }
    .aafe-services-showcase__list-item.is-active .aafe-services-showcase__mobile-body {
        grid-template-rows: 1fr;
    }
    .aafe-services-showcase__mobile-inner {
        overflow: hidden;
        padding-top: 0;
        transition: padding var(--aafe-transition, 300ms) ease;
    }
    .aafe-services-showcase__list-item.is-active .aafe-services-showcase__mobile-inner {
        padding-top: 20px;
        padding-bottom: 10px;
    }
    .aafe-services-showcase__mobile-inner .aafe-services-showcase__img-wrap {
        margin-bottom: 15px;
    }
}
