:root {
    --bs-body-font-family: "Open Sans";
    --headings-font-family: 'Open Sans';
}

body {
    font-size: 14px !important;
    font-weight: normal;
    margin: 0;
    color: #414141;
    line-height: 24px !important;
    font-family: 'Open Sans' !important;
    overflow-x: hidden;
    background: white;
}

:target {
    /* background: rgb(255,226,0);
     background: linear-gradient(90deg, rgba(211,244,0,0.7) 0%, rgba(255,255,255,0) 100%);
     */
    padding: 10px 10px;
    position: relative;
}

:target::after {
    content: "";
    display: block;
    position: absolute;
    top: 5px;
    left: -15px;
    font-family: 'Font Awesome 5 Pro';
    font-weight: 600;
    content: "\f02e";
    color: #29ad99;
    transform: rotate(90deg);
}

a,
.link {
    text-decoration: none !important;
    outline: none;
    transition: color 0.3s ease-out;
    color: #4762af;
    /* color: #243569;
     */
    transition: color 0.3s ease-out;
}

a:hover {
    text-decoration: none;
    color: #243569;
}

ul,
ol {
    margin: 0 0 0 0;
    padding: 0;
}

li {
    padding-left: 20px;
    margin-left: 15px;
}

.toolbar-menu li {
    margin-bottom: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Open Sans' !important;
}

h1 {
    font-size: 22px;
}

h1.title {
    color: #333333;
    border: 0;
    font-size: 23px;
    margin: 0 0 20px 0;
}

h2 {
    font-size: 22px;
    font-weight: bold;
    font-family: 'Oxygen';
}

/* .node--type-basic-page h2{
     color: #4661ae;
     font-size: 18px;
     font-weight: bold;
     margin-bottom: 30px;
}
 */
h3 {
    font-weight: bold;
    font-size: 17px;
    font-family: 'Oxygen';
}

button {
    outline: none;
}

.header-second-container {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    margin-bottom: 20px
}

.header-second-first {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: end;
    flex-wrap: wrap;
    padding: 0 4%;
    width: 100%;
}

.header-second-second {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 5px 4%;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    z-index: 500;
}

/* Language switcher */
.language-switcher {
    padding: 0 0 0 0;
}

.language-switcher span {
    padding: 0;
    margin: 0 2px;
}

.language-switcher a {
    display: block;
    padding: 5px 15px;
    background: #EEEEEE;
    border-radius: 7px;
    color: #555555;
    ;
    font-size: 11px;
    /* text-shadow: 0 1px 0 rgba(255,255,255,0.9);
     */
}

.language-switcher a:not(.is-active) {
    color: #000000;
    transition: background 0.3s ease-out;
}

.language-switcher a:not(.is-active):hover {
    background: #b2c1c7;
}

.language-switcher a.is-active {
    color: #FFFFFF;
    background: #4d889e;
}

.secondary-menu-block {
    margin: 10px 0;
}

.secondary-menu-block ul {
    display: flex;
    margin: 0 0 0 0;
    padding: 0;
    list-style: none;
    align-items: center;
    margin-right: 10px;
}

.secondary-menu-block ul li {
    margin: 0 10px;
    padding: 0;
}

.secondary-menu-block ul li a {
    display: block;
    color: #1d3d66;
    font-size: 11px;
    transition: color 0.3s ease-out;
    text-transform: uppercase;
    text-align: right;
    line-height: 16px;
}

.secondary-menu-block ul li a:hover {
    color: #e55039;
}

.secondary-menu-block ul li a.menu-soalan-lazim:before {
    font-family: 'Font Awesome 5 Free';
    content: "\f059";
    font-weight: bold;
    margin-right: 5px;
    display: block;
    text-align: center;
    line-height: 16px;
}

.secondary-menu-block ul li a.menu-hubungi-kami:before {
    font-family: 'Font Awesome 5 Free';
    content: "\f095";
    font-weight: bold;
    margin-right: 5px;
    display: block;
    text-align: center;
    line-height: 16px;
}

