﻿/*TRAVEL A TO Z*/
.travel-content {
    display: flex;
    flex-flow: row wrap;
    justify-content:start;
}
.travel-content a {
    text-decoration:none;
}
.box-container {
    display: inline-block;
    position: relative;
    margin: 5px;
    margin-bottom:50px;
    transition: all .25s ease-in-out;
    border:1px solid #b6b6b6;
}

/*.box-container img {
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
}*/

/*.box-title {
    position: absolute;
    bottom: 25px;
    left: 15px;
    text-align: left;
}*/

.box-title {
    width:300px;
    height:75px;
    display:flex;
    flex-flow:column;
    justify-content:center;
    font-family: 'NanumSquareR';
    transition: all .25s ease-in-out;
    text-align: left;
    padding: 20px 10px;
    -webkit-font-smoothing: antialiased;
}
.box-title h2 {
    color:#000;
}
.box-title p {
    color:#9a9a9a;
}

.box-container h4 {
    position: absolute;
    bottom: 18px;
    left: 15px;
    color: #fff;
    margin: 10px 0;
    opacity: 0;
    transition: all .25s ease-in-out;
}

.box-container:hover h4 {
    opacity: 1;
}

.box-container:hover {
    box-shadow:0px 0px 15px #939393;
    transform:scale(105%);
}
/*.box-container:hover .box-title {
    margin-bottom: 40px;
}*/
.box-title p {
    margin: 0;
}

/*.title-shadow {
    width: 100%;
    height: 50%;
    position: absolute;
    bottom: 4px;
    background: rgb(255,255,255);
    background: linear-gradient(180deg, rgba(255,255,255,0) 30%, rgba(0,0,0,0.9458158263305322) 100%);
    transition: all .25s ease-in-out;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
}

.travel-overlay {
    width: 100%;
    height: 98%;
    top: 0;
    left: 0;
    position: absolute;
    background: rgb(28,82,158);
    background: linear-gradient(180deg, rgba(28,82,158,0.8) 100%, rgba(28,82,158,0.8) 100%);
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    opacity: 0;
    transition: all .25s ease-in-out;
}*/

/*.box-container:hover .travel-overlay {
    opacity: 1;
}*/
@media screen and (max-width:1080px) {
    .travel-content {
        justify-content:center;
    }
}
@media screen and (max-width:500px) {
    .box-container img {
        width: 100%;
    }

    .box-title h2 {
        font-size: 5.5vw;
    }

    .box-title p {
        font-size: 3.5vw;
    }

    .box-container h4 {
        font-size: 3.5vw;
    }
}
/********/


/*FOOD*/
.food-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: start;
}

.food {
    text-align: center;
    margin: 0 16.6px;
    cursor: pointer;
    margin-bottom:50px;
}

    .food h2 {
        margin-top: 20px;
    }

    .food p {
        margin-top: 0 !important;
    }

        .food p strong {
            color: #b4813e !important;
        }
    /* Circle */
    .food::after {
        content: '';
        clear: both;
        display: block;
    }

figure {
    width: 300px;
    height: 300px;
    background: #fff;
    overflow: hidden;
}

.food figure {
    position: relative;
}

    .food figure::before {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 2;
        display: block;
        content: '';
        width: 0;
        height: 0;
        background: rgba(255,255,255,.2);
        border-radius: 100%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        opacity: 0;
    }

    .food figure:hover::before {
        -webkit-animation: circle .75s;
        animation: circle .75s;
    }

