.square4cards {
    width: 400px;
    display: block;
    margin: auto;
    position: relative;
    overflow: hidden;
    border: 1px solid #9a9a9a;
}
.s4row {
    /* bootstrap .d-flex */
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    /* bootstrap .flex-row */
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: row !important;
    flex-direction: row !important;
    height: 50%;
}

.s4row {
    display: block;
    transition: height 1s ease-out;
}

.s4row .s4card {
    display: inline-block;
    position: relative;
    align-self: stretch;
    transition: width 1s ease-out;
    border:1px solid #666666;
    width: 50%;
}
.s4row .s4card:first-child { border-right-width: 1px; }
.s4row:first-child .s4card { border-bottom-width: 1px; }

.square4cards .opener,
.square4cards .closer {
    position: absolute;
    right: 0;
    top: 0;
    padding: 1rem 8px 0 0;
    cursor: none;
    width: 100%;
    text-align: right;
}
.square4cards .opener:hover,
.square4cards .closer:hover {
    cursor: pointer;
}
.square4cards .opener { color: rgba(0, 0, 0, 0.36); }
.square4cards .opener:hover { color: rgba(0, 0, 0, 0.51); }
.square4cards .closer { color: #bb5942; }
.square4cards .closer:hover { color: #9b3b1b; }

.square4cards .s4c_title {
    width: 100%;
    padding: 1rem 0.5rem;
    background: rgba(244, 244, 244, 1);
    font-size: 1.2rem;
    transition: transform 1s ease-out, background 1s ease-out;
    color: #333333;
}

.square4cards .s4c_title_90 {
    transform: rotate(90deg);
    transform-origin: bottom left;
    width: fit-content;
}

.square4cards .s4c_title_on {
    background: rgb(210, 210, 210);
    transition: background 1s ease-out;
    font-weight: bold;
}

.square4cards .s4c_title_off {
    background: rgba(255, 255, 255, 1);
    transition: background 1s ease-out;
}

.square4cards .s4c_lead {
    padding: 1rem 0.75rem;
    font-size: 120%;
    color: #444444;
    text-transform: capitalize;
}

.square4cards .s4c_body {
    background: rgb(241, 241, 241);
    padding: 1rem;
    border: 0px solid #0c5460;
    height: 100%;
}


/* ---------------------- BLUE Style ********************* */
.s4c_blue .s4c_title{
    background: rgba(143, 200, 247, 1);
    background: linear-gradient(90deg, rgba(143, 200, 247, 1) 0%, rgba(143, 200, 247, 0) 100%);
    color: #064486;
}
.s4c_blue .s4c_title_on {
    background: rgba(143, 200, 247, 1);
    background: linear-gradient(90deg, rgb(107, 146, 186) 0%, rgb(129, 182, 226) 50%, rgba(143, 200, 247, 0) 97%);
    color:#fff;
}
.s4c_blue .s4c_title_off {
    background: rgba(55, 55, 55, 1);
    background: linear-gradient(90deg, rgba(210, 210, 210, 1) 0%, rgba(210, 210, 210, 1) 35%, rgba(255, 255, 255, 1) 100%);
}

.s4c_blue .opener { color: #4b89cc; }
.s4c_blue .opener:hover { color: #113f76; }
.s4c_blue .closer { color: #de4224; }
.s4c_blue .closer:hover { color: #a01f06; }

.s4c_blue .s4c_body {
    background: rgb(255,255,255);
    background: linear-gradient(90deg, rgba(143, 200, 247, 0) 0%, rgb(173, 224, 255) 100% );
    -webkit-box-shadow: inset -4px 5px 4px 0px rgba(0,0,0,0.2);
    -moz-box-shadow: inset -4px 5px 4px 0px rgba(0,0,0,0.2);
    box-shadow: inset -4px 5px 4px 0px rgba(0,0,0,0.2);
}