body,
.menu a,
.logo-right .right-up-title,
.logo-right .right-title,
.title-block .title1,
.home-actions,
.home-action,
.box-content h3,
.box-content li a {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.main-content,
.mid-header {
    width: 100%;
    max-width: 1024px;
    box-sizing: border-box;
}

.mid-header {
    min-height: 0;
    top: 0;
    margin-top: 25px;
    padding: 10px 0 12px;
}

.mid-header .top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding-left: 12px;
    padding-right: 124px;
    box-sizing: border-box;
}

.mid-header .header-logo {
    float: none;
    flex: 0 0 auto;
    margin: 0;
    line-height: 0;
}

.mid-header .header-logo img {
    display: block;
    width: 72px !important;
    height: 72px;
    max-width: 72px !important;
}

.main-content {
    overflow-x: clip;
}

.top-header .menu,
.bottom-footer .menu,
.off-canvas .menu {
    width: 100%;
    max-width: 100%;
}

.logo-right .right-up-title,
.logo-right .right-title {
    text-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.logo-right h1.right-up-title,
.logo-right .right-up-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    color: #c8102e;
}

.logo-right .right-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 4px;
    color: #042453;
}

.menu-container .menu a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-shadow: none;
}

.menu-container .dropdown.menu {
    align-items: stretch;
}

.menu-container .dropdown.menu > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.menu-container .dropdown.menu > li > a {
    display: flex;
    align-items: center;
    min-height: 48px;
    box-sizing: border-box;
}

.menu-container .dropdown.menu > li:has(> .submenu) > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin: 0 0 2px 6px;
    border: 4px solid transparent;
    border-top-color: #fff;
    border-bottom-width: 0;
    vertical-align: middle;
    position: static;
}

.menu-container .dropdown.menu > li > .submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: auto;
    left: 0;
    z-index: 30;
    width: max-content;
    min-width: 220px;
    max-width: 280px;
    margin: 0;
    padding: 6px 0;
    flex-direction: column;
    flex-wrap: nowrap;
    background: #042453;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.menu-container .dropdown.menu > li.opens-left > .submenu,
.menu-container .dropdown.menu > li.opens-right > .submenu,
.menu-container .dropdown.menu > li.opens-left > .is-dropdown-submenu,
.menu-container .dropdown.menu > li.opens-right > .is-dropdown-submenu {
    top: 100%;
    right: auto;
    left: 0;
}

.menu-container .dropdown.menu > li:hover > .submenu,
.menu-container .dropdown.menu > li:focus-within > .submenu,
.menu-container .dropdown.menu > li.is-open > .submenu,
.menu-container .dropdown.menu > li > .submenu.js-dropdown-active {
    display: flex;
}

.menu-container .menu .submenu a {
    display: block;
    white-space: normal;
    line-height: 1.35;
}

.menu-container .menu .submenu a:hover {
    background: #0a3470;
}

.off-canvas .menu .submenu {
    display: flex;
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    flex-direction: column;
    background: transparent;
    border: 0;
}

.off-canvas .menu .submenu a {
    padding-left: 28px;
}

.mid-header .logo-right {
    float: none;
    position: static;
    top: auto;
    left: auto;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
}

.header-code {
    width: 96px;
    height: auto;
    right: 12px;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
}

.header-code .panel {
    margin: 0;
    border: 0;
    box-shadow: none;
}

.header-code .panel-heading {
    background: #042453;
    color: #fff;
    text-align: center;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1.2;
    border: 0;
}

.header-code .panel-body {
    color: #042453;
    background: #fff;
    border: 2px solid #042453;
    border-top: 0;
    text-shadow: none;
    text-align: center;
    height: auto;
    padding: 4px 8px 6px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.menu-container.top-bar {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding-left: 12px;
    padding-right: 12px;
}

.menu-container .top-bar-right {
    flex: 1 1 auto;
    width: 100%;
    max-width: 1024px;
}

.menu-container .menu {
    width: 100%;
    max-width: 1024px;
}

.menu-container .off-canvas-menu-icon,
.menu-container .home-search {
    color: #fff;
    display: inline-flex;
    align-items: center;
    float: none;
    position: static;
    font-size: 18px;
    line-height: 1;
    padding: 8px 12px;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin: 16px 0 8px;
    padding: 18px 20px;
    background: #042453;
    color: #fff;
    border-radius: 8px;
}

.home-actions h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.home-notice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 8px;
}

