/* Список констант*/
:root {
    --color-white: #ffffff; /* фон блока с информацией */
    --color-background: #f2f6fd; /* серый фон (напрмимер контента) #edeef0*/
    --color-border: #dce1e6; /* цвет границ */
    --container-width: 1200px; /* ширина контейнера */
    --color-text: #000000; /* цвет основного текста*/
    --color-link: #0065a2; /* цвет ссылок a:link, основной цвет сайта*/
    --color-navbar-gradient-start: #00a3c3; /* цвет начала градиента для navbar и card-header */
    --color-navbar-gradient-end: #0065a2; /* цвет конца градиента для navbar и card-header */
    --logo-hue-rotate: 0deg; /* цвет фильтра логотипа */
    --logo-saturate: 100%; /* насыщенность логотипа */
}

/* Прижатие footer к низу с небольшим количеством контента */
html,
body {
    height: 100%;
    margin: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Занимает всю высоту экрана */
}

#content {
    flex: 1; /* Занимает оставшееся пространство */
}
/* / Прижатие footer к низу с небольшим количеством контента */

body {
    font-family: "Open Sans", sans-serif;
    color: var(--color-text);
    background-color: var(--color-background);
    font-size: 14px;
}

a {
    color: var(--color-link);
    text-decoration: none;
}

.logo-main {
    filter: hue-rotate(var(--logo-hue-rotate)) saturate(var(--logo-saturate));
}

.container {
    width: var(--container-width);
    margin: 0 auto;
}

#flash {
    background-color: var(--color-background);
}

/* Самое верхнее меню (синее)
   header nav.nav-primary = #navigation-top
*/
#header nav.nav-primary {
    background: radial-gradient(
        circle,
        var(--color-navbar-gradient-start) 0%,
        var(--color-navbar-gradient-end) 100%
    );
    border-radius: 0;
}

#header nav.nav-primary * {
    font-size: 12px;
}

#header nav.nav-primary a {
    color: #fff;
}

/* Блок основного меню*/
.main-menu {
    border: 1px solid var(--color-border);
    border-radius: 5px; /*border-radius: 0.375rem;*/
    padding: 15px;
    background-color: var(--color-white);
}

/* Черное выпадающее меню: верхний список ul */
.dropdown-menu-up-list {
    border: none;
}

/* Черное выпадающее меню: выпадающее меню */
.dropdown-menu-up-list > li > a {
    color: #363636;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 11px;
}

.dropdown-menu-up-list > li > a:hover,
.dropdown-menu-up-list > li > a:focus,
.dropdown-menu-up-list > li > a:active {
    color: #363636;
}

.dropdown-menu-up-list > li > ul > li a:active {
    background-color: #e7e7e7;
    color: #363636;
}

.dropdown-menu-up-list .nav-item:hover {
    background-color: #e7e7e7;
}

.dropdown-menu-up-list li > ul > li {
    font-size: 14px;
}

/* Серое подменю: Migration Rules, How to get to KSU, Academic Mobility ,Accommodations */
#header .submenu a {
    color: #6e6868;
    padding: 10px 11px;
    font-size: 14px;
}
/* /Серое подменю: Migration Rules, How to get to KSU, Academic Mobility ,Accommodations */

.main-background-color {
    background-color: var(--color-link);
}

.btn-apply-now {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0065a2;
    --bs-btn-border-color: #0065a2;

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #00508a;
    --bs-btn-hover-border-color: #00508a;

    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #003f6e;
    --bs-btn-active-border-color: #003f6e;

    --bs-btn-focus-shadow-rgb: 0, 101, 162;

    font-size: 1.2rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50rem;
}

/* Синее меню от 992px и больше*/
/* @media screen and (min-width: 992px) {
    #header nav.nav-primary::after {
        content : "";
        display: block;
        position: absolute;
        background-image: url("../img/new_year/header_shar_left.png");
        background-repeat: repeat-x;
        background-position: left;
        width: 100%;
        height: 100%;
        z-index: -1;
        margin-top: -45px;
    }
} */

/* Синее меню от 768px до 991px*/
/* @media screen and (min-width: 768px) and (max-width: 991px){
    #header nav.nav-primary::after {
        content : "";
        display: block;
        position: absolute;
        background-image: url("../img/new_year/header_shar_left.png");
        background-repeat: repeat-x;
        background-position: left;
        width: 100%;
        height: 100%;
        z-index: -1;
        margin-top: -87px;
    }
} */

