@charset "utf-8";
* {
  margin: 0;
  padding: 0;
  outline: none;
}

html, body {
}

body {
  background-color: #f5f5f5;
  background-attachment: fixed;
  background-size: 100%;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

.font-weight-bold,
.fw-bold {
  font-weight: 700 !important;
}

.font-weight-semi-bold {
  font-weight: 600 !important;
}

.font-weight-medium {
  font-weight: 500 !important;
}

.font-weight-normal {
  font-weight: 400 !important;
}

body#first-body {
  background: url('img/background1.jpg') no-repeat fixed center;
  background-size: cover;
}

body#department {
  background: url('img/background2.jpg') no-repeat fixed center;
  background-size: cover;
}

b {
    font-weight: bold;
}

b, strong {
    font-weight: 700 !important;
    color: #000 !important;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif !important;
}


/*** ОСНОВНА ТЕМА ***/
.main-colors{
  background: #0a5987;
  color: #fff;
}
.main-colors:hover{
  color: #c0c0c0;
}
p {
  font-size: 13pt;
  margin-bottom: 10px;
}
h4 {
  font-size: 15pt;
  margin-bottom: 10px;
  color: #0a5987;
}
h3 {
  font-size: 18pt;
  margin: 0 0 30px;
  color: #0a5987;
  text-align: center;
  display: inline-block;
  border-bottom: 5px double;
}
.t-center{
  text-align: center;
}
.main-container a{
  text-decoration: none;
  color: #0d5595;
}
.main-container a:hover{
  color: #347ab9;
}
.main-container ol{
  margin-bottom: 10px;
  font-size: 13pt;
  padding-left: 1rem;
}
.text-img{
  margin-top: 6px;
}
.ground-line{
  padding: 30px 0 35px;
}
.white-line{
  background: #fdfdfd;
}
.transpar-line{
  background: #ecebeb;
}
.sp-color {
  color: #196aab;
}
.no-break {
  white-space: nowrap;
}


/*** СТИЛІ ДЛЯ ХЕДЕРУ ***/
div.top-bar{
  background: #dbd6d6;
}
div.top-bar p{
  color: #000;
}
div.top-bar 	img.logo {
  width: 220px;
  padding-top: 12px;
  padding-bottom: 12px;
}
div.top-bar a{
  text-decoration: none;
  color: black;
}
div.top-bar a:hover{
  color: #0a5987;
}
div.top-bar h1{
  font-size: 19pt;
  color: #0a5987;
  font-weight: 600;
  margin-bottom: 15px;
}
p.special-adap{
  margin-top: 15px;
}
div.top-bar h2{
  font-size: 12.3pt;
}
div.div-h{
  padding-left: 55px;
}


/*** ГОЛОВНА НАВІГАЦІЙНА ПАНЕЛЬ ***/
@media (max-width: 991px) {
  .top-nav{
    border-top: 1px solid #ffffff8f;
	margin-top: 3px;
  }
  .languages{
    border-top: 1px solid #ffffff8f;
    padding-top: 5px;
  }
  .dropdown-item {
    white-space: unset!important;
  }
}
@media (min-width: 992px) {
  .languages{
    border-top: none;
    padding-top: 0px;
  }
  nav#main-nav ul.navbar-nav{
    display: block;
  }
  nav#main-nav ul.navbar-nav li.nav-item{
    display: block;
    float: left;
  }
  nav#main-nav ul.navbar-nav li.nav-item a.nav-link{
    padding-left: 0px;
    padding-right: 1rem;
  }
  nav#main-nav .dropdown-item {
  white-space: normal;
  min-width: 250px;
  }
}
.nav-style{
  background: #0a5987;
  font-size: 13pt;
  padding: 4px 0;
}
.nav-style .nav-link{
  color: #fff;
  padding: 0.2rem 0;
}
.nav-style .nav-link:hover{
  color: #c0c0c0;
}
.dropdown-menu{
  border-radius: 0;
  padding: 0;
  margin-top: 4px!important;
}
.dropdown-item{
  padding: 0.5rem;

}
.dropdown-item:focus, .dropdown-item:hover {
  background-color: #d2d5d9;
}
#spare-block{
  margin: auto;
}
#spare-title, #spare-title2{
  color: white;
  font-size: 20pt;
  padding-right: 40px;
  margin: 0px;
  display: none;
  font-weight: 500;
}
@media (max-width: 500px){
  #spare-title {
    font-size: 15pt;
    margin: 0px;
	padding: 0px;
  }
  #spare-title2 {
    font-size: 11pt;
    margin: 0px;
    padding: 0px;
    padding-right: 0px;
  }
}
#main-nav img {
  width: 85px;
  height: 85px;
  background: #e1ebf3;
  border-radius: 100px;
  padding: 1px;
}

