/* WRAPPER */
.what-we-do {
    display: flex;
    flex-direction: column;
    /*gap: 20px;*/
}

/* CARD */
.what-we-do__card {
    width: 100%;
    height: 153px;
    transition: height .45s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
}

/* ACTIVE */
.what-we-do__card.active {
    height: 290px;
}

/* INDEX */
.what-we-do__index {
    position: absolute;
    top: 25px;
    right: 25px;
	color: var(--red);
}

/* ================= FRONT ================= */

.what-we-do__front {
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    position: relative;
    transition: opacity .2s ease;
}

.what-we-do__front-inner {
    display: flex;
    align-items: flex-start;
    gap: 15rem;
    width: 100%;
}

.what-we-do__front-image {
    width: 387px;
    height: 114px;
    overflow: hidden;
    border-radius: 6px;
    flex-shrink: 0;
}

.what-we-do__front-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.what-we-do__front-title h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
}

/* Hide front when active */
.what-we-do__card.active .what-we-do__front {
    opacity: 0;
    pointer-events: none;
}

/* ================= BACK ================= */

.what-we-do__back {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    padding: 20px;
    transition: opacity .3s ease .15s;
}

.what-we-do__card.active .what-we-do__back {
    opacity: 1;
    pointer-events: auto;
}

/* INNER LAYOUT */
.what-we-do__inner {
    display: flex;
    height: 100%;
    gap: 15rem;
}

/* IMAGE */
.what-we-do__image {
    width: 387px;
    height: 100%;
}

.what-we-do__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* TEXT */
.what-we-do__text {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.what-we-do__card.active .what-we-do__text h4 {
	color: var(--black);
}

.what-we-do__text h4 {
    margin-bottom: 15px;
	color: var(--grey);
}

.what-we-do__text .description {
	color: var(--grey);
    margin-bottom: 40px;
    max-width: 500px;
}

/* BUTTON */
.btn-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s ease;
}

/* TEXT */
.btn-text {
	font-size: 16px;
	font-weight: 600;
    padding: 13px 40px;
	color: var(--black);
    border: 2px solid var(--black);
    border-radius: 12px;
    background: transparent;
	text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s ease;
}

/* ARROW CONTAINER */
.btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* HOVER EFFECT */
.btn-wrapper:hover .btn-arrow {
    transform: translateX(15px);
}

@media only screen and (max-width: 767px) {
	.what-we-do {
    gap: 30px;
}
	.what-we-do__card.active {
    height: 100vh;
}
	.what-we-do__card {
    background-color: unset !important;
}
	.what-we-do__index {
    top: -4px;
    right: 0;
    left: 10px;
}
	.what-we-do__front-image {
    width: 100%;
    height: 140px;
}
	.what-we-do__text {
    width: 100%;
}
	.what-we-do__front {
    padding: 30px;
   
}
.what-we-do__image img {
    width: 90vw;
}
.what-we-do__inner {
    flex-direction: column;
    gap: 2rem;
}	
.what-we-do__text .description {
    margin-bottom: 25px;
}
	.btn-wrapper {
    margin-bottom: 2rem;
}
}