/* Синее меню от 320px до 767px  */
/* @media screen and (min-width: 320px) and (max-width: 767px) {
    #header nav.nav-primary::after {
        content: "";
        display: none;
        position: absolute;
        background-image: url("../img/new_year/header_shar_left.png");
        background-repeat: repeat-x;
        background-position: left;
        width: 100%;
        height: 100%;
        z-index: -1;
        margin-top: -50px;
    }
} */

.nav > li > a {
    /* padding: 10px 11px; */
}

#header ul.extra-links {
    padding: 15px;
    list-style: none;
    margin-bottom: 0px;
}

#header .extra-links > li {
    margin-bottom: 5px;
}

#header .extra-links > li:last-child {
    margin-bottom: 0;
}

#header .extra-links a {
    color: #363636;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.8;
    text-transform: uppercase;
}

#header .extra-links a:hover {
    color: var(--color-link);
}

@media screen and (min-width: 768px) {
    #header ul.extra-links {
        padding: 0;
    }
}

@media screen and (min-width: 768px) {
    #header nav.nav-primary .container.container-fluid {
        padding: 0;
    }

    #header
        nav.nav-primary
        .container.container-fluid
        ul.navbar-nav
        li:first-child
        a {
        padding-left: 0;
    }

    #header .navbar-collapse {
        padding: 0;
    }

    #header nav.nav-primary form {
        /* padding-right: 0;
        margin-left: 20px;
        margin-right: 20px; */
    }

    #header nav.navbar-sections {
        margin-left: 30px;
    }

    #navigation-sections {
        height: 44px; /*Высота меню Абитуриенам, Студентам, Сотрудникам...*/
    }
}

/* @media screen and (min-width: 768px) and (max-width: 990px) {
    #header ul.nav.navbar-nav a.dropdown-toggle {

    }
} */

@media screen and (max-width: 990px) {
    #header ul.nav.navbar-nav,
    #header ul.nav.navbar-nav.right {
        width: 100%;
        float: none !important;
    }
}

@media screen and (max-width: 768px) {
    #header .logo-main {
        text-align: center;
    }

    #header nav.nav-primary form {
        /* padding: 10px 15px; */
        /* margin-left: 0; */
    }

    #header .navbar.navbar-sections ul {
        /* margin: 0; */
    }
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #fff;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background: transparent;
}

/* Прямоугольное меню под слайдером */

.flex-main-link-container {
    background-color: var(--color-white);
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -moz-flex;
    display: -webkit-flex;
    display: flex;
    flex-flow: row wrap;
}

div.flex-main-link-item {
    -ms-box-orient: horizontal;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -moz-flex;
    display: -webkit-flex;
    flex-flow: row wrap;
    display: flex;
    border: 1px solid #dcdcdc;
    width: 20%;
    height: 100px;
    text-align: center;
    transition: all, 0.5s;
}

.flex-main-link-item > a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #464545;
    width: 100%;
}

@media screen and (min-width: 320px) and (max-width: 767px) {
    .flex-main-link-item > a > div > p {
        font-size: 11px;
        /* display: none; */
    }
}

.flex-main-link-item:hover > a {
    color: var(--color-link);
    transition: all, 0.5s;
}

.flex-main-link-item:hover {
    -webkit-box-shadow: 0px 0px 5px 1px rgb(34 60 80 / 32%) inset;
    -moz-box-shadow: 0px 0px 5px 1px rgba(34, 60, 80, 0.32) inset;
    box-shadow: 0px 0px 5px 1px rgb(34 60 80 / 32%) inset;
    transition: all, 0.5s;
}

/* /Прямоугольное меню под слайдером */

/* Карточка */
.card {
    --bs-card-color: var(--color-text); /* цвет текста */
}

/* Версия для слабовидящих в мобильной верстке */
@media screen and (max-width: 768px) {
    .vision-impaired-version::after {
        content: "Версия для слабовидящих";
        color: #fff;
        /* padding: 14px 8px; */
        font-size: 12px;
        font-weight: normal;
    }

    #header nav.nav-primary .search-query-form-group .form-control-feedback {
        /* margin-top: -25px; */
        /* color: #fff; */
    }
}
/* /Версия для слабовидящих в мобильной верстке */