nav#main-nav a.nav-link{
  white-space: nowrap;
}


/*** ВЕРТИКАЛЬНА НАВІГАЦІЯ ДЛЯ ФАКУЛЬТЕТІВ***/
.second-nav {
  padding: 0.4rem;
  font-size: 12pt;
  border: 1px solid #dbe4ee;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  box-shadow: 0 14px 30px rgba(6, 33, 57, 0.08);
}
.second-nav ul.navbar-nav{
  justify-content: unset;
  flex-direction: column;
  margin: 0!important;
  width: 100%;
  padding-left: 0;
  list-style: none;
}
.second-nav .dropdown-menu {
  font-size: 12pt;
  position: static!important;
  min-width: unset;
  margin-top: 0!important;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0 0 0.8rem;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.second-nav .dropdown-item {
  white-space: unset;
  padding: 0.8rem 0.95rem!important;
}
.second-nav .dropdown-item:active {
  color: #062139;
  background:#eef5fb;
}
.second-nav a.dropdown-item:hover {
  background: #eef5fb;
}
.second-nav a.nav-link,
.second-nav a.dropdown-item{
  display: block;
  width: 100%;
  background: #fff;
  margin-bottom: 0.45rem;
  color: #062139;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  padding: 0.9rem 1rem!important;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.second-nav a.dropdown-item {
  background: #f8fbff;
}
.second-nav a.nav-link:hover,
.second-nav a.nav-link:focus,
.second-nav a.nav-link[aria-expanded="true"],
.second-nav a.dropdown-item:hover,
.second-nav a.dropdown-item:focus{
  color: #062139;
  background: #eef5fb;
  border-color: #9cb5cc;
  box-shadow: 0 10px 20px rgba(6, 33, 57, 0.08);
  transform: translateX(2px);
}
.second-nav .navbar-nav {
  line-height: initial;
}
.second-nav a.nav-link.dropdown-toggle::after {
  margin-left: 0.75rem;
  transition: transform 0.2s ease;
}
.second-nav a.nav-link[aria-expanded="true"]::after {
  transform: rotate(180deg);
}
.second-nav button.navbar-toggler{
  width: 100%;
  border-radius: 14px;
  border: 1px solid #dbe4ee;
  background: #fff;
  margin-bottom: 0.5rem;
  padding: 0.85rem 1rem;
}
.second-nav button.navbar-toggler:focus{
  box-shadow: 0 0 0 0.2rem rgba(10, 89, 135, 0.15);
  background: #eef5fb;
}


/*** СТОРІНКА ФАКУЛЬТЕТУ ПЕРШОГО ПОРЯДКУ ***/
.container-lg .chapter {
  position: relative;
  z-index: 0; /* базовий рівень */
  padding-top: 15px;
  padding-bottom: 15px;
}
.container-lg .chapter:nth-of-type(even)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw; /* на всю ширину вікна */
  height: 100%;
  background-color: #dfdfdf;
  transform: translateX(-50%);
  z-index: -1; /* щоб фон був позаду контенту */
}


