/**
Theme Name: MED
Version: 1
 */

:root {
    --color-h1: #111827;
    --color-first: #011C40;
    --color-second: #0f5fa6;
    --color-third: #38BDF2;
    --color-fourth: #9CC8D9;
    --color-fifth: #04D99D;
    --color-light: #F7F9FC;
    --color-flagred: #BF281B;
    --color-footer: #999;
    /*--color-footer: #758795;*/
}

.gallery.gallery-columns-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 1280px) {
    .gallery.gallery-columns-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery figure,
.gallery img,
.gallery a {
    padding: 0;
    margin: 0;
    aspect-ratio: 16/10;
}

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

@media (min-width: 1280px) {
    .gallery figure,
    .gallery img,
    .gallery a {
        border-radius: 8px;
    }
}

.form-captcha > p {
    display: flex;
    align-items: center;
}

.form-captcha img {
    margin: 0 5px 0 0;
    flex-shrink: 0;
}

.form-captcha span {
    display: block;
    flex-grow: 1;
}

.form-captcha input {
    max-width: 150px !important;
}

.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)) {
    font-weight: 600;
}

.search-panel {
    display: none;
}

.bvi-active .search-panel input {
    border-bottom: 2px solid #000;
    border-radius: 0;
}

.shortcode-post-title {
    margin: 0 !important;
}

@media(max-width: 1280px) {
    .shortcode-post-title {
        margin: 10px 0 !important;
    }
}


li.itk-ul-li:after {
    background-color: #bf281b !important;
}

.main-menu>li>a:after {
    opacity: 0;
    background-color: #bf281b;
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
    transition: .3s all linear;
}

.main-menu>li.current-menu-item>a:after, .main-menu>li:hover>a:after {
    opacity: 1;
    background-color: #bf281b;
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
}

.events article .event-time {
    --tw-bg-opacity: 1;
    --tw-text-opacity: 1;
    align-items: center;
    color: #bf281b;
    background-color: #e4ffe0;
    display: flex;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    margin-bottom: 16px;
    padding: 5px 8px;
    text-transform: uppercase;
}

.external-links-li-a {
    --tw-bg-opacity: 1;
    background-color: #e3f0e1;
}

.top-panel .inner-container {
    --tw-bg-opacity: 1;
    background-color: #bf281b;
    padding-inline: 10px;
    z-index: 2;
}

.top-panel {
    --tw-bg-opacity: 1;
    --tw-text-opacity: 1;
    background-color: #bf281b;
    color: rgb(255 255 255/var(--tw-text-opacity));
    height: 38px;
    position: relative;
}

.top-panel-menu a.set-mode {
    --tw-bg-opacity: 1;
    background-color: #bf281b;
    padding-right: 10px;
}

.top-panel:after {
    background:#bf281b !important;
}


.mobile-menu-inner,
.bg-edu-blue {
    background: #F7F9FC !important;
    color: #000;
}

/**
 * front-page-images
 */

.fpi-wrapper {
    margin-bottom: 16px;
}

.fpi {
    gap: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fpi a,
.fpi img {
    text-align: center;
    transition: .3s all linear;
    max-width: 100%;

}

@media(min-width: 1280px) {
    .fpi-wrapper {
        margin: 48px 0 16px;
    }

    .fpi {
        display: block;
        columns: 3;
    }

    .fpi a,
    .fpi img {
        float: left;
    }

    .fpi a,
    .fpi > img {
        margin-bottom: 32px
    }
}

.fpi a > img:hover {
    transform: scale(1.05);
}

.alert-panel {
    transition: .15s all linear;
    z-index: 9997;
    transform: translateY(100%);
}

.alert-panel.active {
    transform: translateY(0);
    z-index: 9997;
}

.wpcf7-form-control-wrap {
    flex-shrink: 0;
}


.screen-reader-text {
    visibility: hidden;
}

/* Dark menu */
.bg-\[\#36373A\] {
    --tw-bg-opacity: 1;
    background-color: rgb(54 55 58/var(--tw-bg-opacity))
}

.py-4 {
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.main-menu>li>a:after {
    background-color: #fff;
    transition: none !important
}

.main-menu>li.current-menu-item>a:after, .main-menu>li:hover>a:after {
    opacity: 1;
    background-color: #fff;
    bottom: 0;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    right: 0;
    transition: none
}


.main-menu>li ul {
    z-index: 99999;
    right: auto;
    left: 0;
}

.main-menu>li {
    padding: 1rem 0;
}

.main-menu>li ul a {
    white-space: wrap;
    line-height: 1.2;
    color: #000;
    font-size: 90%
}

.main-menu>li ul li:not(:last-child) {
    margin-bottom: .2rem
}


/* content */
.announcements-link .divider, .services-link span:nth-child(2) {
    background: #333;
}

#primaryMenu>.menu-item-has-children {
    padding-right: .75rem;
}

#primaryMenu>.menu-item-has-children::before {
    content: '+';
    position: absolute;
    right: 0;
}

#primaryMenu>.menu-item-has-children:hover::before {
    content: '-';
    position: absolute;
    right: 0;
}

[x-cloak] { display: none !important; }

.card__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;          /* Количество строк, после которых обрезать */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;        /* Добавляет ... в конце */
    max-height: 3rem;               /* Высота (зависит от line-height) */
    line-height: 1.25;
}