/* 
    Styles for Custom Template
*/

html {
    margin-top: 0 !important;
}

#main {
    width: auto;
    padding: 0;
    float: none;
}

.custom-header {
    background: #0A3868;
    position: relative;
}

.custom-header.has-submenu {
    margin-bottom: 84px;
}

.custom-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#header-glass {
    margin-right: 20px;
}

.page-template-custom-menu .container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.page-template-custom-menu .custom-header .container {
    height: 46px;
}

.container-custom-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
}

.container-custom-menu .menu-item:hover {
    opacity: .8;
}

.container-custom-menu ul li a {
    color: #fff;
    padding: 0 28px;
}

.container-custom-menu li ul.sub-menu li a {
    color: #0A3868;
    font-size: 12px;
}

.container-custom-menu li ul.sub-menu {
    position: absolute;
    background: #fff;
    margin: 0;
    top: 46px;
    padding: 10px 0;
    display: none;
    width: 100%;
    left: 0;
}

.container-custom-menu li.current-menu-item.page_item.current_page_item {
    font-weight: 700;
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 16px;
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li a::before {
    margin-bottom: 4px;
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.maestros a::before {
    content: url("../images/maestros.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.secundaria a::before {
    content: url("../images/secundaria.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.fp a::before {
    content: url("../images/fp.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.eoi a::before {
    content: url("../images/eoi.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.inspeccion a::before {
    content: url("../images/inspeccion.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.educador-infantil a::before {
    content: url("../images/educador-infantil.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.conservatorio a::before {
    content: url("../images/conservatorio.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.cursos-homologados a::before {
    content: url("../images/cursos-homologados.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.grados a::before {
    content: url("../images/grados.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.menciones a::before {
    content: url("../images/menciones.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.masteres-oficiales a::before {
    content: url("../images/masteres-oficiales.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.curso-ingles a::before {
    content: url("../images/curso-ingles.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.deca a::before {
    content: url("../images/deca.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.titulaciones a::before {
    content: url("../images/titulaciones.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.semana a::before {
    content: url("../images/semana.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.recursos-gratis a::before {
    content: url("../images/recurso-gratis.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.tienda-magister a::before {
    content: url("../images/tienda-magister.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.tienda-investigacion a::before {
    content: url("../images/investigacion.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.publicaciones a::before {
    content: url("../images/publicaciones.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.comunidad a::before {
    content: url("../images/comunidad.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.informacion-importante a::before {
    content: url("../images/informacion-importante.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.blog a::before {
    content: url("../images/blog.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.actualidad a::before {
    content: url("../images/actualidad.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.plazas-previsiones a::before {
    content: url("../images/plazas-previsiones.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.inicio a::before {
    content: url("../images/inicio.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.sobre-magister a::before {
    content: url("../images/sobre-magister.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.donde-damos-clases a::before {
    content: url("../images/donde-damos-clases.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.testimonios a::before {
    content: url("../images/testimonios.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.trabaja-nosotros a::before {
    content: url("../images/trabaja-nosotros.svg");
}

.container-custom-menu li.current-menu-item.page_item.current_page_item .sub-menu li.contacto a::before {
    content: url("../images/contacto.svg");
}

.custom-hero {
    background: #C0E5FC;
    position: relative;
}

.custom-hero.hero-big {
    height: 540px;
}

.custom-hero.hero-medium {
    height: 420px;
}

.custom-hero.hero-small {
    height: 300px;
}

.custom-hero:after {
    content: "";
    position: absolute;
    background: url("../images/hero-bottom.png") center / cover;
    width: 100%;
    height: 208px;
    bottom: 0;
    left: 0;
}

.custom-hero.hero-big:after {
    height: 208px;
}

.custom-hero.hero-medium:after {
    height: 148px;
}

.custom-hero.hero-small:after {
    height: 108px;
}

.custom-hero .wpb_column.vc_column_container.vc_col-sm-6 {
    height: 100%;
    width: 50% !important;
    float: left;
}

.custom-hero .wpb_column.vc_column_container.vc_col-sm-6:nth-child(1) {
    padding-top: 30px;
}

.custom-hero .wpb_column.vc_column_container.vc_col-sm-6:nth-child(2) {
    position: relative;
}

.custom-hero .wpb_column.vc_column_container.vc_col-sm-6:nth-child(2)::after {
    content: "";
    background: url(../images/hero-figure.png) no-repeat center / contain;
    position: absolute;
    width: 100%;
    height: 500px;
    bottom: -20px;
}

.header-options {
    display: flex;
    align-items: center;
}

img.hero-figure {
    height: 480px;
    position: absolute;
    bottom: 0;
}

.row-flex {
    display: flex;
}

.column-flex {
    flex: 1;
}

.column-flex.right-column {
    display: flex;
    justify-content: center;
}

#campus-item {
    color: #fff;
    text-transform: uppercase;
    font-size: 10px;
    display: flex;
    align-items: center;
    flex-direction: column;
    line-height: normal;
}

#campus-item span {
    margin-top: 5px;
}

.custom-header.mobile-header {
    display: none;
}

.menu-mobile ul li ul.sub-menu {
    display: none;
}

.menu-mobile .searchform,
.has-submenu-search .searchform {
    position: relative;
    padding: 0 0 0 20px;
    margin-top: 10px;
}

.has-submenu-search .searchform {
    padding: 0 20px;
}

.menu-mobile .searchform input,
.has-submenu-search .searchform input {
    background: #0A3868;
    border-radius: 32px;
    padding-left: 52px;
    width: 100%;
    margin: 0 auto;
    color: #fff;
}

.menu-mobile .searchform .search-icon,
.has-submenu-search .search-icon {
    position: absolute;
    top: 12px;
    left: 36px;
}

.has-submenu-search {
    position: absolute;
    top: 46px;
    width: 100%;
}

.menu-mobile .menu {
    padding: 0 0 0 24px;
    margin: 0;
}

.menu-mobile .menu ul {
    padding: 10px 0 0 0;
}

.slick-prev-button,
.slick-next-button {
    left: 0 !important;
    background: #32577E !important;
    z-index: 999;
    height: 100% !important;
    margin: 0;
    width: 24px !important;
    position: absolute;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.slick-next-button {
    left: auto !important;
    right: 0 !important;
}

.mobile-menu-submenus {
    display: none;
}

.body-overlay {
    background: rgba(0, 0, 0, 0.48);
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 99;
    top: 46px;
    display: none;
}

.searchform-header {
    align-items: center;
    height: 46px;
    width: 670px;
    margin-left: -335px;
    position: absolute;
    max-width: 100%;
    left: 50%;
    top: 0;
    display: none;
    transition: all 0.3s ease;
    background: #0A3868;
    z-index: 999;
}

.searchform-header form {
    padding-right: 40px;
}

.searchform-header input#input-search {
    width: calc(100% - 60px);
    height: 38px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #fff;
    position: relative;
    transition: all 0.5s ease;
    padding-left: 35px;
}

.quick-links {
    background: #fff;
    z-index: 999;
    position: fixed;
    width: 730px;
    padding: 30px 40px 22px;
    max-width: 100%;
    border-radius: 0 0 18px 18px;
    margin-left: -365px;
    left: 50%;
    display: none;
    top: 46px;
}

.quick-links h3 {
    margin: 0 0 10px 0;
    color: #6e6e73;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.quick-links ul {
    margin: 0;
    padding: 0;
}

.quick-links li {
    list-style: none;
    padding: 8px 30px 8px 20px;
    left: 80px;
    position: relative;
}

.quick-links a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 13px;
}

.searchform-header input#input-search::placeholder {
    color: #d4d4d4;
}

.searchform-header:before {
    content: url(../images/header-glass.png);
    position: absolute;
    left: 0;
    top: 15px;
    cursor: pointer;
}

#close-header-search {
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 16px;
}

body .vc_row[data-vc-full-width] {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw !important;
    padding-left: calc((100vw - 1085px) / 2) !important;
    padding-right: calc((100vw - 1085px) / 2) !important;
}

@media (max-width: 1920px) and (min-width: 1500px) {
    .custom-hero {
        max-height: 630px;
    }

    .custom-hero::after {
        max-height: 290px;
    }
}

@media (max-width: 1500px) and (min-width: 1366px) {
    .custom-hero::after {
        height: 240px;
    }

    .custom-hero {
        max-height: 560px;
    }
}

@media (max-width: 1100px) {
    .container-custom-menu ul li a {
        padding: 0 18px;
    }
}

@media (max-width: 992px) {
    img.hero-figure {
        height: 400px;
        bottom: 5px;
    }

    .custom-hero {
        max-height: 480px;
    }

    .custom-header.desktop-header,
    .container-custom-menu li.current-menu-item.page_item.current_page_item a {
        display: none;
    }

    .container-custom-menu ul {
        padding: 0 16px !important;
    }

    .page-template-custom-menu .custom-header .container {
        height: 46px;
        margin-bottom: 140px;
    }

    .slick-track {
        display: flex !important;
        align-items: flex-end !important;
    }

    .slick-list.draggable {
        width: 80%;
        height: 100px;
        padding: 4px 0 10px;
        align-items: center;
        display: flex;
    }

    .mobile-menu-submenus {
        margin-bottom: -4px;
        display: block;
    }

    .container-custom-menu ul {
        padding: 0 !important;
        top: 104px !important;
    }

    .custom-header.mobile-header {
        margin-bottom: 0;
    }

    .custom-header.mobile-header {
        display: block;
        position: relative;
    }

    .menu-mobile {
        display: none;
        background: rgba(10, 56, 104, .7);
        z-index: 9999;
        position: fixed;
        left: 0;
        border-radius: 0 0 200px 0;
        height: calc(100% - 46px);
        top: 46px;
        width: 100%;
        padding-right: 20px;
    }

    .icon-magister {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        text-align: center;
        left: 50%;
        margin-left: -15px;
    }

    #mobile-menu-icon,
    #close-mobile-menu-icon,
    #close-header-search {
        cursor: pointer;
    }

    .close-area {
        display: none;
        position: fixed;
        bottom: 0;
        right: 0;
        z-index: 9999;
        width: 188px;
        height: 196px;
    }

    .close-area::after {
        content: "";
        position: fixed;
        bottom: 0;
        right: -1px;
        width: 188px;
        height: 196px;
        background: url(../images/close-back.png) no-repeat center / contain;
        z-index: 999;
    }

    #close-mobile-menu-icon {
        cursor: pointer;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
    }

    .menu-mobile li {
        list-style: none;
        margin-bottom: 20px;
        position: relative;
        padding-left: 38px;
    }

    .menu-mobile li::before {
        content: "";
        position: absolute;
        width: 21px;
        height: 4px;
        background: #fff;
        left: 0;
        border-radius: 3px;
        top: 10px;
    }

    .menu-mobile li a {
        color: #fff;
        text-transform: uppercase;
        font-size: 12px;
        list-style: none;
    }

    .custom-hero .wpb_column.vc_column_container.vc_col-sm-6:nth-child(2)::after {
        max-height: 430px;
        bottom: 4px;
    }
}

@media (max-width: 700px) {
    img.hero-figure {
        height: 200px;
    }

    .custom-hero::after {
        max-height: 100px;
    }

    .custom-hero {
        max-height: 340px
    }

    .custom-hero .wpb_column.vc_column_container.vc_col-sm-6:nth-child(2)::after {
        height: 310px;
        bottom: 0;
    }
}

@media (max-width: 450px) {
    .custom-hero::after {
        height: 68px;
    }

    .custom-hero {
        max-height: 230px;
    }

    img.hero-figure {
        bottom: 0;
    }

    .custom-hero .wpb_column.vc_column_container.vc_col-sm-6:nth-child(2)::after {
        height: 230px;
        bottom: -30px;
    }

    .page-template-custom-menu .custom-header .container {
        margin-bottom: 118px;
    }

    .custom-hero .wpb_column.vc_column_container.vc_col-sm-6:nth-child(2)::after {
        max-height: 200px;
        bottom: 0;
    }
}

@media (max-width: 350px) {
    .custom-hero {
        max-height: 214px;
    }

    img.hero-figure {
        height: 180px;
    }

    .custom-hero::after {
        max-height: 60px;
    }
}