/* Navigation */
.navbar {
    padding: 20px 0;
    background: transparent;
    position: absolute;
    width: 100%;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 21px;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1;
}

.logo-subtext {
    font-size: 9px;
    color: var(--dark-blue);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--nav-text);
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--royal-blue);
    border-bottom: 2px solid var(--royal-blue);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.icon-btn {
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--nav-text);
    transition: background 0.3s;
}

.icon-btn:hover {
    background: #e5e7eb;
}

/* Buttons */
.btn {
    padding: 15px 35px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-family: var(--font-inter);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background-color: var(--dark-blue);
    color: white;
    font-weight: 600;
    font-size: 21px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(16, 42, 106, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 42, 106, 0.4);
}


/* ── Header icon menus (search + account) ──────────────────────────────────
   The panels hang off the icon cluster in the header bar. Plain CSS rather
   than Tailwind utilities so the markup needs no rebuild of tailwind.min.css.
   The cluster itself is desktop-only; on mobile these live in the drawer. */
.icon-menu {
    position: relative;
    display: none;
}

@media (min-width: 1024px) {
    .icon-menu {
        display: block;
    }
}

.icon-menu-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(16, 42, 106, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.25s;
    z-index: 70;
}

/* Bridges the gap between the icon and its panel so a hover-opened menu
   survives the trip down to it. */
.icon-menu-panel::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

.account-menu:hover > .icon-menu-panel,
.account-menu:focus-within > .icon-menu-panel,
.icon-menu.is-open > .icon-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.icon-menu.is-open > .icon-menu-toggle {
    background: #e6edff;
    color: #2962ff;
}

/* Account menu */
.account-menu-panel {
    min-width: 240px;
}

.account-menu-link {
    display: block;
    padding: 0.6rem 1.25rem;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.account-menu-link:hover {
    background: #f3f6fd;
    color: #102a6a;
}

.account-menu-link--primary {
    color: #2962ff;
    font-weight: 600;
}

/* Header search */
.icon-menu-panel--search {
    padding: 12px;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search-form input {
    width: 300px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    color: #1f2937;
    background: #fff;
}

.header-search-form input::placeholder {
    color: #9aa3af;
}

.header-search-form input:focus {
    outline: none;
    border-color: #2962ff;
}

.header-search-form button {
    border: 0;
    border-radius: 10px;
    background: #2962ff;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.header-search-form button:hover {
    background: #1e4fd8;
}

/* Drawer search — the mobile stand-in for the header search icon. */
.mobile-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 0;
}

.mobile-search-form input {
    flex: 1;
    min-width: 0;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    color: #1f2937;
    background: #fff;
}

.mobile-search-form input:focus {
    outline: none;
    border-color: #2962ff;
}

.mobile-search-form button {
    border: 0;
    border-radius: 10px;
    background: #2962ff;
    color: #fff;
    padding: 0.55rem 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
