.hero-text {
    align-self: flex-start !important;
}

.home-banner .banner-card .rbt-swiper-pagination {
    left: 50%;
    width: max-content;
}

.rbt-banner-1 .content .shape-wrapper {
    bottom: -50px;
}

.home-blogs-right {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .rbt-banner-1 {
        padding: 0 30px;
    }
}

@media only screen and (max-width: 1300px) {
    .rbt-banner-1 .content .inner .title {
        font-size: 36px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
    .rbt-banner-1 .content {
        display: block;
    }

    .rbt-banner-1 .content .shape-wrapper {
        left: 0px;
        bottom: -14px;
    }

    .rbt-banner-1 .content .banner-card {
        right: 50px;
    }

    .rbt-banner-1 .content .banner-card {
        position: absolute;
        max-width: 290px;
        bottom: 12%;
        right: 40px;
        z-index: 2;
    }
}

@media only screen and (max-width: 768px) {
    .rbt-banner-1 {
        padding: 0 30px !important;
    }

    .rbt-banner-1 .content {
        flex-direction: column;
    }

    .rbt-banner-1 .content .inner .title {
        font-size: 42px;
        margin-top: 20px;
    }

    .rbt-banner-1 .content .banner-card {
        position: relative;
        max-width: 320px;
        bottom: 12%;
        right: 0;
        z-index: 2;
        margin-top: 40px;
    }

    .rbt-banner-1 .content .shape-wrapper {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .hero-text .title {
        font-size: 36px !important;
    }
}

@media only screen and (max-width: 500px) {
    .hero-text .title {
        font-size: 28px !important;
    }
}

.rbt-header .rbt-header-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.rbt-header-sticky.active-dark-mode .popup-mobile-menu .inner-wrapper {
    background-color: var(--color-darker) !important;
    color: var(--color-white) !important;
}

.rbt-header-sticky.active-dark-mode
    .popup-mobile-menu
    .inner-wrapper
    .inner-top
    .close-button {
    background-color: var(--color-darker) !important;
}

.course-swiper {
    z-index: 5;
}

.about-hero {
    height: auto;
    padding: 60px 0px 60px;
}

.rbt-header .logo a img {
    max-height: 140px;
    width: 80px;
}

.mainbar-row {
    height: 110px;
}

.rbt-banner-1 .content .shape-wrapper {
    align-self: end;
}

@media screen and (max-width: 660px) {
    .mainbar-row {
        height: 80px;
    }

    .rbt-header .logo a img {
        width: 60px;
    }
}

@media screen and (max-width: 560px) {
    .mainbar-row {
        height: 70px;
    }

    .rbt-header .logo a img {
        width: 50px;
    }
}

.spinner {
    width: 70px;
    height: 70px;
    border: 6px solid #7a6aca;
    border-top: 6px solid #0b0d71;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.rbt-card-img.blog-card,
.events-all .rbt-card-img,
.similar-courses-all .rbt-card-img {
    height: 220px;
}

.rbt-card-img.blog-card a,
.events-all .rbt-card-img a,
.similar-courses-all .rbt-card-img a {
    height: 100%;
}

.rbt-card-img.blog-card a img,
.events-all .rbt-card-img a img,
.similar-courses-all .rbt-card-img a img {
    height: 100%;
}

.rbt-tag-list a {
    height: auto;
    text-align: start;
    width: auto;
}

.overflow {
    overflow: hidden;
}

.categories_block {
    /* display: flex;
    align-items: center;
    flex-wrap: nowrap; */
    justify-content: center;
}

.courses_card {
    align-self: stretch;
}

.courses_img {
    height: 270px;
}

@media screen and (max-width: 1200px) {
    .courses_img {
        height: 250px;
    }
}

@media screen and (max-width: 450px) {
    .courses_img {
        height: 200px;
    }
}

.events_img {
    height: 250px;
}

@media screen and (max-width: 1200px) {
    .events_img {
        height: 220px;
    }
}

@media screen and (max-width: 450px) {
    .events_img {
        height: 200px;
    }
}

.filter-tab-button a {
    text-transform: none !important;
}

.course-sidebar.sticky-top.rbt-shadow-box.course-sidebar-top.rbt-gradient-border {
    top: 200px;
}

.home_event_swiper {
    height: 100%;
}

/* Уравниваем высоту всех карточек слайдера */
.home_event_swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

/* Чтобы каждая .swiper-slide занимала одинаковую высоту */
.home_event_swiper .swiper-slide {
    display: flex;
    height: 100%;
}

/* Внутренняя обёртка */
.home_event_swiper .single-slide {
    display: flex;
    justify-content: center;
    flex: 1;
    height: 100%;
}

/* Карточка растягивается */
.home_event_swiper .rbt-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Чтобы тело карточки тянулось */
.home_event_swiper .rbt-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* about section */

.about_section {
    padding-bottom: 80px;
}

.about-adas {
    width: 100%;
}

.thumbnail.image-1,
.thumbnail.image-2,
.thumbnail.image-3 {
    max-width: 200px;
}

@media screen and (max-width: 991px) {
    .about-style-1 .thumbnail-wrapper .thumbnail.image-1 {
        width: 100%;
    }

    .about-style-1 .thumbnail-wrapper .thumbnail.image-1 img {
        width: 100%;
        max-width: 100% !important;
    }
}

.about_info .icon {
    background: transparent !important;
}

.preview-video {
    max-height: 500px;
    object-fit: cover;
}

@media only screen and (max-width: 768px) {
    .home-blogs-right {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .home-blogs-right .rbt-card {
        display: flex;
        flex-direction: column;
    }

    .home-blogs-right .rbt-card-img {
        width: 100%;
    }

    .home-blogs-right .rbt-card-body {
        width: 100%;
    }

    .home-blogs-right .rbt-card-img img {
        height: 330px !important;
    }
}

@media only screen and (max-width: 568px) {
    .home-blogs-right .rbt-card-img img {
        height: 250px !important;
    }
}

.rbt-cat-box-1 .inner .icons img {
    max-height: 160px !important;
}

/* categories */

.img_parent_block {
    height: 350px;
}

.img_parent_block .inner {
    background-color: transparent !important;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: end;
}

.img_parent_block .inner .rbt-btn-link {
    color: white !important;
    font-size: 18px !important;
}

@media only screen and (max-width: 1200px) {
    .img_parent_block {
        height: 280px;
    }
}

.img_category_block {
    width: 100%;
    height: 100%;
}

.img_category {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.active-dark-mode
    .blog-content-wrapper.rbt-article-content-wrapper
    .content
    ul
    li {
    color: var(--color-white-off);
}

.vacancy ul li,
.blog ul li {
    font-size: 18px;
    /* color: var(--bs-body-color); */
}

.course-all .rbt-card {
    display: flex;
    flex-direction: column;
}

.similar-courses-all .rbt-card {
    display: flex;
    flex-direction: column;
}

.vacancy-all .rbt-card {
    display: flex;
    flex-direction: column;
    height: 440px;
}

.blogs-all .rbt-card {
    display: flex;
    flex-direction: column;
    /* height: 440px; */
}

.events-all .rbt-card {
    height: 485px;
}

.vacancy-all .rbt-card .rbt-card-body,
.events-all .rbt-card .rbt-card-body,
.blogs-all .rbt-card .rbt-card-body,
.course-all .rbt-card .rbt-card-body,
.similar-courses-all .rbt-card .rbt-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vacancy-all .rbt-card .rbt-card-body .rbt-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.blogs-all .rbt-card .rbt-card-body .rbt-card-text,
.course-all .rbt-card .rbt-card-body .rbt-card-text,
.similar-courses-all .rbt-card .rbt-card-body .rbt-card-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

@media only screen and (max-width: 1400px) {
    .vacancy-all .rbt-card {
        height: 412px;
    }
    .events-all .rbt-card {
        height: 434px;
    }
    .rbt-card .rbt-card-body .rbt-card-title {
        font-size: 18px !important;
    }
}

@media only screen and (max-width: 992px) {
    .categories_block {
        flex-direction: column !important;
        align-items: center;
    }
}

@media only screen and (max-width: 768px) {
    .vacancy-all .rbt-card {
        height: 397px;
    }
    .events-all .rbt-card {
        max-width: 360px;
    }
}

.file-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    height: 100%;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-size: 16px;
    height: 100%;
    color: #ccc;
    background-color: transparent;
    border: 1px dashed #555;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}

.file-label:hover {
    border-color: #888;
}

.file-wrapper input[type="file"] {
    display: none;
}

.file-name {
    font-size: 14px;
    color: #ccc;
}

.cv-form {
    align-items: center;
}

#fullpage-loader .loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fullpage-loader .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.blog-detail-img img {
    object-fit: cover;
    max-height: 500px;
}

.course_details_text,
.course_details_text p,
.course_details_text ul li {
    font-size: 14px;
    color: var(--bs-body-color);
}

.search_input {
    background: rgb(255, 255, 255) !important;
    color: var(--color-body) !important;
    /* border: 2px solid gray !important; */
}

/* .course-details-img-block {
    padding: 0;
    width: 400px;
    height: 300px;
} */

.course_details_text {
    display: block;
}

.about-block {
    display: block;
}

.about-block-image {
    width: 50%;
    height: auto;
    float: left;
    margin-right: 40px;
    margin-bottom: 60px;
    border-radius: 10px;
    /* shape-outside: inset(0 round 10px); */
}

.course-grid-image {
    width: 400px;
    height: 300px;
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    shape-outside: inset(0 round 10px);
}

.course-grid-text {
    display: block;
}

.about-block-text {
    display: block;
}

.about-block-text ul:first-of-type {
    padding-left: 50%;
    margin-left: 0;
    list-style-position: outside;
}

/* Ключевое изменение: только первый ul рядом с картинкой имеет большой отступ */
.course-grid-text ul:first-of-type {
    padding-left: 440px; /* ширина изображения (400px) + margin-right (20px) */
    margin-left: 0;
    list-style-position: outside;
}

.about-block-text ul:not(:first-of-type) {
    padding-left: 50%;
    margin-left: 0;
    list-style-position: outside;
}

/* Все остальные списки без доп. отступа */
.course-grid-text ul:not(:first-of-type) {
    padding-left: 20px;
    margin-left: 0;
    list-style-position: outside;
}

.about-block-text::after {
    content: "";
    display: table;
    clear: both;
}

.course_details_text::after {
    content: "";
    display: table;
    clear: both;
}

.social-icon-item {
    font-size: 20px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .about-block-image {
        width: 100%;
        float: none;
        shape-outside: none;
        margin-bottom: 20px;
    }
    .course-grid-image {
        width: 100%;
        float: none;
        shape-outside: none;
        margin-bottom: 20px;
    }

    .about-block-text ul:first-of-type,
    .about-block-text ul:not(:first-of-type) {
        padding-left: 20px; /* возвращаем одинаковый отступ для мобильных */
    }

    .course-grid-text ul:first-of-type,
    .course-grid-text ul:not(:first-of-type) {
        padding-left: 20px; /* возвращаем одинаковый отступ для мобильных */
    }

    .social-icon-item {
        font-size: 18px;
    }
}

@media (max-width: 411px) {
    .social-icon li {
        margin: 6px !important;
    }
}

.contact-items {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-details-items {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.contact-form {
    flex: 1;
}

@media (max-width: 1200px) {
    .contact-items {
        flex-direction: column;
    }
    .contact-details-items {
        flex-direction: row;
        justify-content: start;
    }
    .contact-form {
        width: 100%;
    }
}

@media (max-width: 778px) {
    .contact-details-items {
        flex-direction: column;
        width: 100%;
        flex: 1;
    }

    .contact-details-items .sal-animate {
        width: 100%;
    }

    .contact-details-items .sal-animate h4.title {
        font-size: 18px;
    }
}
