/**
 * Circular Services Block Alternative Widget Styles
 * - 6 circles in 2 rows (3 circles per row)
 * - Connected by lines
 * - SVG on last circle
 * - Layout maintained until 992px
 */

.circular-services-alt-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.circle-alt-item-wrapper {
    /* Core shape properties */
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: transparent;
    box-sizing: border-box;
    margin: 0 auto;

    /* Default border (overridden by controls) */
    border: 3px solid #CBCBCB;

    /* Content alignment */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    overflow: visible;
}

.circle-alt-item-content {
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
    overflow: hidden;
    border-radius: 50%;
}

/* Connecting Lines Between Circles (Custom SVG Lines) */

/* Row 1: Circle 1 to Circle 2 */
.circle-alt-item-wrapper:nth-child(1)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: var(--horizontal-gap, 40px);
    height: 10px;
    background-image: url('lines/c1-c2.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 100;
}

/* Row 1: Circle 2 to Circle 3 */
.circle-alt-item-wrapper:nth-child(2)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: var(--horizontal-gap, 40px);
    height: 10px;
    background-image: url('lines/c2-c3.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 100;
}

/* Row 1: Circle 3 extends to right edge of screen */
.circle-alt-item-wrapper:nth-child(3)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: var(--edge-line-width, 100px);
    height: 12px;
    background-image: url('lines/c3-edge.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 100;
}

/* Row 2: Line from left edge to Circle 4 */
.circle-alt-item-wrapper:nth-child(4)::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    width: var(--edge-line-width, 100px);
    height: 12px;
    background-image: url('lines/edge-c4.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: right center;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 100;
}

/* Row 2: Circle 4 to Circle 5 */
.circle-alt-item-wrapper:nth-child(4)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: var(--horizontal-gap, 40px);
    height: 10px;
    background-image: url('lines/c4-c5.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 100;
}

/* Row 2: Circle 5 to Circle 6 */
.circle-alt-item-wrapper:nth-child(5)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: var(--horizontal-gap, 40px);
    height: 60px;
    background-image: url('lines/c5-c6.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 100;
}


.circle-alt-heading {
    margin: 0 0 0.5em 0;
    font-weight: bold;
}

.circle-alt-description {
    margin: 0;
}

/* --- SVG Border for Last Circle --- */
.circle-alt-last-svg {
    /* Hide the regular border for last circle */
    border: none !important;
}

/* Apply row offsets */
.circle-alt-item-wrapper:nth-child(1),
.circle-alt-item-wrapper:nth-child(2),
.circle-alt-item-wrapper:nth-child(3) {
    /* Row 1 offset - controlled by Elementor */
}

.circle-alt-item-wrapper:nth-child(4),
.circle-alt-item-wrapper:nth-child(5),
.circle-alt-item-wrapper:nth-child(6) {
    /* Row 2 offset - controlled by Elementor */
}

.circle-alt-last-svg .circle-alt-svg-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content stays above the SVG border */
.circle-alt-last-svg .circle-alt-item-content {
    position: relative;
    z-index: 1;
}

/* Glowing effect removed per user request */

/* --- Mobile Viewport (below 992px) --- */
/* Mobile layout will be implemented later */
@media (max-width: 992px) {
    /* TODO: Mobile layout to be implemented */
}