/* Public IELTS landing navbar only; learner navigation has its own component. */
.ielts-home-navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    background: #fffefa;
    border-bottom: 1px solid #e5e8df;
    color: #37473d;
    font-size: 13px;
    line-height: 1.4;
}
.ielts-home-nav-container {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.ielts-home-brand-group, .ielts-home-brand, .ielts-home-desktop-nav,
.ielts-home-utilities, .ielts-home-desktop-actions {
    display: flex;
    align-items: center;
}
.ielts-home-brand-group { gap: 12px; flex-shrink: 0; }
.ielts-home-brand { gap: 9px; color: #455b48; font-size: 20px; font-weight: 700; text-decoration: none; }
.ielts-home-brand img { width: 36px; height: 36px; object-fit: contain; }
.ielts-home-desktop-nav { gap: 2px; margin-left: auto; }
.ielts-home-utilities { gap: 12px; margin-left: auto; flex-shrink: 0; }
.ielts-home-desktop-actions { gap: 8px; }
.ielts-home-navbar a { text-decoration: none; }
.ielts-home-navbar summary { list-style: none; cursor: pointer; }
.ielts-home-navbar summary::-webkit-details-marker { display: none; }
.ielts-home-navbar summary, .ielts-home-nav-link, .ielts-home-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 11px;
    border-radius: 8px;
    color: #37473d;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 150ms ease, color 150ms ease;
}
.ielts-home-navbar summary:hover, .ielts-home-nav-link:hover,
.ielts-home-disclosure[open] > summary { background: #edf1e9; color: #254632; }
.ielts-home-navbar :is(a, summary, button):focus-visible { outline: 2px solid #457153; outline-offset: 3px; }
.ielts-home-disclosure { position: relative; flex-shrink: 0; }
.ielts-home-exam > summary { padding-inline: 10px; font-size: 12px; font-weight: 650; letter-spacing: .035em; color: #35533c; background: #edf1e9; }
.ielts-home-chevron, .ielts-home-globe { flex-shrink: 0; }
.ielts-home-navbar details[open] > summary > .ielts-home-chevron { transform: rotate(180deg); }
.ielts-home-dropdown-panel {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    width: 248px;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
    padding: 8px;
    background: #fffefa;
    border: 1px solid #dfe5db;
    border-radius: 12px;
    box-shadow: 0 10px 28px #203b2914;
}
.ielts-home-tests-dropdown-menu { left: 0; right: auto; width: 208px; }
.ielts-home-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    color: #37473d;
    border-radius: 7px;
    font-weight: 500;
}
.ielts-home-dropdown-item:hover, .ielts-home-dropdown-item[aria-current] { background: #edf1e9; color: #254632; }
.ielts-home-menu-label { margin: 0; padding: 8px 12px 5px; color: #69756a; font-size: 11px; font-weight: 600; }
.ielts-home-current { font-size: 11px; color: #526c55; }
.ielts-home-resource-group + .ielts-home-resource-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid #e5e8df; }
.ielts-home-language-note { margin: 0; padding: 8px 12px; font-size: 12px; line-height: 1.6; color: #69756a; }
.ielts-home-navbar .ielts-home-nav-cta { padding-inline: 18px; background: #344f3b; color: #fff; font-weight: 600; }
.ielts-home-navbar .ielts-home-nav-cta:hover { background: #263f2d; }
.ielts-home-navbar .auth-only { display: none !important; }
html.pre-auth .ielts-home-navbar .auth-only,
body.authenticated .ielts-home-navbar .auth-only { display: inline-flex !important; }
html.pre-auth .ielts-home-navbar .anonymous-only,
body.authenticated .ielts-home-navbar .anonymous-only,
.ielts-home-navbar .hidden { display: none !important; }
.ielts-home-mobile-menu, .ielts-home-mobile-menu-button { display: none; }
@media (max-width: 1199px) {
    .ielts-home-desktop-nav, .ielts-home-desktop-actions { display: none; }
    .ielts-home-mobile-menu-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: #37473d; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
    .ielts-home-mobile-menu-button:hover, .ielts-home-mobile-menu-button[aria-expanded="true"] { background: #edf1e9; }
    .ielts-home-mobile-menu.show { display: block; }
    .ielts-home-mobile-menu { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 65px); overflow-y: auto; padding: 12px 24px 20px; background: #fffefa; border-bottom: 1px solid #dfe5db; box-shadow: 0 12px 24px #203b2914; }
    .ielts-home-mobile-primary .ielts-home-nav-link { display: flex; justify-content: flex-start; min-height: 48px; }
    .ielts-home-mobile-resources { border-top: 1px solid #e5e8df; margin-top: 8px; padding-top: 8px; }
    .ielts-home-mobile-resources > summary { display: flex; justify-content: space-between; }
    .ielts-home-mobile-resources .ielts-home-resource-group { margin-inline: 8px; }
    .ielts-home-mobile-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; border-top: 1px solid #e5e8df; margin-top: 12px; padding-top: 16px; }
}
@media (max-width: 480px) {
    .ielts-home-nav-container { padding-inline: 12px; gap: 8px; }
    .ielts-home-brand span { display: none; }
    .ielts-home-brand-group { gap: 6px; }
    .ielts-home-utilities { gap: 4px; }
    .ielts-home-navbar summary { padding-inline: 8px; }
    .ielts-home-exam .ielts-home-tests-dropdown-menu { left: -42px; }
    .ielts-home-mobile-menu { padding-inline: 16px; }
}
