/* 1. Set the initial state of the box */
.elementskit-infobox .box-body.process-body {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #eee;
    height: 260px; /* Adjust height to make it look like a square */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* 2. Limit the paragraph text to 3 lines */
.elementskit-infobox .box-body p.process {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Change this number to show more/less lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    margin-top: 10px;
    transition: all 0.5s ease;
}

/* 3. Hover State: Expand the box and show full text */
.elementskit-infobox:hover .box-body.process {
    height: auto; 
    min-height: 260px;
    border-color: #ff5e14; /* Uses the orange color from your brand */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 10; /* Ensures the expanded box stays on top */
}

.elementskit-infobox:hover .box-body p.process{
    -webkit-line-clamp: unset; /* Removes the line limit */
    overflow: visible;
}

/* 4. Optional: Smooth out the divider lines between columns */
/* .elementor-widget-divider {
    z-index: 0;
} */

.industry-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-top: 4px solid #0e2b5c; /* AdiMech Blue */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    overflow: hidden;
}

.industry-title {
    color: #0e2b5c;
    margin-bottom: 15px;
    font-size: 20px;
}

.description-container {
    position: relative;
    transition: all 0.4s ease;
}

.expandable-text {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Shows exactly 3 lines (approx 250 chars) */
    -webkit-box-orient: vertical;  
    overflow: hidden;
    line-height: 1.6;
    color: #666;
    transition: all 0.4s ease;
}

.hover-tip {
    display: inline-block;
    margin-top: 15px;
    font-size: 12px;
    color: #ff5e14; /* AdiMech Orange */
    font-weight: bold;
    text-transform: uppercase;
}

/* --- The Hover Transition --- */
.industry-card:hover {
    border-top-color: #ff5e14;
    box-shadow: 0 15px 35px rgba(14, 43, 92, 0.1);
    transform: translateY(-8px);
}

.industry-card:hover .expandable-text {
    -webkit-line-clamp: unset; /* Removes the limit */
    display: block; /* Switches back to normal block */
    color: #333;
}

.industry-card:hover .hover-tip {
    opacity: 0; /* Hides the tip when text is expanded */
}