.home-notice-title {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.home-notice-title:hover {
    text-decoration: underline;
}

.home-notice time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.85;
}

.home-actions-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-action {
    display: inline-block;
    padding: 10px 14px;
    background: #fff;
    color: #042453;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
}

.home-actions-links .home-action:first-child {
    background: #c8102e;
    color: #fff;
}

.home-action:hover {
    text-decoration: none;
    color: #042453;
}

.home-actions-links .home-action:first-child:hover {
    color: #fff;
}

.title-block,
.title-block .title1,
.title-block h2.title1 {
    background: transparent;
    color: #042453;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
}

.title-block h2.title1 {
    margin: 0;
    padding: 4px 0 0;
}

.form-group .title-block {
    min-height: 40px;
}

.title-block h2.title1 a {
    color: inherit;
    text-decoration: none;
}

.box-content h3 {
    margin: 10px 0 2px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.box-content h3 a {
    color: #1f2933;
    text-decoration: none;
}

.view-frontpage-block .item-image,
.view-frontpage-block .item-image a {
    display: block;
    width: 100%;
    height: 180px;
}

.view-frontpage-block .item-image {
    overflow: hidden;
    background: #f4f6f8;
}

.view-frontpage-block .item-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

.box-content li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 8px;
    align-items: start;
}

.box-content li > .fa-angle-right {
    grid-column: 1;
    grid-row: 1;
    margin: 3px 0 0;
}

.box-content li > a {
    grid-column: 2;
    grid-row: 1;
}

.box-content .post-date,
.box-content li time {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 4px 0 0;
    color: #5c6570;
    font-size: 12px;
    font-weight: 600;
}

.box-content li > time {
    grid-column: 2;
    grid-row: 2;
}

.home-notice time .fa-clock,
.box-content time .fa-clock {
    width: 12px;
    height: 12px;
    font-size: 12px;
    line-height: 1;
    margin: 0;
}

.footer-plain {
    color: #4e4e4e;
}

@media only screen and (max-width: 768px) {
    .header-code {
        display: block;
        position: static;
        top: auto;
        transform: none;
        width: auto;
        height: auto;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .mid-header .top-bar-left {
        padding-right: 0;
        gap: 10px;
    }

    .header-code .panel-body {
        font-size: 20px;
        padding: 2px 8px;
    }

    .mid-header .top-bar-left {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .header-logo,
    .logo-right {
        float: none;
        position: static;
        top: auto;
        left: auto;
    }

    .logo-right {
        flex: 1 1 auto;
        min-width: 0;
        margin-top: 0;
    }

    .logo-right h1.right-up-title,
    .logo-right .right-up-title {
        font-size: 18px;
        letter-spacing: 0;
        line-height: 1.15;
    }

    .logo-right .right-title {
        font-size: 12px;
        letter-spacing: 0;
        margin-top: 2px;
    }

    body {
        background: #f3f5f8;
        padding: 0;
    }
}

@media only screen and (max-width: 639px) {
    .mid-header {
        margin-top: 0;
        padding-top: 8px;
    }

    .mid-header .header-logo img {
        width: 56px !important;
        height: 56px;
        max-width: 56px !important;
    }

    .header-code {
        width: 72px;
    }

    .header-code .panel-heading {
        font-size: 11px;
        padding: 2px 4px;
    }

    .header-code .panel-body {
        font-size: 18px;
        padding: 2px 4px;
    }

    .logo-right h1.right-up-title,
    .logo-right .right-up-title {
        font-size: 15px;
        line-height: 1.15;
    }

    .logo-right .right-title {
        font-size: 11px;
        line-height: 1.2;
    }

    .menu-container .top-bar-right {
        display: none;
    }

    .menu-container.top-bar {
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        min-height: 44px;
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media only screen and (max-width: 600px) {
    .box-content h3 {
        font-size: 14px;
    }
}
