@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: lightgrey;
}

.card {
    position: relative;
    width: 350px;
    height: 85px;
    background: darkblue;
    border-radius: 20px;
    filter: drop-shadow(20px 20px 40px rgb(12, 12, 36));
    transition: 0.5s ease-in-out;
}

.card.active {
    height: 420px;
}

.toggle {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 60px;
    background: darkblue;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
    cursor: pointer;
}

/* .toggle::before {
    content: '';
    position: absolute;
    left: -34px;
    width: 35px;
    height: 35px;
    background: transparent;
    border-top-right-radius: 35px;
    box-shadow: 11px -10px 0 10px darkblue;
} */

.toggle span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%) rotate(405deg);
    width: 10px;
    height: 10px;
    border-bottom: 3px solid #fff;
    border-right: 3px solid #fff;
    transition: 0.5s ease-in-out;
}

.card.active .toggle span {
    transform: translate(-50%, -70%) rotate(225deg);
}

.contentBx {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.contentBx .content {
    position: relative;
    padding: 20px;
    text-align: center;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.contentBx .content h2 {
    color: #fff;
    font-weight: 500;
    font-size: 1.25em;
    letter-spacing: 0.05em;
    line-height: 1.1em;
}

.contentBx .content h2 span {
    font-size: 0.75em;
    font-weight: 400;
    text-transform: initial;
}

.imgBx {
    position: relative;
    width: 250px;
    height: 250px;
    background: #fff;
    margin-top: 20px;
    box-shadow: -10px 10px 10px rgba(0,0,0,.15);
    border: 5px solid lightskyblue;
}

.imgBx img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}