/* ================== Curvilinear Section ================== */
.curvilinear-section {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 80px 24px;
    background: #F6FBFB;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ================== Section Heading ================== */
.curvilinear-section h1 {
    width: 100%;
    text-align: center;
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 600;
    color: #0A2F2F;
    margin-bottom: 48px;

    /* IMPORTANT: prevent overflow & overlap */
    white-space: normal;
    word-break: break-word;
}

/* ================== Wrapper ================== */
.curvilinear-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

/* ================== Slider Container ================== */
.curvilinear-container {
    width: 100%;
    max-width: 880px;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: pan-y;
    position: relative;
    z-index: 1;
}

/* ================== Slides ================== */
.curvilinear-slide {
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.curvilinear-slide.active {
    display: flex;
}

/* ================== Image Box ================== */
.curvilinear-image {
    width: 300px;
    height: 300px;
    background: #FFFFFF;
    border-radius: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.curvilinear-image img {
    width: 50%;
    height: auto;
}

.linear-image {
    width: 300px;
    height: 300px;
    background: #FFFFFF;
    border-radius: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.linear-image img {
    width: 100%;
    height: auto;
}
.phased-image {
    width: 300px;
    height: 300px;
    background: #FFFFFF;
    border-radius: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.phased-image img {
    width: 100%;
    height: auto;
}
/* ================== Content ================== */
.curvilinear-content {
    max-width: 520px;
}

.curvilinear-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #0A2F2F;
}

.curvilinear-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #6A8F8F;
    margin-bottom: 12px;
}

/* ================== Arrows ================== */
.curv-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;

    background: rgba(27, 111, 111, 0.15);
    color: #1B6F6F;
    font-size: 18px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.25s ease;
}

.curv-arrow:hover {
    background: #1B6F6F;
    color: #FFFFFF;
}

.curv-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ================== Dots ================== */
.curvilinear-dots {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.curvilinear-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #CFCFCF;
}

.curvilinear-dots span.active {
    background: #1B6F6F;
    transform: scale(1.4);
}

/* ================== Tablet Responsive================== */
@media (max-width: 767px) {
    .curvilinear-image {
        width: 260px;
        height: 260px;
    }
    .linear-image {
        width: 260px;
        height: 260px;
    }
    .phased-image {
        width: 260px;
        height: 260px;
    }
    .curvilinear-content p {
        font-size: 14px;
    }

    .curv-arrow {
        width: 46px;
        height: 46px;
        font-size: 16px;
    }
}

/* ================== Mobile Responsive ================== */
@media (max-width: 400px) {

    /* Hide arrows */
    .curv-arrow {
        display: none;
    }

    .curvilinear-section {
        padding: 60px 16px;
    }

    /* Image box */
    .curvilinear-image {
        width: 220px;
        height: 220px;
        aspect-ratio: 1 / 1;
        padding: 14px;
    }

    .curvilinear-image img {
        width: 90%;
        height: 90%;
        object-fit: contain;
    }
    .phased-image {
        width: 220px;
        height: 220px;
        aspect-ratio: 1 / 1;
        padding: 14px;
    }

    .phased-image img {
        width: 90%;
        height: 90%;
        object-fit: contain;
    }
    .linear-image {
        width: 220px;
        height: 220px;
        aspect-ratio: 1 / 1;
        padding: 14px;
    }

    .linear-image img {
        width: 90%;
        height: 90%;
        object-fit: contain;
    }

    /* 🔽 REDUCE CONTENT SIZE */
    .curvilinear-content {
        max-width: 260px;
        text-align: center;
    }

    .curvilinear-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .curvilinear-content p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    /* Tighten slide spacing */
    .curvilinear-slide {
        gap: 16px;
        flex-direction: column;
    }
}
