/* Interactive Services Widget Styles */
.info-services-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 80px;
    margin: 50px 0;
    min-height: 600px;
    max-width: 1500px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0px;
}

.post-content .info-services-container h5 {
    font-size: .8rem;
}

.info-services-container .svg-image {
    width: 400px;
    height: 400px;
    margin-top: -50px;
}

.info-services-container .left-column,
.info-services-container .right-column {
    width: 425px;
    flex-shrink: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    justify-content: flex-start;
}

.info-services-container .svg-container {
    width: 400px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.info-services-container .centered-container {
    text-align: center;
    margin-top: 75px;
}

.info-services-container .centered-container img,
.info-services-container img {
    max-width: 200px;
    height: auto;
    width: 100%;
}

.info-services-container .right-column {
    align-items: flex-end;
    text-align: right;
}

.info-services-container .right-column .img {
    text-align: right;
}

/* Base styles for service items */
.info-services-container .topccol,
.info-services-container .bottomcol,
.info-services-container .centered-container {
    /* transition: border 0.3s ease; */
    position: relative;
    width: 100%;
    min-height: 160px;
}

/* Content visibility states */
.info-services-container .defaultContent {
    opacity: 1;
    /* transition: opacity 0.3s ease; */
    position: relative;
}

.info-services-container .hoverContent {
    opacity: 0;
    /* transition: opacity 0.3s ease; */
    position: absolute;
    z-index: 99;
    background: #FFFFFF;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    cursor: pointer;
}

/* Hover content swap */
.info-services-container .topccol:hover .defaultContent,
.info-services-container .bottomcol:hover .defaultContent,
.info-services-container .centered-container:hover .defaultContent {
    opacity: 0;
}

.info-services-container .topccol:hover .hoverContent,
.info-services-container .bottomcol:hover .hoverContent,
.info-services-container .centered-container:hover .hoverContent {
    opacity: 1;
    pointer-events: auto;
}

/* Ensure hover content text fits properly */
.info-services-container .hoverContent p {
    margin: 8px 0 0 0;
    font-size: 0.8rem;
    line-height: 1.3;
    text-align: left;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 3.9rem;
}

.info-services-container .hoverContent h5 {
    margin: 3px 0;
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: left;
}


/* Right column hover content alignment */
.info-services-container .right-column .hoverContent {
    align-items: flex-end;
}

.info-services-container .right-column .hoverContent p,
.info-services-container .right-column .hoverContent h5 {
    text-align: right;
}

/* Center container hover content alignment */
.info-services-container .centered-container .hoverContent {
    align-items: center;
}

.info-services-container .centered-container .hoverContent p,
.info-services-container .centered-container .hoverContent h5 {
    text-align: center;
}

/* Default state pseudo element lines - Left column */
.info-services-container .left-column .img::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 120%;
    height: 2px;
    /* transition: all 0.3s ease; */
}

.info-services-container .left-column .img {
    position: relative;
}

.info-services-container .left-column .img::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 120%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    /* transition: all 0.3s ease; */
}

/* Default state pseudo element lines - Right column */
.info-services-container .right-column .img::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 120%;
    height: 2px;
    /* transition: all 0.3s ease; */
}

.info-services-container .right-column .img {
    position: relative;
}

.info-services-container .right-column .img::before {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 120%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    /* transition: all 0.3s ease; */
}

/* Default state vertical line and dot for center element */
.info-services-container .centered-container .img::after {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 22px;
    /* transition: all 0.3s ease; */
}

.info-services-container .centered-container .img::before {
    content: '';
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    /* transition: all 0.3s ease; */
}

/* Color the pseudo elements for each service */
.info-services-container #lean365 .img::after,
.info-services-container #lean365 .img::before {
    background-color: #e87e12;
}

.info-services-container #fm365 .img::after,
.info-services-container #fm365 .img::before {
    background-color: #1260d4;
}

.info-services-container #advisory365 .img::after,
.info-services-container #advisory365 .img::before {
    background-color: #7c13e8;
}

.info-services-container #pm365 .img::after,
.info-services-container #pm365 .img::before {
    background-color: #9d153d;
}

.info-services-container #workflow365 .img::after,
.info-services-container #workflow365 .img::before {
    background-color: #0099b4;
}

/* Hide default lines and dots on hover */
.info-services-container .topccol:hover .img::after,
.info-services-container .bottomcol:hover .img::after,
.info-services-container .centered-container:hover .img::after,
.info-services-container .topccol:hover .img::before,
.info-services-container .bottomcol:hover .img::before,
.info-services-container .centered-container:hover .img::before {
    display: none;
}

/* Hover borders */
.info-services-container #lean365:hover .hoverContent {
    border: 2px solid #e87e12;
    border-radius: 0;
}

