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

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

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

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

td {
    padding: 10px;
}

.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;
}

/* ==========================================================================
   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;
}

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

.col-lg-12.full-width {
    background: var(--whiteColor, #fff);
    padding: 3em 2em 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;
}

/* Клітинки та картки команди */
.star-single-team-box.style-one {
    background: var(--whiteColor, #fff);
    border: 1px solid #eef2f6;
    border-radius: 8px;
    padding: 20px 15px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all var(--transition, 0.3s) ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 30px);
}

.star-single-team-box.style-one:hover {
    border-color: var(--mainColor, #4e90cc);
    box-shadow: 0 10px 25px rgba(78, 144, 204, 0.15);
    transform: translateY(-5px);
}

.star-single-team-box.style-one .image {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 15px;
    height: 280px;
    background-color: #f8f9fa;
}

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

.star-single-team-box.style-one:hover .image img {
    transform: scale(1.04);
}

.star-single-team-box.style-one .image .social {
    display: none;
}

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

.star-single-team-box.style-one .content h3.text {
    font-size: 18px;
    font-weight: 700;
    color: var(--mainColor, #4e90cc);
    margin: 10px 0 8px 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.star-single-team-box.style-one:hover .content h3.text {
    color: var(--thirdColor, #f69b0f);
}

.star-single-team-box.style-one .content .designation {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.5;
    margin-top: 5px;
}

/* ==========================================================================
   4. ГОЛОВНА СТОРІНКА ТА МЕГА-МЕНЮ
   ========================================================================== */

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

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

.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-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 {
    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-lp-course-category-area {
    position: absolute;
    top: -11.5em;
    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%);
}

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

.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;
}

.lp-course-category-slider .star-lp-single-course-category,
.star-lp-single-course-category.aos-init.aos-animate {
    border: 1px solid #53161D;
    border-radius: 10px;
}

.star-lp-single-course-category:hover {
    background: var(--mainColor, #4e90cc);
    transition: var(--transition, 0.2s) ease-out;
    color: var(--blackColor, #222);
}

.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);
    transition: var(--transition, 0.2s) ease-out;
}

/* ==========================================================================
   6. СЕКЦІЯ "ПОПУЛЯРНІ РОЗДІЛИ"
   ========================================================================== */
   .lp-course-tag-slider .star-lp-single-course-category {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    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: 70px !important;
    height: auto !important;
    max-height: 75px !important;
    margin-bottom: 12px !important;
    object-fit: contain !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;
}

.lp-course-tag-slider img {
    filter: invert(53%) sepia(35%) saturate(1022%) hue-rotate(174deg) brightness(93%) contrast(88%);
}

/* ==========================================================================
   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 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: 150px;
    min-width: 150px;
}

.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 {
    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 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !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 {
    background-color: #f6f6f687 !important;
    font-size: 14px;
    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 {
    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%;
}

/* ==========================================================================
   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%;
}

.department-menu .category-block {
    background-color: #f0f7fb !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    padding: 20px 10px !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 {
    border-color: #53161D !important;
    box-shadow: 0 4px 10px rgba(83, 22, 29, 0.1);
}

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

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

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

.department-menu .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;
}

.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 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,
.faculty-grid.learn-press-courses .course {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    background: var(--whiteColor, #fff);
    border: 1px solid #53161D;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 1.5em;
}

.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;
}

.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-single-testimonial-box .desc {
    padding: 10px 20px;
    min-height: 140px;
}

.star-single-testimonial-box .desc p {
    font-size: 14px;
    line-height: 1.5em;
}

/* ==========================================================================
   11. ДЕКСКОПНА СТАТИЧНА ШАПКА СТОРІНКИ (HEADER AREA)
   ========================================================================== */
   .star-page-title-area {
    position: relative;
    padding: 60px 15px 50px 15px !important;
    margin-bottom: 40px;
    text-align: center;
    background-color: #fcfcfc;
    border-bottom: 1px solid #eeeeee;
    overflow: hidden;
    margin-top: 105px;
}

.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-width: 130px !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;
}

.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%;
}

/* ==========================================================================
   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;
}

.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) СТОРІНКИ
   ========================================================================== */
   .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;
}

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

/* --- Планшети та малі екрани (max-width: 992px) --- */
@media (max-width: 992px) {
    .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;
    }

    .category-grid {
        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 .row {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center !important;
    }

    .star-page-title-area .col-lg-3,
    .star-page-title-area .col-lg-4,
    .star-page-title-area .col-lg-2 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }

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

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

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

/* --- Смартфони загальні (max-width: 768px) --- */
@media (max-width: 768px) {
    .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;
    }

    .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;
        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;
    }

    /*Таблиці*/
    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;
    }
}

/* --- Мобільні телефони сітки (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;
    }

    .department-menu .main-nav-link {
        min-height: auto !important;
        padding: 10px !important;
    }
    .footer-brand-title {
        font-size: 15px!important;
    }
}

/* --- Вузькі мобільні девайси (max-width: 480px) --- */
@media (max-width: 480px) {
    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;
    }

    .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;
    }

    .breabcrumbs {
        margin: 10px;
    }

    li.breadcrumb-item,
    li.breadcrumb-item:nth-child(n+2) {
        padding: 8px 8px 8px 20px !important;
        font-size: 8px !important;
    }

    li.breadcrumb-item:nth-child(1)::after,
    li.breadcrumb-item:nth-child(n+2)::after {
        right: -12px;
        width: 24px;
        height: 24px;
    }

    .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: wrap !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 15px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

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

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

    .burger-btn {
        order: 2 !important;
        position: static !important;
        margin: auto 20px !important;
    }

    .main-menu .container {
        order: 4 !important;
        width: 100% !important;
        flex-basis: 100% !important;
    }

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

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

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

    .burger-btn .line {
        background: var(--whiteColor, #fff) !important;
        height: 4px !important;
    }

    .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;
    }

    .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-lp-course-category-area .owl-carousel .owl-item .star-lp-single-course-category img {
        max-width: 60px;
    }

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

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

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

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

    .learn-press-courses .department-title {
        font-size: calc(1.3rem + .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%;
    }

    /* Адаптивна шапка для мобільних девайсів */
    .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 {
        width: 45px !important;
        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;
    }

    .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;
    }
}
