/* ===============================================
   Inner English — shared site header
   Used by every page through js/site-header.js.
   Class names use the "sh-" prefix so no page stylesheet can override them.
   =============================================== */

html {
    scroll-padding-top: 95px; /* anchor jumps land below the fixed header */
}

.sh-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    font-family: 'Quicksand', 'Poppins', system-ui, sans-serif;
    line-height: 1.6;
}

.sh-header *,
.sh-header *::before,
.sh-header *::after {
    box-sizing: border-box;
}

.sh-container {
    position: relative;
    max-width: 1200px;
    height: 85px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hamburger */
.sh-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    margin: 0;
    background: none;
    border: 0;
    cursor: pointer;
    z-index: 1001;
}

.sh-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: #0f172a;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.sh-toggle:hover span { background: #14b8a6; }
.sh-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.sh-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sh-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* Centered logo */
.sh-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    line-height: 0;
}

.sh-logo img {
    display: block;
    height: 75px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sh-logo:hover img { transform: scale(1.05); }

/* Slide-in menu */
.sh-menu {
    position: fixed;
    top: 85px;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: calc(100vh - 85px);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #fff;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sh-menu.is-open { right: 0; }

.sh-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: #475569;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sh-link:hover,
.sh-link[aria-current="page"] {
    background: #f8fafc;
    color: #14b8a6;
}

.sh-link:hover { transform: translateX(5px); }

.sh-student,
.sh-lang,
.sh-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sh-student:hover,
.sh-lang:hover,
.sh-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.sh-student { margin-top: 1rem; background: linear-gradient(90deg, #6b48ff, #a832c2); }
.sh-lang    { background: linear-gradient(90deg, #18b1cb, #03d1f5); }
.sh-cta     { background: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%); }

.sh-student span:last-child { font-size: 1.2rem; }

/* Dimmed backdrop behind the open menu */
.sh-overlay {
    position: fixed;
    top: 85px;
    left: 0;
    width: 100%;
    height: calc(100vh - 85px);
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
}

.sh-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Room for the fixed header on pages that don't reserve it themselves */
.sh-spacer { height: 85px; }

@media (max-width: 640px) {
    html { scroll-padding-top: 85px; }
    .sh-container { height: 75px; padding: 0 1rem; }
    .sh-logo img { height: 65px; }
    .sh-menu { top: 75px; height: calc(100vh - 75px); width: 280px; }
    .sh-overlay { top: 75px; height: calc(100vh - 75px); }
    .sh-spacer { height: 75px; }
}