.info-services-container #lean365:hover .hoverContent i {
    color: #e87e12;
}

.info-services-container #fm365:hover .hoverContent {
    border: 2px solid #1260d4;
    border-radius: 0;
}
.info-services-container #fm365:hover .hoverContent i {
    color: #1260d4;
}

.info-services-container #advisory365:hover .hoverContent {
    border: 2px solid #7c13e8;
    border-radius: 0;
}

.info-services-container #advisory365:hover .hoverContent i {
    color: #7c13e8;
}

.info-services-container #pm365:hover .hoverContent {
    border: 2px solid #9d153d;
    border-radius: 0;
}
.info-services-container #pm365:hover .hoverContent i {
    color: #9d153d;
}


.info-services-container #workflow365:hover .hoverContent {
    border: 2px solid #0099b4;
    border-radius: 0;
}
.info-services-container #workflow365:hover .hoverContent i {
    color: #0099b4;
    float: unset;
}
.info-services-container .hoverContent a:hover {
    color: #000000 !important;
}
.info-services-container #advisory365:hover .hoverContent i,
.info-services-container #pm365:hover .hoverContent i {
    float: right;
}


/* Hover state shorter lines and dots - Left column */
.info-services-container #lean365:hover::after,
.info-services-container #fm365:hover::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -62px;
    transform: translateY(-50%);
    width: 60px;
    height: 2px;
}

.info-services-container #lean365:hover::before,
.info-services-container #fm365:hover::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -72px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.info-services-container #lean365:hover::after,
.info-services-container #lean365:hover::before {
    background-color: #e87e12;
}

.info-services-container #fm365:hover::after,
.info-services-container #fm365:hover::before {
    background-color: #1260d4;
}

/* Hover state shorter lines and dots - Right column */
.info-services-container #advisory365:hover::after,
.info-services-container #pm365:hover::after {
    content: '';
    position: absolute;
    top: 45%;
    left: -62px;
    transform: translateY(-50%);
    width: 60px;
    height: 2px;
}

.info-services-container #advisory365:hover::before,
.info-services-container #pm365:hover::before {
    content: '';
    position: absolute;
    top: 45%;
    left: -72px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.info-services-container #advisory365:hover::after,
.info-services-container #advisory365:hover::before {
    background-color: #7c13e8;
}

.info-services-container #pm365:hover::after,
.info-services-container #pm365:hover::before {
    background-color: #9d153d;
}

/* Hover state vertical line and dot - Center element */
.info-services-container #workflow365:hover::after {
    content: '';
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background-color: #0099b4;
}

.info-services-container #workflow365:hover::before {
    content: '';
    position: absolute;
    top: -52px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0099b4;
}

/* Center SVG hover effects for color blocks */
.info-services-container #lean365:hover~* #orange-block,
.info-services-container #lean365:hover+* #orange-block,
body:has(.info-services-container #lean365:hover) #orange-block {
    filter: drop-shadow(0 0 8px #f77703);
    opacity: 1;
}

.info-services-container #fm365:hover~* #blue-block,
.info-services-container #fm365:hover+* #blue-block,
body:has(.info-services-container #fm365:hover) #blue-block {
    filter: drop-shadow(0 0 8px #1560d4);
    opacity: 1;
}

.info-services-container #advisory365:hover~* #purple-block,
.info-services-container #advisory365:hover+* #purple-block,
body:has(.info-services-container #advisory365:hover) #purple-block {
    filter: drop-shadow(0 0 8px #7945e7);
    opacity: 1;
}

.info-services-container #pm365:hover~* #red-block,
.info-services-container #pm365:hover+* #red-block,
body:has(.info-services-container #pm365:hover) #red-block {
    filter: drop-shadow(0 0 8px #9d142d);
    opacity: 1;
}

.info-services-container #workflow365:hover~* #cyan-block,
.info-services-container #workflow365:hover+* #cyan-block,
body:has(.info-services-container #workflow365:hover) #cyan-block {
    filter: drop-shadow(0 0 8px #029bb7);
    opacity: 1;
}

/* Dim other blocks when one is highlighted */
body:has(.info-services-container #lean365:hover) .color-block:not(#orange-block),
body:has(.info-services-container #fm365:hover) .color-block:not(#blue-block),
body:has(.info-services-container #advisory365:hover) .color-block:not(#purple-block),
body:has(.info-services-container #pm365:hover) .color-block:not(#red-block),
body:has(.info-services-container #workflow365:hover) .color-block:not(#cyan-block) {
    opacity: 0.5;
}

/* Center SVG animations */
.info-services-container .color-block {
    transition: transform 0.3s ease;
}

/* Responsive design */
@media (max-width: 1024px) {
    .info-services-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .info-services-container .left-column,
    .info-services-container .right-column {
        width: 100%;
        max-width: 500px;
    }
}