/* =========================================================
   Typography & Base Text Styles
   ========================================================= */
.driven-text {
    font-size: 24px;
    font-weight: var(--font-weight-light);
    margin: 40px 0 0 0;
    color: var(--primary-color);
}

/* =========================================================
   Feature Solution & Vision Sections
   ========================================================= */
.feat-salution-main,
.vision-main {
    padding: 140px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 60px;
}

.vision-main p {
    margin: 0;
}

.vision-main h2 {
    color: var(--primary-color);
    text-align: center;
    font-size: 42px;
    font-weight: var(--font-weight-normal);
}

/* =========================================================
   Neuro Surgery Section
   ========================================================= */
.neuro-surgery-main {
    display: flex;
    justify-content: space-between;
    padding: 120px 0 0 0;
}

.neuro-surgery-left {
    width: 56%;
}

.neuro-surgery-right {
    width: 30%;
    height: 414px;
}

.neuro-surgery-right img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

/* =========================================================
   Why Choose Robotic Section
   ========================================================= */
.Why-choose-robotic {
    padding: 120px 0 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 96px;
}

/* =========================================================
   Feature Statistics Row Section
   ========================================================= */
.wrap {
    width: 100%;
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--clr-main);
    padding-bottom: 20px;
    flex-wrap: wrap;
}

.box {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 50px 0;
}

.box-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* Vertical divider line between boxes */
.box:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    padding: 1px;
    background: var(--LinearforSee);
    -webkit-mask: var(--LinearMask);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

.icon {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
}

.ttl {
    font-size: 30px;
    font-weight: var(--font-weight-normal);
    color: var(--primary-color);
}

.txt {
    font-size: 20px;
    color: var(--primary-color);
    line-height: 32px;
    font-weight: var(--font-weight-light);
    padding: 24px 0 0 0;
}

/* Top gradient line above footer */
.btm {
    position: relative;
    margin: 0 auto;
    text-align: center;
    padding-top: 50px;
    border-top: 2px solid transparent;
    border-image: var(--LinearforSee) 1;
}

/* =========================================================
   Feature Cards Section
   ========================================================= */
.feature-cards {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 60px 0 0 0;
}

.feature-card {
    flex: 0 0 19%;
    height: 400px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.5s ease;
    overflow: hidden;
    position: relative;
    color: var(--primary-color);
    padding: 60px 24px;
}

/* Expanded active card */
.feature-card.active {
    flex: 0 0 40%;
    justify-content: flex-start;
}

/* Active state gradient border and overlay */
.feature-card.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2px;
    background: var(--LinearforSee);
    -webkit-mask: var(--LinearMask);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    border-radius: var(--radius);
    pointer-events: none;
    inset: 0;
    background-color: var(--overlay);
    backdrop-filter: blur(1px);
    z-index: 1;
}

/* Card header */
.feature-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

/* Title & description */
.feature-card__title {
    font-size: 50px;
    font-weight: var(--font-weight-semibold);
}

.feature-card__description {
    font-size: 32px;
    font-weight: var(--font-weight-semibold);
}

/* Compact card state (non-active) */
.feature-card:not(.active) .feature-card__title {
    font-size: 35px;
    line-height: 22px;
}

.feature-card:not(.active) .feature-card__description {
    font-size: 14px;
    line-height: 20px;
}

.feature-card__para {
    display: none;
    font-size: 18px;
    font-weight: var(--font-weight-normal);
    line-height: 30px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.feature-card.active .feature-card__para {
    display: block;
}

/* =========================================================
   Swiper Slider Section
   ========================================================= */
.swiper {
    width: 100%;
    margin: 36px 0 140px 0;
    overflow: hidden;
    padding: 20px 0;
    box-sizing: border-box;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    flex-shrink: 0;
    width: 400px !important;
    height: 300px !important;
    display: flex !important;
    flex-direction: column;
    text-align: start;
    justify-content: space-between;
    padding: 28px 24px;
    border-radius: var(--radius);
    margin-right: 16px;
}

.swiper-slide h1 {
    font-size: 22px;
    color: var(--primary-color);
    font-weight: var(--font-weight-normal);
}

.swiper-slide p {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: var(--font-weight-light);
    line-height: 26px;
}

.swiper-slide a {
    font-size: 14px;
    font-weight: var(--font-weight-normal);
    color: #8c8c9b;
    transition: all 0.3s ease;
}

.swiper-slide a:hover {
    text-decoration: underline;
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 1250px) {
    .feat-salution-main,
    .vision-main,
    .neuro-surgery-main {
        padding: 80px 0 0 0;
        flex-direction: column;
    }

    .feature-cards,
    .row {
        flex-direction: column;
    }
    .box {
        border-bottom: 2px solid;
    }
    .feature-cards {
        gap: 40px;
    }
    .btm {
        border-top: none;
    }

    .neuro-surgery-left,
    .neuro-surgery-right {
        width: 100%;
    }
    .box:not(:last-child)::after {
        background: none;
    }
    .neuro-surgery-right {
        margin: 40px 0 0 0;
    }
    .feat-salution-main,
    .vision-main {
        align-items: flex-start;
        text-align: start;
        gap: 40px;
    }
    .driven-text {
        font-size: 20px;
        text-align: start;
    }
    .ttl {
        font-size: 24px;
    }
    .txt {
        font-size: 18px;
        padding: 10px 0 0 0;
    }
}
@media (max-width: 768px) {
    .driven-text {
        font-size: 18px;
    }

    .row {
        justify-content: center;
    }
    .feature-card__description {
        font-size: 26px;
    }
    .feature-card__para {
        font-size: 16px;
    }
    .feature-card:not(.active) .feature-card__description {
        font-size: 18px;
    }

    .swiper-slide h1 {
        font-size: 18px;
    }
    .swiper-slide p {
        font-size: 14px;
    }
    .features-container {
        margin: 0;
    }
    .image-slider {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .box-flex {
        flex-direction: column;
    }
    .swiper-slide {
        width: 270px !important;
        height: 270px !important;
        padding: 16px 12px;
    }
    .image-slider {
        height: 300px;
    }
    .swiper-slide h1 {
        font-size: 18px;
    }

    .swiper-slide p {
        font-size: 14px;
    }
    .feature-card__description {
        font-size: 24px;
    }
    .row {
        padding-bottom: 0;
        gap: 0;
    }
}
@media (max-width: 375px) {
    .ttl {
        font-size: 22px;
    }
}
