* {
    padding: 0;
    margin: 0;
}

body {
    height: 100vh;
}

#card4 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: #f6f6f6;
    height: 100%;
    position: relative;
}

#card4 i {
    font-size: 12px;
    color: #e60012;
}

/* front */
#card4 .front {
    height: 220px;
    margin-top: 30px;
    width: 96%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    background-color: #fff;
    align-items: center;
    position: relative;
    justify-content: space-between;
}

/* logo */
#card4 .front .logo-box {
    position: absolute;
    padding: 5px 7px;
    border: 1px solid #c8161d;
    text-align: center;
    top: 50%;
    right: 0%;
    transform: translate(-50%, -50%);
    background-color: #fff;
}

#card4 .front .logo-box .logo {
    width: 55px;
}

#card4 .front .logo-box .logo img {
    width: 100%;
}

#card4 .front .logo-box .logo-con p:first-child {
    /* font-size: 10px; */
    font-size: 14px;
    transform: scale(0.75);
}

#card4 .front .logo-box .logo-con p:last-child {
    /* font-size: 8px; */
    font-size: 14px;
    transform: scale(0.6);
}

/* up */
#card4 .front .up {
    width: 80%;
    margin-top: 7%;
    display: flex;
    justify-content: space-between;
}

#card4 .front .up .img {
    width: 60px;
    height: 60px;
    border: 1px solid #333;
}

#card4 .front .up .img img {
    width: 100%;
}

#card4 .front .up .name p:first-child {
    font-size: 16px;
    color: #c8161d;
    font-weight: bold;
    margin-bottom: 5px;
}

#card4 .front .up .name p:last-child {
    font-size: 10px;
}

/* down */
#card4 .front .down {
    height: 50%;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#card4 .front .down .left .name{
    display: flex;
    flex-direction: column;
    align-items: center;
}
#card4 .front .down .left .name p:first-child {
    /* font-size: 11px; */
    font-size: 14px;
    transform: scale(0.78);
    /* margin-bottom: 3px; */
    color: #c8161d;
    width: 124%;
}

#card4 .front .down .left .name p:last-child {
    /* font-size: 8px; */
    font-size: 14px;
    transform: scale(0.65);
    color: #c8161d;
    /* margin-bottom: 8px; */
    width: 187%;
}

#card4 .front .down .left .box div {
    display: flex;
    align-items: baseline;
}

#card4 .front .down .left .box i {
    font-size: 10px;
    margin-right: 3px;
}

#card4 .front .down .left .box p {
    /* font-size: 11px; */
    font-size: 14px;
    transform: scale(0.78);
    /* width: 188%; */
}

#card4 ul {
    list-style: none;
}

#card4 .front .right {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    margin-top: 50px;
}

#card4 .front .right p {
    /* font-size: 8px; */
    font-size: 14px;
    transform: scale(0.8);
    /* width: 188%; */
}

#card4 .front .right li {
    /* margin-bottom: 5px; */
}

#card4 .front .right li div {
    display: flex;
    justify-content: space-evenly;
}
#card4 .front .right li:nth-of-type(3) div{
     display: flex;
     justify-content: flex-start;
}

/* opposite */
#card4 .opposite {
    height: 220px;
    margin-top: 15px;
    border-radius: 10px;
    width: 96%;
    position: relative;
    background-color: #fff;
}

/* logo */
#card4 .opposite .logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

#card4 .opposite .logo-box .logo {
    width: 55px;
}

#card4 .opposite .logo-box .logo img {
    width: 100%;
}

#card4 .opposite .logo-box .logo-con p:first-child {
    /* font-size: 10px; */
    font-size: 14px;
    transform: scale(0.75);
}

#card4 .opposite .logo-box .logo-con p:last-child {
    /* font-size: 8px; */
    font-size: 14px;
    transform: scale(0.6);
}

#card4 .opposite .con {
    /* font-size: 8px; */
    font-size: 14px;
    transform: scale(0.9);
    /* margin-left: 15%; */
    text-align: center;
}

#card4 .opposite .con p {
    line-height: 12px;
    margin-bottom: 10px;
}

#card4 .opposite .title {
    /* font-size: 11px; */
    font-size: 16px;
    /* transform: scale(0.78); */
    color: #e60012;
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

#card4 .opposite .title .title-box {
    width: 80%;
    display: flex;
    justify-content: space-between;
}

/* btn */
#card4 .btn {
    width: 96%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 10px;
}

#card4 .btn i {
    color: #f4c4c6;
}

#card4 .btn-box {
    width: 90%;
    background-color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    border-radius: 10px;
}

#card4 button {
    padding: 10px 12%;
    background: linear-gradient(to bottom, #ca181f, #e93c43);
    border: 0;
    color: #fff;
    border-radius: 5px;
}

#card4 button i {
    margin-right: 10px;
}

#card4 .btn .logo-box p {
    color: #fff;
}


@media (max-width: 390px) {
    #card4 button {
        padding: 10px 9%;
    }
}

@media (max-width: 330px) {
    #card4 button {
        padding: 10px 6%;
    }
}

@media (max-width: 350px) {
    #card4 .front .left .logo-box {
        left: 18%;
    }

    #card4 .opposite .right .logo-box {
        left: 2%;
    }

}

/* nav */
#card4 .nav {
    width: 100%;
    background-color: #fff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    position: absolute;
    bottom: 0;
}

#card4 .nav ul {
    list-style: none;
}

#card4 .nav ul li {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #e3e3e3;
}

#card4 .nav ul li a {
    text-decoration: none;
}

#card4 .nav ul li:last-child {
    border-bottom: 0;
    color: #9e9e9e;
}


@media screen and (min-width: 768px){
    #card4 .front{
        width: 375px;
    }
    #card4 .opposite{
        width: 375px;
    }
    #card4 .btn{
        width: 375px;
    }
}