/* 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;
}

.blue-box p {
    opacity: 0.85;
    font-size: 18px;
    line-height: 30px;
    padding-right: 40px;
}

/* IMAGE LEFT */
.blue-box img {
    width: 25%;
}

/* WHITE BOX (Smoothest Animation) */
.white-box {
    background: white;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 50px;
    transform: translateY(25px);
    transition:
        max-height 1s ease,
        opacity 0.5s ease,
        transform 0.6s ease,
        padding 0.6s ease;
}

/* EXPAND ON HOVER */
.hover-container:hover .white-box {
    max-height: 2000px;  /* big enough so no stuck */
    opacity: 1;
    transform: translateY(0);
    padding: 40px 50px;
}

/* CONTENT INSIDE */
.white-content {
    display: flex;
    gap: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s 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-block p {
    font-size: 16px;
    color: #555;
    line-height: 28px;
}

/* 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;
        height: auto;
    }
}
