/* CONTAINER */
.hover-container {
    margin: 50px 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    background-color: #D9D9D9;
    
}

/* BLUE HEADER */
.blue-box {
    background: var(--pirmary-color);
    color: white;
    padding: 0px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.blue-box h2 {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 25px;
    text-align: end;
}

.blue-box p {
    opacity: 0.85;
    font-size: 18px;
    line-height: 30px;
    padding-left: 40px;
    text-align: end;
}

/* IMAGE LEFT */
.blue-box img {
    width: 25%;
}

/* WHITE BOX */
.white-box {
    background: white;
    max-height: 0;
    overflow: hidden;
    padding: 0 50px;
    transform: translateY(20px);
    transition: max-height 0.7s cubic-bezier(0.77,0,0.18,1),
                padding 0.4s ease,
                transform 0.4s ease;
}

/* EXPAND */
.hover-container:hover .white-box {
    max-height: 500px;
    transform: translateY(0);
    padding: 40px 50px;
}

/* CONTENT */
.white-content {
    display: flex;
    gap: 40px;
    opacity: 0;
    transform: translateY(15px);
    transition: 0.4s ease;
}

.hover-container:hover .white-content {
    opacity: 1;
    transform: translateY(0);
}

.white-content img {
    width: 25%;
    height: 25em;
}

/* TEXT */
.text-block h5 {
    font-weight: 700;
    margin-top: 15px;
    font-size: 16px;
        text-align: end;
}

.text-block p {
    font-size: 16px;
    color: #555;
    line-height: 28px;
        text-align: end;
}

/* MOBILE */
@media(max-width:768px){
    .blue-box{
        flex-direction:column;
        text-align:center;
    }
    .blue-box img{
        width:120px;
        margin-bottom:10px;
    }
    .white-content{
        flex-direction:column;
        align-items:center;
        text-align:center;
    }
    .white-content img{
        width:200px;
    }
}