/*** СТОРІНКА ФАКУЛЬТЕТУ ДРУГОГО ПОРЯДКУ (З КАФЕДРОЮ)***/
.page-like h3{
  font-size: 24pt;
  font-weight: normal;
  margin: 0;
  padding: 0.5rem;
  text-align: center;
  color: #062139;
  display: unset;
  border: unset;
  display: block;
}
.page-like{
  border: 1px solid #b4b6bb;
  background: #d1d3d9;
}
@media (min-width: 768px) {
  .short-dist{
    padding-left: 0px;
  }
}
.main-page{
  min-height: 100%;
  font-size: 12pt;
}
.kafedra-window{
  /* background: white; */
}
.kafedra-window p{
  padding: 0 1.5rem  0.5rem;
}

@media (min-width: 992px) {
  .kafedra-window p{
    text-align: justify;
  }
}


.main-page a{
  text-decoration: none;
  color: #062139;
    color: #205081;
}
.main-page a:hover{
  color: #3f1a1a;
}
.main-page h4{
  text-align: center;
  font-size: 15pt;
  font-weight: normal;
  margin: 1.5rem auto 1rem;
  max-width: 550px;
  padding: 0 1.5rem;
}

.category-page-hero {
  position: relative;
  border: 1px solid #dbe4ee;
  border-top: 4px solid #0a5987;
  border-radius: 12px 12px 24px 24px;
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(6, 33, 57, 0.07);
  overflow: hidden;
}

.category-page-hero__title {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-align: center;
  color: #062139;
  margin: 0;
  padding: 1.5rem 2rem 1.6rem;
  line-height: 1.25;
}

.page-breadcrumbs {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #6d7f91;
}

.page-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.page-breadcrumbs__item + .page-breadcrumbs__item::before {
  content: "/";
  margin-right: 0.5rem;
  color: #9fb0c0;
}

.page-breadcrumbs__link {
  color: #5e7488;
  text-decoration: none;
}

.page-breadcrumbs__link:hover {
  color: #0a5987;
  text-decoration: underline;
}

.page-breadcrumbs__current {
  color: #062139;
  font-weight: 500;
}

.category-content-heading {
  position: relative;
  margin: 1.25rem 1.5rem 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(6, 33, 57, 0.06);
}

.category-content-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0a5987 0%, rgba(10, 89, 135, 0.15) 100%);
}

.category-content-heading__title {
  margin: 0;
  padding-top: 0.35rem;
  text-align: center;
  color: #062139;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.post-article {
  /* margin: 1.25rem; */
  padding: 1.75rem;
  border: 1px solid #dbe4ee;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 18px 38px rgba(6, 33, 57, 0.08);
}

.post-article__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #e6edf5;
}

.post-article__title {
  margin: 0;
  color: #062139;
  font-size: clamp(1.8rem, 2.9vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: left;
}

.post-article__meta {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-article__date {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #5c7083;
  font-size: 0.98rem;
  font-weight: 500;
}

.post-article__image {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(6, 33, 57, 0.1);
}

.post-article__content {
  color: #1f3448;
  line-height: 1.75;
}

.post-article__content > *:last-child {
  margin-bottom: 0;
}

.post-gallery-section {
  margin-top: 2rem;
}

.post-gallery-section__title {
  margin: 0 0 1rem;
  color: #062139;
  font-size: 1.6rem;
  font-weight: 600;
}

.latest-news-panel {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid #dbe4ee;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 18px 38px rgba(6, 33, 57, 0.08);
}

.latest-news-panel__header {
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #e6edf5;
}

.latest-news-panel__title {
  margin: 0;
  color: #062139;
  font-size: 1.4rem;
  font-weight: 600;
}

.latest-news-panel__list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.latest-news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.latest-news-card:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.latest-news-card__image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #f3f4f6;
}

.cat-posts .latest-news-card__image {
  height: auto !important;
}

.latest-news-card__meta {
  display: block;
  padding: 1rem 1rem 0.25rem;
  color: #5c7083;
  font-size: 0.875rem;
  font-weight: 600;
}

.latest-news-card__title {
  display: block;
  padding: 0 1rem 0.5rem;
  color: #062139;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.latest-news-card__excerpt {
  display: block;
  padding: 0 1rem 1rem;
  color: #54687a;
  font-size: 0.95rem;
  line-height: 1.55;
}

.publication-section {
    margin-bottom: 2rem;
}

.publication-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.publication-section__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0a5987;
}