.secondary-menu-block ul li a.menu-maklum-balas:before {
    font-family: 'Font Awesome 5 Free';
    content: "\f27a";
    font-weight: bold;
    margin-right: 5px;
    display: block;
    text-align: center;
    line-height: 16px;
}

.crests-scrolled-container {
    display: flex;
    flex-direction: column;
}

.crests-scrolled-block {
    padding-top: 2px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: end;
    padding: 0 4%;
    width: 100%;
    margin-left: 10px;
}

.header-second-first img {
    object-fit: contain;
    width: auto;
    justify-content: end;
}

.header-second-first .msia-crest-block img {
    margin: 0 10px 5px 0;
    height: 60px;
}

.header-second-first .sabah-crest-block img {
    height: 90px;
}

.crests-scrolled-block .sitename-block h1 {
    color: #fff;
    visibility: inherit;
}

.crests-scrolled-block ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    align-items: center;
}

.crests-scrolled-block ul li {
    margin: 0 7px 0 0;
    padding: 0;
}

.crests-scrolled-block ul li img {
    object-fit: contain;
    width: auto;
    height: 40px;
}

.navbar-nav li a {
    color: #fff;
}

.navbar-nav li a:hover {
    background-color: #fff;
    color: #e54e4b;
    text-decoration: none;
    text-shadow: none;
    outline: none;
}

.line-second {
    border-bottom: 1px solid #1d3c66;
}

.line-third {
    padding-top: 5px;
    font-weight: normal;
    font-size: 12px;
    color: 1d3c66;
}

.site-footer {
    background: #292929;
}

/* Site footer */
.site-footer {
    padding: 0;
    margin: 0;
    font-family: 'Open Sans' !important;
    background: #FFFFFF !important;
    margin-bottom: 30px;
}

.site-footer .content {
    color: #000000;
    font-size: 13px;
}

.site-footer .block {
    margin: 0;
    padding: 10px 10px;
    border: 0;
    text-align: center;
}

.site-footer h2 {
    color: #000000;
}

/* Footer first */
.site-footer .footer-first-container {
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    padding: 50px 5%;
}

/* Footer first A */
.site-footer .footer-first-container .footer-first-a {
    width: 100%;
}

.site-footer .footer-first-container .footer-first-a h2 {
    border-bottom: 1px solid #ffa405;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 16px;
}

.site-footer .footer-first-container .footer-first-a ul li {
    list-style: none;
    padding: 0 0 5px 0;
    margin: 0;
}

.site-footer .footer-first-container .footer-first-a ul li a {
    color: #333333;
}

/* Footer first B */
.site-footer .footer-first-container .footer-first-b {
    width: 100%;
}

.site-footer .footer-first-container .footer-first-b h2 {
    border-bottom: 1px solid #ffa405;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 16px;
}

/* Footer second */
.site-footer .footer-second-container {
    background: #fafaf7;
    padding: 20px 20px;
}

/* Related sites */
.related-site-menu-block ul#block-relatedsite {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.related-site-menu-block ul#block-relatedsite li {
    list-style: none;
    margin: 0 5px 5px 0;
    padding: 0;
    position: relative;
}

.related-site-menu-block ul#block-relatedsite li a {
    padding: 80px 47px;
    border-radius: 5px;
    display: block;
    /* text-indent: -9999px;
     */
    transition: background-color 0.3s ease-out;
}

.related-site-menu-block ul#block-relatedsite li a#site-edu {
    background: #ff8b8b url("../image/icon-edu.png") no-repeat 50% 50%;
}

.related-site-menu-block ul#block-relatedsite li a#site-net {
    background: #25548f url("../image/icon-sabah-crest.png") no-repeat 50% 50%;
}

.related-site-menu-block ul#block-relatedsite li a#site-org {
    background: #ffa405 url("../image/icon-emas.png") no-repeat 50% 50%;
}

