/* =========================================================
   Shared Top Navigation Bar
   Leftmost logo kept as designed; nav buttons & search bar
   upgraded for a refined, production-ready appearance.
   ========================================================= */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
    padding: 10px 28px 10px 0;
    background: rgba(0, 0, 0, 0.7) url(pbg.jpg);
    background-size: cover;
    background-blend-mode: lighten;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    position: relative;
    z-index: 20;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

/* Leftmost logo updated with full Shivam Enterprises logo */
.logo {
    width: 136px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    padding: 4px 5px;
    background-color: #ffffff;
    border: 2px solid rgba(244, 228, 193, 0.78);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: block;
}

.nav-list li {
    list-style: none;
}

.nav-list li a {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.94rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #f4e4c1;
    border: 1px solid transparent;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.16s ease;
    white-space: nowrap;
}

.nav-list li a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(244, 228, 193, 0.28);
    transform: translateY(-1px);
}

.nav-list li a[aria-current="page"] {
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient(180deg, rgba(244, 228, 193, 0.18) 0%, rgba(244, 228, 193, 0.09) 100%);
    border-color: rgba(244, 228, 193, 0.42);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-list li a:focus-visible {
    outline: 2px solid #ead5ad;
    outline-offset: 2px;
}

/* Right Search Bar */
.rightNav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.search-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 5px 4px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(244, 228, 193, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(244, 228, 193, 0.68);
    box-shadow: 0 0 0 3px rgba(244, 228, 193, 0.16), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

#Search {
    width: 190px;
    padding: 4px 0;
    border: none;
    outline: none;
    background: transparent;
    color: #f8fafc;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.9rem;
    transition: width 0.22s ease;
}

#Search::placeholder {
    color: rgba(226, 232, 240, 0.65);
}

#Search:focus {
    width: 220px;
}

.search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #f2dfb7 0%, #d4b16e 100%);
    color: #171a21;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    transition: transform 0.16s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.search-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.search-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* =========================================================
   In-Page Search Highlights & Status Pill
   ========================================================= */
mark.page-search-hit {
    background-color: #fde68a;
    color: #0f172a;
    padding: 0 2px;
    border-radius: 3px;
}

mark.page-search-hit.is-active {
    background-color: #f59e0b;
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
}

.search-status-bar {
    position: fixed;
    bottom: 22px;
    right: 24px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 16px;
    border-radius: 999px;
    background: rgba(20, 23, 29, 0.94);
    border: 1px solid rgba(244, 228, 193, 0.35);
    color: #f8fafc;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.84rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
}

.search-status-bar[hidden] {
    display: none;
}

.search-status-text {
    color: #f4e4c1;
    font-weight: 500;
    white-space: nowrap;
}

.search-status-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.search-nav-btn {
    border: 1px solid rgba(244, 228, 193, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

.search-nav-btn:hover:not(:disabled) {
    background: rgba(244, 228, 193, 0.2);
    border-color: rgba(244, 228, 193, 0.55);
}

.search-nav-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.search-clear-btn {
    background: rgba(143, 36, 29, 0.75);
    border-color: rgba(143, 36, 29, 0.9);
}

.search-clear-btn:hover:not(:disabled) {
    background: #8f241d;
    border-color: #f4e4c1;
}

/* =========================================================
   Responsive Navbar Breakpoints
   ========================================================= */
@media (max-width: 960px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px 16px;
        gap: 12px;
    }

    .nav-list {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .logo {
        width: auto;
        margin-right: 8px;
    }

    .logo img {
        width: 54px;
        height: 54px;
    }

    .nav-list li a {
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    .rightNav {
        width: 100%;
        justify-content: center;
    }

    .search-form {
        width: min(100%, 360px);
        justify-content: space-between;
    }

    #Search,
    #Search:focus {
        width: 100%;
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 540px) {
    .navbar {
        padding: 10px 12px;
    }

    .nav-list {
        gap: 4px;
    }

    .nav-list li a {
        padding: 7px 11px;
        font-size: 0.85rem;
    }

    .search-status-bar {
        top: auto;
        bottom: 16px;
        right: 12px;
        left: 12px;
        justify-content: space-between;
    }
}

/* =========================================================
   Shared Site Footer (Copyright Line)
   ========================================================= */
.site-footer {
    background-color: #14171d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    text-align: center;
    padding: 15px 20px;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.copyright-line {
    display: inline-block;
    font-variant-numeric: tabular-nums lining-nums;
}