.publication-section__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: #0a5987;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
}

.latest-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.latest-news-card:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.latest-news-card__image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f3f4f6;
}

.latest-news-card__meta {
    display: block;
    padding: 1rem 1rem 0.25rem;
    color: #5c7083;
    font-size: 0.875rem;
    font-weight: 600;
}

.latest-news-card__title {
    display: block;
    padding: 0 1rem 0.5rem;
    color: #062139;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.latest-news-card__excerpt {
    display: block;
    padding: 0 1rem 1rem;
    color: #54687a;
    font-size: 0.95rem;
    line-height: 1.55;
}

.publication-pagination {
    margin-top: 1.5rem;
}

@media (max-width: 767.98px) {
  .category-page-hero {
    border-radius: 18px;
  }

  .category-page-hero__title {
    padding: 1rem 1rem 1.1rem;
  }

  .page-breadcrumbs {
    font-size: 0.8rem;
    margin-bottom: 0.7rem;
  }

  .category-content-heading {
    margin: 1rem 1rem 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
  }

  .category-content-heading::before {
    left: 1rem;
    right: 1rem;
  }

  .post-article {
    margin: 1rem;
    padding: 1.15rem;
    border-radius: 18px;
  }

  .latest-news-panel {
    padding: 1rem;
    border-radius: 18px;
  }

  .latest-news-card {
    padding: 0.9rem;
  }
}

/*** СТИЛІ ДЛЯ ФУТЕРУ ***/
.footer-styles{
  background: #0a5987;
  color: #fff;
}
.footer-styles h4{
  font-weight: 400;
  color: #fff;
}
.footer-styles a{
  color: #fff;
  text-decoration: none;
}
.footer-styles a:hover{
  color: #c0c0c0;
}
.footer-styles p {
  margin-bottom: 5px;
}


/*** СТИЛІ СІТКИ ФАКУЛЬТЕТІВ ***/
div.all-faculties{
  min-height: 200px;
  padding: 10px;
  background: whitesmoke;
  box-shadow: 0 0 5px 1px #56171136;
}
div.all-logos{
  width: 25%;
  text-align: center;
  margin: 27px 0;
  display: inline-block;
  float: left;
}
div.all-logos img{
  max-width: 100%;
  padding-right: 10px;
}

div.all-inf{
  width: 75%;
  display: inline-block;
}
div.all-inf p, div.all-inf h4{
  margin-bottom: 0px;
}
div.all-inf a{
  text-decoration: none;
  color: #0a5987;
}
div.all-inf a:hover{
  color: #7f7f7f;
}
.social-links{
  max-width: 90%;
  border-bottom: 2px solid #a7b5c1;
  padding-bottom: 1px;
  margin-bottom: 2px!important;
}
.video {
  position: relative;
  padding-bottom: 56.25%;
}
.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.all-tittle{
  display: inline-block;
}


/*** СТОРІНКИ ***/
#title-img{
  width: 250px;
  max-width: 100%
}
.marker {
  float: left;
  width: 100px;
  max-width: 18%;
  margin-right: 10px;
  height: 100%;
}
.no-wrap {
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}
.all-tables td{
  border: 1px solid black;
  padding: 5px 0 5px 10px;
}
.elem-hight {
  height: 340px;
}


/*** ВИКЛАДАЧІ ***/
img.fac-logo{
  margin-right: 6px;
  margin-bottom: 10px;
}
img.fac-logo:hover {
  filter: grayscale(76%);
}
img.teach {
  margin-top: 5px;
  border: 1px solid #b2b2b2;
}
.tree .dropdown-toggle {
  white-space: normal !important;
}
.h-event {
    color: black;
    border: none;
    margin-bottom: 23px;
    text-align: left;
    font-size: 18pt;
    font-weight: 500;
}
.blog-grid .blog-img img {
    max-width: 100%;
    width: 100%;
}

