:root {
    --si-navy: #0B1F3A;
    --si-charcoal: #1D1D1D;
    --si-gold: #B08D57;
    --si-bg: #ffffff;
    --si-topbar-bg: #ffffff;
    --si-text: #1D1D1D;
    --si-text-soft: #555;
    --si-border: #e5e7eb;
    --si-logo-bg: #ffffff;
    --si-subnav-bg: #ffffff;
    --si-font-en: 'Libre Baskerville', serif;
    --si-font-hi: 'Noto Sans Devanagari', 'Nirmala UI', sans-serif;
}

body {
    font-family: var(--si-font-en);
    background: var(--si-bg);
    color: var(--si-text);
}

.si-logo-row {
    background: var(--si-topbar-bg);
    border-bottom: 1px solid var(--si-border);
    padding: 15px 0 10px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}
.si-logo-row-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}
.si-logo-date {
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(8px, 2.2vw, 12px);
    font-weight: 500;
    color: var(--si-text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.si-logo-center {
    justify-self: center;
    min-width: 0;
    position: relative;
}
.si-logo-row .navbar-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.si-logo-patch {
    display: none;
}
.si-logo-social {
    justify-self: end;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: clamp(4px, 1.5vw, 10px);
    flex-shrink: 0;
}
.custom-logo,
.site-logo {
    height: clamp(36px, 8vw, 56px);
    width: auto;
    max-width: clamp(130px, 34vw, 240px);
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.si-logo-text {
    font-family: var(--si-font-hi);
    font-size: clamp(16px, 4.5vw, 26px);
    font-weight: 700;
    color: var(--si-navy);
    white-space: nowrap;
}
.si-social {
    width: clamp(24px, 6vw, 32px);
    height: clamp(24px, 6vw, 32px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--si-border);
    color: var(--si-navy);
    text-decoration: none;
    border-radius: 4px;
    font-size: clamp(10px, 2.6vw, 14px);
    flex-shrink: 0;
    transition: .25s;
}
.si-social:hover {
    background: var(--si-navy);
    border-color: var(--si-navy);
    color: #fff;
}

.si-navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #0B1F3A 0%, #163661 50%, #0B1F3A 100%);
    padding: 0;
}
.si-navbar-inner {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    height: 54px;
    gap: 14px;
    overflow: hidden;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.navbar-nav::-webkit-scrollbar { display: none; }
.navbar-nav .menu-item { flex-shrink: 0; }
.navbar-nav .menu-item a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: .2s;
}
.navbar-nav .menu-item a:hover { color: var(--si-gold); }

.si-search-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
}
.si-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--si-navy);
    border: 1.5px solid #ffffff;
    border-radius: 6px;
    overflow: hidden;
}
.si-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 9px 14px;
    font-size: 14px;
    color: #ffffff;
    background: transparent;
}
.si-search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}
.si-search-btn {
    border: none;
    background: #000000 !important;
    color: #fff;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 0 !important;
}
.si-search-btn:hover { background: #1a1a1a !important; }

.si-epaper-btn {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    background:#B08D57;
    border: 1.5px solid #ffffff;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: .2s;
}
.si-epaper-btn:hover {
    background: var(--si-gold) !important;
    border-color: var(--si-gold);
    color: var(--si-navy) !important;
}

.si-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.si-nav-social {
    flex-shrink: 0;
    gap: 8px;
}

button.theme-toggle,
.theme-toggle {
    width: 46px !important;
    height: 46px !important;
    background: linear-gradient(135deg, rgba(11,31,58,.08), rgba(11,31,58,.03)) !important;
    border: 2px solid var(--si-navy) !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(11, 31, 58, .15);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.theme-toggle:hover {
    transform: rotate(15deg) scale(1.08);
    border-color: var(--si-gold) !important;
    box-shadow: 0 4px 10px rgba(11, 31, 58, .25);
}
.theme-toggle i {
    font-size: 19px;
    color: var(--si-navy);
    position: absolute;
    transition: opacity .3s ease, transform .3s ease, color .3s ease;
}
.theme-toggle .theme-icon-sun { opacity: 0; transform: scale(.5) rotate(-90deg); }
.theme-toggle .theme-icon-moon { opacity: 1; transform: scale(1) rotate(0deg); }
body.dark-mode .theme-toggle .theme-icon-sun { opacity: 1; transform: scale(1) rotate(0deg); }
body.dark-mode .theme-toggle .theme-icon-moon { opacity: 0; transform: scale(.5) rotate(90deg); }

.si-subnav {
    background: var(--si-subnav-bg);
    border-bottom: 1px solid var(--si-border);
    overflow: hidden;
    width: 100%;
}
.si-subnav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    list-style: none;
    margin: 0 auto;
    padding: 12px 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
}
.si-subnav-menu::-webkit-scrollbar { display: none; }
.si-subnav-menu .menu-item { flex-shrink: 0; }
.si-subnav-menu .menu-item a {
    display: inline-block;
    color: var(--si-charcoal);
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 16px;
    border: 1.5px solid var(--si-border);
    border-radius: 28px;
    transition: .2s;
}
.si-subnav-menu .menu-item a:hover {
    color: var(--si-navy);
    background: rgba(176, 141, 87, .12);
    border-color: var(--si-gold);
}

.offcanvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    width: 280px !important;
    max-width: 85vw;
    background: #fff;
    z-index: 10500;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform .3s ease-in-out, visibility .3s ease-in-out;
    overflow-y: auto;
}
.offcanvas.show,
.offcanvas.showing {
    visibility: visible;
    transform: translateX(0);
}
.offcanvas-header {
    background: var(--si-navy);
    padding: 16px 18px;
}
.offcanvas-header h5 {
    color: #fff;
    font-family: var(--si-font-hi);
    margin: 0;
}
.offcanvas-header .btn-close {
    filter: invert(1) brightness(2);
    opacity: .9;
}
.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-menu li { border-bottom: 1px solid var(--si-border); }
.mobile-menu li a {
    display: block;
    padding: 12px 4px;
    color: var(--si-charcoal);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.mobile-menu li a:hover { color: var(--si-gold); }

@media (max-width: 991px) {
    .si-logo-row { padding: 13px 0 8px; }

    .navbar-nav { display: none; }

    .si-hamburger  { order: 1; }
    .si-epaper-btn { order: 2; }
    .si-search-wrap {
        order: 3;
        flex: 1 1 auto;
        min-width: 0;
    }
    .si-nav-social { order: 4; }

    button.theme-toggle,
    .theme-toggle {
        width: 42px !important;
        height: 42px !important;
    }
    .theme-toggle i { font-size: 17px; }

    .si-subnav-menu {
        padding-top: 8px;
        padding-bottom: 8px;
        padding-left: 16px;
        padding-right: 16px;
        gap: 10px;
    }
}
@media (max-width: 480px) {
    .si-logo-row { padding: 11px 0 7px; }
    .si-navbar-inner { gap: 8px; }
    .si-icon-btn { width: 32px; height: 32px; font-size: 14px; }
    .si-epaper-btn {
        height: 32px;
        padding: 0 10px;
        font-size: 11px;
    }
    .si-search-btn { width: 34px; height: 34px; }
    .si-search-input { padding: 7px 10px; font-size: 13px; }
    button.theme-toggle,
    .theme-toggle {
        width: 38px !important;
        height: 38px !important;
    }
    .theme-toggle i { font-size: 15px; }
    .si-subnav-menu {
        padding-left: 14px;
        padding-right: 14px;
        gap: 8px;
    }
    .si-nav-social { gap: 5px; }
}

@media (min-width: 992px) {
    .si-icon-btn.si-hamburger { display: none; }

    .navbar-nav {
        display: flex;
        order: 1;
        flex: 1 1 auto;
        min-width: 0;
    }
    .si-search-wrap {
        order: 2;
        flex: 0 0 280px;
    }
    .si-epaper-btn { order: 3; }
    .si-nav-social { order: 4; }
}
@media (min-width: 1200px) {
    .si-subnav-menu { justify-content: center; }
}