.invalid {
    border: 1px solid red !important;
}

h1 {
    /* margin-bottom: 20px; */
}

h2 {
    margin-bottom: 20px;
}

article {
    text-align: justify;
}

article p {
    text-indent: 24px;
}

.dropdown-menu > li > a {
    padding: 6px 20px;
}

#footer {
    background: radial-gradient(
        circle,
        var(--color-navbar-gradient-start) 0%,
        var(--color-navbar-gradient-end) 100%
    );
    color: #fff; /*цвет текста на градиенте*/
    padding-top: 36px;
    padding-bottom: 36px;
}

#footer a {
    color: #fff;
}

#footer .popover {
    color: #363636;
    text-align: center;
    font-weight: bold;
}

#footer .banners-area {
    width: 630px;
    padding-top: 18px;
}

#footer .banners-area .btn {
    margin-bottom: 6px;
}

/* Слайдер на главной странице */

.homepage-featured-slider-container {
    position: relative;
    min-width: var(--container-width);
    height: 380px;
}

.homepage-featured-slider {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    overflow: visible;
}

.homepage-featured-slider .slick-list {
    overflow: visible;
}

.homepage-featured-slider .slick-slide {
    position: relative;
}

.homepage-featured-slider .slick-slide .caption-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: none !important;
}

.homepage-featured-slider
    .slick-slide.slick-active
    .caption-container
    .caption {
    visibility: visible;
    opacity: 1;
    -webkit-transition:
        visibility 0.5s linear 0.5s,
        opacity 0.5s linear;
    -moz-transition:
        visibility 0.5s linear 0.5s,
        opacity 0.5s linear;
    -o-transition:
        visibility 0.5s linear 0.5s,
        opacity 0.5s linear;
    transition:
        visibility 0.5s linear 0.5s,
        opacity 0.5s linear;
    transition-delay: 1.5s;
}

.homepage-featured-slider
    .slick-slide.slick-active
    .caption-container
    .caption
    a {
    color: #ffffff;
}

.homepage-featured-slider .slick-slide .caption-container .caption {
    position: absolute;
    bottom: 48px;
    font-size: 20px;
    width: 480px;
    color: #fff;
    background-color: transparent;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    -webkit-transition:
        visibility 0.5s linear 0.5s,
        opacity 0.5s linear;
    -moz-transition:
        visibility 0.5s linear 0.5s,
        opacity 0.5s linear;
    -o-transition:
        visibility 0.5s linear 0.5s,
        opacity 0.5s linear;
    transition:
        visibility 0.5s linear 0.5s,
        opacity 0.5s linear;
}

.homepage-featured-slider img {
    width: 100%;
}

.homepage-featured-slider-container .slider-nav {
    position: absolute;
    top: 0px;
    width: var(--container-width);
    left: 50%;
    margin-left: -490px;
    height: 0px;
    visibility: visible;
    opacity: 1;
    -webkit-transition:
        visibility 0.5s linear 0.5s,
        opacity 0.5s linear;
    -moz-transition:
        visibility 0.5s linear 0.5s,
        opacity 0.5s linear;
    -o-transition:
        visibility 0.5s linear 0.5s,
        opacity 0.5s linear;
    transition:
        visibility 0.5s linear 0.5s,
        opacity 0.5s linear;
}

@media screen and (max-width: 992px) {
    .homepage-featured-slider-container .slider-nav {
        visibility: hidden;
        opacity: 0;
    }
}

.homepage-featured-slider-container .slider-nav .buttons {
    position: absolute;
    top: 0;
    right: 0;
    height: 380px;
    width: 290px;
}

.homepage-featured-slider-container .slider-nav .buttons .inner {
    overflow: hidden;
    height: 100%;
    width: auto;
    position: relative;
    right: 32px;
}

.homepage-featured-slider-container .slider-nav .buttons .inner .wrapper {
    width: 320px;
    overflow-y: scroll;
    overflow-x: hidden;
    height: 100%;
    padding-right: 32px;
}

.homepage-featured-slider-container .slider-nav .buttons .scroll {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 30px;
}

.homepage-featured-slider-container .slider-nav .buttons .scroll button {
    position: absolute;
    width: auto;
    height: auto;
    margin: 0;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 2px;
}