.category-children-section {
    margin-top: 2rem;
}

.category-child-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
    border: 1px solid #d6dee8;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(6, 33, 57, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-child-card:hover {
    transform: translateY(-4px);
    border-color: #88a3be;
    box-shadow: 0 18px 34px rgba(6, 33, 57, 0.14);
}

.category-child-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    padding: 0.85rem;
    background: linear-gradient(135deg, #f8fbff 0%, #e7f0fa 100%);
    overflow: hidden;
}

.category-child-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.category-child-card__media--placeholder {
    min-height: 150px;
    padding: 0;
}

.category-child-card__icon {
    color: #0a5987;
    font-size: 2.25rem;
}

.category-child-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.1rem 1.1rem 1.2rem;
    flex-grow: 1;
}

.category-child-card__title {
    margin: 0;
    color: #062139;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
}

.category-child-card__action {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #0a5987;
    font-size: 0.95rem;
    font-weight: 600;
}

.category-child-card__action i {
    transition: transform 0.2s ease;
}

.category-child-card:hover .category-child-card__action i {
    transform: translate(2px, -2px);
}

.academic-section,
.file-section,
.publication-section {
    margin-top: 2.5rem;
    padding: 1.35rem;
    border: 1px solid #d6dee8;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
    box-shadow: 0 16px 36px rgba(6, 33, 57, 0.08);
}

.academic-section__header,
.file-section__header,
.publication-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.academic-section__title,
.file-section__title,
.publication-section__title {
    margin: 0;
    color: #062139;
    font-size: 1.45rem;
    font-weight: 600;
}

.academic-section__subtitle,
.publication-section__subtitle {
    margin: 0.35rem 0 0;
    color: #5c7083;
    font-size: 0.95rem;
}

.academic-section__badge,
.file-section__badge,
.publication-section__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: #0a5987;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(10, 89, 135, 0.22);
}

.academic-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border-radius: 18px;
    border: 1px solid #dbe4ee;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(6, 33, 57, 0.08) !important;
}

.academic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(6, 33, 57, 0.14) !important;
    border-color: #9cb5cc;
}

.academic-avatar {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.academic-social-icon {
    transition: transform 0.2s ease;
    display: inline-flex;
}

.academic-social-icon:hover {
    transform: scale(1.12);
}

.academic-social-icon img {
    height: 28px;
    width: 28px;
}

.academic-desc {
    font-size: 0.9rem;
    line-height: 1.5;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.file-item:hover {
    transform: translateX(4px);
    border-color: #9cb5cc;
    box-shadow: 0 14px 26px rgba(6, 33, 57, 0.1);
}

.file-item__type,
.file-item__action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.file-item__type {
    min-width: 56px;
    height: 42px;
    padding: 0 0.75rem;
    border-radius: 12px;
    background: rgba(10, 89, 135, 0.12);
    color: #0a5987;
    font-size: 0.9rem;
    font-weight: 700;
}

.file-item__content {
    min-width: 0;
    flex-grow: 1;
}

.file-item__title {
    display: block;
    color: #062139;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.file-item__action {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f3f8fd;
    color: #0a5987;
    font-size: 1rem;
}

.publication-section {
}

.publication-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.publication-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.publication-item:hover {
    transform: translateX(4px);
    border-color: #9cb5cc;
    box-shadow: 0 14px 26px rgba(6, 33, 57, 0.1);
}

.publication-item__icon,
.publication-item__arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.publication-item__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(10, 89, 135, 0.12);
    color: #0a5987;
    font-size: 1.1rem;
}

.publication-item__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex-grow: 1;
}

.publication-item__title {
    color: #062139;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.publication-item__meta {
    color: #6b7f92;
    font-size: 0.88rem;
}

