.app {
    overflow: hidden;
}

.header-wrapper {
    position: relative;
    height: var(--header-height);
    background:
    url(../img/navbar_background.jpeg)
    no-repeat
    center/cover;
    box-shadow: 0 10px 25px rgba(200, 200, 200, 0.5);
}

.header-cover {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(255 , 255, 255, 0.7);
}

.header-content {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}

.header__label {
    height: var(--header__label-height);
    display: flex;
    align-items: center;
}

.header__logo {
    margin-left: 64px;
}

.header__logo-link {

}

.header__logo-img {
    height: 120px;
}

.header__title {
    font-size: 4rem;
    color: var(--primary-color);
}

.header__navbar {
    height: var(--header__navbar-height);
    background-color: rgba(255 , 255, 255, 0.7);
}

.header__navbar-list {
    display: flex;
    justify-content: space-around;
    height: 100%;
    padding: 0 20px;
}

.header__navbar-item-link {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 14px;
    text-transform: uppercase;
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 600;
}

.header__navbar-item-link:hover {
    color: var(--primary-color);
}

.header__navbar-item-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 0;
    height: 3px;
    margin: 0 auto;
    background-color: var(--primary-color);
    transition: width 0.2s;
}

.header__navbar-item-link:hover::after {
    width: 100%;
}

/* Mobile navbar */
.mobile__navbar {
    position: absolute;
    top: 0;
    left: 0;
    height: 60px;
    padding: 0 20px;
    border: none;
    background-color: unset;
    display: none;
}

.mobile__navbar-btn {
    font-size: 2.5rem;
    color: var(--text-color);
}

.mobile__navbar-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(to bottom, #9c251c 0%, #ffffff 100%);
    opacity: 0.95;
    display: none;
}

.mobile__navbar-close {
    position: absolute;
    right: 0;
    top: 0;
    padding: 20px;
    color: var(--white-color);
    font-size: 2.5rem;
    display: none;
}

.mobile__navbar-social {
    display: none;
    width: 100px;
    color: var(--white-color);
    font-size: 2.5rem;
    z-index: 1;
}

.mobile__navbar-social-link {
    padding: 20px 16px 10px;
    color: var(--white-color);
}

/* container */
#container {
    margin-top: 12px;
    margin-bottom: 12px;
    min-height: 500px;
}

.container-content {
    background-color: var(--white-color);
    border: 1px solid #F1F2F1;
    padding-top: 40px;
    padding-bottom: 64px;
    border-radius: 2px;
}

/* Teaser */
.teaser-wrapper {
    
}

.teaser-content {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 2px;
}

.teaser-content--l {
    height: var(--teaser-content-height);
}

.teaser-content--s {
    height: calc(var(--teaser-content-height) / 2);
}

.teaser-content--s + .teaser-content--s {
    padding-top: 10px;
}

.gallery-item__label,
.teaser__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(220, 0, 0, 0.7);
    color: var(--white-color);
    z-index: 1;
}

.teaser__label--l {
    padding: 8px;
    font-size: 1.8rem;
    font-weight: 600;
}

.gallery-item__label,
.teaser__label--m {
    padding: 6px 8px;
    font-size: 1.6rem;
    font-weight: 600;
}

.teaser__label--s {
    padding: 4px 8px;
    font-size: 1.3rem;
    font-weight: 500;
}

.teaser__img {
    width: 100%;
    object-fit: cover;
    height: 100%;
    transition: transform ease 0.3s;
    border-radius: 2px;
}

.teaser-content:hover .teaser__img {
    transform: scale3d(1.1,1.1,1);
}

/* Learning info */
.courses-info {
    margin-top: 40px;
}

.section-title__link {
    color: var(--text-color);
}

.section-title__link:hover {
    color: var(--primary-color);
}

.section-title {
    font-size: 1.8rem;
    text-transform: uppercase;
    line-height: 2rem;
    display: inline-block;
    padding-left: 16px;
    margin-bottom: 6px;
}

.section-descr {
    font-size: 1.2rem;
    margin-left: 6px;
}

.section-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--text-color);
}

.learning-info {
    min-height: 154px;
    flex: 1;
    padding: 16px;
    background-color: var(--background-item-color);
    border-radius: 2px;
}

.learning-info__item {

}

.learning-info__link {
    display: block;
    margin-bottom: 4px;
    font-size: 1.4rem;
    color: var(--text-color);
    
}

.learning-info__link:hover {
    color: var(--primary-color);
}