.homepage-featured-slider-container
    .slider-nav
    .buttons
    .scroll
    button.scroll-up {
    top: 2px;
    bottom: auto;
}

.homepage-featured-slider-container
    .slider-nav
    .buttons
    .scroll
    button.scroll-down {
    bottom: 2px;
    top: auto;
}

.homepage-featured-slider-container .slider-nav button {
    position: relative;
    margin-left: 30px;
    width: 100%;
    height: 76px;
    border-radius: 0;
    text-align: left;
    background: #fff;
    background: rgba(255, 255, 255, 0.9);
    z-index: 0;
    white-space: normal;
    overflow-x: visible;
    border: none;
    border-bottom: #fff 1px solid;
}

.homepage-featured-slider-container .slider-nav button:last-child {
    border-bottom: none;
}

.homepage-featured-slider-container .slider-nav button.active {
    background: var(--color-link);
    color: #fff;
    border-color: var(--color-link);
}

.homepage-featured-slider-container .slider-nav button.active:before {
    content: "";
    height: 0px;
    border-width: 14px;
    border-style: solid;
    border-color: transparent;
    border-right-color: var(--color-link);
    left: -26px;
    position: absolute;
    z-index: 1;
    top: 50%;
    margin-top: -14px;
}
/* / Слайдер на главной странице */

@media screen and (max-width: 992px) {
    .container {
        width: auto;
        margin: 0;
    }

    #header nav.nav-primary .search-query {
        width: auto; /*160px*/
    }

    #footer .banners-area {
        width: auto;
    }
}

@media screen and (max-width: 360px) {
    .container {
        width: 320px;
        margin: 0 auto;
    }
}

/* Clearfix */
.clearfix:after {
    content: "";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

.clearfix {
    display: inline-block;
}

html[xmlns] .clearfix {
    display: block;
}

* html .clearfix {
    height: 1%;
}
/* / Clearfix */

/*Paging */

.paging {
    text-align: center;
}

.paging > * {
    margin-right: 4px;
}

.paging > .btn.btn-light {
    padding: 0;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.paging > .btn.btn-light:hover {
    background-color: #f8f9fa;
    color: var(--color-link);
    /* border-color: var(--bs-primary); */
    text-decoration: none;
}

.paging > .btn.btn-light.prev,
.paging > .btn.btn-light.next {
    padding: 0.375rem 0.75rem;
}

.paging > .btn.btn-primary,
.paging > .btn.btn-primary:hover {
    padding: 0.375rem 0.75rem;
    background-color: var(--color-link);
    color: #fff;
}

.paging > *:last-child {
    margin-right: 0;
}

.paging > .btn.btn-light > a {
    text-decoration: none;
    display: block;
    padding: 0.375rem 0.75rem;
    color: var(--color-link);
}
/* / Paging

/* Person card */
.person-card-small {
    padding: 8px;
}

.person-card-small:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
}

.person-card-small .photo {
    width: 154px;
    height: 154px;
    line-height: 1;
    text-align: center;
    padding: 0;
}

.person-card-small .photo .helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.person-card-small .photo img {
    background: #3a6f9a;
    vertical-align: middle;
    border: 1px solid var(--color-border);
}
/* / Person card */

/* Department card */
.department-card-small {
    padding: 8px;
}

.department-card-small:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
}

/* / Department card */

/* Header separator */
.header-separator {
    margin-bottom: 18px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--color-link) 0%, #00a3c3 100%);
}

.card-header-gradient-bg {
    background: var(--color-navbar-gradient-start);
    background: linear-gradient(
        270deg,
        var(--color-navbar-gradient-start) 0%,
        var(--color-navbar-gradient-end) 100%
    );
    color: white;
}

/* Название раздела */
.header-separator h1 {
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    margin-top: 28px;
    margin-bottom: 20px;
    padding-left: 15px;
    /* text-indent: 20px; */
}

#header-separator-for-employees {
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    margin-top: 28px;
    margin-bottom: 20px;
    padding-left: 15px;
    line-height: 1.1;
}

#header-separator-latest-news-title {
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    margin-top: 28px;
    margin-bottom: 20px;
    padding-left: 10px;
    line-height: 1.1; /* line-height как у h2 */
    /*text-indent: 20px;*/
}
/* / Header separator */

