/* =========================================
   Hero Section - Restored Banner
========================================= */
#home {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 500px;
    align-items: center;
    overflow: visible;
    padding: 54px 0;
    background-image: url(/staticfiles/back.png);
    background-attachment: scroll;
    background-position: top center;
    background-repeat: repeat;
    background-size: 225px 225px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 60, 97, .08);
    pointer-events: none;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
}

.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}

.hero-logos,
#back_logo,
#back_flag {
    display: none;
}

.hero-container {
    width: min(780px, 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 38px 42px 34px;
    border-right: 5px solid #d4b568;
    border-radius: 15px 0 0 15px;
    background: linear-gradient(90deg, rgba(15, 23, 42, .88), rgba(8, 80, 118, .76));
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .42);
    backdrop-filter: blur(10px);
    overflow: visible;
}

.hero-title {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(34px, 4.2vw, 50px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.45;
}

.hero-subtitle {
    margin: 0;
    color: #cbd5e1 !important;
    font-size: clamp(16px, 1.55vw, 20px);
    font-weight: 750;
    line-height: 2;
}

.highlight-text {
    color: #d4b568 !important;
    font-size: 1.06em;
    font-weight: 900;
}

.home-menu-shell {
    position: sticky;
    top: var(--mpte-sticky-header-offset, 112px);
    z-index: 9000;
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.hero-menu {
    position: relative;
    z-index: 9010;
    display: flex;
    width: 100%;
    max-width: 1280px;
    min-height: 56px;
    margin: 0 auto;
    padding: 0 5%;
    flex-wrap: nowrap;
    gap: 28px;
    align-items: center;
    justify-content: flex-start;
}

.hero-menu-group {
    position: relative;
    z-index: 9020;
    display: flex;
    min-height: 56px;
    align-items: center;
}

.hero-menu-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 19px 0 17px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #172033;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.5;
    cursor: default;
    box-shadow: none;
    letter-spacing: 0;
    transition: color .18s ease, transform .18s ease;
}

.hero-menu-title::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: #0d4d73;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s ease;
}

.hero-menu-title::after {
    content: "";
    width: 6px;
    height: 6px;
    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    margin-top: -3px;
    opacity: .7;
    transition: transform .22s ease;
}

.hero-menu-group:hover .hero-menu-title,
.hero-menu-group:focus-within .hero-menu-title {
    transform: translateY(-1px);
    color: #0d4d73;
}

.hero-menu-group:hover .hero-menu-title::before,
.hero-menu-group:focus-within .hero-menu-title::before {
    transform: scaleX(1);
}

.hero-menu-group:hover .hero-menu-title::after,
.hero-menu-group:focus-within .hero-menu-title::after {
    transform: rotate(135deg);
}

.hero-submenu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 9030;
    display: grid;
    min-width: 240px;
    padding: 10px;
    border: 1px solid rgba(226, 232, 240, .98);
    border-radius: 0 0 10px 10px;
    background: rgba(255, 255, 255, .99);
    box-shadow: 0 24px 54px rgba(15, 23, 42, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transform-origin: top right;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.hero-menu-group:hover .hero-submenu,
.hero-menu-group:focus-within .hero-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.hero-submenu a {
    display: block;
    padding: 11px 12px;
    border-radius: 7px;
    color: #172033;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.hero-submenu a:hover,
.hero-submenu a:focus {
    background: #f2f7f7;
    color: #0d4d73;
    transform: translateX(-3px);
}

.hero-left {
    position: relative;
    flex: 0 0 320px;
    display: block;
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }

    100% {
        transform: translateY(0);
    }
}

#back_leader {
    display: block;
    width: 300px;
    height: 400px;
    border-radius: 12px;
    background-image: url(/staticFiles/leader.jpg);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .16),
        0 0 0 8px rgba(212, 181, 104, .52),
        0 30px 40px rgba(0, 0, 0, .48);
    animation: floatImage 6s ease-in-out infinite;
}

:root[data-theme="dark"] #home {
    background-image: url(/staticfiles/back.png);
    background-repeat: repeat;
    background-size: 225px 225px;
}

:root[data-theme="dark"] .hero-content {
    background: linear-gradient(90deg, rgba(15, 23, 42, .88), rgba(8, 80, 118, .76));
}

:root[data-theme="dark"] .home-menu-shell {
    background: rgba(255, 255, 255, .98);
    border-bottom-color: rgba(15, 23, 42, .08);
}

:root[data-theme="dark"] .hero-menu-title {
    color: #172033;
}

:root[data-theme="dark"] .hero-menu-group:hover .hero-menu-title,
:root[data-theme="dark"] .hero-menu-group:focus-within .hero-menu-title {
    color: #0d4d73;
}

@media (max-width: 1100px) {
    #home {
        min-height: auto;
        padding: 40px 0;
        background-attachment: scroll;
    }

    .hero-content-wrapper {
        flex-direction: column-reverse;
        gap: 34px;
        text-align: center;
    }

    .hero-right {
        align-items: center;
    }

    .hero-content {
        border-right: 0;
        border-top: 5px solid #d4b568;
        border-radius: 0 0 15px 15px;
        text-align: center;
    }

    .hero-menu {
        gap: 18px;
        justify-content: center;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .hero-left {
        flex-basis: auto;
    }

    #back_leader {
        width: 240px;
        height: 320px;
    }
}

@media (max-width: 760px) {
    #home {
        padding: 28px 0;
    }

    .hero-content-wrapper {
        padding: 0 14px;
    }

    .hero-left {
        display: none;
    }

    .hero-content {
        padding: 24px 20px;
        text-align: right;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .home-menu-shell {
        display: none;
    }
}
