/* Website header and footer */
.site-header {
    position: relative;
    z-index: 50;
    background: #fff;
    box-shadow: 0 8px 28px rgba(5, 25, 45, 0.08);
    max-width: 100vw;
    overflow: visible;
}

html,
body {
    overflow-x: hidden;
}

.site-topbar {
    background: linear-gradient(90deg, #006d3f 0%, #004b35 100%);
    color: #fff;
    font-size: 13px;
}

.site-topbar__inner,
.site-topbar__links,
.site-socials {
    display: flex;
    align-items: center;
}

.site-topbar__inner {
    justify-content: space-between;
    min-height: 42px;
    gap: 16px;
}

.site-topbar__links {
    gap: 28px;
}

.site-topbar a {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}

.site-ems-login {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    min-height: 28px;
    padding: 0 12px;
    white-space: nowrap;
}

.site-ems-login:hover {
    background: #fff;
    color: #006d3f;
}

.site-language-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    gap: 6px;
    height: 28px;
    padding: 0 9px;
}

.site-language-toggle i {
    background: rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    height: 16px;
    position: relative;
    width: 32px;
}

.site-language-toggle i::after {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    content: "";
    height: 12px;
    left: 2px;
    position: absolute;
    top: 2px;
    transition: transform 0.2s ease;
    width: 12px;
}

html[data-site-lang="en"] .site-language-toggle i::after {
    transform: translateX(16px);
}

.site-socials {
    list-style: none;
    gap: 9px;
    margin: 0;
    padding: 0;
}

.site-socials a {
    width: 24px;
    height: 24px;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
}

.site-navbar {
    background: #09275b;
    border-bottom: 3px solid #1d5dff;
    max-width: 100vw;
    overflow: visible;
}

.site-navbar.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 12px 30px rgba(5, 25, 45, 0.12);
    animation: siteSlideDown 0.22s ease;
}

.site-navbar__nav {
    min-height: 58px;
    overflow: visible;
    padding: 0;
    gap: 20px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #061a3a;
    min-width: 160px;
    text-decoration: none;
}

.site-brand:hover {
    color: #061a3a;
    text-decoration: none;
}

.site-brand img,
.site-footer__logo img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.site-brand--logo-only {
    min-width: 160px;
}

.site-brand--logo-only span {
    display: none;
}

.site-brand--logo-only img {
    width: 104px;
    height: 46px;
}

