@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.3.1/css/all.min.css");

/* ==========================================================================
   1. ГЛОБАЛЬНІ НАЛАШТУВАННЯ ТА БАЗОВІ ЕЛЕМЕНТИ (ОНОВЛЕНО)
   ========================================================================== */
:root {
    --vnmu-50: #f8fafc;
    --vnmu-100: #f1f5f9;
    --vnmu-200: #e2e8f0;
    --vnmu-500: #3b82f6;
    --vnmu-600: #2563eb;
    --vnmu-700: #1d4ed8;
    --vnmu-800: #1e40af;
    --vnmu-900: #1e3a8a;

    --vnmu-primary: #1b3d5b;
    /* Основний темний синій з нового сайту */
    --vnmu-secondary: #0056b3;
    /* Яскравий синій для акцентів */

    --sidebar-bg: #ffffff;
    --sidebar-hover: #f1f5f9;
}

body {
    font-family: 'Inter', sans-serif !important;
    background: var(--bgColor, #d4e8f3) !important;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100vw !important;
    overflow-x: clip;
    /* clip does not break position: sticky like hidden does */
}

/* ==========================================================================
   1. ГЛОБАЛЬНІ НАЛАШТУВАННЯ ТА БАЗОВІ ЕЛЕМЕНТИ
   ========================================================================== */
.star-lp-course-tag-area {
    background: var(--bgColor, #d4e8f3) !important;
    font-family: "Inter", sans-serif !important;
}

article a {
    color: var(--mainColor, #007cc4);
}

article a:hover {
    color: var(--secondaryColor, #41b9ff);
}

table {
    max-width: 100%;
    width: 100% !important;
    font-size: 14px;
    float: none;
}

td {
    padding: 10px;
}

p,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
    /*font-family: var(--fontFamily), sans-serif !important;*/
    font-family: "Inter", sans-serif !important;
}

#video {
    width: 100vw !important;
}

.entry-content ul,
.vnmu-structure ul,
.item-page ul {
    list-style-type: initial !important;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.vnmu-structure li,
.item-page li {
    list-style-type: initial !important;
}

img {
    max-width: 100% !important;
    /* Картинка ніколи не витисне екран по ширині */
    height: auto !important;
    /* Пропорції завжди зберігаються автоматично */
    box-sizing: border-box !important;
}

.breabcrumbs {
    text-align: left;
}

.breabcrumbs-main {
    padding: 20px;
}

.breabcrumbs .breadcrumb {
    justify-content: flex-start;
    margin: 0;
    row-gap: 8px;
}

.breabcrumbs .breadcrumb-item {
    display: flex;
    align-items: center;
    margin: 0;
    padding-left: 0 !important;
}

.breabcrumbs .breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    color: #adb5bd;
    padding: 0 10px;
}

.breabcrumbs .breadcrumb-item a,
.breabcrumbs .breadcrumb-item.active span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f1f3f5;
    color: #495057;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.breabcrumbs .breadcrumb-item a:hover {
    background-color: #e9ecef;
    color: #212529;
}

.breabcrumbs .breadcrumb-item.active span {
    color: #212529;
    font-weight: 500;
}

.breabcrumbs .breadcrumb-item .bi {
    font-size: 13px;
}

/* ==========================================================================
   2. КОМПОНЕНТ ПОШУКУ (POPOVER)
   ========================================================================== */
.popover-body {
    padding: 15px !important;
    box-sizing: border-box;
    background: var(--whiteColor, #fff);
    border-radius: 12px;
}

.input-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
    border: none !important;
}

#searchText {
    width: 100% !important;
    border: 2px solid var(--mainColor, #007cc5) !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-size: 14px;
    transition: border-color var(--transition, 0.3s);
}

#searchText:focus {
    border-color: #53161d !important;
    box-shadow: 0 0 5px rgba(83, 22, 29, 0.2) !important;
}

.btn-search-submit {
    width: 100%;
    background-color: transparent !important;
    border: 2px solid #53161d !important;
    color: #53161d !important;
    border-radius: 8px !important;
    padding: 8px !important;
    font-weight: bold;
    font-size: 14px;
    transition: all var(--transition, 0.3s) ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-search-submit i {
    color: #53161d !important;
    font-size: 16px;
}

.btn-search-submit:hover {
    background-color: #53161d !important;
    color: var(--whiteColor, #ffffff) !important;
}

.btn-search-submit:hover i {
    color: var(--whiteColor, #ffffff) !important;
}

/* ==========================================================================
   3. ЗАГАЛЬНІ СТОРІНКИ ТА ШАБЛОНИ (CUSTOM PAGE)
   ========================================================================== */
/* .star-page-title-content {
  padding: 20px 0;
} */
.error-content-wrap {
    margin-top: 115px !important;
}

.entry-content h4 {
    padding-top: 0.7em;
    margin-bottom: 10px;
}

.col-lg-12.full-width {
    background: var(--whiteColor, #fff);
    padding: 3em 1em 4em;
    border-radius: 10px;
    box-shadow: var(--box-shadow, 0 0 20px 3px rgba(0, 0, 0, 0.05));
    /* margin: 3em auto 5em; */
}

.address {
    padding: 10px 10px 10px 50px;
    background: rgba(246, 155, 15, 0.2);
    /* #f69b0f33 */
    font-size: 14px;
    align-items: center;
}

.address .row {
    align-items: center;
}

.collapse-toggle:hover,
.main-nav-link:hover {
    color: var(--thirdColor, #f69b0f);
    cursor: pointer;
}

/* Клітинки та картки команди */
/* Перевизначення старого стилю колективу на новий (staff.blade.php) */
.star-single-team-box.style-one {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.star-single-team-box.style-one:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.star-single-team-box.style-one .image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f8fafc;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 0 auto 15px auto;
    position: relative;
    background-color: transparent;
}

.star-single-team-box.style-one .image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition, 0.5s) ease;
}

.star-single-team-box.style-one:hover .image img {
    /* Не робимо зум на фотографії в новому дизайні */
}

/* Переносимо соціальні іконки вниз */
.star-single-team-box.style-one .social-icons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
    order: 3;
    /* Ставимо в кінець flex-контейнера */
}

.star-single-team-box.style-one .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f1f5f9;
    transition: all 0.3s ease;
}

.star-single-team-box.style-one .social-icons a:hover {
    background-color: #e2e8f0;
    transform: scale(1.1);
}

.star-single-team-box.style-one .social-icons a img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.star-single-team-box.style-one .content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 2;
}

.star-single-team-box.style-one .content a {
    text-decoration: none;
    display: block;
}

.star-single-team-box.style-one .content h3.text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vnmu-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.star-single-team-box.style-one .content .designation {
    font-size: 0.85rem;
    color: var(--vnmu-secondary);
    margin-bottom: 0;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
}


/* ==========================================================================
   4. ГОЛОВНА СТОРІНКА ТА МЕГА-МЕНЮ
   ========================================================================== */
.main-menu {
    background: #53161d;
    padding: 0 15px;
}