/* Splitter banner */
.splitter-banner {
    position: relative;
    border-left: none;
    border-right: none;
    height: 393px;
    overflow: hidden;
    margin-bottom: -16px;
}

.splitter-banner > .parallax {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-image: url("../img/ksu_wallpapers/ksu_inside.jpg");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

@media screen and (min-width: 1400px) {
    .splitter-banner > .parallax {
        background-size: 100% auto;
    }
}

@media screen and (max-width: 1400px) {
    .splitter-banner > .parallax {
    }
}
/* / Splitter banner */

.ajax-loader {
    background: url("../img/ajax-loader.gif") no-repeat center;
    height: 40px;
}

button#scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2;
    display: none;
}

.banners.partners a,
.banners.projects a {
    margin-right: 14px;
}

/* Object */
object {
    width: 100%;
}
/* / Object */

table {
    text-indent: 0;
}

.handicapped_img {
    width: 17px;
    margin-left: 5px;
}

/* Бегущая строка */
.marquee {
    width: 100%;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

.marquee span:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}
/* / Бегущая строка */

/* Баннеры под новостями, полезные ресурсы */
.banner-rating-review {
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border: 1px solid var(--color-border);
    padding: 15px;
    background-color: var(--color-white);
    border-radius: 5px;
}

.banner-useful-resources {
    background-color: var(--color-white);
    border: solid 1px var(--color-border);
    padding: 15px;
    border-radius: 5px;
}

.banner-useful-resources .row:not(:last-child) {
    margin-bottom: 10px;
}

/* / Баннеры под новостями, полезные ресурсы */

/* Слайдер/видео/новогоднее поздравление */
.home-page-banner {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* React Carousel */
.carousel-wrapper {
    position: relative;
    border-radius: 5px;
    width: var(--container-width);
    height: 370px;
    overflow: hidden;
}

.carousel-react {
    display: flex;
    align-items: center;
    flex-direction: row;
    transition: all 1s ease;
}

.carousel-react-item {
    box-shadow: 0px 0px 7px #666;
    transition: 1s ease;
    flex-shrink: 0;
}

.carousel-content > a {
    text-decoration: none;
}

.arrow {
    position: absolute;
    width: 5rem;
    height: 100%;
    color: white;
    backdrop-filter: blur(1px);
    border: none;
    z-index: 1;
    background-color: transparent;
}

.arrow:hover {
    cursor: pointer;
}

.arrow-left {
    left: 0rem;
    background: linear-gradient(
        90deg,
        rgba(64, 64, 64, 0.6) 0%,
        rgba(255, 255, 255, 0) 100%
    );
}

.arrow-right {
    right: 0rem;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(64, 64, 64, 0.6) 100%
    );
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 0;
    margin: 0;
    list-style: none;
}

.carousel-content {
    position: absolute;
    width: 52%;
    height: 19%;
    background-color: rgb(131 131 131 / 38%);
    backdrop-filter: blur(10px);
    bottom: 3rem;
    left: 6rem;
    border-radius: 0.3rem;
    box-shadow: 0px 0px 5px #666;
    padding: 5px;
    transition: 1s ease;
    z-index: 1;
}

.carousel-header {
    color: whitesmoke;
    margin: 0;
    font-size: 18px;
    white-space: pre-wrap;
}

.carousel-indicators-item {
    background-color: white;
    height: 1rem;
    width: 1rem;
    border-radius: 100%;
    border: none;
    outline: none;
    box-shadow: 0px 0px 5px #555;
    margin: 0 0.3rem;
    cursor: pointer;
    z-index: 1;
    padding: 0;
}

.carousel-indicators-item-inactive {
    background-color: rgb(128 128 128 / 40%);
}

.carousel-icon {
    font-size: 2rem;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.carousel-img-fluid {
    max-width: 100%;
}

.fade-in {
    animation: fadeIn ease 2.5s;
    -webkit-animation: fadeIn ease 2.5s;
    -moz-animation: fadeIn ease 2.5s;
    -o-animation: fadeIn ease 2.5s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@-moz-keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@-o-keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* /React Carousel */

/* Обязательные поля на формах обратной связи */
.required:after {
    content: " *";
    color: red;
}
/* /Обязательные поля на формах обратной связи */
