/* ============================================================
   navbar.css  —  Single source of truth for the top navbar.
   Linked on every page of the site. Do NOT add navbar rules
   anywhere else (not in index.css, not in inline <style>).
   ============================================================ */

/* ── Bar ──────────────────────────────────────────────── */
#top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    background-color: #1a2744;
    color: rgba(255,255,255,0.9);
    z-index: 600;
    box-sizing: border-box;
}

/* ── Logo ─────────────────────────────────────────────── */
#logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0.3;
}

#logo p {
    font-size: 0.9rem;
    margin: 0;
    font-family: Arial, sans-serif;
    color: rgba(255,255,255,0.75);
    font-weight: normal;
}

/* ── Nav links ────────────────────────────────────────── */
#top-navbar .nav-links {
    display: flex;
    justify-content: space-around;
    flex: 1;
    gap: 16px;
}

#top-navbar .nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.88);
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: normal;
}

#top-navbar .nav-links a:hover {
    text-decoration: underline;
}

/* ── Search box ───────────────────────────────────────── */
#top-navbar .search-box {
    width: 100%;
    max-width: 300px;
    background: #fff;
    border-radius: 5px;
    position: relative;
}

#top-navbar .row {
    display: flex;
    align-items: center;
    padding: 6px 14px;
}

#input-box {
    flex: 1;
    height: 40px;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 16px;
    color: #333;
}

#input-box::placeholder {
    color: #555;
}

#top-navbar button {
    background: transparent;
    border: 0;
    outline: 0;
    cursor: pointer;
}

#top-navbar .fa-solid {
    width: 22px;
    color: #555;
    font-size: 20px;
    cursor: pointer;
}

/* ── Search results dropdown ──────────────────────────── */
.result-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 0 0 5px 5px;
}

.result-box ul {
    border-top: 1px solid #ccc;
    padding: 8px;
    margin: 0;
    list-style: none;
}

.result-box li {
    border-radius: 3px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.result-box li:hover {
    background: #e9f3ff;
}

/* ── Body offset for fixed navbar ─────────────────────── */
body {
    padding-top: 90px;
}

/* ── Footer layout ───────────────────────────────────── */
footer {
    background-color: #1a2744;
    color: rgba(255,255,255,0.7);
    padding: 32px 24px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto 28px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-col strong {
    color: rgba(255,255,255,0.9);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 4px;
    font-family: Arial, sans-serif;
}

.footer-col a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.87rem;
    font-family: Arial, sans-serif;
}

.footer-col a:hover { color: #c9a84c; }

.social-links { display: flex; flex-direction: column; gap: 9px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-top: 18px;
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    margin: 5px 0;
    font-family: Arial, sans-serif;
}

.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom a:hover { color: #c9a84c; }
.footer-disclaimer { font-size: 0.7rem; }

/* ── Newsletter section ──────────────────────────────── */
.newsletter-section {
    background: #1a3a5c;
    padding: 36px 20px;
    text-align: center;
}

.newsletter-inner {
    max-width: 520px;
    margin: 0 auto;
}

.newsletter-section h3 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 6px;
    font-family: Arial, sans-serif;
}

.newsletter-section p {
    color: rgba(255,255,255,0.68);
    font-size: 0.88rem;
    margin-bottom: 18px;
    font-family: Arial, sans-serif;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 440px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 11px 14px;
    border: none;
    border-radius: 4px;
    font-size: 0.92rem;
    outline: none;
    min-width: 0;
}

.newsletter-form button {
    padding: 11px 20px;
    background: #c9a84c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.88rem;
    white-space: nowrap;
    font-family: Arial, sans-serif;
}

.newsletter-form button:hover { background: #b8923e; }

@media (max-width: 480px) {
    .newsletter-form { flex-direction: column; }
}

/* ── Wise partner banner (footer) ────────────────────── */
.wise-banner {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 24px;
}

.wise-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.wise-logo {
    width: 38px;
    height: 38px;
    background: #9fe870;
    color: #163300;
    font-size: 1.1rem;
    font-weight: 900;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: Arial, sans-serif;
    text-decoration: none;
}

.wise-text {
    flex: 1;
    min-width: 180px;
}

.wise-text strong {
    display: block;
    color: rgba(255,255,255,0.9);
    font-size: 0.88rem;
    margin-bottom: 3px;
    font-family: Arial, sans-serif;
}

.wise-text span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    font-family: Arial, sans-serif;
}

.wise-btn {
    background: #9fe870;
    color: #163300;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 9px 20px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: Arial, sans-serif;
    transition: background 0.2s;
}

.wise-btn:hover {
    background: #b5f585;
    color: #163300;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    #top-navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 16px;
    }

    #top-navbar .nav-links {
        width: 100%;
        font-size: 14px;
        flex-wrap: wrap;
    }

    #top-navbar .search-box {
        max-width: 100%;
    }

    body {
        padding-top: 160px;
    }
}
