﻿.card-expand-outer {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    margin-top: 3vh;
    min-height: 18vh;
}

.card-expand-inner {
    padding: 3vh 2vw 3vh 4vh;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0px 8px 22px -6px rgba(24, 39, 75, 0.12), 0px 14px 64px -4px rgba(24, 39, 75, 0.12);
    border-radius: 1px;
}

.card-expand-arrow {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--color-soft-orange);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-expand-arrow:before {
    content: "";
    width: 5px;
    height: 5px;
    border: 2px solid var(--color-white);
    border-right: none;
    border-bottom: none;
    transform: rotate(-45deg);
}

.card-expand-arrow[expandable='False'] {
    display: none;
}

.card-expand-outer[expanded='True'] .card-expand-arrow:before {
    transform: rotate(133deg);
}

.card-expand-expanded {
    transform: translateX(100%);
    transform-origin: right;
    transition: .3s ease;
}

.content-expand-expanded-links {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-dark-blue);
    padding: 24px 30px;
    height: 100%;
}
.content-expand-expanded-links-content-expanded {
    height: 100%;
}

.card-expand-expanded .content-expand-expanded-links a {
    color: transparent;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 33ch;
    transition: .3s ease;
    transition-delay: .3s;
    font-size: 18px;
    font-weight: 500;
}

.card-expand-expanded .content-expand-expanded-links a:before {
    content: '\e902';
    transition: all .5s ease;
    opacity: 0;
    font-family: 'cmvm';
    font-size: 10px;
}

.card-expand-expanded .content-expand-expanded-links a:hover:before {
    margin-right: 10px;
    opacity: 1;
}

.card-expand-outer[expanded='True'] .card-expand-expanded {
    transform: translateX(0);
    background: rgb(255 255 255 / 80%);
    backdrop-filter: blur(3px);
}

.card-expand-outer[expanded='True'] .card-expand-expanded .content-expand-expanded-links a {
    color: var(--color-blue3);
}

.card-expand-outer[expanded='False'] .card-expand-expanded > div {
    opacity: 0;
}

.card-expand-inner:hover .carousel-desc-item-title:before {
    width: 100%;
}

/* responsive */

.phone .card-expand-outer,
.tablet .card-expand-outer {
    grid-template-columns: 1fr;
    margin: 5vw;
}

.phone  .card-expand-outer,
.tablet .card-expand-outer
{
    display: grid;
    grid-template-areas: 
        'card-expand-inner'
        'card-expand-expanded';
    min-height: unset;
}

.phone  .card-expand-outer .card-expand-expanded,
.tablet .card-expand-outer .card-expand-expanded 
{
    grid-area: card-expand-expanded;
}

.phone  .card-expand-outer .card-expand-inner,
.tablet .card-expand-outer .card-expand-inner
{
    grid-area: card-expand-inner;
}

.phone  .card-expand-outer .card-expand-expanded .expanded-card-separator,
.tablet .card-expand-outer .card-expand-expanded .expanded-card-separator
{
    display: block;
}

.phone  .card-expand-outer .card-expand-expanded .expanded-card-separator .expanded-card-separator-left:before,
.tablet .card-expand-outer .card-expand-expanded .expanded-card-separator .expanded-card-separator-left:before
{
    content: unset;
}

.phone  .card-expand-outer .card-expand-expanded .expanded-card-separator .expanded-card-separator-right,
.tablet .card-expand-outer .card-expand-expanded .expanded-card-separator .expanded-card-separator-right
{
    padding: unset;
}

.phone  .card-expand-expanded, 
.tablet .card-expand-expanded
{
    display: block;
}

.phone  .card-expand-expanded .card-expand-arrow, 
.tablet .card-expand-expanded .card-expand-arrow
{
    top: 0%;
}

.phone  .card-expand-outer .card-expand-arrow:before,
.tablet .card-expand-outer .card-expand-arrow:before
{
    transform: rotate(225deg);
}

.phone  .card-expand-outer[expanded='True'] .card-expand-arrow:before,
.tablet .card-expand-outer[expanded='True'] .card-expand-arrow:before
{
    transform: rotate(45deg);
}