.related-site-menu-block ul#block-relatedsite li a:hover {
    background-color: #EEEEEE !important;
}

.related-site-menu-block ul li a span {
    /* visibility: hidden;
     width: 0;
     */
    position: absolute;
    bottom: 5px;
    right: 10px;
    color: #FFFFFF;
    font-weight: bold;
    transition: color 0.3s ease-out;
}

.related-site-menu-block ul#block-relatedsite li a:hover span {
    color: #000000;
}

.crests-scrolled-block .msia-crest-block {
    margin: 0 10px 5px 0;
    justify-content: end;
}

.crests-scrolled-block .msia-crest-block img {
    display: block;
    width: auto;
    height: 30px;
}

.crests-scrolled-block .sabah-crest-block {
    margin: 0 20px 0 0;
}

.crests-scrolled-block .sabah-crest-block img {
    display: block;
    width: auto;
    height: 50px;
}

.sitename-block {
    flex-basis: 100%;
    text-align: center;
}

.sitename-block h1 {
    margin: 5px;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
    color: #1d3c66;
}

.sitename-block h1 span.line-first {
    font-weight: 600;
    font-size: 16px;
    position: relative;
    top: 3px;
}

.sitename-block h1 span.line-second {
    font-weight: 800;
    font-size: 20px;
}

#navbar_top {
    padding: 0;
}

#navbar_top li.nav-item {
    padding: 0;
    margin: 0;
}

#navbar_top li.nav-item a {
    padding: 20px 20px 20px 20px;
}

#navbar_top li.nav-item a.active {
    color: #fff;
    background: #e54e4b;
}

#navbar_top li.nav-item a:hover {
    padding: 20px 20px 20px 20px;
}

#navbar_top .navbar-toggler {
    border: 0px;
    color: #fff;
    padding: 10px;
}

#navbar_top .navbar-toggler:focus {
    border: 0px;
    box-shadow: none;
}

.search-term {
    font-weight: 600;
}

.page-banner-container {
    position: relative;
    z-index: 50;
}

.preface-search-block {
    background: #f8f6f1;
    padding: 160px 5% 70px 5%;
    text-align: center;
    margin-bottom: -50px;
    margin-top: -90px;
}

