.top_line{
    background-color: #1a294f;
    width: 100%;
}
.eg_logo {
    margin-right: 20px;
}
.container{
    /*padding: 0 !important;*/
}
.nav-item .nav-link {
    /*color: gray;*/
}
.nav-item .nav-link:hover {
    /*color: #1f3763 !important;*/
    color: darkblue !important;
    text-decoration: underline;
}

.min_height {
    min-height: 600px;
}

.link_style {
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.link_style:hover {
    text-decoration: underline;
}

h1{
    padding-top: 10px;
    color:#1f3763;
    font-size:32px;
    text-decoration: underline;
    padding-bottom: 10px;
}
.title_color, h2,h3,h4,h5 {
    color:#1f3763;
}

.text-justify {
    text-align: justify;
}

/* Shared page typography */
.page-content-wrap {
    font-size: 1.125rem;
    line-height: 1.6;
}

.page-content-wrap .fs-5 {
    font-size: 1.125rem !important;
}

.page-content-wrap h1:not(.event-title) {
    font-size: 2rem;
    line-height: 1.25;
}

.page-content-wrap h2 {
    font-size: 1.75rem;
    line-height: 1.3;
}

.page-content-wrap h3 {
    font-size: 1.5rem;
    line-height: 1.35;
}

.page-content-wrap h4 {
    font-size: 1.3125rem;
    line-height: 1.4;
}

.page-content-wrap h5 {
    font-size: 1.125rem;
    line-height: 1.45;
}

.social_img {
    height: 300px;   /* adjust as needed */
    width: 400px;
    max-width: 100%;
    object-fit: cover;
    /*margin-bottom: 20px;*/
}
.qr_img {
    height: 300px;
    width: auto;
}

.mobile-logo-img {
    margin: 0 auto;display:block; max-height:234px; width: 100%;
}

.map_iframe {
    width: 100%;
}
.map_iframe iframe {
    width: 600px; 
    height: 450px; 
    border: 0;
}

/* menu style */
.menu-logo-wrap {
    overflow: hidden;
}

.menu-shell {
    position: relative;
    z-index: 20;
}

.navbar-eg {
    min-height: 58px;
    background: linear-gradient(135deg, #214f7c 0%, #2d68a0 58%, #3479b8 100%);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 22px rgba(21, 58, 94, .16);
}

.navbar-eg .navbar-collapse {
    min-width: 0;
}

.navbar-eg .navbar-main-links,
.navbar-eg .navbar-account-links {
    flex-wrap: nowrap;
}

.navbar-eg .navbar-main-links .nav-item,
.navbar-eg .navbar-account-links .nav-item {
    flex-shrink: 0;
}

.navbar-eg .navbar-brand,
.navbar-eg .nav-link,
.navbar-eg .navbar-text {
    color: #fff !important;
}

.navbar-eg .nav-link {
    position: relative;
    margin: 0 .08rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    border: 0;
    border-radius: 0;
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.25;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.navbar-eg .nav-link:hover,
.navbar-eg .nav-link:focus,
.navbar-eg .nav-link.active {
    color: #fff !important;
    background-color: transparent;
    text-decoration: none !important;
}

.navbar-eg .nav-link:hover {
    color: #d9ecff !important;
    background-color: transparent;
    text-decoration: none !important;
}

.navbar-eg .navbar-toggler {
    padding: .35rem .55rem;
    border-color: rgba(255,255,255,.35);
    border-radius: 8px;
    box-shadow: none;
}

.navbar-eg .navbar-toggler-icon {
    filter: invert(1);
}

.navbar-eg .navbar-toggler:focus-visible,
.navbar-eg .nav-link:focus-visible,
.navbar-eg .btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .65);
    outline-offset: 2px;
}

.navbar-menu-label {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.navbar-eg .btn-outline-primary {
    color: #fff;
    border-color: #fff;
    border-radius: 7px;
}

.navbar-eg .btn-outline-primary:hover {
    background: #fff;
    color: #2d68a0;
}

.navbar-eg .btn-outline-danger {
    color: #fff;
    border-color: #fff;
    border-radius: 7px;
}

.navbar-eg .btn-outline-danger:hover {
    background: #fff;
    color: #dc3545;
}

.navbar-eg .nav-link.active {
    color: #fff !important;
    background-color: transparent;
    font-weight: 600;
    box-shadow: none;
}

.navbar-eg .nav-link::after {
    position: absolute;
    right: .5rem;
    bottom: .12rem;
    left: .5rem;
    height: 2px;
    background-color: #9fd1ff;
    content: "";
    opacity: 0;
    transform: scaleX(.35);
    transform-origin: center;
    transition: opacity .18s ease, transform .18s ease;
}

.navbar-eg .nav-link.active::after,
.navbar-eg .nav-link:hover::after,
.navbar-eg .nav-link:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.navbar-eg .dropdown-menu {
    border: 0;
    border-radius: 9px;
    box-shadow: 0 10px 28px rgba(16, 43, 92, .2);
}

.navbar-eg .dropdown-item {
    border-radius: 6px;
}

.navbar-eg .dropdown-item.active,
.navbar-eg .dropdown-item:active {
    background-color: #2d68a0;
}

@media (min-width: 1200px) {
    .navbar-eg {
        padding-top: .55rem;
        padding-bottom: .55rem;
    }

    .navbar-eg .navbar-main-links {
        gap: 0;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar-eg .nav-link {
        margin-right: .02rem;
        margin-left: .02rem;
        padding-right: .38rem !important;
        padding-left: .38rem !important;
        font-size: .76rem;
        white-space: nowrap !important;
    }

    .navbar-eg .navbar-account-links {
        margin-left: .25rem;
    }

    .navbar-eg .navbar-text,
    .navbar-eg .btn-sm {
        font-size: .72rem;
    }
}

@media (max-width: 1199.98px) {
    .menu-shell {
        padding-right: .75rem !important;
        padding-left: .75rem !important;
    }

    .navbar-eg {
        min-height: 56px;
        /*border-radius: 10px;*/
    }

    .navbar-eg .navbar-collapse {
        margin: .65rem -.25rem 0;
        padding: .5rem .25rem .25rem;
        border-top: 1px solid rgba(255, 255, 255, .2);
    }

    .navbar-eg .navbar-main-links,
    .navbar-eg .navbar-account-links {
        flex-wrap: wrap;
        gap: .25rem;
    }

    .navbar-eg .nav-link {
        margin: 0;
        padding: .68rem .8rem !important;
        font-size: .95rem;
    }

    .navbar-eg .nav-link::after {
        top: .55rem;
        right: auto;
        bottom: .55rem;
        left: .2rem;
        width: 3px;
        height: auto;
        transform: scaleY(.35);
        transform-origin: center;
    }

    .navbar-eg .nav-link.active::after,
    .navbar-eg .nav-link:hover::after,
    .navbar-eg .nav-link:focus-visible::after {
        transform: scaleY(1);
    }

    .navbar-eg .navbar-account-links {
        padding-top: .5rem;
        border-top: 1px solid rgba(255, 255, 255, .16);
    }

    .navbar-eg .navbar-text {
        display: block;
        padding: .35rem .8rem;
        overflow-wrap: anywhere;
    }

    .navbar-eg .btn-sm {
        min-height: 40px;
        padding-top: .5rem;
        padding-bottom: .5rem;
    }

    .navbar-eg .dropdown-menu {
        margin-top: .35rem;
    }
}

@media (max-width: 575.98px) {
    .social_img,
    .qr_img {
        width: calc(100% - 1rem);
        height: auto;
    }

    .social_img {
        margin-top: .25rem !important;
        margin-bottom: .25rem !important;
    }

    .qr_img {
        max-width: 300px;
    }

    .menu-logo-wrap,
    .page-content-wrap,
    .footer-shell {
        padding-right: .75rem !important;
        padding-left: .75rem !important;
    }

    .page-content-wrap > .container {
        padding-right: .75rem;
        padding-left: .75rem;
    }

    .page-content-wrap,
    .page-content-wrap .fs-5 {
        font-size: 1rem !important;
    }

    .page-content-wrap h1:not(.event-title) {
        font-size: 1.75rem;
    }

    .page-content-wrap h2 {
        font-size: 1.5rem;
    }

    .page-content-wrap h3 {
        font-size: 1.375rem;
    }

    .page-content-wrap h4 {
        font-size: 1.1875rem;
    }

    .page-content-wrap h5 {
        font-size: 1.0625rem;
    }

    .mobile-logo-img {
        max-height: 150px;
        object-fit: contain;
    }

}

/*footer style*/
.footer-shell {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.footer-container {
    background: linear-gradient(135deg, #214f7c 0%, #2d68a0 58%, #3479b8 100%);
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(21, 58, 94, .16);
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    padding-top: 10px  !important;
    padding-bottom: 10px  !important;
}

.footer-container p {
    color: #ffffff;
    margin-bottom: .5rem;
}

.footer-container .link_style {
    color: #ffffff;
    text-decoration: none;
}

.footer-container .link_style:hover {
    color: #dbeaff;
    text-decoration: underline;
}

.footer-logo-left {
    height: 70px;
    width: auto;
}

.footer-logo-right {
    height: 45px;
    width: auto;
}
/*footer style*/

/*home page title logos*/

/* Agenda page */
.agenda-page { max-width: 1140px; }
.agenda-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; border-bottom-color: #2d68a0; }
.agenda-tabs .nav-link { min-height: 48px; color: #1f3763; font-weight: 600; white-space: nowrap; }
.agenda-tabs .nav-link:hover, .agenda-tabs .nav-link:focus { color: #1763a3 !important; text-decoration: none; }
.agenda-tabs .nav-link.active,
.agenda-tabs .nav-item.show .nav-link { color: #fff !important; background-color: #2d68a0; border-color: #2d68a0; }
.agenda-tabs .nav-link.active:hover,
.agenda-tabs .nav-link.active:focus { color: #fff !important; }
.agenda-tab-content { padding-top: 1.25rem; }
.agenda-table-wrap { border: 1px solid #d8e0e8; border-radius: 8px; }
.agenda-table { font-size: 1rem; line-height: 1.45; }
.agenda-table th { color: #fff; background-color: #1f3763; border-color: rgba(255, 255, 255, .22); font-weight: 600; }
.agenda-table th:first-child, .agenda-table td:first-child { width: 16%; min-width: 145px; font-weight: 600; white-space: nowrap; }
.agenda-table th:nth-child(2), .agenda-table td:nth-child(2) { width: 49%; }
.agenda-table th:last-child, .agenda-table td:last-child { width: 35%; }
.agenda-table td { padding: .85rem; vertical-align: top; }
.agenda-mobile-label { display: none; }
.agenda-table .agenda-highlight > * { background-color: #f2f7ec; }
.agenda-table .agenda-notice-row > * { background-color: #f5f7fa; }
.agenda-table .agenda-section-row > * { color: #1f3763; background-color: #e8f1f9; }
.agenda-table .agenda-formal-start > * { border-top: 2px solid #9cabc0; }
.agenda-table .agenda-formal-row > * { background-color: #fff; }
.agenda-table .agenda-formal-end > * { border-bottom: 2px solid #9cabc0; }
.agenda-notice { color: #4c5968; font-style: italic; }
.closed-session { margin-top: 2rem; padding: 1rem; border: 2px solid #1f3763; border-radius: 10px; background-color: #f7f9fc; }
.closed-session-heading { margin: -.1rem 0 1rem; text-align: center; }
.closed-session-heading h2 { margin-bottom: .25rem; color: #1f3763; font-weight: 700; letter-spacing: .035em; }
.closed-session-heading p { margin-bottom: 0; font-weight: 600; }

@media (max-width: 767.98px) {
    .agenda-page .agenda-tabs {
        max-width: 100%;
        padding-right: .75rem;
        padding-left: .75rem;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        scroll-padding-inline: .75rem;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }
    .agenda-page .agenda-tabs .nav-item { flex: 0 0 auto; }
    .agenda-page .agenda-tabs .nav-link { padding-right: .75rem; padding-left: .75rem; font-size: .9rem; }
    .agenda-page .agenda-tab-content,
    .agenda-page .tab-pane,
    .agenda-page .closed-session { min-width: 0; max-width: 100%; }
    .agenda-table-wrap { overflow: visible; border: 0; }
    .agenda-table, .agenda-table tbody, .agenda-table tr, .agenda-table td { display: block; width: 100% !important; }
    .agenda-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .agenda-table tr { height: auto; margin-bottom: .85rem; overflow: hidden; border: 1px solid #d8e0e8; border-radius: 8px; }
    .agenda-page .agenda-table td {
        display: grid;
        grid-template-columns: minmax(7rem, 32%) minmax(0, 1fr);
        align-items: start;
        gap: .75rem;
        height: auto;
        min-width: 0 !important;
        padding: .65rem .75rem;
        overflow: visible;
        border-bottom: 1px solid #e4e8ec;
        white-space: normal !important;
    }
    .agenda-mobile-label,
    .agenda-mobile-value { min-width: 0; height: auto; overflow: visible; white-space: normal; overflow-wrap: anywhere; }
    .agenda-mobile-label { display: block; color: #1f3763; font-weight: 700; }
    .agenda-page .agenda-table td:first-child .agenda-mobile-value { white-space: nowrap; }
    .agenda-table td:last-child { border-bottom: 0; }
    .agenda-table td.agenda-empty { display: none; }
    .closed-session { margin-top: 1.5rem; padding: .75rem; }
}
/* Agenda page */
.event-header {
    border: 1px solid #2d68a0;
    border-radius: 10px;
    background-color: #fff;
    overflow: hidden;
    padding: 10px 15px;
}

.event-logo-section,
.event-title-section {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-title-section {
    flex-direction: column;
}

.event-logo {
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.event-logo-left {
    height: 90px;      /* was 75px */
    width: auto;
}

.event-logo-right {
    height: 120px;     /* was 105px */
    width: auto;
}

.event-title {
    margin: 0 0 8px;
    color: #102b5c;
    font-size: 44px;
    line-height: 1.05;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 3px solid #d3d956;
}

.event-date {
    color: #1763a3;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 5px;
}

.event-location {
    color: #102b5c;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 500;
}

/* Mobile */
@media (max-width: 767.98px) {
    .event-header {
        padding: 15px;
    }

    .event-logo-section,
    .event-title-section {
        min-height: auto;
        padding: 15px 10px;
    }

    .event-title-section {
        border-left: 0;
        border-right: 0;
        border-top: 1px solid #c8d2dc;
        border-bottom: 1px solid #c8d2dc;
    }

    .event-title {
        font-size: 25px;
    }

    .event-date {
        font-size: 18px;
    }

    .event-location {
        font-size: 16px;
    }

    .event-logo-left {
        max-height: 65px;
    }

    .event-logo-right {
        max-height: 90px;
    }
}
/*home page title logos*/


.presentation-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.presentation-slide {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Немного более плавный переход Bootstrap */
#presentationCarousel .carousel-item {
    transition: transform 0.65s ease-in-out;
}

#presentationCarousel {
    overflow: hidden;
    border-radius: 10px;
}

#presentationCarousel .carousel-control-prev,
#presentationCarousel .carousel-control-next {
    width: 8%;
}

/* Сделаем стрелки хорошо видимыми на светлых слайдах */
#presentationCarousel .carousel-control-prev-icon,
#presentationCarousel .carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(0, 0, 0, 0.45);
    background-size: 55%;
    border-radius: 50%;
}

#presentationCarousel .carousel-indicators {
    margin-bottom: 0.6rem;
}

#presentationCarousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.presentation-counter {
    font-size: 14px;
    color: #6c757d;
}

@media (max-width: 768px) {
    #presentationCarousel {
        border-radius: 6px;
    }

    #presentationCarousel .carousel-control-prev,
    #presentationCarousel .carousel-control-next {
        width: 12%;
    }

    #presentationCarousel .carousel-control-prev-icon,
    #presentationCarousel .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }
}