/* =========================================================
   JLPTExam.org - JLPT Levels
   ========================================================= */

.levels-new {
    padding: 82px 0 90px;
    background: #ffffff;
}

.levels-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 30px;
}

.section-eyebrow {
    margin-bottom: 8px;

    color: #079447;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.levels-heading h2 {
    margin: 0;

    color: #10251c;

    font-size: clamp(32px, 3.2vw, 44px);
    line-height: 1.1;

    letter-spacing: -1.5px;
}

.levels-heading h2 span {
    color: #079447;
}

.levels-heading p {
    margin: 10px 0 0;

    color: #687970;

    font-size: 16px;
    line-height: 1.6;
}

.levels-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    flex-shrink: 0;

    min-height: 48px;
    padding: 0 20px;

    border: 1.5px solid #079447;
    border-radius: 11px;

    color: #078744;
    background: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 800;

    transition: .2s ease;
}

.levels-view-all span {
    font-size: 18px;
}

.levels-view-all:hover {
    color: #ffffff;
    background: #079447;

    transform: translateY(-2px);
}


/* =========================================================
   GRID
   ========================================================= */

.levels-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 16px;
}


/* =========================================================
   CARD
   ========================================================= */

.level-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5ebe8;
    border-radius: 18px;

    box-shadow:
        0 8px 28px rgba(20, 60, 40, .07);

    transition:
        transform .25s ease,
        box-shadow .25s ease;

    min-width: 0;
}

.level-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 40px rgba(20, 60, 40, .13);
}


/* =========================================================
   TOP
   ========================================================= */

.level-card-top {
    position: relative;

    height: 150px;

    padding: 20px;

    overflow: hidden;
}

.level-card-top::after {
    content: "";

    position: absolute;

    width: 115px;
    height: 115px;

    right: -32px;
    bottom: -55px;

    border-radius: 50%;

    background: rgba(255,255,255,.24);
}

.level-badge {
    position: relative;
    z-index: 2;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    border-radius: 50%;

    color: #ffffff;
    background: rgba(255,255,255,.18);

    border: 2px solid rgba(255,255,255,.7);

    font-size: 20px;
    font-weight: 900;

    box-shadow:
        0 8px 18px rgba(0,0,0,.08);
}

.level-label {
    position: absolute;

    left: 20px;
    bottom: 18px;

    color: rgba(255,255,255,.95);

    font-size: 13px;
    font-weight: 700;
}

.level-decoration {
    position: absolute;

    right: 18px;
    top: 18px;

    font-size: 42px;

    opacity: .75;
}


/* =========================================================
   COLORS
   ========================================================= */

.level-n5 .level-card-top {
    background: linear-gradient(
        135deg,
        #ef4774,
        #f56b8d
    );
}

.level-n4 .level-card-top {
    background: linear-gradient(
        135deg,
        #27a957,
        #48bd70
    );
}

.level-n3 .level-card-top {
    background: linear-gradient(
        135deg,
        #2185d5,
        #43a1e7
    );
}

.level-n2 .level-card-top {
    background: linear-gradient(
        135deg,
        #ed8a23,
        #f2a044
    );
}

.level-n1 .level-card-top {
    background: linear-gradient(
        135deg,
        #7040c8,
        #895bdd
    );
}


/* =========================================================
   BODY
   ========================================================= */

.level-card-body {
    padding: 20px 18px 18px;
}

.level-card-body h3 {
    margin: 0 0 5px;

    color: #13271f;

    font-size: 21px;
    font-weight: 850;
}

.level-card-body strong {
    display: block;

    margin-bottom: 7px;

    color: #1b3228;

    font-size: 14px;
}

.level-card-body p {
    min-height: 50px;

    margin: 0 0 17px;

    color: #748079;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   BUTTON
   ========================================================= */

.level-button {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 42px;

    border-radius: 9px;

    color: #ffffff;
    background: #079447;

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    transition: .2s ease;
}

.level-button span {
    font-size: 17px;
}

.level-button:hover {
    background: #067b3c;

    transform: translateY(-1px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .levels-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .levels-new {
        padding: 60px 0;
    }

    .levels-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .levels-view-all {
        width: 100%;

        justify-content: center;
    }

    .levels-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

}


@media (max-width: 480px) {

    .levels-grid {
        grid-template-columns: 1fr;
    }

    .level-card-top {
        height: 135px;
    }

}


.level-n5 .level-card-top {
    background-image: url('../images/levels/n5.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.level-picture-v4 {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.level-picture-v4 img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.level-picture-v4 {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.level-picture-v4 img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}