.masthead {
    position: relative;
    background-color: #343a40;
    background: url("/image/sabahmsia_0.jpg") no-repeat center center;
    background-size: cover;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.masthead:before {
    content: "";
    position: absolute;
    background-color: #1c375e;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0.5;
}

.masthead h1,
.masthead .h1 {
    font-size: 2rem;
}

.page-banner-container {
    position: relative;
    z-index: 50;
}

.page-banner-block .page-banner-view-wrapper {
    height: 200px;
    overflow: hidden;
    clip-path: polygon(100% 0, 100% 75%, 50% 100%, 0 75%, 0 0);
    /* margin-bottom: -50px;
     */
}

.page-banner-block .page-banner-title h1 {
    font-family: 'Oxygen';
    position: absolute;
    height: 100%;
    width: 100%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    font-size: 30px;
    padding: 0 10%;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    justify-content: center;
    text-align: center;
}

.deep-0 {
    margin-left: 0px;
}

.deep-1 {
    margin-left: 50px;
}

.deep-2 {
    margin-left: 100px;
}

.deep-3 {
    margin-left: 150px;
}

.deep-4 {
    margin-left: 200px;
}

/* Page banner custom */
.cover-image {
    object-fit: cover;
}

.page-banner-custom-block {
    height: 200px;
    overflow: hidden;
    clip-path: polygon(100% 0, 100% 75%, 50% 100%, 0 75%, 0 0);
}

.page-banner-custom-block .field--name-field-page-banner-title h1 {
    font-family: 'Oxygen';
    position: absolute;
    height: 100%;
    width: 100%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    font-size: 30px;
    padding: 0 10%;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    justify-content: center;
}

.page-banner-custom-block h1 {
    font-family: 'Oxygen';
    position: absolute;
    height: 100%;
    width: 100%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    font-size: 30px;
    padding: 0 10%;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    justify-content: center;
}

.page-banner-custom-block {
    height: 200px;
    overflow: hidden;
    clip-path: polygon(100% 0, 100% 75%, 50% 100%, 0 75%, 0 0);
}

.preface-container {
    position: relative;
    z-index: 40;
}

.primary-menu-container {
    background: rgba(2, 64, 137, 1);
    /* background: #1d3d66;
     */
    min-height: 30px;
}

/* Secondary menu */
.secondary-menu-block {
    margin: 10px 0;
    display: none;
}

.secondary-menu-block ul {
    display: flex;
    margin: 0 0 0 0;
    padding: 0;
    list-style: none;
    align-items: center;
    margin-right: 10px;
}

.secondary-menu-block ul li {
    margin: 0 10px;
    padding: 0;
}

.secondary-menu-block ul li a {
    display: block;
    color: #1d3d66;
    font-size: 11px;
    transition: color 0.3s ease-out;
    text-transform: uppercase;
    text-align: right;
    line-height: 16px;
}

.secondary-menu-block ul li a:hover {
    color: #e55039;
}

.secondary-menu-block ul li a.menu-soalan-lazim:before {
    font-family: 'Font Awesome 5 Free';
    content: "\f059";
    font-weight: bold;
    margin-right: 5px;
    display: block;
    text-align: center;
    line-height: 16px;
}

.secondary-menu-block ul li a.menu-hubungi-kami:before {
    font-family: 'Font Awesome 5 Free';
    content: "\f095";
    font-weight: bold;
    margin-right: 5px;
    display: block;
    text-align: center;
    line-height: 16px;
}

.secondary-menu-block ul li a.menu-maklum-balas:before {
    font-family: 'Font Awesome 5 Free';
    content: "\f27a";
    font-weight: bold;
    margin-right: 5px;
    display: block;
    text-align: center;
    line-height: 16px;
}

.view-directory .view-members-link,
.view-website-link {
    display: inline-block;
}

.view-directory .view-members-link a,
.view-directory .view-website-link a {
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
    background: #1d3d66;
    /* background: #e55039;
     */
    color: #FFFFFF !important;
    font-size: 12px;
    transition: background 0.2s ease-out;
    display: flex;
    margin-bottom: 3px;
}

.view-directory .view-members-link a:hover,
.view-directory .view-website-link a:hover {
    background: #e55039;
}

.view-directory .view-members-link a:before {
    font-family: 'FontAwesome';
    content: "\f022";
    font-weight: 100;
    font-size: 11px;
    margin-right: 0;
}

.view-directory .view-website-link a:before {
    font-family: 'FontAwesome';
    content: "\f57e";
    font-weight: 100;
    font-size: 11px;
    margin-right: 0;
}

.view-directory .view-members-link a span,
.view-directory .view-website-link a span {
    display: none;
    width: 0;
    height: 0;
}

.view-directory .view-members-link a,
.view-directory .view-website-link a {
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
    background: #1d3d66;
    /* background: #e55039;
     */
    color: #FFFFFF !important;
    font-size: 12px;
    transition: background 0.2s ease-out;
    display: flex;
    margin-bottom: 3px;
}

.sticky {
    position: fixed;
    top: 0;
    right: 0;
}

#directory-legend {
    background: #1d3d66;
    color: #FFFFFF;
    font-size: 12px;
    padding: 5px;
    visibility: hidden;
}

#directory-legend ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}

#directory-legend ul li {
    margin: 0;
    padding: 3px 10px;
    display: flex;
    align-items: center;
}

#directory-legend ul li span.colon {
    margin: 0 5px;
}

