.afi-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--afi-bg-color, #eaf7fb);
}

.afi-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Left side text / feature list */
.afi-text {
    flex: 1;
}

.afi-title {
    font-size: var(--afi-title-size, 40px);
    color: var(--afi-title-color, #000);
    font-weight: 700;
    margin: 0 0 15px;
}

.afi-subtitle {
    font-size: var(--afi-subtitle-size, 18px);
    color: var(--afi-subtitle-color, #000);
    margin: 0 0 25px;
}

.afi-feature-list {
    margin-top: 10px;
}

/* Clickable feature rows (tabs) */
.afi-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
    padding: 10px 0;
    background: none;
    border: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    outline: none;
}

.afi-feature-item:hover {
    opacity: 0.85;
}
.afi-feature-item:hover .afi-feature-title {
    color: #007bc0 !important;
}
.afi-feature-item .afi-feature-title {
    transition: color 0.2s ease-in-out;
}

.afi-feature-item.is-active .afi-feature-title{
    opacity: 1;
    color: #007bc0;
}

.afi-feature-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--afi-number-bg, #00A8C8);
    color: var(--afi-number-text, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.afi-feature-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.afi-feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--afi-feature-text-color, #000);
}

.afi-feature-desc {
    font-size: 15px;
    color: var(--afi-feature-text-color, #000);
    text-wrap: auto;
}

/* Right side image panel (desktop) */
.afi-image-panel {
    flex: 1;
    text-align: center;
    position: relative;
}

.afi-image-panel-item {
    display: none;
}

.afi-image-panel-item.is-active {
    display: block;
}

.afi-image-panel-item img {
    max-width: 420px;
    width: 100%;
    height: auto;
}

/* Mobile slider */
.afi-mobile-slider {
    margin-top: 30px;
    display: none; /* hidden on desktop */
}

.afi-mobile-slide-inner img {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.afi-mobile-text {
    margin-top: 15px;
    text-align: center;
    color: var(--afi-feature-text-color, #000);
}

.afi-mobile-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--afi-number-bg, #00A8C8);
    color: var(--afi-number-text, #fff);
    font-weight: 700;
    margin-bottom: 8px;
}

.afi-mobile-text h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.afi-mobile-text p {
    margin: 0;
    font-size: 15px;
}

/* Swiper dots */
.afi-mobile-slider .swiper-pagination-bullet {
    background: var(--afi-dot-inactive, #cccccc);
    opacity: 1;
}

.afi-mobile-slider .swiper-pagination-bullet-active {
    background: var(--afi-dot-active, #00A8C8);
}

/* Image switching */
.afi-image-panel {
  position: relative;
}

.afi-mobile-slider .swiper {
  width: 100%;
  overflow: hidden;
}

.afi-mobile-slider .swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
}

.afi-mobile-slider .swiper-slide {
  flex-shrink: 0 !important;
  width: 100% !important;
}

/* Mobile specific: hide left accordion & show slider */
@media (max-width: 767px) {
    .afi-inner {
        display: block;
        text-align: center;
    }

    .afi-image-panel {
        display: none !important;
    }

    .afi-mobile-slider {
        display: block !important;
    }

    .afi-feature-list {
        display: none !important;
    }

    .afi-feature-item {
        justify-content: center;
    }
    /*.afi-swiper{*/
    /*    height: 815px;*/
    /*}*/
    .swiper-pagination{
        display: flex;
        justify-content: center;
        margin-top: 30px;
        position: relative;
    }
}

/* FORCE desktop two-column layout */
@media (min-width: 992px) {

    .afi-inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 40px !important;
    }

    .afi-text {
        flex: 1 1 50% !important;
        max-width: 50% !important;
    }

    .afi-image-panel {
        flex: 1 1 50% !important;
        max-width: 50% !important;
        display: block !important;
        position: relative !important;
        min-height: 400px !important;
        padding-top: 20px;
    }

    .afi-image-panel-item {
        display: none !important;
    }

    .afi-image-panel-item.is-active {
        display: block !important;
    }

    .afi-image-panel-item img {
        width: 100% !important;
        max-width: 450px !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }
}