.site-brand strong,
.site-footer__logo strong {
    display: block;
    font-size: 31px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.site-brand small,
.site-footer__logo small {
    color: #007547;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 7px;
}

.site-menu {
    align-items: center;
    gap: 0;
    margin-left: auto;
    min-width: 0;
    overflow: visible;
}

.site-menu .dropdown {
    position: relative;
}

.site-menu .dropdown-toggle::after {
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    content: "";
    display: inline-block;
    height: 6px;
    margin-left: 8px;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: center;
    transition: transform 0.2s ease;
    vertical-align: 2px;
    width: 6px;
}

.site-menu .show > .dropdown-toggle::after,
.site-menu .dropdown:hover > .dropdown-toggle::after {
    transform: rotate(225deg) translateY(-1px);
}

.site-menu .nav-link {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    padding: 19px 16px;
    position: relative;
    text-transform: none;
}

.site-menu .nav-link:hover,
.site-menu .nav-link.active,
.site-menu .show > .nav-link {
    color: #fff;
}

.site-menu .nav-link::before {
    background: #2f72ff;
    border-radius: 999px;
    bottom: 6px;
    content: "";
    height: 2px;
    left: 16px;
    opacity: 0;
    position: absolute;
    right: 16px;
    transform: scaleX(0.45);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-menu .nav-link:hover::before,
.site-menu .nav-link.active::before,
.site-menu .show > .nav-link::before {
    opacity: 1;
    transform: scaleX(1);
}

.site-header .site-dropdown {
    background: #fff !important;
    border: 1px solid rgba(215, 225, 236, 0.95) !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 24px 52px rgba(4, 20, 45, 0.18) !important;
    margin-top: 0 !important;
    min-width: 270px;
    padding: 20px 30px 22px !important;
    top: 100%;
    z-index: 9999;
}

.site-header .site-mega-dropdown {
    left: 0;
    max-width: 760px;
    min-width: 520px;
    right: auto;
    width: min(720px, calc(100vw - 32px));
}

.site-header .site-mega-dropdown.dropdown-menu-right {
    left: auto;
    right: 0;
}

.site-dropdown::before {
    content: none;
}

.site-dropdown::after {
    content: none;
}

.site-dropdown.dropdown-menu-right::before {
    left: auto;
    right: 28px;
}

.site-header .site-dropdown .dropdown-item {
    background: transparent !important;
    border-radius: 6px;
    color: #64748b !important;
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    min-height: 38px;
    padding: 8px 0 !important;
    position: relative;
    text-transform: none;
    transition: color 0.2s ease, padding 0.2s ease;
    white-space: normal;
}

.site-header .site-dropdown .dropdown-item + .dropdown-item {
    margin-top: 3px;
}

.site-dropdown .dropdown-item i {
    align-items: center;
    background: #eef8f3;
    border: 1px solid rgba(0, 117, 71, 0.12);
    border-radius: 8px;
    color: #007547;
    display: inline-flex;
    flex: 0 0 32px;
    font-size: 18px;
    height: 32px;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    width: 32px;
}

.site-header .site-dropdown .dropdown-item:hover,
.site-header .site-dropdown .dropdown-item:focus {
    background: transparent !important;
    color: #0754d6 !important;
    padding-left: 6px !important;
    transform: none;
}

.site-dropdown .dropdown-item:hover i {
    background: #007547;
    color: #fff;
}

.site-header .site-mega-title {
    border-bottom: 1px solid #dce4ee;
    color: #0754d6 !important;
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
    padding: 0 0 13px;
}

.site-header .site-mega-columns {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-header .site-mega-columns > div {
    border-top: 1px solid #dce4ee;
    padding-top: 9px;
}

.site-admission-btn {
    align-items: center;
    background: #006d3f;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 800;
    gap: 10px;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(0, 109, 63, 0.2);
}

.site-admission-btn:hover {
    background: #004f34;
    color: #fff;
    text-decoration: none;
}

.site-nav-toggle {
    border: 1px solid #d9e7df;
    color: #006d3f;
    font-size: 26px;
    padding: 6px 12px;
}

.site-footer {
    background: #05233d;
    color: #d7e7f2;
    position: relative;
    overflow: hidden;
    max-width: 100vw;
}

.site-footer::after {
    content: none;
}

.site-footer__main {
    background:
        linear-gradient(90deg, rgba(0, 117, 71, 0.16), transparent 28%),
        linear-gradient(120deg, #07385b 0%, #052844 44%, #031d34 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 54px 0 36px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.55fr) minmax(120px, 0.75fr) minmax(130px, 0.75fr) minmax(155px, 0.9fr) minmax(130px, 0.75fr) minmax(240px, 1.35fr);
    gap: 34px;
    position: relative;
    z-index: 1;
}

.site-footer h3 {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 20px;
    padding-bottom: 12px;
    position: relative;
}

.site-footer h3::after {
    background: #009c62;
    border-radius: 999px;
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    width: 34px;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin-bottom: 11px;
    line-height: 1.45;
}

.site-footer a {
    color: #d7e7f2;
    display: inline-flex;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.site-footer a:hover {
    color: #fff;
    transform: translateX(3px);
}

.site-footer__grid > div:not(.site-footer__brand):not(.site-footer__contact) a {
    white-space: nowrap;
}

.site-footer__brand p {
    font-size: 13px;
    line-height: 1.75;
    margin: 18px 0;
    max-width: 280px;
    opacity: 0.82;
}

.site-footer__logo {
    align-items: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    display: inline-flex;
    justify-content: center;
    min-height: 78px;
    padding: 10px 16px;
    text-decoration: none;
}

.site-footer__logo:hover {
    padding-left: 16px;
    transform: none;
}

.site-footer__logo img {
    height: 58px;
    width: 128px;
    object-fit: contain;
}

.site-footer__logo strong {
    color: #fff;
    font-size: 24px;
    line-height: 1.08;
}

.site-socials--footer a {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    height: 28px;
    justify-content: center;
    line-height: 1;
    width: 28px;
}

.site-socials--footer a:hover {
    border-color: transparent;
    padding-left: 0;
}

.site-socials--footer li:nth-child(1) a {
    background: #1877f2;
}

.site-socials--footer li:nth-child(2) a {
    background: #1da1f2;
}

.site-socials--footer li:nth-child(3) a {
    background: #ff0000;
}

.site-socials--footer li:nth-child(4) a {
    background: #e4405f;
}

.site-socials--footer li a:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

.site-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #d7e7f2;
    font-size: 13px;
    margin-bottom: 13px;
}

.site-footer__contact i {
    align-items: center;
    background: rgba(0, 156, 98, 0.14);
    border-radius: 50%;
    color: #7ee1b4;
    display: inline-flex;
    flex: 0 0 28px;
    height: 28px;
    justify-content: center;
    margin-top: -4px;
    width: 28px;
}

.site-footer__bottom {
    background: #02182c;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 16px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.site-footer__bottom p {
    margin: 0;
    color: #fff;
    font-size: 13px;
}

@keyframes siteSlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .site-menu .dropdown:hover .dropdown-menu {
        display: block;
    }
}

@media (max-width: 1199.98px) {
    .site-menu {
        gap: 13px;
    }

    .site-menu .nav-link {
        font-size: 12px;
    }

    .site-brand strong {
        font-size: 26px;
    }

    .site-admission-btn {
        padding: 0 18px;
    }

    .site-footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 30px 24px;
    }

    .site-footer__contact {
        grid-column: span 2;
    }
}

@media (max-width: 991.98px) {
    .site-topbar__inner,
    .site-topbar__links {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .site-navbar__nav {
        min-height: 82px;
        padding: 10px 0;
    }

    .site-brand {
        min-width: auto;
    }

    .site-brand--logo-only {
        min-width: auto;
    }

    .site-brand img {
        width: 54px;
        height: 54px;
    }

    .site-brand--logo-only img {
        width: 96px;
        height: 50px;
    }

    .site-brand strong {
        font-size: 22px;
    }

    .site-menu {
        align-items: stretch;
        gap: 0;
        margin: 15px 0 0;
    }

    .site-menu .nav-link {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding: 13px 0;
    }

    .site-header .site-dropdown {
        border-radius: 8px !important;
        box-shadow: none !important;
        border: 1px solid rgba(215, 225, 236, 0.95) !important;
        margin-bottom: 10px;
        min-width: 100%;
        padding: 10px 14px !important;
        position: static;
        transform: none;
    }

    .site-header .site-mega-dropdown {
        max-width: none;
        min-width: 100%;
        width: 100%;
    }

    .site-header .site-mega-columns {
        gap: 0;
        grid-template-columns: 1fr;
    }

    .site-dropdown::before,
    .site-dropdown::after {
        content: none;
    }

    .site-header .site-dropdown .dropdown-item {
        min-height: 42px;
        padding: 8px 4px !important;
    }

    .site-header .site-dropdown .dropdown-item:hover {
        transform: none;
    }

    .site-admission-btn {
        margin-left: auto;
        min-height: 42px;
        padding: 0 14px;
    }
}

@media (max-width: 767.98px) {
    .site-topbar__links {
        gap: 12px;
    }

    .site-topbar__links > a {
        display: none;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 22px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }

    .site-footer__contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .site-brand small {
        display: none;
    }

    .site-brand img {
        width: 46px;
        height: 46px;
    }

    .site-brand strong {
        font-size: 18px;
    }

    .site-admission-btn {
        display: none;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .site-footer__main {
        padding: 38px 0 28px;
    }

    .site-footer__brand p {
        max-width: none;
    }
}