.publication-item__arrow {
    color: #0a5987;
    font-size: 1rem;
}

.publication-pagination {
    margin-top: 1.5rem;
}

@media (max-width: 767.98px) {
    .academic-section,
    .file-section,
    .publication-section {
        padding: 1rem;
    }

    .academic-section__header,
    .file-section__header,
    .publication-section__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-item,
    .publication-item {
        padding: 0.9rem;
    }
}

.navbar-brand {
    white-space: normal;
    text-align: center;
}

/*** Додаткове меню ***/
.add-nav{
    margin-top:5px;
}
.add-nav ul li a.nav-link{
    background: #0a5987;
    color: #fff;
}
.langs.mobile, .langs.mobile a {
    color: #fff;
}
span.langs{
  max-height: 30px;
}


/*** MENU ***/

#main-nav .nav-link {
    text-transform: uppercase;
}
.gal img {
    width: 100%;
}


/**Стилі для меню університету**/
.all-links a{
    text-decoration: none;
    color: #fff;
}
.all-links {
    color: #fff;
}
.all-links a:hover{
    color: #c0c0c0;
}
.univer a{
    padding: 0.2rem 0.5rem;
    display: inline-flex;
}


/*** Додаткове меню для мобільного ***/
.add-menu{
    border-top: 1px solid #ffffff8f;
}
.accordion-section {
    border: 1px solid #ccc;
    margin-bottom: 10px;
}
.accordion-content {
    display: none;
    padding: 10px;
}
.accordion-section b {
    font-weight: 600;
}
.lang-item img {
    filter: grayscale(100%);
    transition: filter 0.3s, transform 0.3s;
    cursor: pointer;
    border-radius: 3px;
    height: 24px;
}
.lang-item.active img {
    filter: none;
}
.lang-item:hover img {
    transform: scale(1.1);
}
.tmenu {
    padding: 4px 0 !important;
}

h6 {
    color: #4c4c4c;
    text-align: center;
    margin-top: 2rem;
    font-weight: bold;
}

b {
    font-weight: bold;
}

.forimg {
    color: gray;
}
.forimg {
    display: inline-block;
    float: right;
    margin: 0 20px 10px 10px;
    max-width: 50%;
}

.forimg img {
    width: 100%;
    max-width: 100%;
}

.img {
    text-align: center;
    margin: 10px auto;
    width: 100%;
    color: #52616d;
}

.category-sidebar-tree__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-sidebar-tree__list--root {
  display: block;
  overflow: visible;
  max-height: none;
}

.category-sidebar-tree__list--nested {
  display: none;
  overflow: visible;
  padding-left: 1.25rem;
  margin-left: 0;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
}

.category-sidebar-tree__item {
  list-style: none;
}

.category-sidebar-tree__content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.35rem;
}

.category-sidebar-tree__item--open > .category-sidebar-tree__list--nested {
  display: block;
}

.category-sidebar-tree__link {
  display: block;
  color: inherit;
  text-decoration: none;
  word-break: break-word;
}

.category-sidebar-tree__link:hover,
.category-sidebar-tree__link:focus {
  color: inherit;
  text-decoration: none;
}

.category-sidebar-tree__toggle {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  width: 0.75rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  font-size: 0.875rem;
}

.category-sidebar-tree__item--active > .category-sidebar-tree__content,
.category-sidebar-tree__item--active-ancestor > .category-sidebar-tree__content {
  background: #f3f6ff;
  font-weight: 600;
}

.category-sidebar-tree__item--open > .category-sidebar-tree__content .category-sidebar-tree__toggle {
  transform: rotate(90deg);
}

.second-nav .category-sidebar-tree__list,
.second-nav .category-sidebar-tree__list--nested {
  width: 100%;
}

.second-nav .category-sidebar-tree__content {
  margin-bottom: 0.35rem;
}

.second-nav .category-sidebar-tree__link {
  width: 100%;
}

.second-nav .category-sidebar-tree__toggle {
  margin-left: auto;
}
