/* ==========================================================
   SECTION: Driven Text
   Description: Styling for section headings or key statements
========================================================== */
.driven-text {
    font-size: 24px;
    font-weight: var(--font-weight-light);
    margin: 40px 0 0 0;
    color: var(--primary-color);
}

/* ==========================================================
   SECTION: Feature & Vision Wrapper
   Description: Shared layout styles for sections with centered content
========================================================== */
.feat-salution-main,
.vision-main {
    padding: 140px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 60px;
}

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

/* ==========================================================
   SECTION: Feature Cards (Interactive Cards with Active State)
========================================================== */
.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;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s ease;
    overflow: hidden;
    position: relative;
    color: var(--primary-color);
    padding: 0 14px 0 24px;
}

/* Active state expands card */
.feature-card.active {
    flex: 0 0 40%;
}

/* Active background images (per card) */
.feature-card.active[data-feature="1"] {
    background-image: url("../assets/images/feature-card-1.webp");
}
.feature-card.active[data-feature="2"] {
    background-image: url("../assets/images/feature-card-2.webp");
}
.feature-card.active[data-feature="3"] {
    background-image: url("../assets/images/feature-card-3.webp");
}
.feature-card.active[data-feature="4"] {
    background-image: url("../assets/images/feature-card-4.webp");
}

.feature-card.active {
    background-size: cover;
    background-position: center;
}

/* Semi-transparent overlay on active card */
.feature-card.active::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--overlay);
    backdrop-filter: blur(1px);
    z-index: 1;
}

/* Content layering above overlay */
.feature-card__title,
.feature-card__description {
    position: relative;
    z-index: 2;
}

/* Typography for titles */
.feature-card__title {
    margin: 10px 0;
    font-size: 50px;
    font-weight: var(--font-weight-semibold);
}

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

/* Non-active card text size adjustments */
.feature-card:not(.active) .feature-card__title {
    font-size: 35px;
    line-height: 22px;
    font-weight: var(--font-weight-semibold);
}

.feature-card:not(.active) .feature-card__description {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    line-height: 32px;
}

/* ==========================================================
   SECTION: Features Grid
   Description: Grid layout for feature listing with borders
========================================================== */
.features-container {
    width: 100%;
    margin: 36px 0 0 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.feature-item {
    padding: 50px;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-image: var(--LinearforSee) 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 24px;
}

/* Remove right border for every 2nd item */
.feature-item:nth-child(2n) {
    border-right: none;
}

/* Remove bottom border for last row */
.feature-item:nth-last-child(-n + 2) {
    border-bottom: none;
}

/* Icon + title layout */
.feature-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

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

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

/* ==========================================================
   SECTION: Swiper Slider
   Description: Custom styling for Swiper.js slides
========================================================== */
.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 - Swiper Slide
========================================================== */
@media (max-width: 1250px) {
    .driven-text {
        font-size: 20px;
        text-align: start;
    }
    .feat-salution-main,
    .vision-main {
        padding: 50px 0 0 0;
    }
    .vision-img {
        height: 400px;
    }
    .heading-wrapping {
        text-align: start;
    }
    .feat-salution-main,
    .vision-main,
    .service-bg {
        gap: 40px;
    }
    .feature-cards {
        margin: 40px 0;
    }
    .feat-salution-main,
    .vision-main {
        align-items: flex-start;
    }
    .swiper {
        margin: 30px 0 40px 0;
    }
    .feature-item {
        padding: 20px 30px;
    }
    .feature-card__description,
    .feature-title {
        font-size: 24px;
    }
    .feature-description {
        font-size: 18px;
    }
    .feature-item:nth-last-child(-n + 1) {
        border-bottom: none !important;
    }
    .feature-card:not(.active) .feature-card__description {
        line-height: 20px;
    }
}
@media (max-width: 768px) {
    .swiper-slide h1 {
        font-size: 18px;
    }

    .swiper-slide p {
        font-size: 14px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        text-align: center;
        border-right: none;
        border-bottom: 2px solid transparent !important;
        border-image: var(--LinearforSee) 1;
    }

    /* Remove bottom border for last item only */
    .feature-item:last-child {
        border-bottom: none;
    }

    .feature-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-description {
        margin-left: auto;
        margin-right: auto;
    }
    .feature-cards {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .feature-card {
        flex: 0 0 95%;
        height: 300px;
        min-height: 300px;
        min-width: 95%;
    }

    .feature-card.active {
        flex: 0 0 100%;
        height: 300px;
        min-height: 300px;
        min-width: 100%;
    }
    .features-container {
        margin: 0;
    }
}
@media (max-width: 680px) {
    .driven-text {
        font-size: 18px;
    }
    .feature-item {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .swiper-slide {
        width: 270px !important;
        height: 270px !important;
        padding: 16px 12px;
    }

    .swiper-slide h1 {
        font-size: 18px;
    }

    .swiper-slide p {
        font-size: 14px;
    }
}
