.section-learning a{
    color: #E8E8E8;
}
.section-learning a:hover{
    color:#c99938;

}
/* four photo */
.visible-xs {
    display: none !important;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

.learning-class {
    position: relative;
    width: 100%;
    padding-bottom: 35%;
    display: block;
    overflow: hidden;
}

/* background--img */
.learning-class .before.hidden-xs {
    background-position: center calc(50% - 8%);
}

.learning-class .before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

@media (max-width: 991px) {
    .learning-class {
        padding-bottom: 0 !important;
    }
}

.learning-repeat {
    position: absolute;
    height: 100%;
    width: 100%;
    bottom: 0;
    left: 0;
    display: block;
}

@media (max-width: 991px) {
    .learning-repeat {
        position: relative;
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 767px) {
    .learning-repeat {
        display: block;
        height: 500px;
    }
}

.learning-repeat > .class-item {
    display: block;
    float: left;
    height: 100%;
    width: 25%;
    padding: 30px;
    transition: 0.6s all ease-in-out;
    background: transparent;
    position: relative;
    z-index: 10;
}

.learning-repeat > .class-item:before {
    transition: all 0.4s ease-in-out;
}

.learning-repeat > .class-item.row-2:before,
.learning-repeat > .class-item.row-3:before,
.learning-repeat > .class-item.row-4:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    z-index: 1;
}

@media (max-width: 1366px) {
    .learning-repeat > .class-item {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .learning-repeat > .class-item {
        display: block;
        width: 50%;
        float: left;
        height: 250px;
        position: absolute;
    }
}

.learning-repeat > .class-item .before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease-in-out;
    opacity: 1;
}

@media (max-width: 767px) {
    .learning-repeat > .class-item.row-1 {
        top: 0;
        left: 0;
    }

    .learning-repeat > .class-item.row-2 {
        top: 0;
        right: 0;
    }

    .learning-repeat > .class-item.row-3 {
        bottom: 0;
        left: 0;
    }

    .learning-repeat > .class-item.row-4 {
        bottom: 0;
        right: 0;
    }
}

.learning-repeat .inner {
    position: relative;
    height: 100%;
    overflow: hidden;
    z-index: 5;
}

/* 背景颜色 */
.learning-repeat .inner .title {
    font-size: 40px;
    font-weight: bold;
    line-height: 1.15em;
    position: absolute;
    bottom: 0;
    left: 50%; /* 将文字水平居中 */
    transform: translateX(-50%); /* 水平居中偏移修正 */
    color: #E8E8E8;
    z-index: 5;
    transition: all 0.4s ease-in-out;
    opacity: 1;
}


@media (min-width: 1201px) and (max-width: 1250px) {
    .learning-repeat .inner .title {
        font-size: 28px;
    }
}

@media (max-width: 1366px) {
    .learning-repeat .inner .title {
        white-space: normal;
    }
}



.learning-repeat .inner .cta {
    position: absolute;
    bottom: 0;
    left: 60%;
    overflow: hidden;
    color: #fff;
    transition: all 0.4s ease-in-out;
    opacity: 0;
    font-size: 20px;
    font-weight: normal;
    z-index: 1;
}

.learning-repeat .inner .cta .cta-title {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.15em;
    white-space: nowrap;
}

.learning-repeat .inner .cta .content {
    margin: 10px 0 20px;
}

.learning-repeat .inner .cta a.button {
    white-space: nowrap;
}


@media (max-width: 1700px) {
    .learning-repeat .inner .cta a.button {
        padding-left: 40px;
        padding-right: 40px;
    }
}

.learning-repeat .class-item .close-class {
    position: absolute;
    top: 35px;
    right: 15px;
    width: 40px;
    height: 40px;
    line-height: 41px;
    text-align: center;
    display: block;
    z-index: 55;
    color: #fff;
    font-size: 70px;
}

.learning-repeat .class-item .close-class span {
    display: inline-block;
    transition: all 0.4s ease-in-out;
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    opacity: 0;
}

.learning-repeat .class-item.active .close-class span {
    opacity: 1;
}

.learning-repeat.hovered > .class-item {
    width: 22%;
}

.learning-repeat.hovered > .class-item:before,
.learning-repeat.hovered > .class-item .before {
    opacity: 0;
}

.learning-repeat.hovered > .class-item .title {
    opacity: 0;
}

.learning-repeat.hovered > .class-item .line {
    opacity: 0.5;
}

@media (max-width: 1366px) {
    .learning-repeat.hovered > .class-item {
        width: 20%;
    }
}

@media (max-width: 991px) {
    .learning-repeat.hovered > .class-item {
        width: 16.666%;
    }
}

.learning-repeat.hovered > .class-item.active {
    width: 34%;
    background-color: rgba(0, 0, 0, 0.8);
    background-image: none;
}

@media (max-width: 1366px) {
    .learning-repeat.hovered > .class-item.active {
        width: 40%;
    }
}

@media (max-width: 991px) {
    .learning-repeat.hovered > .class-item.active {
        width: 50%;
    }
}

.learning-repeat.hovered > .class-item.active .line {
    opacity: 1;
}

.learning-repeat.hovered > .class-item.active .cta {
    opacity: 1;
    z-index: 10;
}

@media (max-width: 767px) {
    .learning-repeat.hovered > .class-item {
        width: 50%;
    }

    .learning-repeat.hovered > .class-item .before,
    .learning-repeat.hovered > .class-item .title {
        opacity: 1;
    }

    .learning-repeat.hovered.active-row-1 > .class-item,
    .learning-repeat.hovered.active-row-2 > .class-item {
        width: 0%;
        height: 0%;
        transform: scale(0);
        padding: 0;
    }

    .learning-repeat.hovered.active-row-1 > .class-item .before,
    .learning-repeat.hovered.active-row-1 > .class-item .title,
    .learning-repeat.hovered.active-row-2 > .class-item .before,
    .learning-repeat.hovered.active-row-2 > .class-item .title {
        opacity: 0;
    }

    .learning-repeat.hovered.active-row-1 > .class-item.active,
    .learning-repeat.hovered.active-row-2 > .class-item.active {
        width: 100%;
        height: 100%;
        transform: scale(1);
        padding: 20px;
    }

    .learning-repeat.hovered.active-row-1 > .class-item.active .before,
    .learning-repeat.hovered.active-row-1 > .class-item.active .title,
    .learning-repeat.hovered.active-row-2 > .class-item.active .before,
    .learning-repeat.hovered.active-row-2 > .class-item.active .title {
        opacity: 0;
    }

    .learning-repeat.hovered .row-1 {
        transform-origin: top left;
    }

    .learning-repeat.hovered .row-2 {
        transform-origin: top right;
    }

    .learning-repeat.hovered .row-3 {
        transform-origin: bottom left;
    }

    .learning-repeat.hovered .row-4 {
        transform-origin: bottom right;
    }
}

.learning-repeat .background-holder {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
}

.learning-repeat .background-holder > div {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease-in-out;
    opacity: 0;
}

.learning-repeat .background-holder > div.active {
    opacity: 1;
}
