@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-hero-features-wrapper {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    /* Default spacing */
    min-height: 800px;
    padding: 50px;
}

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

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

.aafe-hero-features-wrapper p,
.aafe-hero-features-wrapper span,
.aafe-hero-features-wrapper li,
.aafe-hero-features-wrapper a,
.aafe-hero-features__sub-title,
.aafe-hero-features__item-title,
.aafe-hero-features__item-desc,
.aafe-hero-features__avatar-badge { 
    font-family: 'Inter', sans-serif; 
    margin: 0;
}

/* Overlay Layer */
.aafe-hero-features__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.aafe-hero-features__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

/* TOP BAR */
.aafe-hero-features__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.aafe-hero-features__logo img {
    max-width: 100px; /* Overridden by control */
    height: auto;
    display: block;
}

.aafe-hero-features__avatars-wrap {
    display: flex;
    align-items: center;
}

.aafe-hero-features__avatars {
    display: flex;
    align-items: center;
}

.aafe-hero-features__avatar-item {
    display: flex;
    border-radius: 50%;
    overflow: hidden;
}

.aafe-hero-features__avatar-item + .aafe-hero-features__avatar-item {
    margin-left: -15px; /* Overridden by control */
}

.aafe-hero-features__avatar-img {
    width: 45px; /* Overridden by control */
    height: 45px; /* Overridden by control */
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ffffff; /* Overridden by control */
}

.aafe-hero-features__avatar-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px; /* Match avatar size for perfect circle */
    height: 45px;
    border-radius: 50px;
    background-color: #111111;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-left: -15px; /* Overlap */
    border: 2px solid #ffffff;
    z-index: 10;
    padding: 0 8px;
}

/* CENTER CONTENT */
.aafe-hero-features__center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto 0; /* Push to center of remaining space */
    width: 100%;
    max-width: 800px;
}

.aafe-hero-features__main-title {
    font-size: 80px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.aafe-hero-features__sub-title {
    font-size: 20px;
    color: #dddddd;
    line-height: 1.4;
}

/* BOTTOM FEATURES */
.aafe-hero-features__bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; /* Overridden by control */
    width: 100%;
    margin-top: auto;
}

.aafe-hero-features__item {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.aafe-hero-features__num {
    font-size: 40px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
    min-width: 40px; /* Control */
    margin-right: 15px;
}

.aafe-hero-features__item-content {
    display: flex;
    flex-direction: column;
}

.aafe-hero-features__item-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.aafe-hero-features__item-desc {
    font-size: 14px;
    color: #aaaaaa;
    line-height: 1.5;
}

.aafe-hero-features__item-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 6px;
    border-top: 2px solid #ff3333; /* Control */
    border-right: 2px solid #ff3333; /* Control */
}

/* Hover Effects */
.aafe-hero-features-wrapper[data-hover="lift"] .aafe-hero-features__item:hover {
    transform: translateY(-5px);
}
.aafe-hero-features-wrapper[data-hover="scale"] .aafe-hero-features__item:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .aafe-hero-features__main-title {
        font-size: 60px;
    }
    .aafe-hero-features__bottom {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .aafe-hero-features-wrapper {
        padding: 30px 20px;
    }
    .aafe-hero-features__main-title {
        font-size: 40px;
    }
    .aafe-hero-features__sub-title {
        font-size: 16px;
    }
    .aafe-hero-features__bottom {
        grid-template-columns: 1fr;
    }
    .aafe-hero-features__top {
        flex-direction: column;
        gap: 20px;
    }
}
