.interactive-hover-section {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ihs-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ihs-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    z-index: 1;
}

.ihs-bg.active {
    opacity: 1;
    z-index: 2;
}

.ihs-items {
    display: flex;
    height: 100%;
    position: relative;
    z-index: 20;
}

.ihs-layout-horizontal .ihs-items {
    flex-direction: row;
}

.ihs-layout-vertical .ihs-items {
    flex-direction: column;
}

.ihs-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.ihs-layout-vertical .ihs-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ihs-item:last-child {
    border: none;
}

.ihs-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    transition: all 0.5s ease;
    z-index: 1;
}

/* Show individual section background when not hovering */
.ihs-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: opacity 0.6s ease;
    opacity: 1;
}

/* Hide individual section background when any item is hovered */
.interactive-hover-section.hover-active .ihs-item::after {
    opacity: 0;
}

.ihs-item:hover::before {
    background: rgba(0, 0, 0, 0);
}

.ihs-items:hover .ihs-item:not(:hover)::before {
    background: rgba(0, 0, 0, 0);
}

.ihs-content {
    text-align: center;
    z-index: 2;
    transition: all 0.5s ease;
    width: 100%;
    opacity: 1;
}

.ihs-item:hover .ihs-content {
    opacity: 1;
}

.ihs-items:hover .ihs-item:not(:hover) .ihs-content {
    opacity: 0.2;
}

.ihs-icon-wrapper {
    margin-bottom: 20px;
}

.ihs-icon {
    font-size: 2.5rem;
    color: #fff;
    transition: all 0.4s ease;
    opacity: 1;
}

.ihs-item:hover .ihs-icon {
    color: #ffb347;
    opacity: 0.8;
}

.ihs-title {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: opacity 0.4s ease;
}

.ihs-divider {
    height: 2px;
    width: 50px;
    background: rgba(255, 255, 255, 0.5);
    margin: 20px auto;
    transition: all 0.4s ease;
    opacity: 0.7;
}

.ihs-item:hover .ihs-divider {
    width: 100px;
    background: #ffb347;
    opacity: 1;
}

.ihs-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.6;
    transition: opacity 0.4s ease;
}

.ihs-button {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.4s ease;
    opacity: 0.7;
}

.ihs-item:hover .ihs-button {
    background: #ffb347;
    border-color: #ffb347;
    color: #000;
    opacity: 1;
}

.ihs-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}
.ihs-items:hover::before {
	content:"";
    background: rgb(0 0 0 / 20%);
	    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
@media (max-width: 1024px) {
    .ihs-layout-horizontal .ihs-items {
        flex-direction: column;
    }
    
    .ihs-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .ihs-title {
        font-size: 1.5rem;
    }
    
    .ihs-subtitle {
        font-size: 1rem;
    }
    
    .ihs-icon {
        font-size: 2rem;
    }
}