/* ==========================================================================
   SECTION: Driven Text & General Layout
   ========================================================================== */

.driven-text {
    font-size: 24px;
    font-weight: var(--font-weight-light);
    margin: 40px 0 0 0;
    color: var(--primary-color);
}

.feat-salution-main,
.vision-main {
    padding: 140px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 60px;
}

/* ==========================================================================
   SECTION: Vision Image Block
   ========================================================================== */

.vision-img {
    height: 700px;
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
    box-shadow: var(--shadow);
}

.vision-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.vision-main p {
    margin: 0;
}

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

/* ==========================================================================
   SECTION: Neuro Surgery Layout
   Two-column structure with image and content
   ========================================================================== */

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

/* ==========================================================================
   SECTION: Why Choose Robotic
   Grid-based feature card layout
   ========================================================================== */

.Why-choose-robotic {
    padding: 120px 0 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 96px;
}

.robotic-flex {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.robotic-card {
    position: relative;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    height: 216px;
    transition: transform 0.5s ease-in-out;
}
.robotic-card:hover {
    transform: scale(1.03);
}
.robotic-card-header {
    display: flex;
    gap: 14px;
    align-items: center;
}

.robotic-card-header h1 {
    font-size: 30px;
    font-weight: var(--font-weight-normal);
    color: var(--primary-color);
}

.robotic-card p {
    font-size: 20px;
    color: var(--primary-color);
    line-height: 32px;
    font-weight: var(--font-weight-light);
}

/* ==========================================================================
   SECTION: Swiper Slider
   Horizontal scrolling feature slider
   ========================================================================== */

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

/* Link inside slide */
.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 ADJUSTMENTS
   Breakpoints for tablet and mobile screens
   ========================================================================== */

@media (max-width: 1250px) {
    .feat-salution-main,
    .vision-main,
    .Why-choose-robotic {
        padding: 80px 0 0 0;
    }
    .neuro-surgery-main {
        padding: 80px 0 0 0;
        flex-direction: column;
    }

    .neuro-surgery-left,
    .neuro-surgery-right {
        width: 100%;
    }
    .box:not(:last-child)::after {
        background: none;
    }
    .neuro-surgery-right {
        margin: 40px 0 0 0;
    }

    .driven-text {
        font-size: 20px;
        text-align: start;
    }
    .feat-salution-main,
    .vision-main,
    .Why-choose-robotic {
        gap: 40px;
    }
    .feat-salution-main,
    .vision-main,
    .Why-choose-robotic {
        align-items: self-start;
        text-align: left;
    }
    .robotic-card {
        height: auto;
    }
    .robotic-card p {
        font-size: 18px;
    }
    .vision-img {
        height: 400px;
    }
}
@media (max-width: 900px) {
    .robotic-flex {
        grid-template-columns: repeat(1, 1fr);
        width: 80%;
        margin: 0 auto;
    }
}
@media (max-width: 768px) {
    .driven-text {
        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) {
    .robotic-card-header {
        flex-direction: column;
    }
    .robotic-flex {
        width: 100%;
    }
    .robotic-card-header h1 {
        font-size: 24px;
    }
    .robotic-card {
        gap: 14px;
    }
    .swiper-slide {
        width: 300px !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;
    }
    .robotic-card-header h1 {
        font-size: 20px;
    }
    .robotic-card p {
        font-size: 16px;
        line-height: 26px;
    }
}
