/* Layout fixes loaded after page styles so they win on small screens. */

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

.slider-fullbleed {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
}

.header_bottom .logo {
    float: none;
    width: auto;
    margin: 10px 0;
    text-align: left;
}

.header_bottom .logo img {
    height: 72px;
    width: auto;
    max-width: 100%;
}

.centerServname {
    width: auto;
    max-width: 100%;
    margin: 0;
    padding-top: 8px;
    padding-bottom: 8px;
}

.s_name,
.s_motto {
    overflow-wrap: break-word;
}

.s_name {
    font-size: 18px;
    line-height: 1.25;
}

.s_motto {
    line-height: 1.7;
    white-space: normal;
}

.header_top .topbar-contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin: 8px 0;
    padding: 0;
    list-style: none;
    float: none;
    width: auto;
}

.header_top .topbar-contacts li {
    float: none;
    width: auto;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #fff;
    text-align: left;
}

.header_top .topbar-contacts a {
    color: #fff;
    text-decoration: none;
}

.header_top .topbar-contacts a:hover,
.header_top .topbar-contacts a:focus {
    color: #d4edda;
    text-decoration: underline;
}

.header_top .topbar-sep {
    margin: 0 4px;
}

.topbar-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.topbar-action .btn {
    margin: 8px 0;
}

.news-meta {
    flex-wrap: wrap;
}

.news-title,
.content-title,
.page-title {
    overflow-wrap: break-word;
}

.content-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    #navbar_menu > ul > li > a {
        padding: 15px 10px;
        font-size: 13px;
    }
}

@media (max-width: 991.98px) {
    .header_bottom {
        position: relative;
    }

    .header-menu-col {
        position: static;
        min-height: 56px;
    }

    .header_bottom .menu_side {
        float: none;
        width: auto;
        margin: 0;
    }

    #navbar_menu.small-screen {
        position: static;
        float: none;
        width: auto;
        height: auto;
        margin: 0;
    }

    #navbar_menu.small-screen #menu-button {
        position: absolute;
        top: 14px;
        right: 16px;
        left: auto;
        z-index: 40;
    }

    #navbar_menu.small-screen > ul {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        width: 100%;
        z-index: 35;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    }

    #navbar_menu.small-screen ul ul {
        position: relative;
        top: auto;
        left: 0;
        right: auto;
        width: 100%;
        box-shadow: none;
    }

    .centerServname,
    .s_name,
    .s_motto {
        text-align: center;
    }

    .s_name {
        font-size: 16px;
    }

    .header_top .topbar-contacts {
        justify-content: center;
    }

    .header_top .topbar-contacts li {
        justify-content: center;
        text-align: center;
    }

    .topbar-action {
        justify-content: center;
        margin-bottom: 8px;
    }
}

@media (max-width: 767.98px) {
    .home-container,
    .news-section,
    .about-container,
    .contact-container,
    .contact-info-card,
    .history-section,
    .career-container,
    .career-content,
    .media-container,
    .faq-container,
    .faq-content,
    .privacy-container,
    .privacy-content,
    .content-container,
    .incident-form-container,
    .sidebar,
    .quick-menu-sidebar {
        padding: 20px 16px;
    }

    .news-header h2,
    .about-header h1,
    .contact-header h3,
    .career-header h3,
    .media-header h3,
    .faq-header h3,
    .privacy-header h3,
    .content-title,
    .incident-header h3,
    .page-title {
        font-size: 1.55rem;
        line-height: 1.3;
    }

    .carousel-item {
        height: 240px;
    }

    .carousel-caption {
        padding: 16px;
    }

    .carousel-caption h3 {
        font-size: 1.15rem;
    }

    .carousel-caption h5 {
        font-size: 0.95rem;
    }

    .news-image img {
        height: 200px;
    }

    .quick-menu-sidebar {
        position: static;
        top: auto;
    }

    .title-holder {
        margin-top: 36px;
    }

    .tp-caption {
        white-space: normal !important;
    }
}

@media (max-width: 575.98px) {
    .header_bottom .logo img {
        height: 52px;
        width: auto;
    }

    .s_name {
        font-size: 15px;
    }

    .s_motto {
        font-size: 11px;
    }

    .header_top .topbar-contacts {
        flex-direction: column;
        align-items: center;
    }

    .topbar-action .btn {
        float: none;
        width: 100%;
        max-width: 320px;
        min-width: 0;
        height: auto;
        line-height: 1.3;
        padding: 12px 16px;
        white-space: normal;
    }

    .news-header h2,
    .about-header h1,
    .contact-header h3,
    .career-header h3,
    .media-header h3,
    .faq-header h3,
    .privacy-header h3,
    .content-title,
    .incident-header h3,
    .page-title {
        font-size: 1.35rem;
    }

    .carousel-item {
        height: 210px;
    }
}