@-webkit-keyframes circle {
    0% {
        opacity: 1;
    }

    40% {
        opacity: 1;
    }

    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

@keyframes circle {
    0% {
        opacity: 1;
    }

    40% {
        opacity: 1;
    }

    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

.modal {
    width: 100%;
    height: 100%;
    display: none;
    z-index: 9999;
    position: fixed;
}

.food-modal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9999;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.food-modal {
    max-width: 600px;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 0.6em 2em 2em;
    z-index: 1;
    position: relative;
}

    .food-modal img {
        width: 100%;
    }

.modal-close img {
    width: 20px;
}

.modal-close {
    display: flex;
    justify-content: end;
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
}

.modal-overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    background-color: black;
    opacity: 0.5;
}

@media screen and (max-width:1080px) {
    figure {
        width:250px;
        height:250px;
    }
    .food-container {
        justify-content:space-between;
    }
}
@media screen and (max-width:995px) {
    .food-container {
        justify-content: space-evenly;
    }
}
@media screen and (max-width:500px) {
    figure {
        width:180px;
        height:180px;
    }
    .food {
        margin-bottom:20px;
    }
}
/********/

/*EVENTS PAGE*/
.tab-nav {
    width: 100%;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
}

.tab-btn {
    font-family: 'NanumSquareR', sans-serif;
    width: 50%;
    padding: 10px 15px;
    border: 2px solid #000;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: all .25s ease-in-out;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

    .tab-btn:hover {
        background: #2555a3;
        color: #fff;
    }

/*.tab-active {
    background: #2555a3;
    color: #fff;
}*/

.event-box {
    display: flex;
    flex-flow: column;
    justify-content: center;
}

.event-box img {
    width: 100%;
}

.event-box h3 {
    font-family: 'NanumSquareR', sans-serif;
    font-weight: 700;
    font-size: 25px;
    color: #0f0f0f;
    margin-top: 20px;
}

.event-box p {
    margin-top: 5px;
    color: #878787;
    font-size: 18px;
}

.event-tab {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: center;
}

    .event-tab a {
        width: 450px;
        text-decoration: none;
    }

.single {
    justify-content: flex-start;
}

/*LEARN ENGLISH*/

.new-subpage-banner {
    width: 100%;
    height: 300px;
    display: table;
}
.english-banner {
    background: url('../img/learn-english/english-banner.jpg') no-repeat;
    background-position: center center;
}
.learn-btns img {
    transition: all .25s ease-in-out;
}
.learn-btns img:hover {
    transform:scale(103%);
}

/*ESL SCHOOLS*/
.esl-acad-nav li {
    width: 50%;
    margin: 0 !important;
    padding: 10px;
}

.esl-acad-nav li button {
    width: 100%;
    border: 1px solid #bebebe !important;
    padding: 5px;
    font-weight: bold;
    color: #212529;
}

.esl-acad-nav li button:hover {
    background-color: #1c529e;
    border: 1px solid #1c529e !important;
    color: #fff;
}

.esl-acad-nav .nav-link.active {
    background-color: #1c529e;
    border: 1px solid #1c529e !important;
}

.school-content a {
    text-decoration: none;
}

.school-content .col-md-6 {
    margin-bottom: 50px;
}

@media (max-width:580px) {
    .esl-acad-nav li {
        width: 100%;
    }
}



@media screen and (max-width:1050px) {
    .event-tab a {
        width: 50%;
    }

    .event-box {
        width: 95%;
        margin: 0 auto;
    }

    .single .event-box {
        width: 450px;
    }
}

@media screen and (max-width:700px) {
    .event-box h3 {
        font-size: 3.5vw;
    }
}

@media screen and (max-width:600px) {
    .event-tab {
        flex-flow: column wrap;
    }

    .single .event-box {
        width: 95%;
        margin: 0 auto;
    }

    .event-tab a {
        width: 95%;
    }

    .event-box h3 {
        font-size: 25px;
    }
}

@media screen and (max-width: 498px) {
    .tab-nav {
        flex-flow: column;
    }

    .tab-btn {
        width: 70%;
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 450px) {
    .event-box h3 {
        font-size: 22px;
    }

    .event-box p {
        font-size: 16px;
    }
}

/*TOUR PACKAGE SLIDER*/

.expanding-flex-cards {
    display: flex;
    flex-wrap: nowrap;
    overflow: auto;
    justify-content: center;
}

.expanding-flex-cards > .expanding-flex-cards-item {
    height: 500px;
    width: 250px;
    position: relative;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    margin-right: 15px;
    margin-top: 30px;
    margin-bottom: 50px;
    padding: 20px 10px;
    box-shadow: 0px 2px 11px #ffffff52;
    transition: all .3s ease;
}
.expanding-flex-cards-item-body .arrow {
    width:50px;
    cursor:pointer;
    transition:all .25s ease-in-out;
}
.expanding-flex-cards-item-body .arrow:hover {
    transform:scale(105%)
}
.expanding-flex-cards > .expanding-flex-cards-item.active {
    width: 46%;
}

 .expanding-flex-cards > .expanding-flex-cards-item:not(.active) {
     cursor: pointer;
 }

 .expanding-flex-cards > .expanding-flex-cards-item:hover:not(.active) {
     transform: scale(1.05);
 }

 .expanding-flex-cards > .expanding-flex-cards-item > img {
     position: absolute;
     top: 0;
     left: 0;
     height: 100%;
     width: 100%;
     object-fit: cover;
     object-position: center center;
     opacity:.8;
 }

 .expanding-flex-cards > .expanding-flex-cards-item > .expanding-flex-cards-item-footer {
     top: 50%;
     z-index: 1;
     position: absolute;
     width: 100%;
     display: flex;
     align-items: center;
     transition: all .3s ease;
     justify-content:center;
 }

 .expanding-flex-cards > .expanding-flex-cards-item:not(.active) > .expanding-flex-cards-item-footer {
     left: 0;
     max-height: calc(35%);
     overflow: hidden;
 }

 .expanding-flex-cards > .expanding-flex-cards-item > .expanding-flex-cards-item-footer > .expanding-flex-cards-icon {
     width: 30px;
     height: 30px;
     display: flex;
     align-items: center;
     justify-content: center;
     background: #fff;
     color: #464444;
     border-radius: 50% 50%;
     font-size: 16px;
     font-weight: bolder;
     box-shadow: 0px 1px 5px #00000021;
     transition: all .3s ease;
 }

 .expanding-flex-cards > .expanding-flex-cards-item > .expanding-flex-cards-item-footer > .expanding-flex-cards-title {
     padding: 0px 10px;
     text-shadow: 0px 1px 3px #1616168f;
     transition: all .3s ease;
     font-size:25px;
     color:#fff;
 }

 .expanding-flex-cards > .expanding-flex-cards-item.active > .expanding-flex-cards-item-footer > .expanding-flex-cards-title {
     display: none;
     padding: 0px 10px;
     text-shadow: 0px 1px 3px #1616168f;
     font-size:40px;
 }

 .expanding-flex-cards > .expanding-flex-cards-item > .expanding-flex-cards-item-body {
     display: none;
     position: absolute;
     left: 0;
     top: 10%;
     width: calc(100% - 75px);
     height: calc(75% - -40px);
     padding: 20px 50px;
     overflow: auto;
     align-items: center;
     justify-content: center;
 }

     .expanding-flex-cards > .expanding-flex-cards-item > .expanding-flex-cards-item-body p {
         color:#fff;
         text-align: left;
         font-size: 24px;
         width: 100%;
         font-weight: 500;
         text-shadow: 0.5px 0.5px 3px #000;
     }
    .expanding-flex-cards > .expanding-flex-cards-item > .expanding-flex-cards-item-body h2 {
        font-size: 35px;
        font-weight: bold;
        color: #fff;
        text-shadow: 0.5px 0.5px 3px #000;
    }

    .expanding-flex-cards > .expanding-flex-cards-item.active > .expanding-flex-cards-item-body {
        display: flex;
        transform: scale(0);
        animation: expanding-flex-cards-item-body-reveal .8s ease forwards;
        flex-flow: column;
        align-items: start;
    }

@keyframes expanding-flex-cards-item-body-reveal {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}
@media (max-width:1300px) {
    .slider4 .expanding-flex-cards > .expanding-flex-cards-item {
        width:150px;
    }
    .slider4 .expanding-flex-cards > .expanding-flex-cards-item.active {
        width:50%;
    }
}
@media (max-width:950px) {
    .expanding-flex-cards > .expanding-flex-cards-item.active {
        width:66%;
    }
}
@media (max-width:850px) {
    .slider4 .expanding-flex-cards > .expanding-flex-cards-item.active, .slider3 .expanding-flex-cards > .expanding-flex-cards-item.active {
        width: 100%;
    }
    .slider4 .expanding-flex-cards > .expanding-flex-cards-item, .slider3 .expanding-flex-cards > .expanding-flex-cards-item {
        width: 60px;
    }
        .slider4 .expanding-flex-cards > .expanding-flex-cards-item > .expanding-flex-cards-item-footer, .slider3 .expanding-flex-cards > .expanding-flex-cards-item > .expanding-flex-cards-item-footer {
            top: 35%;
        }
}
@media (max-width:750px) {
    .expanding-flex-cards > .expanding-flex-cards-item > .expanding-flex-cards-item-body {
        width: calc(100% - -15px);
    }
}
@media (max-width:650px) {
    
    .expanding-flex-cards > .expanding-flex-cards-item > .expanding-flex-cards-item-body p {
        font-size:3.5vw;
    }
    .expanding-flex-cards > .expanding-flex-cards-item > .expanding-flex-cards-item-body h2 {
        font-size:6vw;
    }
}
 
@media (max-width:500px) {
    .expanding-flex-cards > .expanding-flex-cards-item > .expanding-flex-cards-item-body {
        padding: 20px 10px;
        width: calc(100% - 20px);
    }
}