#directory-legend ul li span.icon {
    border: 1px solid #FFFFFF;
    display: inline-block;
    padding: 3px;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#directory-legend h2 {
    font-size: 12px;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 5px;
    text-transform: uppercase;
    border-bottom: 1px solid #FFFFFF;
}

@media (min-width: 576px) {}

@media (max-width: 767px) {
    .crests-scrolled-block .sitename-block h1 {
        display: none;
    }
}

@media (min-width: 768px) {
    .page-banner-custom-block {
        height: 350px;
        clip-path: polygon(100% 0, 100% 83%, 26% 100%, 0 82%, 0 0);
    }

    .preface-search-block {
        background: #f8f6f1;
        padding: 160px 5% 70px 5%;
        text-align: center;
        margin-bottom: -50px;
        margin-top: -90px;
    }

    .header-second-container {
        justify-content: flex-start;
    }

    .sitename-block {
        flex-basis: auto;
        text-align: left;
    }

    .page-banner-custom-block .page-banner-title h1 {
        font-family: 'Oxygen';
        position: absolute;
        height: 100%;
        width: auto;
        color: #FFFFFF;
        display: flex;
        align-items: center;
        font-size: 50px;
        padding: 0 10%;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        justify-content: flex-start;
    }

    /* Directory -listing */
    .view-directory tr td.views-field-nothing-2 {
        width: auto;
    }

    /* Site footer */
    .site-footer .footer-first-container .block {
        text-align: left;
    }

    /* Related sites */
    .related-site-menu-block ul#block-relatedsite {
        justify-content: flex-start;
    }
}

@media (max-width: 991px) {
    .crests-scrolled-container {
        padding: 10px;
        width: auto;
    }

    #navbar_top li.nav-item {
        background-color: #0071b3;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2)
    }

    #directory-legend.sticky {
        top: 50%;
        border-radius: 10px 0 0 10px;
        visibility: visible;
        z-index: 200;
    }

    .deep-0 {
        margin-left: 0px;
    }

    .deep-1 {
        margin-left: 0px;
    }

    .deep-2 {
        margin-left: 0px;
    }

    .deep-3 {
        margin-left: 0px;
    }

    .deep-4 {
        margin-left: 0px;
    }
}

@media (min-width: 992px) {
    .page-banner-custom-block {
        height: 470px;
        clip-path: polygon(100% 0, 100% 83%, 26% 100%, 0 82%, 0 0);
    }

    .header-second-container {
        flex-direction: row;
    }

    .header-second-first {
        justify-content: flex-start;
        width: 60%;
    }

    .header-second-second.fix-top {
        position: relative;
        background: none;
        box-shadow: none;
        margin-bottom: 10px;
    }

    .header-second-second.fix-top {
        justify-content: flex-end;
        width: 40%;
        margin-bottom: 0;
    }

    /* Secondary menu */
    .secondary-menu-block ul {
        margin: 0;
    }

    .secondary-menu-block ul li a.menu-soalan-lazim:before {
        display: inline-block;
        text-align: right;
    }

    .secondary-menu-block ul li a.menu-hubungi-kami:before {
        display: inline-block;
        text-align: right;
    }

    .secondary-menu-block ul li a.menu-maklum-balas:before {
        display: inline-block;
        text-align: right;
    }

    .view-directory .view-members-link a span,
    .view-directory .view-website-link a span {
        display: inherit;
        width: auto;
    }

    .view-directory .view-members-link a:before {
        margin-right: 5px;
    }

    .view-directory .view-website-link a:before {
        margin-right: 5px;
    }

    /* Footer first */
    .site-footer .footer-first-container {
        width: 75%;
        padding: 50px 0;
        flex-direction: row;
    }

    /* Footer first A */
    .site-footer .footer-first-container .footer-first-a {
        width: 60%;
    }

    /* Footer first B */
    .site-footer .footer-first-container .footer-first-b {
        width: 40%;
        display: flex;
        justify-content: flex-end;
    }
}