.exam-course {
    margin-top: 10px;
    padding: 16px;
    background-color: var(--background-item-color);
    border-radius: 2px;
}

.section-subtitle--one-row {
    height: auto;
}

.exam-course__list {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

/* Information form */
.sub-infoform {
    display: block;
    padding: 10px 0;
    color: var(--white-color);
    font-size: 1.6rem;
}

.sub-infoform:hover {
    color: #47ABD8;
}

.infor-form-warpper{
    height: 100%;
}

.infor-form__content {
    padding: 16px;
    height: calc(100% - 26px);
    background-color: rgba(217, 26, 34, 0.9);
    color: var(--white-color);
    border-radius: 2px;
}

.infor-form__descr {
    font-size: 1.4rem;
    text-align: justify;
}

.infor-form{
    margin-top: 10px;
}
 
.infor-form__input {
    height: 30px;
    width: 100%;
    font-size: 1.4rem;
    padding: 6px;
    border: none;
    border-radius: 2px;
    outline-color: var(--primary-color);
}

.infor-form__input + .infor-form__input {
    margin-top: 10px;
}

.infor-form__input--note {
    height: auto;
}

.infor-form__submit {
    text-transform: uppercase;
    margin-top: 20px;
    padding: 10px;
    width: 100%;
    background-color: var(--background-item-color);
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.1s;
}

.infor-form__submit:hover {
    background-color: #fcf4e1;
}

/* footer */
#footer {
    position: relative;
    background-image: url(../img/footer_background.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.footer__content {
    color: var(--white-color);
    background: rgba(255 , 255, 255, 0.4);
}

.footer__com-name {
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-top: 40px;
    margin-bottom: 16px;
}

.footer__com-info-item {
    padding: 4px 0;
    font-size: 1.3rem;
}

.footer__com-info-icon {
    display: block;
    width: 14px;
    margin-right: 6px;
    font-size: 1.4rem;
}

.footer__com-info-link {
    color: var(--white-color);
}

.footer__location-link {
    width: 100%;
    margin-top: 40px;
    border: none;
    border-radius: 5px;
}

.footer__copyright {
    margin-top: 40px;
    padding-bottom: 10px;
    font-size: 1.4rem;
    text-align: center;
}

            /* COURSES */
/* suvnav */
.subnav__title {
    margin-top: 61px;
    padding: 8px 10px 4px;
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--text-color);
    border-bottom: solid 1px #E4E6E7;
    border-top: solid 1px #E4E6E7;
}

.subnav__list {
    padding: 0 10px;
}

.subnav__item-link {
    display: block;
    padding: 6px 10px 4px;
    font-size: 1.4rem;
    color: #5E676B;
    border-bottom: solid 1px #E4E6E7;
    transform: translateX(0);
    transition: transform 0.1s;
}

.subnav__item-link:hover {
    color: var(--primary-color);
    transform: translateX(1px);
}

.subnav-contact__title {
    margin: 14px 0 6px;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
}

.subnav-contact__item,
.subnav-contact__item-link {
    padding: 2px 0;
    font-size: 1.3rem;
    color: #5E676B;
}

.subnav-contact__item-link:hover {
    color: var(--primary-color);
}

.subnav-working-day {
    margin-top: 6px;
    font-size: 1.4rem;
    color: var(--text-color);
}

.subnav-working-time {
    margin-top: 6px;
    padding: 0 6px;
    font-size: 1.3rem;
    color: #5E676B;
}

.subnav-info-leaving {
    position: sticky;
    top: 20px;
}

/* courses content */
.content {

}

.content__title {
    margin-bottom: 20px;
    padding: 0 20px;
    font-size: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-color);
}

.content__title > span {
    display: block;
    color: #5E676B;
}

.gallery__teaser-img,
.content__teaser-img {
    width: 100%;
    object-fit: cover;
    border-radius: 2px;
    max-height: 450px;
}

.content__subtitle {
    margin-top: 30px;
    margin-bottom: 6px;
    padding: 0 20px;
    font-size: 2.4rem;
    text-transform: uppercase;
    color: var(--text-color);
}

.content__item {
    margin-top: 10px;
    padding: 16px 20px;
    height: 286px;
    color: var(--text-color);
    background-color: var(--background-item-color);
    border-radius: 2px;
}

.content__item.content__item--l {
    height: 174px;
}

.content__item.content__item--s {
    height: 140px;
    background-color: unset;
}