.main-link:hover {
    background: var(--mainColor, #4e90cc) !important;
}

.star-nav .navbar .navbar-nav .nav-item .dropdown-menu li a:hover,
.star-nav .navbar .navbar-nav .nav-item .dropdown-menu li a:focus {
    color: #53161d !important;
    background: rgba(83,
            22,
            29,
            0.08);
    /* #FFEBEB еквівалент для нового кольору */
    padding-left: 25px;
}

.category-block,
.mega-menu-content .links-group a.sub-link {
    width: 100%;
    height: 100%;
}

.mega-menu-content {
    padding: 0 !important;
}

.category-block .icon-box.blue {
    max-width: 60px;
}

.category-grid {
    justify-content: center;
}

.main-menu .category-grid .icon-box img {
    max-width: 60px;
}

.main-menu .category-block:hover .icon-box img {
    filter: brightness(0) invert(1);
}

.category-block,
.category-block.active {
    border: 1px solid #53161d !important;
    border-radius: 10px;
    transition: var(--transition, 0.2s) ease-out;
    background: #e9f3fa;
    max-width: 180px;
    min-width: 180px;
    height: stretch;
}

.category-block:hover,
.category-block.active:hover,
.category-block.active {
    background: var(--mainColor, #4e90cc) !important;
    border: 1px solid var(--secondaryColor, #4081bb) !important;
    color: var(--whiteColor, #fff) !important;
}

.category-block:hover svg,
.category-block:hover span,
.category-block.active svg,
.category-block.active span,
.category-block:hover a {
    color: var(--whiteColor, #fff);
}

.category-block.active svg,
.category-block:hover svg {
    stroke: var(--whiteColor, #fff);
}

.category-grid a {
    font-size: 14px;
    color: #212529;
    width: 100%;
    height: 100%;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.level-3 a:hover,
.level-4 a:hover {
    background: var(--mainColor, #4e90cc) !important;
    color: var(--whiteColor, #fff);
}

.level-3 a,
.level-4 a {
    font-size: 12px !important;
}

/* ==========================================================================
   5. НОВИНИ ТА СЛАЙДЕРИ ФАКУЛЬТЕТІВ
   ========================================================================== */
/* Новини */
.star-single-blog {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(83, 22, 29, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden !important;
}

.star-single-blog .post-image {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    position: relative !important;
}

.star-single-blog .post-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.star-single-blog:hover .post-image img {
    transform: scale(1.05) !important;
}

.star-single-blog .post-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    padding: 0px !important;
    border-radius: 0 0 12px 12px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    margin: -50px 0 0 0 !important;
}

.star-single-blog .blog-title {
    margin: 0 0 14px 0 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
}

.star-single-blog .post-content h3 {
    font-size: 16px !important;
    padding: 20px;
    margin: 0 !important;
}

.star-single-blog .blog-title a {
    color: #212529 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 4.2em !important;
    /* Утримує фіксовану висоту для заголовків у 3 рядки */
}

.star-default-btn::before {
    background: #8b3436 !important;
    border-radius: 10px !important;
}

.star-default-btn:hover {
    color: #ffffff !important;
    background-color: #53171d !important;
    border-radius: 10px !important;
}

.star-default-btn {
    border: none !important;
}

.star-single-blog .blog-title a:hover {
    color: #53161d !important;
}

.star-single-blog .star-link-btn {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-top: auto !important;
    transition:
        gap 0.2s ease,
        color 0.2s ease !important;
    margin: 20px auto 0;
    background: #8a3536;
    width: 100%;
    text-align: center;
    padding: 10px;
}

.star-single-blog .post-content .star-link-btn:hover {
    padding-right: 10px !important;
}

.star-single-blog .post-content .star-link-btn:hover i {
    display: none !important;
}

.star-single-blog .star-link-btn:hover {
    color: #fff !important;
}

/* Примусове вирівнювання висоти карток всередині Owl Carousel слайдера */
.star-blog-slides .owl-stage {
    display: flex !important;
}

.star-blog-slides .owl-item {
    display: flex !important;
    flex: 1 0 auto !important;
    height: auto !important;
}

.star-blog-slides .owl-item>div {
    width: 100% !important;
    display: flex !important;
    height: 100% !important;
}

.owl-stage .owl-item>div {
    width: 100% !important;
}

/*   .star-single-blog {
    height: 69%;
}

.star-single-blog .post-content {
    height: 80%;
    border-radius: 0 0 10px 10px;
}

.star-single-blog .post-image {
    max-width: 430px;
    max-height: 240px;
}
.star-single-blog .post-content h3 {
    font-size: 16px!important;
}
*/

.star-lp-course-category-area {
    position: absolute;
    top: -9.3em;
    width: 100%;
}

[data-id="a196956"] {
    padding-top: 6em;
}

.star-lp-course-category-area .owl-carousel .owl-item img {
    /*filter: brightness(0) saturate(100%) invert(53%) sepia(35%) saturate(1022%) hue-rotate(174deg) brightness(93%) contrast(88%);*/
    filter: brightness(0) saturate(100%) invert(42%) sepia(43%) saturate(583%) hue-rotate(347deg) brightness(92%) contrast(87%);
    width: 40px !important;
    height: 40px !important;
    margin: 0 auto 8px auto !important;
    object-fit: contain !important;
}

.star-lp-single-course-category {
    /*background-color: #e9f3f9;*/
    background-color: #f1e8d9;
}

.lp-course-category-slider.owl-carousel.owl-drag .owl-item:hover,
.star-lp-single-course-category.aos-init.aos-animate img:hover {
    transform: scale(1.08);
    transition: var(--transition, 0.2s) ease-out;
}

.star-banner-slider .single-banner-part {
    width: 100vw !important;
}

.lp-course-category-slider .star-lp-single-course-category,
.star-lp-single-course-category.aos-init.aos-animate {
    /*border: 1px solid #53161D;*/
    border: 1px solid #8b5e34;
    border-radius: 10px;
    padding: 10px !important;
}

.star-lp-single-course-category:hover {
    /*background: var(--mainColor, #4e90cc);
    transition: var(--transition, 0.2s) ease-out;
    color: var(--blackColor, #222);*/
    box-shadow: 0 6px 12px rgba(139, 94, 52, 0.2);
}

.star-lp-course-tag-area .star-lp-single-course-category:hover {
    background: #dcc6a3;
}

.star-lp-single-course-category h4 {
    font-size: 12px;
    font-weight: 400;
    margin: 0 !important;
    padding: 0 5px !important;
    text-align: center !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/*.lp-course-category-slider .star-lp-single-course-category:hover img {
    filter: brightness(5);
}*/

/*.star-lp-single-course-category:hover h4 {
    color: var(--whiteColor, #fff);
}*/

.star-lp-single-course-category:hover img {
    /*filter: invert(1);*/
    filter: brightness(0) saturate(100%) invert(42%) sepia(43%) saturate(583%) hue-rotate(347deg) brightness(92%) contrast(87%);
    transition: var(--transition, 0.2s) ease-out;
}

/* ==========================================================================
   6. СЕКЦІЯ "ПОПУЛЯРНІ РОЗДІЛИ"
   ========================================================================== */
.lp-course-tag-slider .star-lp-single-course-category {
    width: 180px !important;
    max-width: 180px !important;
    height: 150px !important;
    max-height: 150px !important;
    max-height: fit-content;
    margin: 0 auto 15px auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
    padding: 15px !important;
    text-align: center !important;
}

.lp-course-tag-slider .star-lp-single-course-category>a {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
}

.lp-course-tag-slider .star-lp-single-course-category img {
    width: 45px !important;
    height: 45px !important;
    margin: 0 auto 8px auto !important;
    object-fit: contain !important;
    transition: transform var(--transition, 0.3s) ease !important;
}

.lp-course-tag-slider .star-lp-single-course-category .tag-title {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    word-wrap: break-word !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical !important;
    color: #2d2d2d !important;
}

.lp-course-tag-slider img {
    /*filter: invert(53%) sepia(35%) saturate(1022%) hue-rotate(174deg) brightness(93%) contrast(88%);*/
    filter: brightness(0) saturate(100%) invert(42%) sepia(43%) saturate(583%) hue-rotate(347deg) brightness(92%) contrast(87%);
}

/* ==========================================================================
   8. КАТЕГОРІЇ ТА ПІДМЕНЮ КАФЕДР
   ========================================================================== */
.department-content {
    background: var(--whiteColor, #fff);
    padding: 2.5em 1.5em 4em;
    border-radius: 10px;
    box-shadow: var(--box-shadow, 0 0 20px 3px rgba(0, 0, 0, 0.05));
}
.department-content > div::after {
    content: "";
    display: table;
    clear: both;
}
/*.department-content div {
    float: none !important;
}*/

/*.department-content a {
    justify-content: flex-start !important;
    min-width: 260px !important;
    width: 260px !important;
    margin: 0 !important;
  }*/

/*.department-content .social-icons a {
    width: auto !important;
    min-width: auto !important;
    margin: 0 5px;
}*/

.department-menu {
    margin-top: 20px;
}

.department-menu .category-block,
.department-menu .category-block.active {
    max-width: 130px;
    min-width: 130px;
}

.department-menu .category-grid {
    grid-template-columns: repeat(8, 1fr) !important;
}

.department-menu .category-block img {
    max-width: 60px;
}

.submenu-block,
.submenu-item {
    background-color: transparent !important;
    margin-bottom: 0;
}

.submenu-block {
    border-radius: 12px;
    cursor: pointer;
    padding: 7px 12px 7px 24px;
    color: var(--whiteColor, #fff) !important;
}

.submenu-item {
    margin: 15px;
    background: #53161d;
    border-radius: 12px;
    color: var(--whiteColor, #fff) !important;
}

.submenu-item a {
    color: var(--whiteColor, #fff) !important;
}

.submenu-item-first {
    margin: unset;
    width: 100%;
}

.submenu-item .main-nav-link,
.submenu-block .submenu-toggle {
    border-radius: 4px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    box-shadow: 5px 10px 5px #d6d6d6;
    transition:
        box-shadow var(--transition, 0.25s) ease,
        background-color var(--transition, 0.25s) ease !important;
}

.department-menu .submenu-item .main-nav-link,
.department-menu .submenu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 55px !important;
    max-height: 55px !important;
    /*min-height: 60px !important;*/
    padding: 10px 15px !important;
    text-align: center !important;
    /* font-weight: bold !important; */
    line-height: 1.3 !important;
    border-radius: 20px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition:
        background-color var(--transition, 0.25s) ease,
        color var(--transition, 0.25s) ease,
        border-color var(--transition, 0.25s) ease !important;
}

.department-menu .main-nav-link {
    display: block;
    color: var(--whiteColor, #ffffff) !important;
    text-decoration: none;
    padding: 12px 20px;
    transition: background-color 0.3s ease;
    margin-bottom: 2px;
    border-radius: 4px;
    font-weight: 400 !important;
}

.submenu-block .main-nav-link {
    background-color: #53161d !important;
    font-weight: 700;
    font-size: 16px;
}

.submenu-item .main-nav-link,
.submenu-block .submenu-toggle {
    background-color: #f6f6f687 !important;
    font-size: 14px !important;
    /* font-weight: bold !important; */
    margin-left: 15px;
    color: #53161d !important;
    width: calc(100% - 15px);
    border: 1px solid var(--mainColor, #4e90cc) !important;
    text-transform: uppercase;
}

.submenu-block .main-nav-link:hover,
.submenu-item .main-nav-link:hover,
.submenu-block .submenu-toggle:hover {
    background-color: var(--mainColor, #4e90cc) !important;
    color: var(--whiteColor, #fff) !important;
}

.department-menu>.submenu-item .main-nav-link {
    background-color: #53161d !important;
    color: var(--whiteColor, #fff) !important;
    margin-left: 0;
    width: 100%;
}

.submenu-toggle {
    position: relative !important;
}

.submenu-toggle-label {
    width: 100%;
    text-align: center;
}

.submenu-toggle-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform 0.25s ease;
}

.submenu-children {
    display: none;
}

.submenu-block.open>.col-md-12>.submenu-children {
    display: block;
    margin-top: 10px;
}

.submenu-block.open>.col-md-12>.submenu-toggle .submenu-toggle-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* ==========================================================================
   9. КАТЕГОРІЇ НАУКОВОЇ БІБЛІОТЕКИ (COL6 СІТКА)
   ========================================================================== */
.department-menu .category-grid.col6 {
    display: grid !important;
    grid-template-columns: repeat(10, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 40px !important;
    padding: 0 10px !important;
}

.department-menu .category-grid.col6>a {
    text-decoration: none !important;
    display: block;
    height: 100%;
}

.main-submenu .category-grid.col6 {
    display: grid !important;
    grid-template-columns: repeat(6, 180px) !important;
    justify-content: center !important;
    gap: 24px !important;
}

.main-submenu .category-grid.col6>a {
    text-decoration: none !important;
    display: block;
    height: 100%;
}

.department-menu .category-block,
.category-grid .category-block {
    /*background-color: #f0f7fb !important;
    border: 1px solid #d1d5db !important;*/
    background-color: rgba(139, 94, 52, 0.12) !important;
    border: 1px solid #8b5e34 !important;
    border-radius: 12px !important;
    padding: 12px 8px !important;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition:
        transform var(--transition, 0.3s) ease,
        box-shadow var(--transition, 0.3s) ease,
        border-color var(--transition, 0.3s) ease;
    box-sizing: border-box;
}

.department-menu .category-block.menu-active {
    background: #8b5e34 !important;
    box-shadow: rgba(139, 94, 52, 0.22);
}

.department-menu .category-grid.col6>a:hover .category-block,
.category-grid>a:hover .category-block {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 94, 52, 0.2);
    /*box-shadow: 0 10px 20px rgba(83, 22, 29, 0.12);
    border-color: var(--mainColor, #4e90cc) !important;*/
}

.department-menu .category-block .icon-box {
    width: 30px !important;
    height: 30px !important;
    margin: 0 auto 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.department-menu .category-block .icon-box img,
.category-grid .category-block .icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: invert(36%) sepia(45%) saturate(735%) hue-rotate(220deg) brightness(94%) contrast(85%) !important;
}

.category-block.menu-active .icon-box img {
    filter: brightness(0) invert(1) !important;
}

.department-menu .category-block .category-label,
.category-grid .category-block .category-label {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #2c3e50 !important;
    line-height: 1.3 !important;
    display: block;
    word-break: break-word;
}

.category-block.menu-active .category-label {
    color: #fff !important;
}

.menu-active {
    color: var(--whiteColor, #fff) !important;
    background: var(--mainColor, #4e90cc) !important;
}

/* ==========================================================================
   10. СТОРІНКА ПРОФІЛЮ ТА КУРСІВ ЛЕАРНПРЕС
   ========================================================================== */
.learn-press-courses .course-content,
.learn-press-courses .course-wrap-thumbnail {
    margin: 0;
}

.learn-press-courses .course-wrap-thumbnail,
.lp-courses-bar .switch-layout {
    display: none !important;
}


.faculty-page .learn-press-courses {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
}

.faculty-page .department-title {
    grid-column: 1 / -1;
}

.faculty-page .course-content {
    width: 100% !important;
}

.learn-press-courses h3 {
    margin-bottom: 24px;
}

.blog-details-right-area .widget_block {
    border-radius: 10px;
    box-shadow: var(--box-shadow, 0 0 20px 3px rgba(0, 0, 0, 0.05));
}



.departments-page .learn-press-courses .course:hover,
.faculty-grid.learn-press-courses .course:hover {
    box-shadow: 0 6px 16px rgba(116, 5, 0, 0.08);
    border-color: #b27b5d;
    transform: translateY(-3px);
}

.separator.grid-only {
    display: none !important;
}

.learn-press-courses .course-title,
.departments-grid .vnmu-department-title {
    color: #a5735f !important;
}

.faculty-page a.course-permalink {
    margin: 0 0 12px 0;
}

.departments-page .learn-press-courses .course .course-separator,
.faculty-grid.learn-press-courses .course-info,
.faculty-grid.learn-press-courses .course .course-separator {
    display: none;
}

.departments-page .learn-press-courses .column,
.faculty-grid.learn-press-courses .column {
    border: none;
}

.departments-page .learn-press-courses .course-item,
.faculty-grid.learn-press-courses .course-item {
    align-items: center;
}

.learn-press-courses .course-wrap-meta .meta-item::before,
.meta-item::before {
    /*color: var(--mainColor, #4e90cc) !important;*/
    color: rgb(154 107 88 / 80%) !important;
}

/*.faculty-grid.learn-press-courses .course {
    width: calc(50% - 30px);
    flex: 0 0 auto;
    margin: 0 30px 30px 0;
}*/

.faculty-grid.learn-press-courses .department-title {
    width: 100%;
    text-align: center;
}

.faculty-thumbnail {
    max-width: 100px;
}

.profile .lp-course-tag-slider img {
    max-width: 80px;
}

.profile h4.tag-title {
    font-size: 14px;
    min-height: 78px;
    max-height: 78px;
    justify-content: center;
    display: flex;
    align-items: flex-start;
    padding-top: 30px;
}

.profile h4.tag-title.counter {
    font-size: 2.2em;
    font-weight: bold;
    min-height: auto;
    margin: 20px 0 0 0;
    padding: 0;
    color: var(--mainColor, #4e90cc);
}

.profile .star-lp-single-course-category {
    height: stretch;
    margin-bottom: 60px;
}

.profile-icon {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--whiteColor, #fff);
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 1px solid #53161d;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.star-lp-single-course-category:hover .tag-title {
  color: var(--whiteColor, #fff) !important;
}*/

.star-blog-area .submenu-block {
    display: flex;
    height: stretch;
}

.star-blog-area .category-grid.col6 {
    display: grid !important;
    grid-template-columns: repeat(3, 180px) !important;
    justify-content: center !important;
    gap: 24px !important;
}

/* ==========================================================================
   10.5. ОГОЛОШЕННЯ (TESTIMONIALS / ANNOUNCEMENTS)
   ========================================================================== */
.star-single-testimonial-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(83, 22, 29, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    position: relative;
}

.star-single-testimonial-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(83, 22, 29, 0.1);
    border-color: rgba(83, 22, 29, 0.18);
}

.star-single-testimonial-box .desc {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.star-single-testimonial-box .desc i.fa-quote-right {
    color: #53161d;
    font-size: 24px;
    margin-bottom: 15px;
    opacity: 0.15;
}

.star-single-testimonial-box .desc p.comment {
    font-size: 15px;
    line-height: 1.5em;
    font-weight: 600;
    color: #212529;
    margin-bottom: 20px;
    flex-grow: 1;
}

.star-single-testimonial-box .desc p.alignright {
    margin-top: auto;
    margin-bottom: 0;
    text-align: right;
}

.star-single-testimonial-box .desc a.blog-details-single-post {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #53161d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition:
        color 0.2s ease,
        padding-right 0.2s ease;
}

.star-single-testimonial-box .desc a.blog-details-single-post::after {
    content: "\f061";
    /* FontAwesome arrow-right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.star-single-testimonial-box .desc a.blog-details-single-post:hover {
    color: #852932;
}

.star-single-testimonial-box .desc a.blog-details-single-post:hover::after {
    transform: translateX(4px);
}

/* ==========================================================================
   10.6. ГУРТОЖИТКИ
   ========================================================================== */

.vnmu-document-download-list a:hover {
    border-color: #53161D !important;
    color: #53161D !important;
    background-color: rgba(83, 22, 29, 0.02) !important;
    transform: translateX(4px);
}

.hostels-page-wrapper .accordion-button:not(.collapsed) {
    background-color: rgba(78, 144, 204, 0.08) !important;
    color: #4081bb !important;
    border-bottom: 1px solid rgba(78, 144, 204, 0.15) !important;
}

.hostels-page-wrapper .accordion-button::after {
    transition: transform 0.3s ease-in-out !important;
}

/* ==========================================================================
   СТИЛІ ДЛЯ СТОРІНКИ "ФАХОВИЙ КАТАЛОГ"
   ========================================================================== */

/* Список завантажень (використовує ваш попередній картковий стиль) */
.vnmu-document-download-list {
    list-style: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.vnmu-document-download-list li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 18px !important;
    background-color: #ffffff !important;
    color: #222222 !important;
    text-decoration: none !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.25s ease !important;
}

.vnmu-document-download-list li a::before {
    content: "👁️" !important;
    font-size: 16px !important;
    margin-right: 12px !important;
}

.vnmu-document-download-list li a::after {
    content: "➔" !important;
    color: #a0aec0 !important;
}

.vnmu-document-download-list li a:hover {
    border-color: #53161D !important;
    color: #53161D !important;
    background-color: rgba(83, 22, 29, 0.02) !important;
    padding-left: 24px !important;
}

/* ==========================================================================
   ТАБЛИЦЯ АНКЕТ
   ========================================================================== */
.custom-vnmu-table th {
    background-color: #53161D !important;
    color: #ffffff !important;
    padding: 15px 15px !important;
    font-size: 15px !important;
    border: 1px solid #53161D !important;
    text-transform: uppercase;
}

.custom-vnmu-table td {
    padding: 12px 15px !important;
    border: 1px solid #dee2e6 !important;
    vertical-align: middle !important;
    font-size: 14.5px !important;
}

/* Роздільники спеціальностей всередині таблиці */
.custom-vnmu-table .specialty-row td {
    background-color: rgba(78, 144, 204, 0.08) !important;
    /* Легкий синій фон */
    color: #53161D !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    padding: 12px 15px !important;
    text-align: center !important;
    border-top: 2px solid #53161D !important;
}

.custom-vnmu-table .course-col {
    font-weight: 600 !important;
    color: #444 !important;
}

/* Ховер ефект для рядків таблиці */
.custom-vnmu-table tbody tr:not(.specialty-row):hover {
    background-color: #f8f9fa !important;
}

/* ==========================================================================
   КНОПКИ В ТАБЛИЦІ
   ========================================================================== */
.custom-vnmu-table .btn-google-form {
    display: inline-block !important;
    background-color: rgba(78, 144, 204, 0.1) !important;
    color: var(--mainColor, #4e90cc) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.custom-vnmu-table .btn-google-form:hover {
    background-color: var(--mainColor, #4e90cc) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(78, 144, 204, 0.3) !important;
}

/* Плашка "Очікується" для порожніх комірок */
.custom-vnmu-table .badge-pending {
    display: inline-block !important;
    background-color: #f1f3f5 !important;
    color: #868e96 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    cursor: not-allowed;
}

/* ==========================================================================
   11. ДЕКСКОПНА СТАТИЧНА ШАПКА СТОРІНКИ (HEADER AREA)
   ========================================================================== */

.star-page-title-area {
    position: relative;
    padding: 20px 15px 20px 15px !important;
    /*margin-bottom: 40px;*/
    text-align: center;
    background-color: #fcfcfc;
    border-bottom: 1px solid #eeeeee;
    overflow: hidden;
    margin-top: 95px;
}

.star-page-title-area .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    position: relative;
    z-index: 5;
}

.star-page-title-area .department-logo {
    max-height: 80px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    padding: 5px;
    transition: transform var(--transition, 0.3s) ease;
}

.star-page-title-area .department-logo:hover {
    transform: scale(1.04);
}

.star-page-title-area .header h2 {
    color: #53161d !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.star-page-title-area .section-title {
    position: relative;
    z-index: 2;
    display: inline-block;
}

.home .section-title h2 {
    margin-bottom: 20px !important;
}

.star-page-title-area .section-title h2 {
    font-size: 34px;
    font-weight: 700;
    color: #53161d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    padding: 0 0 15px 0;
    position: relative;
}

/*
.star-page-title-area .section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--mainColor, #4e90cc);
  border-radius: 2px;
}
*/

.star-page-title-area .col-lg-3 h5 {
    color: #53161d !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px !important;
}

.star-page-title-area .col-lg-3 p {
    color: #2c3e50 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.star-page-title-area .col-lg-3 p a {
    color: var(--mainColor, #4e90cc) !important;
    text-decoration: none !important;
    font-weight: 600;
}

.star-page-title-area .col-lg-3 p a:hover {
    color: var(--secondaryColor, #4081bb) !important;
    text-decoration: underline !important;
}

.star-page-title-area .page_title_sharp_2,
.star-page-title-area .page_title_sharp_3 {
    position: absolute;
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

.star-page-title-area .page_title_sharp_2 {
    left: 5%;
    top: 20%;
}

.star-page-title-area .page_title_sharp_3 {
    right: 5%;
    bottom: 20%;
}

/* ==========================================================================
   КОМПАКТНА ШАПКА ПІДРОЗДІЛУ (БЕЗ ЗМІНИ HTML)
   ========================================================================== */

/* Оформлення основного контейнера (картка) */
.star-page-title-area {
    background-color: #ffffff !important;
    padding: 15px 25px !important;
    border-radius: 8px !important;
    border: 1px solid #dee2e6 !important;
    margin-bottom: 25px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

/* Вертикальне вирівнювання елементів у стандартному Bootstrap-рядку */
.star-page-title-area .row {
    display: flex !important;
    align-items: center !important;
}

/* Компактний логотип */
.star-page-title-area .department-logo {
    max-height: 60px !important;
    /* Жорстке обмеження висоти для компактності */
    width: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
}

/* Стилізація тексту заголовка */
.star-page-title-area .header h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #53161D !important;
    /* Ваш фірмовий вишневий колір */
    text-transform: uppercase !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

/* Приховуємо порожні колонки, якщо в них немає контенту, щоб вони не ламали центр */
.star-page-title-area .col-lg-3:empty,
.star-page-title-area .social-icons:empty {
    display: none !important;
}

/* ==========================================================================
   12. ДИНАМІЧНІ ТАБЛИЦІ ДИСЦИПЛІН КАФЕДРИ
   ========================================================================== */
.department-content table tbody tr:first-child {
    background-color: #53161d !important;
    color: var(--whiteColor, #ffffff) !important;
}

.department-content table tbody tr:first-child td {
    color: var(--whiteColor, #ffffff) !important;
    background-color: #53161d !important;
    font-weight: bold !important;
    border: 1px solid #53161d !important;
    text-transform: uppercase;
}

.department-content table tbody tr:first-child p,
.department-content table tbody tr:first-child strong {
    color: var(--whiteColor, #ffffff) !important;
}

.department-content table tr:not(:first-child) td {
    padding: 12px !important;
    border: 1px solid #dee2e6 !important;
    color: var(--blackColor, #222) !important;
    height: auto !important;
}

.department-content table tbody tr:not(:first-child):hover {
    background-color: rgba(78, 144, 204, 0.08) !important;
    transition: background-color 0.2s ease !important;
}

.department-content table td a {
    color: #53161d !important;
    text-decoration: none !important;
    font-weight: bold !important;
    transition: color 0.2s ease !important;
    word-break: break-all !important;
}

.department-content table td a:hover {
    color: var(--mainColor, #4e90cc) !important;
    text-decoration: underline !important;
}

.department-content>p[style*="text-align:center"] strong {
    color: #53161d !important;
    display: block;
    margin-bottom: 5px;
}

.department-content tr:first-child td p span {
    color: var(--whiteColor, #fff) !important;
}

/* ==========================================================================
   13. ФУТЕР (FOOTER) СТОРІНКИ
   ========================================================================== */
.useful-links-section .link-card i {
    color: #fff !important;
}

.useful-links-section .row {
    gap: 10px;
    justify-content: center !important;
}

.useful-links-section {
    padding: 40px 0;
}

section.useful-links-section h3 {
    text-align: center;
}

.useful-links-section .link-card {
    /*background-image: linear-gradient(135deg, rgba(139, 94, 52, 0.2) 0%, rgba(65, 40, 16, 0.1) 100%)!important;*/
    background: linear-gradient(to right, #311818 0%, #7b222b 51%, #311818 100%) !important;
    background-size: 200% auto !important;
    border: none !important;
    color: #fff !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.useful-links-section .link-card:hover {
    background-position: right center !important;
    color: #fff !important;
}

.star-footer-area,
.star-copyright-area {
    background-color: #53161d;
    color: var(--whiteColor, #fff);
}

.star-footer-area .single-footer-widget h3 {
    color: var(--whiteColor, #fff);
}

.star-footer-area .single-footer-widget .menu li a,
.star-footer-area .single-footer-widget .footer-contact-info li,
.star-footer-area .single-footer-widget .footer-contact-info li i {
    color: #ffebea;
}

.star-copyright-area p {
    color: #ffebea;
    text-align: center;
}

/* Оновлений футер */
.custom-university-footer .social-circle-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--whiteColor, #ffffff) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-size: 16px !important;
    margin: 0 10px 16px 0 !important;
    transition:
        background-color var(--transition, 0.3s),
        transform var(--transition, 0.3s) ease !important;
}

.custom-university-footer .contact-item div {
    margin: 0 !important;
}

.custom-university-footer .contact-item i {
    margin-right: 10px;
    font-size: 1.1rem;
    color: #d2c7c7;
    margin-top: 2px;
    margin-right: 10px !important;
    margin-left: 0 !important;
}

/* ==========================================================================
   14. МОБІЛЬНЕ БУРГЕР-МЕНЮ ТА ШАПКА НАВІГАЦІЇ
   ========================================================================== */
.burger-btn {
    display: none;
    width: 35px;
    height: 30px;
    position: relative;
    cursor: pointer;
    z-index: 1100;
    flex-direction: column;
    justify-content: space-between;
}

.burger-btn .line {
    display: block;
    width: 100%;
    height: 4px;
    background-color: var(--mainColor, #4e90cc);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.star-navbar-area.is-sticky {
    padding-top: 0 !important;
}

/* Кожна окрема вкладка (картка) */
.accordion#accordionDocuments .accordion-item {
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease !important;
}

/* Ефект наведення на картку */
.accordion#accordionDocuments .accordion-item:hover {
    border-color: #4e90cc !important;
    /* Корпоративний синій */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
}

/* Кнопка-заголовок (Шапка в закритому стані) */
.accordion#accordionDocuments .accordion-button {
    background-color: #ffffff !important;
    color: #53161d !important;
    /* Фірмовий вишневий колір */
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 16px 20px !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    text-transform: none!important;
}

/* Створення іконки папки перед назвою категорії */
.accordion#accordionDocuments .accordion-button::before {
    content: "📁" !important;
    margin-right: 12px !important;
    font-size: 18px !important;
    transition: transform 0.25s ease !important;
}

/* Анімація папки при відкритті */
.accordion#accordionDocuments .accordion-button:not(.collapsed)::before {
    content: "📂" !important;
    transform: scale(1.1) !important;
}

/* Контейнер випадаючого списку (Тіло) */
.accordion#accordionDocuments .accordion-collapse {
    background-color: #fbfbfb !important;
    padding: 15px !important;
}

/* Клас елемента-рядка з вашої розмітки */
.accordion#accordionDocuments .item {
    margin-bottom: 8px !important;
    width: 100% !important;
}

.accordion#accordionDocuments .item:last-child {
    margin-bottom: 0 !important;
}

h2.accordion-header {
    margin: 10px 0 !important;
}

/* Стилізація самих посилань на документи всередині .item */
.accordion#accordionDocuments .item a {
    display: flex !important;
    align-items: flex-start !important;
    padding: 12px 16px !important;
    color: #222222 !important;
    text-decoration: none !important;
    background-color: #ffffff !important;
    border: 1px solid #eef2f5 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease-in-out !important;
    box-sizing: border-box !important;
}

/* Автоматична іконка файлу перед кожним посиланням */
.accordion#accordionDocuments .item a::before {
    content: "📄" !important;
    margin-right: 12px !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
}

/* Ефект наведення на документ */
.accordion#accordionDocuments .item a:hover {
    background-color: rgba(83,
            22,
            29,
            0.03) !important;
    /* Легкий вишневий блиск */
    border-color: #53161d !important;
    color: #53161d !important;
    padding-left: 20px !important;
    /* М'який зсув праворуч */
}

.learn-press-courses ul {
    padding: 0 !important;
}

/* ==========================================================================
   16. СТОРІНКА НОВИН (NEWS PAGE)
   ========================================================================== */
/* Sidebar Menu (Years) */
.left-sidebar .widget_block {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(83, 22, 29, 0.08);
}

.left-sidebar .widget_block h2 {
    margin-bottom: 10px;
    padding: 0;
    font-size: 16px;
}

.left-sidebar .widget_block h2 a {
    display: block;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.left-sidebar .widget_block h2 a:hover,
.left-sidebar .widget_block h2 a:focus {
    background-color: rgba(83, 22, 29, 0.05);
    color: #53161d;
    border-left: 3px solid #53161d;
    padding-left: 20px;
}

/* News Cards */
.news-card-wrapper {
    display: flex;
    margin: 0;
}

.news-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(83, 22, 29, 0.15);
}

.news-card .post-image {
    overflow: hidden;
    position: relative;
    max-height: 240px;
}

.news-card .post-image a {
    display: block;
}

.news-card .post-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .post-image img {
    transform: scale(1.05);
}

.news-card .post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card .post-content a {
    color: #53161d;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.news-card .post-content a:hover {
    color: var(--mainColor, #4e90cc);
}

/* ==========================================================================
   15. МЕДІА-ЗАПИТИ (MEDIA QUERIES) ТА АДАПТИВНІСТЬ
   ========================================================================== */

/* --- Планшети та малі екрани (max-width: 992px) --- */

/* --- Смартфони загальні (max-width: 768px) --- */

/* --- Мобільні телефони сітки (max-width: 576px) --- */

/* --- Вузькі мобільні девайси (max-width: 480px) --- */

.mobile-lang-selector {
    display: none;
}

/* ==========================================================================
   GOOGLE TRANSLATE WIDGET (custom UA/EN trigger buttons)
   ========================================================================== */

.lang-switcher .lang-btn {
    display: inline-flex;
    align-items: center;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    margin-inline-end: 10px;
    cursor: pointer;
    line-height: 0;
}

.lang-switcher .lang-btn:last-child {
    margin-inline-end: 0;
}

.lang-switcher .lang-btn:hover {
    opacity: 0.75;
}

.auth-switcher-form {
    display: inline-flex;
    align-items: center;
    width: auto;
    margin: 0;
    padding: 0;
}

button.auth-btn {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

#google_translate_element {
    display: none !important;
}

/* Hide Google's injected top banner/iframe and the body offset it adds */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame,
iframe.skiptranslate {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

body {
    top: 0 !important;
    position: static !important;
}

html {
    margin-top: 0 !important;
}

.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* ==========================================================================
   СІТКА ФАКУЛЬТЕТІВ (ПЕРЕВИЗНАЧЕННЯ СТИЛІВ LEARNPRESS БЕЗ ЗМІНИ HTML)
   ========================================================================== */

/* 1. Приховуємо зайвий перемикач сітки/списку (він часто ламає дизайн) */
.faculty-page .lp-courses-bar {
    display: none !important;
}

/* 2. Налаштування головної сітки (4 колонки) */
.faculty-page .faculty-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    padding: 0 !important;
    list-style: none !important;
}


/* 3. Оформлення заголовка, який лежить всередині <ul> */
.faculty-page .faculty-grid .department-title {
    grid-column: 1 / -1 !important;
    /* Розтягуємо заголовок на всю ширину сітки */
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #53161D !important;
    border-bottom: 2px solid #eef2f5 !important;
    padding-bottom: 10px !important;
    width: 100% !important;
    text-align: left !important;
}


/* 4. Оформлення самої картки факультету (li.course) */
.meta-item>* {
    margin-left: 5px;
}

.faculty-page .faculty-grid .course {
    background: linear-gradient(135deg, #ffffff 0%, rgba(78, 144, 204, 0.06) 100%) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(139, 94, 52, 0.15) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
}

.faculty-page .faculty-grid .course:hover {
    background: linear-gradient(135deg, #ffffff 0%, rgba(139, 94, 52, 0.15) 100%) !important;
    ;
    transform: translateY(-5px) !important;
    border-color: #53161D !important;
    box-shadow: 0 10px 25px rgba(83, 22, 29, 0.08) !important;
}

/* Внутрішня обгортка картки */
.faculty-page .faculty-grid .course-item {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 5. Логотип (Thumbnail) */
.faculty-page .faculty-grid .course-wrap-thumbnail {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    width: 100% !important;
}

.faculty-page .faculty-grid .faculty-thumbnail img {
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
    filter: brightness(0) saturate(100%) invert(42%) sepia(43%) saturate(583%) hue-rotate(347deg) brightness(92%) contrast(87%) !important;
}

.faculty-page .faculty-grid .course:hover .faculty-thumbnail img {
    transform: scale(1.08) !important;
}

/* 6. Контент (Текст та контакти) */
.faculty-page .faculty-grid .course-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Назва факультету */
.faculty-page .faculty-grid .course-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #53161D !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
    display: block !important;
    transition: color 0.2s ease !important;
}

.faculty-page .faculty-grid .course-title:hover {
    color: var(--mainColor, #4e90cc) !important;
}

/* Контактна інформація (Meta) */
.faculty-page .faculty-grid .course-wrap-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
    flex-grow: 1 !important;
    font-size: 13px !important;
    color: #495057 !important;
    line-height: 1.4 !important;
    border: none !important;
    padding: 0 !important;
}

.faculty-page .faculty-grid .meta-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Приховуємо лінії-розділювачі, які малює LearnPress */
.faculty-page .faculty-grid .separator,
.faculty-page .faculty-grid .course-separator {
    display: none !important;
}

/* 7. Кнопка "Детальніше" */
.faculty-page .faculty-grid .course-info {
    margin-top: auto !important;
    /* Притискає кнопку до низу картки */
    border: none !important;
    padding: 0 !important;
}

.faculty-page .faculty-grid .course-readmore a {
    display: inline-block !important;
    padding: 8px 16px !important;
    background-color: rgba(78, 144, 204, 0.08) !important;
    color: var(--mainColor, #4e90cc) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.faculty-page .faculty-grid .course:hover .course-readmore a {
    background-color: var(--mainColor, #4e90cc) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   СІТКА КАФЕДР (DEPARTMENTS GRID)
   ========================================================================== */

/* 1. Налаштування головної сітки (4 колонки) */
.departments-grid .fpo {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    padding: 0 !important;
}

/* 2. Оформлення заголовка */
.departments-grid .fpo h3 {
    grid-column: 1 / -1 !important;
    /* Розтягуємо заголовок на всю ширину сітки */
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #53161D !important;
    border-bottom: 2px solid #eef2f5 !important;
    padding-bottom: 10px !important;
    width: 100% !important;
    text-align: left !important;
}

/* 3. Очищення ul, які огортають кожну картку */
.departments-grid .fpo ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    /* Щоб li займав усю доступну висоту комірки сітки */
}

/* 4. Оформлення самої картки кафедри (li.course) */
.departments-grid .course {
    background: linear-gradient(135deg, #ffffff 0%, rgba(78, 144, 204, 0.06) 100%) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(139, 94, 52, 0.15) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
}

.departments-grid .course:hover {
    background: linear-gradient(135deg, #ffffff 0%, rgba(139, 94, 52, 0.15) 100%) !important;
    ;
    transform: translateY(-5px) !important;
    border-color: #53161D !important;
    box-shadow: 0 10px 25px rgba(83, 22, 29, 0.08) !important;
}

/* Внутрішня обгортка картки */
.departments-grid .course-item {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 5. Логотип (Thumbnail) */
.departments-grid .course-wrap-thumbnail {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    width: 100% !important;
}

.departments-grid .course-thumbnail img {
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.departments-grid .course:hover .course-thumbnail img {
    transform: scale(1.08) !important;
}

/* 6. Контент (Текст та контакти) */
.departments-grid .course-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Назва кафедри */
.departments-grid .course-permalink span,
.departments-grid .vnmu-department-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #53161D !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
    display: block !important;
    transition: color 0.2s ease !important;
    text-decoration: none !important;
}

.departments-grid .course-permalink:hover span,
.departments-grid .course-permalink:hover .vnmu-department-title {
    color: var(--mainColor, #4e90cc) !important;
}

/* Контактна інформація (Meta) */
.departments-grid .course-wrap-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 0 20px !important;
    flex-grow: 1 !important;
    font-size: 13px !important;
    color: #495057 !important;
    line-height: 1.4 !important;
    border: none !important;
    padding: 0 !important;
}

.meta-item>* {
    margin-left: 5px;
    text-align: left;
}

.departments-grid .meta-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Приховуємо лінії-розділювачі */
.departments-grid .separator,
.departments-grid .course-separator {
    display: none !important;
}

/* ==========================================================================
   МЕГА-МЕНЮ: КНОПКОВИЙ СТИЛЬ БЕЗ ФОНУ
   ========================================================================== */

/* 1. ДЕСКТОПНА ВЕРСІЯ (СІТКА КНОПОК НА ВСЮ ШИРИНУ) */

/* 2. СТИЛІЗУЄМО САМІ ПОСИЛАННЯ ЯК КНОПКИ */
.department-menu .submenu-children .submenu-item {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Зовнішній вигляд кнопки-спеціальності */
.department-menu .submenu-children .main-nav-link {
    background: #ffffff !important;
    border: 1px solid #eef2f5 !important;
    color: #53161D !important;
    /* Вишневий текст */
    padding: 12px 15px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    /* Робимо жирнішим, як у кнопок */
    text-align: center !important;
    /* Текст по центру */
    text-transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 45px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    width: 100% !important;
    line-height: 1.3 !important;
}

/* Ховер-ефект (Наведення на кнопку) */
.department-menu .submenu-children .main-nav-link:hover {
    background: #53161D !important;
    /* Кнопка стає повністю вишневою */
    color: #ffffff !important;
    /* Текст стає білим */
    border-color: #53161D !important;
    transform: translateY(-3px) !important;
    /* Кнопка злегка підіймається */
    box-shadow: 0 6px 15px rgba(83, 22, 29, 0.15) !important;
}

/* Profile Stats Grid Styles */
.profile-stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-stat-card {
    background-color: #f5ebe0;
    border: 1px solid #9c6f44;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 calc(20% - 16px);
    max-width: calc(20% - 16px);
    min-width: 130px;
    box-sizing: border-box;
}

.profile-stat-icon {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-stat-title {
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
    text-align: center;
    margin: 0 0 10px 0;
    line-height: 1.4;
    flex-grow: 1;
}

.profile-stat-counter {
    font-size: 24px;
    font-weight: 800;
    margin: auto 0 0 0;
    padding: 0;
    color: #007CC5;
    text-align: center;
    line-height: 1;
}

.navbar-logo img {
    max-height: 60px !important;
    padding: 5px !important;
}
/* ==========================================================================
   СТИЛІ ДЛЯ СТОРІНКИ "СТИПЕНДІАЛЬНА КОМІСІЯ" (Адаптивний дизайн, CSS Grid)
   ========================================================================== */
.scholarship-container {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #1e293b;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0!important;
}

.scholarship-main-title {
    font-size: 28px;
    color: #53161D; /* Університетський вишневий */
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scholarship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

/* Картка документа */
.scholarship-card {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none !important;
    color: #334155;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.scholarship-card:hover {
    border-color: #53161D;
    background-color: #fafafa;
    box-shadow: 0 6px 15px rgba(83, 22, 29, 0.08);
    transform: translateY(-2px);
    color: #53161D;
}

.scholarship-icon {
    font-size: 24px;
    margin-right: 14px;
    flex-shrink: 0;
}
.dl-container {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #1e293b;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0!important;
}

.dl-main-title {
    font-size: 28px;
    color: #53161D; /* Університетський вишневий */
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
    font-weight: 700;
}

.dl-section {
    margin-bottom: 40px;
}

.dl-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a56db; /* Синій колір для акцентів */
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

/* Картка документа */
.dl-card {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none !important;
    color: #334155;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.dl-card:hover {
    border-color: #53161D;
    background-color: #fafafa;
    box-shadow: 0 6px 15px rgba(83, 22, 29, 0.08);
    transform: translateY(-2px);
    color: #53161D;
}

.dl-icon {
    font-size: 24px;
    margin-right: 14px;
    flex-shrink: 0;
}

/* Спеціальний стиль для виділених посилань (наприклад, портал дистанційного навчання) */
.dl-card--highlight {
    background-color: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1;
}

.dl-card--highlight:hover {
    background-color: #e0f2fe;
    border-color: #0284c7;
    color: #0c4a6e;
    box-shadow: 0 6px 15px rgba(2, 132, 199, 0.15);
}
.osce-container {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #1e293b;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0!important;
}

.osce-main-title {
    font-size: 28px;
    color: #53161D; /* Університетський вишневий */
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    font-weight: 700;
}

/* --- Блок загальних документів (Накази, розклади) --- */
.osce-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.osce-doc-link {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none !important;
    color: #334155;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.osce-doc-link:hover {
    border-color: #53161D;
    background-color: #fafafa;
    box-shadow: 0 4px 12px rgba(83, 22, 29, 0.08);
    transform: translateY(-2px);
    color: #53161D;
}

.osce-doc-icon {
    font-size: 22px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* --- Блок підготовки (Спеціальності та Станції) --- */
.osce-section-title {
    font-size: 22px;
    color: #0f172a;
    margin: 40px 0 25px;
    text-align: center;
    background: #f1f5f9;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
}

.osce-specialty {
    margin-bottom: 40px;
}

.osce-specialty-title {
    font-size: 19px;
    font-weight: 700;
    color: #1a56db;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #e1effe;
    padding-bottom: 8px;
}

.osce-stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

/* Картка окремої станції */
.osce-station-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    height: 100%;
    box-sizing: border-box;
}

.osce-station-card:hover {
    background: #f8fafc;
    border-color: #1a56db;
    box-shadow: 0 6px 15px rgba(26, 86, 219, 0.1);
    transform: translateY(-3px);
}

.osce-station-badge {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    padding: 4px 8px;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #bae6fd;
}

.osce-station-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.4;
}

.osce-station-action {
    font-size: 13px;
    font-weight: 700;
    color: #1a56db;
    text-align: left;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.osce-station-card:hover .osce-station-action {
    color: #1e40af;
}
/* ==========================================================================
   СТИЛІ ДЛЯ СТОРІНКИ РЕЙТИНГІВ (CSS Grid, Адаптивність)
   ========================================================================== */
.opp-masonry-grid {
    column-count: 2;
    column-gap: 24px;
    width: 100%;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    margin-top: 20px;
}
.opp-masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 24px;
    break-inside: avoid;
    page-break-inside: avoid;
}

@media (max-width: 991px) {
    .opp-masonry-grid {
        column-count: 1;
    }
}

/* Дизайн самої картки */
.opp-card {
    background: #ffffff;
    border: 1px solid #eef2f5;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: max-content;
}

.opp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #d1e1f0;
}

.opp-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

/* Список посилань - РОЗБИТО НА 2 КОЛОНКИ */
.opp-card .course-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 рівні колонки */
    gap: 8px 16px; /* відступ по вертикалі 8px, по горизонталі 16px */
}

/* На телефонах робимо 1 колонку, щоб текст не був надто дрібним */
@media (max-width: 576px) {
    .opp-card .course-list {
        grid-template-columns: 1fr;
    }
}

.opp-card .course-list li {
    margin: 0 !important;
    padding: 0 !important;
}

.opp-card .course-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.opp-card .course-list li a:hover {
    background: #f8fafc;
    color: #0d47a1;
}

/* Бейджик з номером курсу */
.opp-card .course-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    border: 1px solid #bae6fd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

/* Іконка завантаження при наведенні */
.opp-card .course-list li a::after {
    content: "⬇";
    margin-left: auto;
    opacity: 0;
    font-size: 14px;
    transform: translateY(-2px);
    transition: opacity 0.2s, transform 0.2s;
}

.opp-card .course-list li a:hover::after {
    opacity: 1;
    transform: translateY(0);
}
/* --- АДАПТИВНІ СТИЛІ ІСТОРІЇ ФАКУЛЬТЕТУ --- */
.history-section {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #333333;
    line-height: 1.6;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 15px;
}

.history-section h2 {
    font-size: 26px;
    color: #2980b9;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.history-section p {
    font-size: 15px;
    margin-bottom: 15px;
    text-align: justify;
}

/* Одиночні зображення в тексті */
.history-inline-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Картки персон з текстом знизу (для одиночних портретів) */
.history-person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    max-width: 320px;
    margin: 30px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.history-person-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.history-person-card strong,
.history-person-card em {
    font-size: 16px;
    color: #53161d;
    text-align: center;
    font-style: normal;
}

/* Сітка для парних фотографій (корпуси, лікарні) */
.history-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.history-photo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.history-photo-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    object-fit: cover;
    aspect-ratio: 4 / 3; /* Щоб фотографії будівель були однакових пропорцій */
}

.history-photo-item .caption {
    font-size: 13.5px;
    color: #555;
    text-align: center;
    font-style: italic;
}

/* Сітка для групи портретів деканів */
.history-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin: 30px 0;
    justify-items: center;
}

.history-gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 180px;
}

.history-gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.history-gallery-item .name {
    font-weight: 700;
    font-size: 14px;
    color: #53161d;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 576px) {
    .scholarship-grid {
        grid-template-columns: 1fr;
    }
    .dl-grid {
        grid-template-columns: 1fr;
    }
    .osce-docs-grid {
        grid-template-columns: 1fr;
    }
    .osce-stations-grid {
        grid-template-columns: 1fr;
    }
    .ratings-grid {
        grid-template-columns: repeat(2, 1fr); /* По 2 в ряд на телефонах */
        gap: 12px;
    }
    .ratings-section {
        padding: 16px;
    }
    .rating-card {
        padding: 12px 8px;
    }
    .history-section h2 {
        font-size: 22px;
    }
    .history-section p {
        font-size: 14px;
    }
    .history-photo-grid {
        grid-template-columns: 1fr; /* Одне фото в ряд на телефонах */
    }
    .history-photo-item img {
        aspect-ratio: auto;
    }
    .history-gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* По 2 портрети в ряд на телефонах */
    }
}


/* 3. МОБІЛЬНА ВЕРСІЯ (АКОРДЕОН З КНОПОК) */

/* Анімація появи */
@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Сторінка Студентське самоврядування
   ========================================================================== */
:root {
    --rss-bordo: #630103;
    --rss-bordo-dark: #480002;
    --rss-bordo-light: #7e0c0e;
    --rss-bordo-glow: rgba(99, 1, 3, 0.12);

    --rss-beige: #f4ecdf;
    --rss-beige-light: #fbf8f4;
    --rss-beige-card: #f8f2e9;

    --rss-lemon: #fff781;
    --rss-lemon-soft: rgba(255, 247, 129, 0.25);

    --rss-gray: #ece9e6;
    --rss-text-dark: #1f1a19;
    --rss-text-muted: #665b59;
    --rss-border: rgba(99, 1, 3, 0.15);
}

.rss-wrapper {
    font-family: 'Montserrat', sans-serif;
    color: var(--rss-text-dark);
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 10px 50px;
    line-height: 1.6;
    box-sizing: border-box;
}


.rss-hero {
    background: linear-gradient(135deg, var(--rss-bordo) 0%, var(--rss-bordo-dark) 100%);
    border-radius: 24px;
    padding: 44px 36px;
    color: #ffffff;
    margin-bottom: 32px;
    box-shadow: 0 12px 30px var(--rss-bordo-glow);
    position: relative;
    overflow: hidden;
}

.rss-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 247, 129, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.rss-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--rss-lemon);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.rss-hero-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 14px 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.rss-hero-desc {
    font-size: 16px;
    color: #f1dfd8;
    margin: 0;
    max-width: 820px;
    font-weight: 400;
    line-height: 1.6;
}


.rss-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.rss-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px 0 22px;
}

.rss-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--rss-bordo);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rss-section-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(99, 1, 3, 0.25) 0%, transparent 100%);
}

.rss-card {
    background-color: var(--rss-beige-card);
    border: 1px solid var(--rss-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
    box-sizing: border-box;
}

.rss-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(99, 1, 3, 0.08);
    border-color: rgba(99, 1, 3, 0.35);
}

.rss-card--accent-lemon {
    border-top: 5px solid var(--rss-lemon);
}

.rss-card--accent-bordo {
    border-top: 5px solid var(--rss-bordo);
}

.rss-card-head {
    background: #ffffff;
    padding: 18px 24px;
    border-bottom: 1px solid var(--rss-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.rss-card-head-icon {
    width: 36px;
    height: 36px;
    background: var(--rss-beige);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.rss-card-head-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--rss-bordo);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.rss-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    font-size: 14.5px;
}

.rss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--rss-bordo);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    padding: 13px 22px;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.rss-btn:hover {
    background-color: var(--rss-bordo-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--rss-bordo-glow);
}

.rss-btn--outline {
    background-color: transparent;
    color: var(--rss-bordo) !important;
    border: 2px solid var(--rss-bordo);
}

.rss-btn--outline:hover {
    background-color: var(--rss-bordo);
    color: #ffffff !important;
}


.rss-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.rss-social-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--rss-border);
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none !important;
    color: var(--rss-text-dark);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.rss-social-pill:hover {
    background: var(--rss-bordo);
    color: #ffffff;
    border-color: var(--rss-bordo);
    transform: translateY(-2px);
}

/* Партнерський банер */
.rss-partnership-banner {
    background: linear-gradient(135deg, var(--rss-bordo) 0%, #4f0103 100%);
    border-radius: 20px;
    padding: 30px 32px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 35px;
    box-shadow: 0 10px 24px var(--rss-bordo-glow);
}

.rss-partnership-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--rss-lemon);
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rss-partnership-text {
    font-size: 14.5px;
    color: #f1dfd8;
    margin: 0;
    max-width: 680px;
}

.rss-partnership-btn {
    background-color: var(--rss-lemon);
    color: var(--rss-bordo-dark) !important;
    white-space: nowrap;
    padding: 13px 26px;
    font-weight: 800;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.rss-partnership-btn:hover {
    background-color: #fffb9e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.rss-team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.rss-team-card {
    background: #ffffff;
    border: 1px solid var(--rss-border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.rss-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px var(--rss-bordo-glow);
    border-color: var(--rss-bordo);
}

.rss-team-photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #e8e0d6;
    overflow: hidden;
    position: relative;
}

.rss-team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.rss-team-card:hover .rss-team-photo {
    transform: scale(1.05);
}

.rss-team-details {
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    justify-content: center;
}

.rss-team-role {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--rss-bordo);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.rss-team-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--rss-text-dark);
    margin: 0;
    line-height: 1.35;
}

.rss-dept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.rss-dept-card {
    background: #ffffff;
    border: 1px solid var(--rss-border);
    border-top: 4px solid var(--rss-bordo);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.rss-dept-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--rss-bordo);
    margin: 0 0 16px 0;
    line-height: 1.35;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rss-border);
}

.rss-dept-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13.5px;
    color: #3e3533;
}

.rss-dept-list li {
    position: relative;
    padding-left: 18px;
    line-height: 1.45;
}

.rss-dept-list li::before {
    content: "▫";
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--rss-bordo);
    font-weight: 800;
    font-size: 14px;
}

.rss-dept-list strong {
    color: var(--rss-text-dark);
    font-weight: 700;
}


.rss-helpers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.rss-helper-chip {
    background: #ffffff;
    border: 1px solid var(--rss-border);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: var(--rss-bordo);
    font-weight: 700;
    font-size: 13.5px;
    transition: all 0.2s ease;
}

.rss-helper-chip:hover {
    background: var(--rss-bordo);
    color: #ffffff;
    border-color: var(--rss-bordo);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--rss-bordo-glow);
}

.rss-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.rss-news-card {
    background: #ffffff;
    border: 1px solid var(--rss-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rss-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.rss-news-thumb {
    width: 100%;
    height: 140px;
    background: #2a2221;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5ded7;
    font-size: 12px;
    font-weight: 600;
}

.rss-news-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.rss-news-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--rss-text-dark);
    margin: 0 0 14px 0;
    line-height: 1.45;
}

.rss-news-btn {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--rss-bordo);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.rss-news-card:hover .rss-news-btn {
    gap: 8px;
}

@media (max-width: 1024px) {
    .rss-team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .rss-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rss-hero {
        padding: 30px 22px;
        border-radius: 18px;
    }
    .rss-hero-title {
        font-size: 24px;
    }
    .rss-grid-2,
    .rss-dept-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .rss-partnership-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
    }
    .rss-partnership-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    .rss-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rss-news-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   15. МЕДІА-ЗАПИТИ (MEDIA QUERIES) ТА АДАПТИВНІСТЬ
   ========================================================================== */
/* 1. Специфічні для Desktop / Великих екранів (нова менюшка) */
@media (min-width: 992px) {
    .department-menu {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 15px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* "Витягуємо" елементи з вузьких колонок */
    .department-menu .submenu-block,
    .department-menu .submenu-block>.col-md-12,
    .department-menu .submenu-item-first>.col-md-12 {
        display: contents !important;
    }

    /* Головні кнопки-перемикачі: ставимо їх у ПЕРШИЙ ряд */
    .department-menu .submenu-toggle,
    .department-menu .submenu-item-first {
        order: 1 !important;
        flex: 1 1 calc(33.333% - 15px) !important;
        max-width: calc(33.333% - 10px) !important;
        margin: 0 !important;
        padding: 10px;
    }

    /* Контейнер підменю: ПОВНІСТЮ ПРОЗОРИЙ, працює лише як сітка */
    .department-menu .submenu-children {
        order: 2 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        background: transparent !important;
        /* Немає фону */
        border: none !important;
        /* Немає загальної рамки */
        padding: 10px 0 0 0 !important;
        /* Лише відступ від верхніх кнопок */
        margin-top: 0 !important;
        box-shadow: none !important;
        display: none;
    }

    /* Коли підменю відкрите: показуємо сітку з 3 колонок */
    .department-menu .submenu-block.open .submenu-children {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        /* Відстань між кнопками-спеціальностями */
        animation: fadeInMenu 0.3s ease forwards;
    }
}

/* 2. iPad / Планшети специфічні */
@media (min-width: 768px) and (max-width: 1024px) {

    /* 1. Центрування іконок мов та пошуку */
    .main-top-search {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .lang-switcher {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .lang-switcher .lang-btn {
        justify-content: center;
    }

    .mobile-lang-selector {
        justify-content: center;
    }

    /* 2. Центрування та сітка Оголошень */
    .star-testimonial-area .section-title {
        text-align: center;
    }

    .star-testimonial-area .section-title h2 {
        text-align: center;
    }

    .star-single-testimonial-box {
        text-align: center;
    }

    .star-single-testimonial-box .desc p.alignright {
        text-align: center;
    }

    /* Робимо 3 в ряд для оголошень, щоб не було діри */
    .star-testimonial-grid>div[class*="col-"] {
        width: calc(33.333333% - 10px) !important;
        flex: 0 0 33.333333% !important;
        max-width: 31% !important;
        margin: 0 5px;
    }

    /* 3. Зменшення відстані та сітка 5x2 для Популярні розділи */
    .lp-course-tag-slider {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        /* зменшена відстань */
    }

    .lp-course-tag-slider>div[class*="col-"] {
        /* 5 блоків в ряд (20%) мінус відступи */
        width: calc(20% - 10px) !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
    }

    .lp-course-tag-slider>.col-sm-none {
        display: none !important;
    }

    .lp-course-tag-slider .star-lp-single-course-category {
        margin: 0 !important;
        max-height: fit-content;
        width: 100% !important;
        /* займає весь свій контейнер (calc(20% - 10px)) */
        max-width: 100% !important;
    }

    /* Робимо текст трохи меншим, щоб довгі слова не ламали сітку */
    .lp-course-tag-slider .star-lp-single-course-category .tag-title {
        font-size: 12px !important;
        word-break: break-word;
    }
}

/* 3. Планшети та Мобільні (max-width: 992px) */
@media (max-width: 992px) {
    .star-page-title-area {
        padding: 15px !important;
    }

    /* Додаємо відступ між логотипом та текстом при складанні в колонку */
    .star-page-title-area .department-logo {
        max-height: 50px !important;
        margin-bottom: 12px !important;
    }

    .star-page-title-area .header h2 {
        font-size: 18px !important;
    }

    .site .container-fluid,
    .elementor-page .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 20px !important;
    }

    .row {
        --bs-gutter-x: 0 !important;
    }

    .col-sm-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-sm-none {
        display: none;
    }

    ul#nav-list {
        height: 100vh;
        margin-top: 30px;
        padding: 0 !important;
    }

    .main-link {
        color: var(--blackColor, #222) !important;
        background: var(--whiteColor, #fff) !important;
        border-bottom: 1px solid #eee;
    }

    .main-submenu .category-grid.col6 {
        display: flex !important;
        flex-direction: column !important;
        max-width: 100% !important;
        padding: 10px !important;
        margin-bottom: 0 !important;
    }

    .category-block {
        max-width: 100% !important;
        min-width: 100% !important;
        background: transparent !important;
        border: none !important;
        display: flex !important;
        align-items: center;
        text-align: left !important;
        padding: 8px 15px !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    .icon-box {
        margin-bottom: 0 !important;
        margin-right: 15px;
        max-width: 24px;
    }

    .icon-box svg {
        width: 24px !important;
        height: 24px !important;
    }

    .category-grid a {
        display: flex;
    }

    .category-label {
        font-size: 13px !important;
        color: var(--blackColor, #222) !important;
        line-height: 1.4em;
    }

    .level-2-accordion {
        position: static !important;
        max-height: 0;
        visibility: visible !important;
        opacity: 1 !important;
        box-shadow: none !important;
        background: #f9f9f9 !important;
    }

    .level-2-accordion.open {
        max-height: 3000px;
    }

    .links-group.active {
        column-count: 1 !important;
        padding: 10px 20px !important;
    }

    .sub-link {
        padding: 8px 0 !important;
        display: block !important;
    }

    .department-menu .category-grid.col6 {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }

    .submenu-block.col-md-4 {
        width: calc(50% - 6px) !important;
    }

    .star-page-title-area {
        margin-top: 60px;
    }

    /* --- СТИЛІЗАЦІЯ ШАПКИ СТОРІНКИ--- */
    .star-page-title-area {
        margin-top: 60px;
        padding: 15px 0 !important;
        /* Compact padding */
    }

    .star-page-title-area .row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px 15px !important;
        text-align: left !important;
        padding: 0 15px 10px !important;
    }

    /* Logo Column */
    .star-page-title-area .row>div:nth-child(1) {
        width: auto !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        padding: 0 !important;
        margin: 0 !important;
        order: 1 !important;
    }

    /* Title Column */
    .star-page-title-area .row>div:nth-child(2) {
        width: auto !important;
        max-width: none !important;
        flex: 1 1 0% !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: left !important;
        order: 2 !important;
    }

    /* Address Column */
    .star-page-title-area .row>div:nth-child(3) {
        width: 100% !important;
        max-width: 100% !important;
        /*padding: 8px 0 0 0 !important;
        margin: 6px 0 0 0 !important;
        order: 3 !important;
        border-top: 1px dashed rgba(83, 22, 29, 0.12) !important;*/
        padding: 0 !important;
        margin: 0 !important;
        text-align: left !important;
    }

    /* Social Column */
    .star-page-title-area .row>div:nth-child(4) {
        display: none !important;
    }

    .star-page-title-area .department-logo {
        margin: 0 !important;
        max-width: 50px !important;
        height: auto !important;
    }

    .star-page-title-area .header h2 {
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        text-align: left !important;
        margin: 0 !important;
    }

    .star-page-title-area .col-lg-3 h5 {
        display: none !important;
        /* Hide "АДРЕСА:" label on mobile */
    }

    .star-page-title-area .col-lg-3 p {
        font-size: 11px !important;
        line-height: 1.4 !important;
        color: #555555 !important;
        text-align: left !important;
        margin: 0 !important;
    }

    .star-page-title-area .col-lg-3 p a {
        font-size: 11px !important;
    }

    .submenu-block {
        padding: 7px 12px;
        margin: 0;
        display: block;
    }

    .main-menu .navbar {
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 20px !important;
        width: 100% !important;
        position: relative !important;
        gap: 20px !important;
    }

    .main-menu .navbar .container,
    .main-menu .container {
        order: 1 !important;
        width: auto !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .main-menu .navbar .navbar-logo,
    .main-menu .navbar>a,
    .main-menu .container .navbar-logo {
        order: 1 !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-menu .navbar .navbar-logo img {
        height: 50px !important;
        width: auto !important;
        padding: 5px !important;
    }

    .mobile-lang-selector {
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 15px 0 auto !important;
    }

    .mobile-lang-btn {
        border: none !important;
        background: transparent !important;
        padding: 4px !important;
        display: flex !important;
        align-items: center !important;
        opacity: 0.5;
        cursor: pointer;
    }

    .mobile-lang-btn.active {
        opacity: 1 !important;
    }

    .main-top-search {
        order: 3 !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 15px 0 0 !important;
        cursor: pointer;
    }

    .burger-btn,
    .burger-menu-btn {
        display: flex !important;
        order: 4 !important;
        position: relative !important;
        margin: 0 !important;
        z-index: 10000 !important;
    }

    .category-grid .category-block {
        flex-direction: row;
    }

    .icon-box {
        margin-bottom: 0 !important;
        margin-right: 15px;
        max-width: 24px !important;
    }

    .category-label {
        width: 100%;
        font-size: 16px !important;
    }

    .faculty-page .learn-press-courses {
        display: flex !important;
    }

    .left-sidebar .widget_block {
        margin-bottom: 30px;
        padding: 15px;
    }

    .left-sidebar .widget_block .wp-block-group__inner-container {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start !important;
    }

    .left-sidebar .widget_block h2 {
        margin: 0 !important;
    }

    .news-card .post-image {
        max-height: 140px !important;
    }

    .left-sidebar .widget_block h2 a {
        padding: 8px 16px;
        border-left: none;
        border-radius: 20px;
        background: rgba(83, 22, 29, 0.03);
        border: 1px solid rgba(83, 22, 29, 0.08);
        font-size: 14px;
    }

    .left-sidebar .widget_block h2 a:hover,
    .left-sidebar .widget_block h2 a:focus {
        border-left: none;
        padding-left: 16px;
        background: #53161d;
        color: #fff;
    }

    .news-card-wrapper {
        display: flex;
        width: calc(50% - 10px) !important;
        flex: 0 0 44% !important;
        max-width: 44% !important;
        margin: 0 10px;
    }

    .news-card .post-content a {
        font-size: 12px;
        line-height: 1.2;
    }

    .faculty-page .faculty-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2 картки в ряд */
    }

    .departments-grid .fpo {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .department-menu .submenu-children {
        display: none;
        background: transparent !important;
        border: none !important;
        padding: 10px 0 !important;
        margin-top: 5px !important;
        margin-bottom: 15px !important;
    }

    .department-menu .submenu-block.open .submenu-children {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        animation: fadeInMenu 0.3s ease forwards;
    }

    .profile-stat-card {
        max-width: calc(50% - 16px);
    }

    .profile-stat-title {
        font-size: 11px;
    }

    .accordion-body {
        padding: 0 !important;
    }

    .accordion#accordionDocuments .item {
        margin-bottom: 0px !important;
    }
}

/* 4. Менші Планшети (max-width: 768px) */
@media (max-width: 768px) {

    .breabcrumbs .breadcrumb-item a,
    .breabcrumbs .breadcrumb-item.active span {
        border-radius: 6px;
        padding: 5px 6px;
        font-size: 8px;
        min-height: 24px;
    }

    .breabcrumbs .breadcrumb-item+.breadcrumb-item::before {
        padding: 0 3px;
    }

    .lp-course-tag-slider .star-lp-single-course-category {
        width: 100% !important;
        height: auto !important;
        min-height: 150px !important;
        max-width: 150px !important;
        margin: 0 auto 10px auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
        padding: 15px !important;
        text-align: center !important;
    }

    .lp-course-tag-slider .star-lp-single-course-category .tag-title {
        font-size: 12px !important;
    }

    .single-banner-part {
        min-height: 400px !important;
        padding: 40px 20px !important;
    }

    .elementor-background-video-embed {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .banner-iner h2 {
        font-size: 24px !important;
        line-height: 1.4 !important;
        text-align: center !important;
        color: var(--whiteColor, #ffffff) !important;
        padding: 0 10px !important;
    }

    .star-page-title-area {
        /*padding: 30px 0 0 0 !important;*/
        padding: 0px 0 0 0 !important;
        margin-bottom: 0px !important;
    }

    .star-page-title-area .section-title h2 {
        font-size: 26px;
    }

    .star-page-title-area .page_title_sharp_2,
    .star-page-title-area .page_title_sharp_3 {
        display: none;
    }

    .faculty-grid.learn-press-courses .course {
        margin: 0 auto 30px !important;
    }

    .faculty-thumbnail {
        max-width: 50px !important;
    }

    .course-thumbnail {
        max-width: 80px !important;
    }

    .learn-press-courses .course-content {
        padding: 0 !important;
        width: 100% !important;
        /*padding: 16px 0 0 !important;*/
    }


    .faculty-page .learn-press-courses {
        display: block !important;
    }

    .faculty-page .lp-courses-bar {
        margin-top: 0 !important;
    }


    .link-card {
        padding: 6px 14px !important;
        font-size: 10px !important;
    }

    .link-card i::before {
        font-size: 16px !important;
    }

    .link-card i {
        margin-right: 5px !important;
    }

    /*Таблиці*/
    article table,
    .entry-content table,
    .item-page table,
    .department-content table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        border-collapse: collapse !important;
    }

    article table td,
    .entry-content table td,
    .item-page table td {
        width: auto !important;
        min-width: 100px;
        box-sizing: border-box !important;
    }

    table[border="0"] tbody,
    table[border="0"] tr,
    table[border="0"] td {
        display: block !important;
        /* Перетворюємо табличну структуру на блочну (стовпчик) */
        width: 100% !important;
        /* Кожна комірка стає на всю ширину екрана */
        box-sizing: border-box !important;
        text-align: center !important;
    }

    table[border="0"] td {
        margin-bottom: 20px !important;
        /* Додаємо гарний відступ між колишніми "колонками" */
        padding: 10px 0 !important;
    }

    .submenu-block {
        display: block;
    }
}

/* 5. Мобільні Телефони (max-width: 576px) */
@media (max-width: 576px) {
    .department-menu .category-grid.col6 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 5px !important;
        margin-bottom: 25px !important;
    }

    .department-menu .category-grid.col6>a {
        display: block !important;
        height: auto !important;
    }

    .department-menu .category-block {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 10px 12px !important;
        height: 100% !important;
        min-height: auto !important;
        /*background-color: #f0f7fb !important;
        border: 1px solid #d1d5db !important;*/
        border-radius: 8px !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    /*.department-menu .category-block.menu-active {
        background-color: var(--mainColor, #4e90cc) !important;
        border-color: var(--secondaryColor, #4081bb) !important;
    }*/

    .department-menu .category-block .icon-box {
        width: 16px !important;
        height: 16px !important;
        margin: 0 8px 0 0 !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .department-menu .category-block .icon-box img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    .department-menu .category-block.menu-active .icon-box img {
        filter: brightness(0) invert(1) !important;
    }

    .department-menu .category-block .category-label {
        font-size: 10px !important;
        font-weight: 400 !important;
        color: #2c3e50 !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        display: inline-block !important;
    }

    .department-menu .category-block.menu-active .category-label {
        color: var(--whiteColor, #ffffff) !important;
    }

    .submenu-block.col-md-4 {
        width: 100% !important;
        display: block;
    }

    .department-menu .main-nav-link {
        min-height: auto !important;
        padding: 10px !important;
    }

    .department-menu .submenu-item .main-nav-link,
    .department-menu .submenu-block .submenu-toggle {
        min-height: 44px !important;
        height: 44px !important;
        padding: 6px 15px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        box-shadow: 2px 5px 7px #d6d6d6;
    }

    .footer-brand-title {
        font-size: 15px !important;
    }

    .icon-box {
        margin-bottom: 0 !important;
        margin-right: 15px;
        max-width: 24px !important;
    }

    .submenu-block {
        display: block;
    }

    .faculty-page .faculty-grid {
        grid-template-columns: 1fr !important;
        /* 1 картка в ряд */
        gap: 15px !important;
    }

    .faculty-page .faculty-grid .course-item {
        padding: 15px !important;
        /* Менші відступи на телефоні */
    }

    .faculty-thumbnail,
    .course-thumbnail {
        display: none !important;
    }

    .departments-grid .fpo {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .departments-grid .course-item {
        padding: 15px !important;
    }

    .list-group-custom .list-group-item {
        padding: 0.6rem 1rem !important;
        font-size: 12px !important;
        margin-bottom: 5px !important;
    }

    .list-group-custom .submenu-group .list-group-item {
        padding: 0.5rem 1rem !important;
        font-size: 12px !important;
        /*padding-right: 2rem !important;*/
    }

    .course-header {
        width: 100%;
    }
}

/* ==========================================================================
   СТИЛІ ДЛЯ СПИСКУ ГРАФІКІВ (ПІД ЗВИЧАЙНИЙ РЕДАКТОР)
   ========================================================================== */

.study-schedule-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: #1e293b !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 10px 0 30px !important;
    box-sizing: border-box !important;
}

/* Шапка сторінки */
.study-schedule-header {
    background: linear-gradient(135deg, #53161D 0%, #35080d 100%) !important;
    border-radius: 14px !important;
    padding: 24px 28px !important;
    color: #ffffff !important;
    margin-bottom: 22px !important;
    box-shadow: 0 6px 20px rgba(83, 22, 29, 0.15) !important;
}

.study-schedule-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fde8e8 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    padding: 3px 12px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin-bottom: 8px !important;
}

.study-schedule-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    margin: 0 0 6px 0 !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
}

.study-schedule-subtitle {
    font-size: 14px !important;
    color: #f3d5d7 !important;
    margin: 0 !important;
}

/* Вкладки */
.study-tabs-nav {
    display: flex !important;
    gap: 8px !important;
    background: #f1f5f9 !important;
    padding: 6px !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
    border: 1px solid #e2e8f0 !important;
}

.study-tab-btn {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 11px 18px !important;
    border: none !important;
    background: transparent !important;
    color: #475569 !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
}

.study-tab-btn:hover {
    color: #53161D !important;
    background: rgba(255, 255, 255, 0.7) !important;
}

.study-tab-btn.active {
    background: #ffffff !important;
    color: #53161D !important;
    box-shadow: 0 3px 10px rgba(83, 22, 29, 0.12) !important;
}

.study-tab-pane {
    display: none;
    animation: tabFade 0.2s ease-in-out;
}

.study-tab-pane.active {
    display: block !important;
}

@keyframes tabFade {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   ОФОРМЛЕННЯ САМОГО СПИСКУ (ПРАЦЮЄ ПОВЕРХ ЗВИЧАЙНОГО UL / LI)
   ========================================================================== */
.custom-schedule-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.custom-schedule-list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Кожне посилання виглядає як акуратний рядок */
.custom-schedule-list li a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 18px !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #53161D !important; /* Фірмовий бордовий колір */
    border-radius: 6px !important;
    text-decoration: none !important;
    color: #2d3748 !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
}



/* Стрілочка або маркер завантаження праворуч */
.custom-schedule-list li a::after {
    content: "➔" !important;
    margin-left: auto !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
    transition: transform 0.2s, color 0.2s !important;
}

/* Підсвічування при наведенні */
.custom-schedule-list li a:hover {
    background-color: #fcf6f6 !important;
    border-color: #ebd0d2 !important;
    border-left-color: #630103 !important;
    color: #53161D !important;
    transform: translateX(4px) !important;
    box-shadow: 0 4px 12px rgba(83, 22, 29, 0.08) !important;
}

.custom-schedule-list li a:hover::after {
    color: #53161D !important;
    transform: translateX(3px) !important;
}

/* На телефонах */
@media (max-width: 768px) {
    .study-tabs-nav {
        flex-direction: column !important;
    }
    .study-tab-btn {
        width: 100% !important;
    }
    .study-schedule-header {
        padding: 18px !important;
    }
    .study-schedule-title {
        font-size: 21px !important;
    }
    .custom-schedule-list li a {
        padding: 11px 14px !important;
        font-size: 13.5px !important;
    }
}

/* 6. Малі Екрани (max-width: 480px) */
@media (max-width: 480px) {
    .submenu-block {
        display: block;
    }

    h1 {
        font-size: 24px !important;
        line-height: 1.25 !important;
        margin-top: 20px !important;
        margin-bottom: 15px !important;
        font-weight: 700 !important;
    }

    h2 {
        font-size: 21px !important;
        line-height: 1.3 !important;
        margin-top: 20px !important;
        margin-bottom: 12px !important;
        font-weight: 600 !important;
    }

    h3 {
        font-size: 18px !important;
        line-height: 1.35 !important;
        margin-top: 15px !important;
        margin-bottom: 10px !important;
    }

    h4,
    h5,
    h6 {
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin-top: 12px !important;
        margin-bottom: 8px !important;
    }

    .learn-press-courses ol,
    .learn-press-courses ul {
        padding-left: 0 !important;
    }

    .lp-content-area {
        padding-top: 80px !important;
    }

    .department-content table tbody tr:first-child td,
    .department-content table tbody tr:first-child p,
    .department-content table tbody tr:first-child strong,
    .department-content table tr:not(:first-child) td,
    .department-content table p,
    table.Table,
    table.Table tr,
    table.Table td,
    table.Table p,
    table.Table span,
    table.Table strong,
    table.Table a {
        font-size: 10px !important;
        margin-bottom: 0 !important;
    }

    table.Table td {
        height: auto !important;
        padding: 6px 4px !important;
    }

    .department-content tr:first-child td p span {
        color: var(--whiteColor, #fff) !important;
    }

    .col-sm-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-sm-none {
        display: none;
    }

    .col-lg-12.full-width {
        max-width: 100% !important;
        margin: 0 auto;
    }

    .main-menu {
        padding: 0 !important;
    }

    .main-menu .navbar {
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 12px !important;
        width: 100% !important;
    }

    .main-menu .navbar .container,
    .main-menu .container {
        order: 1 !important;
        width: auto !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .main-menu .navbar .navbar-logo,
    .main-menu .navbar>a,
    .main-menu .container .navbar-logo {
        order: 1 !important;
        margin: 0 !important;
    }

    .main-menu .navbar .navbar-logo img {
        height: 48px !important;
        width: auto !important;
        padding: 3px !important;
    }

    .mobile-lang-selector {
        order: 2 !important;
        margin: 0 10px 0 auto !important;
    }

    .main-top-search {
        order: 3 !important;
        margin: 0 10px 0 0 !important;
        cursor: pointer;
    }

    .burger-btn,
    .burger-menu-btn {
        order: 4 !important;
        position: relative !important;
        margin: 0 !important;
    }

    .main-top-search i {
        font-size: 24px;
        color: var(--whiteColor, #fff);
        display: flex;
        align-items: center;
        height: 100%;
    }

    .breabcrumbs .breadcrumb-item a,
    .breabcrumbs .breadcrumb-item.active span {
        border-radius: 6px;
        padding: 5px 6px;
        font-size: 8px;
        min-height: 24px;
    }

    .breabcrumbs .breadcrumb-item+.breadcrumb-item::before {
        padding: 0 3px;
    }

    .main-menu .category-grid .icon-box img {
        max-width: 100%;
    }

    .main-menu .category-grid {
        gap: inherit;
    }

    .mega-menu-content {
        padding: 0 !important;
        width: 90%;
    }

    .category-block:hover span,
    .category-block.active span {
        color: var(--whiteColor, #fff) !important;
    }

    .navbar .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .main-link:hover {
        background: var(--whiteColor, #fff) !important;
        color: var(--mainColor, #4e90cc) !important;
    }

    .level-2-accordion {
        border-radius: 0 !important;
    }

    @media (max-width: 992px) {
        .main-menu .navbar {
            display: flex !important;
            flex-wrap: nowrap !important;
            flex-direction: row !important;
            align-items: center !important;
            justify-content: space-between !important;
            padding: 10px 20px !important;
            width: 100% !important;
            position: relative !important;
        }

        .main-menu .navbar .container,
        .main-menu .container {
            order: 1 !important;
            width: auto !important;
            max-width: none !important;
            flex: 0 0 auto !important;
            margin: 0 !important;
            padding: 0 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: flex-start !important;
        }

        .main-menu .navbar .navbar-logo,
        .main-menu .navbar>a,
        .main-menu .container .navbar-logo {
            order: 1 !important;
            display: flex !important;
            align-items: center !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .main-menu .navbar .navbar-logo img {
            height: 55px !important;
            width: auto !important;
            padding: 5px !important;
        }

        .mobile-lang-selector {
            order: 2 !important;
            display: flex !important;
            align-items: center !important;
            gap: 6px !important;
            margin: 0 15px 0 auto !important;
        }

        .mobile-lang-btn {
            border: none !important;
            background: transparent !important;
            padding: 4px !important;
            display: flex !important;
            align-items: center !important;
            opacity: 0.5;
            cursor: pointer;
        }

        .mobile-lang-btn.active {
            opacity: 1 !important;
        }

        .main-top-search {
            order: 3 !important;
            display: flex !important;
            align-items: center !important;
            margin: 0 15px 0 0 !important;
            cursor: pointer;
        }

        .burger-btn,
        .burger-menu-btn {
            display: flex !important;
            order: 4 !important;
            position: relative !important;
            margin: 0 !important;
            z-index: 10000 !important;
        }
    }

    .lp-course-tag-slider img {
        max-width: 60px;
    }

    .category-grid {
        display: flex !important;
        flex-direction: column !important;
        max-width: 100% !important;
        padding: 10px !important;
        width: 100%;
    }

    .category-label {
        width: 100%;
    }

    .star-blog-area.ptb-70.department-menu,
    .star-blog-area.ptb-70 {
        padding: 0 !important;
    }

    .star-lp-course-category-area .owl-carousel .owl-item .star-lp-single-course-category img {
        max-width: 45px;
    }

    .star-lp-single-course-category h4 {
        font-size: 11px !important;
    }

    .star-lp-single-course-category {
        margin: 10px;
        padding: 10px;
        height: 120px;
    }

    .star-lp-course-category-area {
        top: -9em;
    }

    .vnmu-department-title,
    .faculty-grid .course-title {
        font-size: 18px !important;
        padding-bottom: 12px;
        display: block;
        color: #a5735f !important;
    }

    .learn-press-courses .department-title {
        font-size: calc(1.3rem + 0.6vw) !important;
    }

    .faculty-grid .separator {
        display: none;
    }

    .course-wrap-meta {
        font-size: 14px !important;
    }

    .departments-page .learn-press-courses .course .course-separator {
        display: none !important;
    }

    .profile .star-lp-single-course-category {
        width: 100%;
    }

    .profile h4.tag-title {
        font-size: 12px;
        min-height: auto;
    }

    .profile h4.tag-title.counter {
        font-size: 1.7em;
        font-weight: bold;
        min-height: auto;
        margin: 0;
    }

    .profile-icon {
        top: -35px;
        width: 60px;
        height: 60px;
    }

    .profile-icon svg {
        width: 40px;
    }

    .faculty-grid.learn-press-courses .course {
        width: 100%;
    }

    .category-grid .category-block {
        flex-direction: row;
    }

    /* Адаптивна шапка для мобільних девайсів */
    .header-container .department-header.row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        margin: 0 auto !important;
        padding: 10px 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .header-container .department-header>div[class*="col-"] {
        flex: 0 1 auto !important;
        max-width: none !important;
        width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .header-container .department-header .department-logo {
        max-width: 45px !important;
        max-height: 45px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 !important;
    }

    .header-container .department-header h2 {
        font-size: 18px !important;
        line-height: 1.2 !important;
        color: #53161d !important;
        margin: 0 !important;
        padding: 0 !important;
        font-weight: bold !important;
        white-space: normal !important;
    }

    .star-page-title-area .header-container {
        margin-top: 10px !important;
    }

    .address span {
        font-size: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .address .col-md-8.col-sm-1,
    .address .col-md-2.col-sm-1 {
        margin: 0 !important;
    }

    .accordion#accordionDocuments .accordion-button {
        font-size: 14px !important;
        padding: 14px 15px !important;
    }

    .accordion#accordionDocuments .item a {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
}

.mobile-lang-selector {
    display: none;
}

@media (max-width: 992px) {
    .main-menu .navbar>a {
        order: 1 !important;
    }

    .burger-btn {
        order: 2 !important;
    }

    .mobile-lang-selector {
        order: 3 !important;
        display: flex !important;
        align-items: center;
        gap: 6px;
        margin: auto 12px;
    }

    .mobile-lang-btn {
        border: none;
        background: transparent;
        padding: 4px;
        display: flex;
        align-items: center;
        opacity: 0.5;
        cursor: pointer;
    }

    .mobile-lang-btn.active {
        opacity: 1;
    }

    .main-top-search {
        order: 4 !important;
    }

    .main-menu .container {
        order: 5 !important;
    }
}

/* ==========================================================================
   GOOGLE TRANSLATE WIDGET (custom UA/EN trigger buttons)
   ========================================================================== */

.lang-switcher .lang-btn {
    display: inline-flex;
    align-items: center;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    margin-inline-end: 10px;
    cursor: pointer;
    line-height: 0;
}

.lang-switcher .lang-btn:last-child {
    margin-inline-end: 0;
}

.lang-switcher .lang-btn:hover {
    opacity: 0.75;
}

.auth-switcher-form {
    display: inline-flex;
    align-items: center;
    width: auto;
    margin: 0;
    padding: 0;
}

button.auth-btn {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

#google_translate_element {
    display: none !important;
}

/* Hide Google's injected top banner/iframe and the body offset it adds */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame,
iframe.skiptranslate {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

body {
    top: 0 !important;
    position: static !important;
}

html {
    margin-top: 0 !important;
}

.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* ==========================================================================
   IPAD SPECIFIC ADAPTATIONS (768px - 1024px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {

    /* 1. Центрування іконок мов та пошуку */
    .main-top-search {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .lang-switcher {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .lang-switcher .lang-btn {
        justify-content: center;
    }

    .mobile-lang-selector {
        justify-content: center;
    }

    /* 2. Центрування та сітка Оголошень */
    .star-testimonial-area .section-title {
        text-align: center;
    }

    .star-testimonial-area .section-title h2 {
        text-align: center;
    }

    .star-single-testimonial-box {
        text-align: center;
    }

    .star-single-testimonial-box .desc p.alignright {
        text-align: center;
    }

    /* Робимо 3 в ряд для оголошень, щоб не було діри */
    .star-testimonial-grid>div[class*="col-"] {
        width: calc(33.333333% - 10px) !important;
        flex: 0 0 33.333333% !important;
        max-width: 31% !important;
        margin: 0 5px;
    }

    /* 3. Зменшення відстані та сітка 5x2 для Популярні розділи */
    .lp-course-tag-slider {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        /* зменшена відстань */
    }

    .lp-course-tag-slider>div[class*="col-"] {
        /* 5 блоків в ряд (20%) мінус відступи */
        width: calc(20% - 10px) !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
    }

    .lp-course-tag-slider>.col-sm-none {
        display: none !important;
    }

    .lp-course-tag-slider .star-lp-single-course-category {
        margin: 0 !important;
        max-height: fit-content;
        width: 100% !important;
        /* займає весь свій контейнер (calc(20% - 10px)) */
        max-width: 100% !important;
    }

    /* Робимо текст трохи меншим, щоб довгі слова не ламали сітку */
    .lp-course-tag-slider .star-lp-single-course-category .tag-title {
        font-size: 12px !important;
        word-break: break-word;
    }

}

/* ==========================================================================
   АДАПТАЦІЯ ДЛЯ ПЛАНШЕТІВ ТА МОБІЛЬНИХ (max-width: 992px)
   ========================================================================== */
@media (max-width: 992px) {
    .category-grid .category-block {
        flex-direction: row;
    }

    .icon-box {
        margin-bottom: 0 !important;
        margin-right: 15px;
        max-width: 24px !important;
    }

    .category-label {
        width: 100%;
        font-size: 16px !important;
    }

    .faculty-page .learn-press-courses {
        display: flex !important;
    }

    .left-sidebar .widget_block {
        margin-bottom: 30px;
        padding: 15px;
    }

    .left-sidebar .widget_block .wp-block-group__inner-container {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .left-sidebar .widget_block h2 {
        margin-bottom: 0;
    }

    .left-sidebar .widget_block h2 a {
        padding: 8px 16px;
        border-left: none;
        border-radius: 20px;
        background: rgba(83, 22, 29, 0.03);
        border: 1px solid rgba(83, 22, 29, 0.08);
        font-size: 14px;
    }

    .left-sidebar .widget_block h2 a:hover,
    .left-sidebar .widget_block h2 a:focus {
        border-left: none;
        padding-left: 16px;
        background: #53161d;
        color: #fff;
    }

    .news-card-wrapper {
        display: flex;
        width: calc(50% - 10px) !important;
        flex: 0 0 50% !important;
        max-width: 47% !important;
        margin: 0 10px;
    }
}

/* ==========================================================================
   СІТКА ФАКУЛЬТЕТІВ (ПЕРЕВИЗНАЧЕННЯ СТИЛІВ LEARNPRESS БЕЗ ЗМІНИ HTML)
   ========================================================================== */

/* 1. Приховуємо зайвий перемикач сітки/списку (він часто ламає дизайн) */
.faculty-page .lp-courses-bar {
    display: none !important;
}

/* 2. Налаштування головної сітки (4 колонки) */
.faculty-page .faculty-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    padding: 0 !important;
    list-style: none !important;
}


/* 3. Оформлення заголовка, який лежить всередині <ul> */
.faculty-page .faculty-grid .department-title {
    grid-column: 1 / -1 !important;
    /* Розтягуємо заголовок на всю ширину сітки */
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #53161D !important;
    border-bottom: 2px solid #eef2f5 !important;
    padding-bottom: 10px !important;
    width: 100% !important;
    text-align: left !important;
}


/* 4. Оформлення самої картки факультету (li.course) */
.meta-item>* {
    margin-left: 5px;
}

.faculty-page .faculty-grid .course {
    background-color: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #eef2f5 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    height: 100% !important;
}

.faculty-page .faculty-grid .course:hover {
    transform: translateY(-5px) !important;
    border-color: #53161D !important;
    box-shadow: 0 10px 25px rgba(83, 22, 29, 0.08) !important;
}

/* Внутрішня обгортка картки */
.faculty-page .faculty-grid .course-item {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 5. Логотип (Thumbnail) */
.faculty-page .faculty-grid .course-wrap-thumbnail {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    width: 100% !important;
}

.faculty-page .faculty-grid .faculty-thumbnail img {
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.faculty-page .faculty-grid .course:hover .faculty-thumbnail img {
    transform: scale(1.08) !important;
}

/* 6. Контент (Текст та контакти) */
.faculty-page .faculty-grid .course-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Назва факультету */
.faculty-page .faculty-grid .course-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #53161D !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
    display: block !important;
    transition: color 0.2s ease !important;
}

.faculty-page .faculty-grid .course-title:hover {
    color: var(--mainColor, #4e90cc) !important;
}

/* Контактна інформація (Meta) */
.faculty-page .faculty-grid .course-wrap-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
    flex-grow: 1 !important;
    font-size: 13px !important;
    color: #495057 !important;
    line-height: 1.4 !important;
    border: none !important;
    padding: 0 !important;
}

.faculty-page .faculty-grid .meta-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Приховуємо лінії-розділювачі, які малює LearnPress */
.faculty-page .faculty-grid .separator,
.faculty-page .faculty-grid .course-separator {
    display: none !important;
}

/* 7. Кнопка "Детальніше" */
.faculty-page .faculty-grid .course-info {
    margin-top: auto !important;
    /* Притискає кнопку до низу картки */
    border: none !important;
    padding: 0 !important;
}

.faculty-page .faculty-grid .course-readmore a {
    display: inline-block !important;
    padding: 8px 16px !important;
    background-color: rgba(78, 144, 204, 0.08) !important;
    color: var(--mainColor, #4e90cc) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.faculty-page .faculty-grid .course:hover .course-readmore a {
    background-color: var(--mainColor, #4e90cc) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   8. АДАПТИВНІСТЬ ФАКУЛЬТЕТІВ (ПЛАНШЕТИ ТА СМАРТФОНИ)
   ========================================================================== */
@media (max-width: 991px) {
    .faculty-page .faculty-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2 картки в ряд */
    }
}

@media (max-width: 576px) {
    .faculty-page .faculty-grid {
        grid-template-columns: 1fr !important;
        /* 1 картка в ряд */
        gap: 15px !important;
    }

    .faculty-page .faculty-grid .course-item {
        padding: 15px !important;
        /* Менші відступи на телефоні */
    }

    .faculty-thumbnail,
    .course-thumbnail {
        display: none !important;
    }
}

/* ==========================================================================
   СІТКА КАФЕДР (DEPARTMENTS GRID)
   ========================================================================== */

/* 1. Налаштування головної сітки (4 колонки) */
.departments-grid .fpo {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    padding: 0 !important;
}

/* 2. Оформлення заголовка */
.departments-grid .fpo h3 {
    grid-column: 1 / -1 !important;
    /* Розтягуємо заголовок на всю ширину сітки */
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #53161D !important;
    border-bottom: 2px solid #eef2f5 !important;
    padding-bottom: 10px !important;
    width: 100% !important;
    text-align: left !important;
}

/* 3. Очищення ul, які огортають кожну картку */
.departments-grid .fpo ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    /* Щоб li займав усю доступну висоту комірки сітки */
}

/* 4. Оформлення самої картки кафедри (li.course) */
.departments-grid .course {
    background-color: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #eef2f5 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
}

.departments-grid .course:hover {
    transform: translateY(-5px) !important;
    border-color: #53161D !important;
    box-shadow: 0 10px 25px rgba(83, 22, 29, 0.08) !important;
}

/* Внутрішня обгортка картки */
.departments-grid .course-item {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 5. Логотип (Thumbnail) */
.departments-grid .course-wrap-thumbnail {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    width: 100% !important;
}

.departments-grid .course-thumbnail img {
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.departments-grid .course:hover .course-thumbnail img {
    transform: scale(1.08) !important;
}

/* 6. Контент (Текст та контакти) */
.departments-grid .course-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Назва кафедри */
.departments-grid .course-permalink span,
.departments-grid .vnmu-department-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #53161D !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
    display: block !important;
    transition: color 0.2s ease !important;
    text-decoration: none !important;
}

.departments-grid .course-permalink:hover span,
.departments-grid .course-permalink:hover .vnmu-department-title {
    color: var(--mainColor, #4e90cc) !important;
}

/* Контактна інформація (Meta) */
.departments-grid .course-wrap-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
    flex-grow: 1 !important;
    font-size: 13px !important;
    color: #495057 !important;
    line-height: 1.4 !important;
    border: none !important;
    padding: 0 !important;
}

.meta-item>* {
    margin-left: 5px;
    text-align: left;
}

.departments-grid .meta-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Приховуємо лінії-розділювачі */
.departments-grid .separator,
.departments-grid .course-separator {
    display: none !important;
}

/* ==========================================================================
   АДАПТИВНІСТЬ КАФЕДР (ПЛАНШЕТИ ТА СМАРТФОНИ)
   ========================================================================== */
@media (max-width: 991px) {
    .departments-grid .fpo {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .departments-grid .fpo {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .departments-grid .course-item {
        padding: 15px !important;
    }
}

@media screen and (orientation:landscape) and (max-device-width: 900px) {
    .main-menu .container {
        display: flex !important;
    }

    .burger-btn {
        margin: 10px;
    }
}

/* ==========================================================================
   30. БІЧНЕ МЕНЮ ТА КОМПОНЕНТИ V2 (SIDEBAR)
   ========================================================================== */
/* Кольорова палітра ВНМУ V2 */


.text-vnmu-secondary {
    color: var(--vnmu-secondary);
}

/* Бічне меню (Sidebar) */
.sidebar-menu {
    background-color: var(--sidebar-bg);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    /*    max-height: calc(100vh - 3rem); */
    overflow-y: unset !important;
}

@media (min-width: 992px) {
    .sidebar-fixed {
        position: fixed;
        top: 125px;
        z-index: 100;
        bottom: auto;
    }

    .sidebar-absolute {
        position: absolute;
        bottom: 0;
        top: auto;
        z-index: 100;
    }

    aside.col-lg-3 {
        position: relative;
        align-self: stretch;
    }
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.sidebar-title {
    font-weight: 800;
    color: var(--vnmu-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.sidebar-title i {
    margin-right: 0.5rem;
}

.list-group-custom .list-group-item {
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border: none;
    background-color: transparent;
    color: #475569;
    border-radius: 0.75rem !important;
    margin-bottom: 0.25rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-group-custom .list-group-item:hover {
    background-color: var(--sidebar-hover);
    color: var(--vnmu-primary);
    transform: translateX(4px);
}

.list-group-custom .list-group-item.active {
    background-color: var(--vnmu-secondary);
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
}

/* Іконки шевронів для меню, що згортається */
.list-group-custom .list-group-item[data-bs-toggle="collapse"]::after {
    content: '';
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 0 !important;
}

.list-group-custom .list-group-item[data-bs-toggle="collapse"][aria-expanded="true"]::after {
    transform: rotate(-135deg);
}

/* Підменю */
.list-group-custom .submenu-group {
    border-left: 2px solid var(--vnmu-100);
    margin-left: 1rem;
    padding-left: 0.5rem;
    /*   width: 100% !important;*/
}

.list-group-custom .submenu-group.collapsing,
#mobileSidebarMenu.collapsing {
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* learnpress.css змінює padding у .collapsing, через що анімація смикається */
.list-group-custom .submenu-group.collapsing {
    padding-left: 0.5rem !important;
    padding-bottom: 0 !important;
}

.list-group-custom .submenu-group-inner {
    padding: 0.25rem 0;
}

#mobileSidebarMenu.collapsing {
    padding-left: 0 !important;
    padding-bottom: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    .list-group-custom .submenu-group.collapsing,
    #mobileSidebarMenu.collapsing {
        transition: none;
    }
}

.list-group-custom .submenu-group .list-group-item {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: #64748b;
    border-radius: 0.5rem !important;
    /*padding-right: 2rem !important;*/
}

.list-group-custom .submenu-group .list-group-item:hover {
    transform: translateX(4px);
    color: var(--vnmu-secondary);
    background-color: var(--vnmu-50);
}

.list-group-custom .submenu-group .submenu-group .list-group-item {
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

/* Робимо футер на всю ширину екрану */
.custom-university-footer {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: 100vw !important;
}

@media screen and (max-width: 545px) {
    .sidebar-menu {
        position: sticky;
        top: 0;
        background-color: transparent;
        border-radius: 1.25rem;
        padding: 0;
        box-shadow: none;
    }

    div#mobileSidebarMenu {
        background-color: var(--sidebar-bg);
        border-radius: 1.25rem;
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    }

    div#mobileSidebarMenu.collapsing {
        padding-left: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* ==========================================================================
   31. ANATOMY PAGES STYLES
   ========================================================================== */

/* Styles from index.blade.php */
/* Стилі специфічні для головної сторінки (Про нас) */
.about-page-container {
    background-color: transparent;
    /* Фон береться з body */
}

.page-main-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--vnmu-primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.page-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--vnmu-secondary);
    border-radius: 2px;
}

/* Картки інформації (Місія, Візія, Перспективи) */
.info-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

/* Велика фонова іконка */
.info-card-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 10rem;
    color: #f1f5f9;
    /* Дуже світлий сірий */
    z-index: 0;
    transform: rotate(-15deg);
    transition: transform 0.5s ease;
}

.info-card:hover .info-card-bg-icon {
    transform: rotate(0deg) scale(1.1);
    color: #e2e8f0;
}

.info-card-content {
    position: relative;
    z-index: 1;
}

.info-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--vnmu-primary);
    margin-bottom: 1rem;
}

.info-card-title i {
    margin-right: 0.75rem;
}

.info-card-title i {
    color: var(--vnmu-secondary);
    font-size: 1.5rem;
}

.info-card-text {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Блок Гасло */
.slogan-card {
    background: linear-gradient(135deg, var(--vnmu-primary) 0%, var(--vnmu-secondary) 100%);
    border-radius: 1.25rem;
    padding: 3rem 2rem;
    color: #ffffff;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2);
    position: relative;
    overflow: hidden;
}

.slogan-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.slogan-text {
    font-size: 1.75rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Цінності (Список) */
.values-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.values-list li {
    background: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #334155;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
}

.values-list li i {
    color: var(--vnmu-secondary);
    font-size: 1.25rem;
}

@media screen and (max-width: 564px) {
    .values-list li {
        width: 100%;
    }

}

/* Styles from personDetail.blade.php */
.profile-container {
    background: transparent;
}

.unified-profile-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    margin-bottom: 3rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.profile-photo-wrapper {
    width: 220px;
    height: 220px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f8fafc;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

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

.profile-name {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--vnmu-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.profile-post {
    font-size: 1.1rem;
    color: var(--vnmu-secondary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Іконки соцмереж */
.profile-socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.profile-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    margin: 0 !important;
}

.profile-socials a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: var(--vnmu-secondary);
    background-color: #ffffff;
}

.profile-socials a img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Текстовий контент */
.profile-content-block {
    margin-bottom: 0 !important;
}

.profile-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--vnmu-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section-title i {
    color: var(--vnmu-secondary);
    margin: 0 !important;
}

.profile-text-content {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: break-word;
    word-wrap: break-word;
    /* Важливо для збереження абзаців та переносів */
}

.profile-text-content p {
    margin-bottom: 1rem;
}

.profile-text-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    white-space: normal;
}

.profile-text-content li {
    margin-bottom: 0.5rem;
    white-space: normal;
}

@media (max-width: 991px) {
    .unified-profile-card {
        padding: 2rem 1.5rem;
    }

    .profile-name {
        font-size: 1.75rem;
    }
}

/* Styles from history.blade.php */
.history-article-container {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.page-main-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--vnmu-primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.page-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--vnmu-secondary);
    border-radius: 2px;
}

.history-article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.history-article-content img {
    max-width: 100%;
    height: auto !important;
    /* Override inline heights */
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: block;
    margin: 2.5rem auto;
    border: 4px solid #fff;
}

@media screen and (max-width: 768px) {
    .history-article-container {
        padding: 1.5rem;
    }

    .page-main-title {
        font-size: 1.75rem;
    }
}

/* Styles from opp.blade.php */
.opp-container .row .col-md-6 {
    margin-left: 0px !important;
}

.opp-container {
    background: transparent;
}

.page-main-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--vnmu-primary);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.page-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--vnmu-secondary);
    border-radius: 2px;
}

/* Рівні освіти (великі заголовки) */
.edu-level-title {
    background: linear-gradient(135deg, var(--vnmu-primary) 0%, var(--vnmu-secondary) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.15);
}

/* Мейсонрі-сітка (Masonry) для карток ОПП — усуває пусте місце і "діри" між картками різної висоти */
.opp-cards-masonry,
.opp-container .row {
    display: block !important;
    column-count: 2 !important;
    column-gap: 1.5rem !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 991px) {

    .opp-cards-masonry,
    .opp-container .row {
        column-count: 1 !important;
    }
}

.opp-cards-masonry .opp-card-wrapper,
.opp-container .row>.col-md-6,
.opp-container .row>.col-12,
.opp-container .row>[class*="col-"] {
    display: inline-block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    float: none !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 1.5rem !important;
}

/* Картка ОПП — компактна та охайна */
.opp-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0 !important;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.opp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

.opp-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vnmu-primary, #003366);
    margin-bottom: 0.85rem;
    border-bottom: 2px dashed #f1f5f9;
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    line-height: 1.35;
}

.opp-year-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background-color: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    margin-left: auto;
}

/* Список дисциплін — компактний із зручним наведенням */
.course-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.45;
    padding: 0.4rem 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.course-list li:hover {
    background-color: #f8fafc;
}

.course-list li:last-child {
    margin-bottom: 0;
}

.course-name a {
    color: inherit;
    text-decoration: none;
}

.course-name a:hover {
    color: var(--vnmu-primary);
    text-decoration: underline;
}

.course-badge {
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 0.4rem;
    min-width: 55px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 0.05rem;
    margin-left: 0;
}

.badge-ok {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.badge-vk {
    background-color: #fef08a;
    color: #854d0e;
    border: 1px solid #fde047;
}

.badge-vb {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.edu-level-title i,
.opp-card-title i {
    margin: 0;
}

.opp-type-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--vnmu-primary);
    margin-top: 3rem;
    margin-bottom: 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--vnmu-secondary);
}

.opp-type-title:first-of-type {
    margin-top: 0;
}

/* Styles from students.blade.php */
.specialty-dashboard {
    background: transparent;
}

.page-main-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--vnmu-primary);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.page-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--vnmu-secondary);
    border-radius: 2px;
}

.specialty-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border-color: var(--vnmu-200);
}

/* Decorative circle background on hover */
.specialty-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--vnmu-50) 0%, var(--vnmu-100) 100%);
    border-radius: 50%;
    transition: transform 0.5s ease;
    z-index: 0;
}

.specialty-card:hover::before {
    transform: scale(4);
}

.specialty-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--vnmu-primary) 0%, var(--vnmu-secondary) 100%);
    color: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 86, 179, 0.3);
    z-index: 1;
    transition: transform 0.3s ease;
}

.specialty-card:hover .specialty-icon {
    transform: scale(1.1) rotate(5deg);
}

.specialty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vnmu-primary);
    margin: 0;
    z-index: 1;
}

.specialty-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    z-index: 1;
    margin-bottom: 0;
}

/* Styles from staff.blade.php */
.staff-page-container {
    background: transparent;
}

.section-heading {
    justify-content: flex-start !important;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--vnmu-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}


.heading-line {
    width: 4px;
    height: 24px;
    background-color: var(--vnmu-secondary);
    border-radius: 2px;
    display: inline-block;
    margin: 0;
}

/* Head Card */
.head-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    margin-bottom: 3.5rem;
}

.head-photo-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 4px solid #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.head-photo-wrapper img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
}

.head-badge {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
}

.head-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--vnmu-primary);
    margin-bottom: 0.5rem;
}

.head-degree {
    font-size: 1rem;
    color: var(--vnmu-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.head-desc {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.head-actions {
    justify-content: flex-start !important;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-profile-link {
    background-color: #f8fafc;
    color: var(--vnmu-primary);
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-profile-link:hover {
    background-color: var(--vnmu-50);
    color: var(--vnmu-secondary);
    border-color: #cbd5e1;
}

/* Regular Staff Card */
.staff-card-footer {
    flex-wrap: wrap;
}

.staff-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.staff-photo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f8fafc;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.staff-photo-wrapper img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.staff-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vnmu-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.staff-degree {
    font-size: 0.85rem;
    color: var(--vnmu-secondary);
    margin-bottom: 0;
    line-height: 1.4;
}

.staff-socials,
.btn-profile-link {
    margin: 0 !important
}

.staff-socials .social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f1f5f9;
    transition: all 0.3s ease;
}

.staff-socials .social-icon-link:hover {
    background-color: #e2e8f0;
    transform: scale(1.1);
}

.staff-socials .social-icon-link img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.staff-detail-link {
    font-size: 0.85rem;
    background-color: #f8fafc;
    color: var(--vnmu-primary);
    border: 1px solid #e2e8f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    flex: 1 1 100%;
    text-align: center;
    max-width: 120px;
}

.staff-detail-link:hover {
    color: var(--vnmu-800);
}

/* Styles from studentsErgo.blade.php */
.materials-container {
    background: transparent;
}

.page-main-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--vnmu-primary);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.page-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--vnmu-secondary);
    border-radius: 2px;
}

/* Картка дисципліни */
.course-material-card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 992px) {
    .course-material-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1.25rem;
    }
}

.course-material-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.course-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    width: 100%;
}

@media (min-width: 992px) {
    .course-header {
        width: 40%;
        min-width: 250px;
    }
}

.course-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--vnmu-primary);
    margin: 0;
    line-height: 1.2;
    flex: 1 1 0%;
    min-width: 0;
}

.course-badge {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
    border: 1px solid #bae6fd;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.course-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex-grow: 1;
    justify-content: flex-start;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Кнопки завантажень */
.materials-actions {
    margin-top: 0;
    display: flex;
    gap: 0.5rem;
    min-width: 280px;
}

.btn-material {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-syllabus {
    background-color: #f8fafc;
    color: var(--vnmu-primary);
    border: 1px solid #cbd5e1;
}

.btn-syllabus:hover {
    background-color: #f1f5f9;
    color: var(--vnmu-primary);
    border-color: #94a3b8;
}

.btn-drive {
    background-color: var(--vnmu-secondary);
    color: white;
    border: 1px solid var(--vnmu-secondary);
}

.btn-drive:hover {
    background-color: var(--vnmu-800);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2);
}

.roles-info-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-inline-start: 6px;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.roles-info-btn:hover,
.roles-info-btn:focus {
    color: #05a97f;
    outline: none;
}

.roles-info-popup {
    /* position:fixed + coordinates computed in vnmu-custom.js on hover/focus
       (same technique as nested nav flyouts in main-menu.js) — position:absolute
       here gets clipped by the nav bar's own overflow/stacking context. */
    display: none;
    position: fixed;
    z-index: 99999;
    min-width: 200px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    color: #2D2D2D;
    text-align: left;
    white-space: normal;
}

.roles-info-btn:hover .roles-info-popup,
.roles-info-btn:focus .roles-info-popup,
.roles-info-btn:focus-within .roles-info-popup {
    display: block;
}

.roles-info-popup ul {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.roles-info-popup li {
    padding: 2px 0;
}

.roles-info-popup li.is-selected {
    color: #05a97f;
    font-weight: 600;
}

/* ==========================================================================
   31. НОРМАЛЬНЕ МЕНЮ ДЛЯ IPAD (768px - 1024px) ТА МОБІЛЬНИХ (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {

    /* Шапка навігації - в один горизонтальний рядок без переносу логотипу */
    .main-menu {
        padding: 0 !important;
        width: 100% !important;
    }

    .main-menu .navbar {
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 20px !important;
        width: 100% !important;
        min-height: 70px !important;
        position: relative !important;
        gap: 20px !important;
    }

    /* Контейнер з логотипом зліва */
    .main-menu .navbar .container,
    .main-menu .container {
        order: 1 !important;
        width: auto !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .main-menu .navbar .navbar-logo,
    .main-menu .navbar>a,
    .main-menu .container .navbar-logo {
        order: 1 !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-menu .navbar .navbar-logo img {
        height: 50px !important;
        width: auto !important;
        padding: 4px !important;
        object-fit: contain !important;
    }

    /* Мови - справа */
    .mobile-lang-selector {
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 15px 0 auto !important;
    }

    .mobile-lang-selector img {
        max-height: 10px !important;
        padding: 0;
        width: 100% !important;
    }

    /* Пошук - справа */
    .main-top-search {
        order: 4 !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 0 0 10px !important;
        cursor: pointer;
    }

    .main-top-search i {
        font-size: 20px !important;
        color: var(--whiteColor, #fff);
    }

    /* Кнопка бургер-меню - крайня справа */
    .burger-btn,
    .burger-menu-btn {
        display: flex !important;
        order: 3 !important;
        position: relative !important;
        margin: 0 0 0 10px !important;
        z-index: 10000 !important;
        cursor: pointer;
    }



    /* Ховаємо горизонтальне меню десктопу на iPad, коли не активне */
    .main-menu .level-1:not(.active):not(.open),
    ul#nav-list:not(.active):not(.open) {
        display: none !important;
    }

    /* Випадаюча бічна шторка меню на iPad справа (висока специфічність для перекриття main-menu.css) */
    html body .nav-links-wrapper.active,
    html body .nav-links-wrapper.open,
    html body .main-menu .level-1.active,
    html body .main-menu .level-1.open,
    html body ul#nav-list.active,
    html body ul#nav-list.open,
    html body div#nav-list.active,
    html body div#nav-list.open {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        bottom: 0 !important;
        width: 400px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        background-color: var(--bgColor, #FFFBF0) !important;
        box-shadow: -15px 0 50px rgba(83, 22, 29, 0.25) !important;
        z-index: 9999 !important;
        padding: 90px 28px 40px !important;
        overflow-y: auto !important;
        flex-direction: column !important;
        align-items: stretch !important;
        margin-top: 0 !important;
        border-left: 1px solid rgba(83, 22, 29, 0.1) !important;
    }

    /* Пункти меню в шторці на iPad */
    html body .main-menu .main-link,
    html body ul#nav-list .main-link {
        font-family: 'e-UkraineHead', sans-serif !important;
        font-size: 17px !important;
        font-weight: 600 !important;
        color: var(--themeColor, #53161D) !important;
        padding: 15px 18px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: 1px solid rgba(83, 22, 29, 0.08) !important;
        border-radius: 8px !important;
        transition: all 0.2s ease-in-out !important;
        text-decoration: none !important;
        background: none !important;
    }

    html body .main-menu .main-link:hover,
    html body ul#nav-list .main-link:hover {
        background-color: rgba(83, 22, 29, 0.05) !important;
        padding-left: 22px !important;
    }

    /* Випадаюче підменю (акордеон) всередині шторки на iPad */
    html body .main-menu .has-submenu .content.level-2-accordion,
    html body ul#nav-list .has-submenu .content.level-2-accordion {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        min-width: 100% !important;
        box-shadow: none !important;
        background-color: rgba(83, 22, 29, 0.04) !important;
        border-radius: 10px !important;
        margin-top: 6px !important;
        margin-bottom: 8px !important;
        padding: 14px 16px !important;
    }

    html body .main-menu .has-submenu .content.level-2-accordion .category-block a,
    html body ul#nav-list .has-submenu .content.level-2-accordion .category-block a {
        font-family: 'e-Ukraine', sans-serif !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        color: #333333 !important;
        padding: 10px 14px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        text-decoration: none !important;
        border-radius: 8px !important;
        background-color: transparent !important;
        transition: all 0.2s ease !important;
        margin-bottom: 4px !important;
        text-align: left !important;
    }

    html body .main-menu .has-submenu .content.level-2-accordion .category-block a:hover,
    html body ul#nav-list .has-submenu .content.level-2-accordion .category-block a:hover {
        color: var(--themeColor, #53161D) !important;
        background-color: rgba(83, 22, 29, 0.08) !important;
        padding-left: 18px !important;
    }
}

/* Для телефонів (max-width: 767px) шторка на всю ширину */
@media (max-width: 767px) {

    html body .nav-links-wrapper.active,
    html body .nav-links-wrapper.open,
    html body .main-menu .level-1.active,
    html body .main-menu .level-1.open,
    html body ul#nav-list.active,
    html body ul#nav-list.open {
        width: 100% !important;
        max-width: 100% !important;
        right: 0 !important;
        left: 0 !important;
    }
}

/* ==========================================================================
   НАУКОВА ДІЯЛЬНІСТЬ КАФЕДРИ (BEM-класи)
   ========================================================================== */




/* 1. Профіль відповідальної особи */
.dept-science__profile {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    background: var(--vnmu-50);
    border-left: 4px solid #53161D;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.dept-science__profile-img-wrap {
    flex-shrink: 0;
}

.dept-science__profile-img {
    width: 150px !important;
    height: 286px !important;
    border-radius: 8px !important;
    border: 2px solid var(--vnmu-200) !important;
    object-fit: cover;
    display: block;
    background: #ffffff;
}

.dept-science__profile-info {
    flex: 1;
    min-width: 260px;
}

.dept-science__profile-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #53161D;
    background: rgba(83, 22, 29, 0.08);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.dept-science__profile-name {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: #333333;
    font-weight: 700;
    line-height: 1.3;
}

.dept-science__profile-email {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.dept-science__profile-email a {
    color: #53161D;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.dept-science__profile-email a:hover {
    color: var(--vnmu-secondary);
    text-decoration: underline;
}

/* 2. Загальні секції */
.dept-science__section {
    margin-bottom: 35px;
}

.dept-science__section--boxed {
    background: #ffffff;
    border: 1px solid var(--vnmu-200);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.dept-science__title {
    margin: 0 0 15px 0;
    color: #333333;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dept-science__title--underlined {
    border-bottom: 2px solid var(--vnmu-200);
    padding-bottom: 10px;
}

.dept-science__title-icon {
    font-size: 20px;
}

.dept-science__text {
    margin: 0 0 20px 0;
    color: #475569;
    font-size: 15px;
    text-align: justify;
}

.dept-science__subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 15px 0;
}

/* 3. Ключові слова (Теги) */
.dept-science__tags-wrap {
    margin-top: 15px;
}

.dept-science__tags-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    display: block;
    margin-bottom: 10px;
}

.dept-science__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dept-science__tag {
    background: var(--vnmu-50);
    color: #475569;
    font-size: 13.5px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--vnmu-200);
    transition: all 0.2s ease;
}

.dept-science__tag:hover {
    background: rgba(83, 22, 29, 0.08);
    color: #53161D;
    border-color: #53161D;
}

/* 4. Науково-дослідні роботи (Картки) */
.dept-science__projects {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dept-science__project-card {
    background: var(--vnmu-50);
    border: 1px solid var(--vnmu-200);
    border-left: 3px solid var(--vnmu-secondary);
    border-radius: 6px;
    padding: 16px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dept-science__project-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.dept-science__project-title {
    color: #333333;
    font-size: 15px;
    display: block;
    line-height: 1.4;
}

.dept-science__project-meta {
    font-size: 13.5px;
    color: #64748b;
    margin-top: 8px;
}

.dept-science__project-meta code {
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--vnmu-200);
    color: #53161D;
}

/* 5. Списки (Дисертації) */
.dept-science__list {
    padding-left: 20px;
    margin: 0 0 20px 0;
    color: #333333;
    font-size: 14.5px;
    line-height: 1.7;
}

.dept-science__list li {
    margin-bottom: 10px;
}

.dept-science__list li::marker {
    color: #53161D;
}

/* 6. Акцентний блок */
.dept-science__highlight-box {
    background: var(--vnmu-50);
    border-left: 3px solid #64748b;
    padding: 15px 20px;
    border-radius: 4px;
}

.dept-science__highlight-title {
    font-weight: 700;
    color: #333333;
    font-size: 15px;
    display: block;
    margin-bottom: 5px;
}

.dept-science__highlight-text {
    margin: 0;
    font-size: 14.5px;
    color: #475569;
}

/* 7. Сітка для Атестації та Іншого */
.dept-science__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.dept-science__grid-item {
    background: #ffffff;
    border: 1px solid var(--vnmu-200);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.dept-science__grid-title {
    margin: 0 0 15px 0;
    color: #333333;
    font-size: 16px;
    font-weight: 700;
}

.dept-science__grid-list {
    padding-left: 18px;
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

.dept-science__grid-list li {
    margin-bottom: 10px;
}

.dept-science__grid-list a {
    color: #53161D;
    text-decoration: none;
    font-weight: 500;
}

.dept-science__grid-list a:hover {
    text-decoration: underline;
}

/* 8. Публікації */
.dept-science__publications {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dept-science__publication {
    padding: 12px 16px;
    background: var(--vnmu-50);
    border-radius: 6px;
    border-left: 3px solid var(--vnmu-200);
    font-size: 14px;
    color: #333333;
    transition: all 0.2s ease;
}

.dept-science__publication:hover {
    border-left-color: #53161D;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dept-science__publication a {
    color: var(--vnmu-secondary);
    word-break: break-all;
    text-decoration: none;
    font-weight: 500;
}

.dept-science__publication a:hover {
    text-decoration: underline;
    color: #53161D;
}

/* Адаптивність */
@media (max-width: 576px) {
    .dept-science__profile {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .dept-science__profile-img-wrap {
        margin: 0 auto;
    }

    .dept-science__title {
        font-size: 16px;
    }

    .dept-science__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   РЕЗУЛЬТАТИ ПОШУКУ
   ========================================================================== */

.search-results__body {
    max-width: 960px;
    padding-top: 32px;
    padding-bottom: 56px;
}

.search-results__form {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 6px 6px 6px 22px;
    box-shadow: 0 6px 24px rgba(27, 61, 91, 0.08);
    transition: border-color var(--transition, 0.25s) ease;
}

.search-results__form:focus-within {
    border-color: var(--mainColor, #4e90cc);
}

.search-results__form-icon {
    color: #8a99a8;
    font-size: 16px;
}

.search-results__input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 10px 0 !important;
    font-size: 16px;
    color: #212529;
}

.search-results__submit {
    flex-shrink: 0;
    border: 0;
    border-radius: 999px;
    padding: 11px 26px;
    background: var(--mainColor, #4e90cc);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    transition: background-color var(--transition, 0.25s) ease;
}

.search-results__submit:hover,
.search-results__submit:focus-visible {
    background: var(--vnmu-primary, #1b3d5b);
}

.search-results__summary {
    margin: 22px 4px 18px;
    font-size: 15px;
    color: #495057;
}

.search-results__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    gap: 14px;
}

.search-results__item {
    position: relative;
    margin: 0 !important;
    padding: 20px 24px 20px 28px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(27, 61, 91, 0.06);
    overflow: hidden;
    transition:
        transform var(--transition, 0.25s) ease,
        box-shadow var(--transition, 0.25s) ease;
}

.search-results__item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--mainColor, #4e90cc);
    opacity: 0.35;
    transition: opacity var(--transition, 0.25s) ease;
}

.search-results__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(27, 61, 91, 0.12);
}

.search-results__item:hover::before {
    opacity: 1;
}

.search-results__type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: 999px;
    background: #f1f3f5;
    color: #495057;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.search-results__type i {
    color: var(--mainColor, #4e90cc);
    font-size: 12px;
}

.search-results__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}

.search-results__title a {
    text-decoration: none;
    transition: color var(--transition, 0.2s) ease;
}

.search-results__section {
    color: #53161d;
}

.search-results__page {
    color: var(--vnmu-primary, #1b3d5b);
}

.search-results__title a:hover,
.search-results__title a:focus-visible {
    color: var(--mainColor, #4e90cc);
    text-decoration: underline;
}

.search-results__arrow {
    color: #adb5bd;
    font-size: 13px;
}

[dir="rtl"] .search-results__arrow {
    transform: scaleX(-1);
}

.search-results__snippet {
    margin: 10px 0 0 !important;
    font-size: 15px;
    line-height: 1.6;
    color: #5c6770;
    overflow-wrap: anywhere;
}

.search-results mark {
    padding: 0 2px;
    border-radius: 3px;
    background: #fff1b8;
    color: inherit;
}

.search-results__pagination {
    margin-top: 28px;
}

.search-results__pagination .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.search-results__empty {
    margin-top: 22px;
    padding: 48px 24px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(27, 61, 91, 0.06);
    text-align: center;
    color: #5c6770;
}

.search-results__empty i {
    font-size: 38px;
    color: #c5ced6;
}

.search-results__empty h2 {
    margin: 16px 0 8px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #53161d !important;
}

.search-results__empty p {
    margin: 0 auto !important;
    max-width: 520px;
}

@media (max-width: 576px) {
    .search-results__body {
        padding-top: 20px;
    }

    .search-results__form {
        padding-left: 16px;
    }

    .search-results__form-icon {
        display: none;
    }

    .search-results__submit {
        padding: 10px 18px;
    }

    .search-results__item {
        padding: 16px 16px 16px 20px;
    }

    .search-results__title {
        font-size: 17px !important;
    }
}

/* Programs List & Grid Styles (Desktop & Mobile) */
.programs-wrapper {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 10px 0;
    box-sizing: border-box;
}

.programs-card-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 30px;
    border: 1px solid #e9ecef;
    box-sizing: border-box;
    width: 100%;
}

.programs-title {
    color: #6a0019;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid #6a0019;
    padding-bottom: 12px;
    font-size: 22px;
    line-height: 1.35;
}

.programs-desc {
    color: #495057;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.program-item-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fdfdfd;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: #212529 !important;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.2s ease;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.program-item-btn:hover {
    background: #f8f9fa;
    border-color: #6a0019;
    color: #6a0019 !important;
    box-shadow: 0 2px 8px rgba(106, 0, 25, 0.08);
}

.program-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #f8f9fa;
    color: #6a0019;
    font-size: 16px;
    flex-shrink: 0;
}

.program-item-title {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .programs-wrapper {
        padding: 5px 0;
    }

    .programs-card-box {
        padding: 18px 12px !important;
        border-radius: 8px;
    }

    .programs-title {
        font-size: 18px;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }

    .programs-desc {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .programs-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .program-item-btn {
        padding: 12px 12px !important;
        gap: 10px;
        font-size: 13.5px;
    }

    .program-item-icon {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
}