/* ── Shared Navigation — Sunrise Education Academy ── */
#shared-header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    padding: 0.85rem 2rem;
    position: fixed;
    width: 100%; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
#shared-header nav {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.sh-brand {
    display: flex; align-items: center; gap: 0.8rem;
    text-decoration: none; flex-shrink: 0;
}
.sh-brand img { height: 46px; width: auto; }
.sh-brand span {
    color: white; font-family: 'Playfair Display', serif;
    font-size: 1.1rem; font-weight: 600;
}
.sh-links {
    display: flex; gap: 1.8rem; list-style: none;
    align-items: center; margin: 0; padding: 0;
}
.sh-links a {
    color: rgba(255,255,255,0.88); text-decoration: none;
    font-weight: 500; font-size: 0.92rem; transition: color 0.25s;
}
.sh-links a:hover, .sh-links a.active { color: #ed8936; }
/* Dropdown */
.sh-links li { position: relative; }
.sh-links .sh-has-sub > a::after { content: ' ▾'; font-size: 0.7rem; opacity: 0.7; }
.sh-has-sub::after {
    content: ''; position: absolute; left: 0; top: 100%;
    width: 100%; height: 0.65rem; pointer-events: auto;
}
.sh-submenu {
    display: none; position: absolute;
    top: calc(100% + 0.6rem); left: 50%; transform: translateX(-50%);
    background: white; border-radius: 8px; min-width: 170px;
    box-shadow: 0 8px 24px rgba(26,54,93,0.18); overflow: hidden;
    z-index: 200; list-style: none; padding: 0;
}
.sh-submenu::before {
    content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
    border-left: 6px solid transparent; border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}
.sh-submenu li a {
    display: block; padding: 0.65rem 1.1rem;
    color: #1a365d; font-size: 0.88rem; font-weight: 500;
    white-space: nowrap; transition: background 0.15s;
}
.sh-submenu li a:hover { background: #f0f4f8; color: #ed8936; }
.sh-submenu li + li { border-top: 1px solid #e2e8f0; }
.sh-has-sub:hover .sh-submenu,
.sh-has-sub:focus-within .sh-submenu { display: block; }
/* Right side extras (lang toggle, etc.) */
.sh-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
/* Language toggle */
.lang-toggle { display: flex; border: 1.5px solid rgba(255,255,255,0.35); border-radius: 6px; overflow: hidden; }
.lang-btn { background: transparent; color: rgba(255,255,255,0.7); border: none; padding: 0.28rem 0.65rem; font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: 'Open Sans', sans-serif; transition: background 0.15s, color 0.15s; }
.lang-btn.active { background: white; color: #1a365d; font-weight: 700; }
.lang-btn:hover:not(.active) { color: white; }
.sh-mobile-btn {
    display: none; background: none; border: none;
    color: white; font-size: 1.5rem; cursor: pointer; padding: 0.2rem;
}
/* Mobile */
@media (max-width: 768px) {
    .sh-links { display: none; }
    .sh-links.mobile-open {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; top: 100%; left: 0; right: 0;
        background: #1a365d; padding: 0.5rem 0;
        box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }
    .sh-links.mobile-open li { padding: 0; }
    .sh-links.mobile-open a { padding: 0.75rem 1.5rem; display: block; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .sh-submenu { position: static; transform: none; box-shadow: none; background: rgba(255,255,255,0.05); border-radius: 0; display: block !important; }
    .sh-submenu li a { color: rgba(255,255,255,0.8); padding: 0.5rem 2.2rem; font-size: 0.85rem; }
    .sh-mobile-btn { display: block; }
    #shared-header nav { position: relative; }
}
@media (max-width: 480px) {
    #shared-header { padding: 0.7rem 1rem; }
    .sh-brand span { font-size: 0.95rem; }
    .sh-brand img { height: 38px; }
    .lang-btn { padding: 0.22rem 0.5rem; font-size: 0.75rem; }
}
