/* Flowchart Styles for Services Section */
.flowchart-container {
    position: relative;
    padding: 60px 0;
}

.flowchart-slider {
    position: relative;
}

.flowchart-slider .swiper {
    overflow: visible;
}

.flowchart-slider .swiper-wrapper {
    align-items: stretch;
}

.flowchart-row-4,
.flowchart-row-4.reverse {
    display: contents;
}

.flowchart-item.swiper-slide {
    position: relative;
    background: transparent;
    border-radius: 20px;
    padding: 35px 25px;
    min-height: 260px;
    transition: 0.3s;
    text-align: center;
    z-index: 1;
    overflow: visible;
    height: auto;
}

.flowchart-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: -40px;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    z-index: 0;
    clip-path: polygon(30% 0, 80% 5%, 99% 100%, 49% 100%);
}

.flowchart-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.flowchart-item:hover {
    transform: translateY(-6px);
}

.flowchart-item .step-number {
    position: absolute;
    top: 10%;
    left: 15%;
    transform: translate(-50%, -50%);
    font-size: 25px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.2);
    z-index: 2;
    line-height: 1;
    pointer-events: none;
}

.flowchart-item .item-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    position: relative;
    z-index: 2;
}

.flowchart-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.flowchart-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

/* Connector + Icon Colors (blue-to-green gradient) */
.flowchart-slider .flowchart-item::before,
.flowchart-slider .flowchart-item .item-icon {
    background: linear-gradient(135deg, #21549A 0%, #00a86b 100%);
}

/* Navigation Buttons */
.flowchart-btn {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.flowchart-button-prev,
.flowchart-button-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.flowchart-button-prev:hover,
.flowchart-button-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.flowchart-button-prev::before,
.flowchart-button-next::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
}

.flowchart-button-prev::before {
    transform: translate(-40%, -50%) rotate(-45deg);
}

.flowchart-button-next::before {
    transform: translate(-60%, -50%) rotate(135deg);
}

.flowchart-connector-down {
    display: none !important;
}

/* Responsive */
@media (max-width: 1399px) {
    .flowchart-item::before {
        right: -30px;
    }
}

@media (max-width: 991px) {
    .flowchart-item {
        min-height: 230px;
        padding: 28px 18px;
    }

    .flowchart-item::before {
        right: -22px;
    }

    .flowchart-item h3 {
        font-size: 18px;
    }

    .flowchart-item p {
        font-size: 14px;
    }
}

/* Mobile View (separate flowchart CSS) */
@media (max-width: 767px) {
    .flowchart-slider .swiper {
        overflow: hidden;
    }

    .flowchart-item.swiper-slide {
        width: 100% !important;
        max-width: 100%;
        min-height: 220px;
        height: 220px;
        padding: 15px 12px;
        border-radius: 14px;
        margin: 0;
    }

    .flowchart-item::before {
        right: -14px;
        border-radius: 18px;
    }

    .flowchart-item .step-number {
        left: 10%;
    }

    .flowchart-item .item-icon {
        width: 58px;
        height: 58px;
        font-size: 22px;
        margin-bottom: 16px;
    }

    .flowchart-item h3 {
        font-size: 17px;
    }

    .flowchart-item p {
        font-size: 14px;
        line-height: 1.5;
    }
}

@media (max-width: 575px) {
    .flowchart-item.swiper-slide {
        width: 100% !important;
        max-width: 100%;
        min-height: 220px;
        height: 220px;
    }

    .flowchart-item::before {
        right: -14px;
    }
}

/* Animation effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flowchart-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.flowchart-item:nth-child(1) { animation-delay: 0.1s; }
.flowchart-item:nth-child(2) { animation-delay: 0.2s; }
.flowchart-item:nth-child(3) { animation-delay: 0.3s; }
.flowchart-item:nth-child(4) { animation-delay: 0.4s; }
.flowchart-item:nth-child(5) { animation-delay: 0.5s; }
.flowchart-item:nth-child(6) { animation-delay: 0.6s; }
.flowchart-item:nth-child(7) { animation-delay: 0.7s; }
.flowchart-item:nth-child(8) { animation-delay: 0.8s; }
.flowchart-item:nth-child(9) { animation-delay: 0.9s; }
.flowchart-item:nth-child(10) { animation-delay: 1s; }
.flowchart-item:nth-child(11) { animation-delay: 1.1s; }
.flowchart-item:nth-child(12) { animation-delay: 1.2s; }