.content__item-title {
    margin-bottom: 8px;
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.content__item-text {
    font-size: 1.4rem;
    line-height: 2.2rem;
}

.content__item-text-link {
    color: #47ABD8;
}

.content__item-text-link:hover {
    opacity: 0.7;
}

.content__item-title-link {
    color: var(--text-color);
}

.content__item-title-link:hover {
    color: #47ABD8;
}

            /* levels overview */
/* table */
.levels-info {
    margin: 20px 0;
    border-spacing: 0;
    border-collapse: collapse;
}

.levels-info__title {
    padding: 10px;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white-color);
    background-color: #858E92;
}

.levels-info__content {
    color: var(--text-color);
    line-height: 2.2rem;
}

.levels-info__item {
    padding: 8px 20px;
    background-color: #F1F2F1;
    border-bottom: 1px solid #adb3b6;
}

.levels-info__name {
    font-size: 1.6rem;
}

.levels-info__descr {
    font-size: 1.4rem;
}

            /* culture */
.culture-teaser {
    display: flex;
    border-radius: 2px;
    overflow: hidden;
}

.culture-teaser__link {
    display: block;
}

.culture-teaser__img {
    width: 300px;
    display: block;
}

.culture-teaser__content {
    padding: 20px;
    background-color: #788287b8;
    color: var(--white-color);
}

.culture-teaser__heading {
    text-transform: uppercase;
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--white-color);
}

.culture-teaser__heading:hover {
    opacity: 0.8;
}

.gallery-content__img,
.culture-content__img {
    width: 100%;
    display: block;
    border-radius: 2px;
}

.gallery-item__content,
.culture-item__content {
    margin-top: 24px;
}

.gallery-item,
.culture-item__link {
    display: block;
    margin-bottom: 16px;
}

            /* introduce */
.introduce-content__text {
    margin-top: 20px;
    margin-bottom: 64px;
    text-align: justify;
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--text-color);
}

.introduce-content__text--bold {
    font-weight: 600;
}

            /* Gallery */
.gallery__teaser-img {
    object-position: top;
}

.gallery-item__content:hover .gallery-content__img {
    transform: scale3d(1.1, 1.1, 1);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-content__img {
    height: 270px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item__label {
    text-transform: uppercase;
}

.gallery__content {
    position: relative;
    margin-top: 20px;
    border-radius: 2px;
    height: 430px;
}

.gallery__content-list {
    display: flex;
    justify-content:center;
    height: 100%;
    width: 100%;
}

.gallery__subcontent-item {
    position: absolute;
    height: 100%;
    width: 80%;
    opacity: 0;
    transition: opacity 1s;
}

.gallery__subcontent-item-img {
    width: 100%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 2px;
}

.gallery__subcontent-item-number,
.gallery__subcontent-item-descr {
    color: #5f676b;
    font-size: 1.6rem;
    font-weight: 600;
}

.gallery__subcontent-item-number {
    float: right;
}

.gallery__subcontent-item.active {
    opacity: 1;
}

.gallery__content-next {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1;
}

.gallery__content-prev {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1;
}

.gallery__content-btn {
    display: flex;
    align-items: center;
    justify-content: center; 
    width: 30px;
    height: 50px;
    background-color: rgba(41,48,59,.7);
    cursor: pointer;
}

.gallery__content-next {
    border-bottom-left-radius: 2px;
    border-top-left-radius: 2px;
    overflow: hidden;
}

.gallery__content-prev {
    border-bottom-right-radius: 2px;
    border-top-right-radius: 2px;
    overflow: hidden;
}

.gallery__content-btn-icon {
    font-size: 2rem;
    color: var(--white-color);
}

.gallery__content-btn:hover {
    background-color: var(--primary-color);
}

.gallery__subitem-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
}

.gallery__subitem {
    width: 100%;
    cursor: pointer;
    transition: all ease-out 0.1s;
}

.gallery__subitem:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.gallery__subitem-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

            /* why Germany*/
.content__item-text span {
    display: block;
    margin-top: 16px;
    font-size: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.content__item-text ~ .content__item-title {
    margin-top: 24px;
}

            /* goethe & telc */
.content__item-text li {
    list-style-type: disc;
    margin-left: 6px;
    font-size: 1.4rem;
    line-height: 2.2rem;
}

.levels-info__descr ~ li {
    list-style-type: disc;
    font-size: 1.4rem;
}

.levels-info th:nth-child(2) {
    border-left: 1px solid #ddd;
}

.levels-info__content td:nth-of-type(2n),
.levels-info__content td:nth-child(3) {
    border-left: 1px solid #848E91;
}

.levels-info__content td:nth-of-type(2n) {
    width: 35%;
}