/* ========================================== */
/* HEADER STYLES (Dr Pathik - Final)          */
/* ========================================== */

:root {
    --bg-color: #FFFDF9;
    --section-bg: #F0E4D2;
    --heading-color: #493321;
    --btn-color: #805633;
    --body-text: #30271F;
    --font-heading: 'Playfair Display', 'Noto Serif Devanagari', serif;
    --font-body: 'Inter', 'Noto Sans Devanagari', sans-serif;
}

.topbar-container {
    background-color: var(--bg-color);
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid var(--section-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    position: relative;
    z-index: 1000;
}

/* Desktop: Flex Row */
.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

/* --- LEFT: Logo --- */

.logo-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.topbar-left { flex-shrink: 0; }
.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.logo-icon {
    width: 60px;
    height: 60px;
    background-color: var(--section-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-icon svg { width: 20px; height: 20px; }
.brand-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

/* --- CENTER: Search Bar --- */
.topbar-center {
    flex-grow: 1;
    max-width: 650px;
    min-width: 0;
}

.search-form {
    display: flex;
    background: white;
    border: 1.5px solid #FBCFE8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 40px;
}
.search-form:focus-within {
    border-color: var(--btn-color);
    box-shadow: 0 0 0 3px rgba(128, 86, 51, 0.1);
}
.search-input {
    width: 100%;
    padding: 0 12px;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--body-text);
    background: transparent;
    min-width: 0;
}
.search-input::placeholder { color: #A39A91; }
.search-btn {
    background-color: var(--btn-color);
    border: none;
    padding: 0 18px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
.search-btn:hover { background-color: #6A4527; }
.search-btn svg { width: 16px; height: 16px; }

/* --- RIGHT: Actions --- */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.auth-btn {
    text-decoration: none;
    color: var(--heading-color);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border: 1.5px solid var(--section-bg);
    border-radius: 24px;
    transition: all 0.2s;
    background-color: transparent;
    white-space: nowrap;
}
.auth-btn:hover {
    border-color: var(--btn-color);
    background-color: white;
}

.grid-menu-btn {
    background: #F3EFE9;
    border: 1px solid #E2DCD3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}
.grid-menu-btn svg { width: 20px; height: 20px; display: block; }
.grid-menu-btn:hover { background: #EAE3D9; border-color: #D1C7B8; }

/* ========================================== */
/* SIDEBAR MENU                               */
/* ========================================== */

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

.sidebar-menu {
    position: fixed;
    top: 0;
    right: -540px;
    width: 540px;
    max-width: 90%;
    height: 100vh;
    background-color: #FFFFFF;
    box-shadow: -5px 0 25px rgba(0,0,0,0.08);
    z-index: 1999;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar-menu.active { right: 0; }

.sidebar-menu-inner {
    padding: 24px 30px 50px 30px;
    display: flex;
    flex-direction: column;
}

.sidebar-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #F0E4D2;
}
.menu-brand-badge {
    background-color: #493321;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.badge-star { color: #FCD34D; }
.menu-top-actions { display: flex; align-items: center; gap: 10px; }
.menu-login-btn {
    text-decoration: none;
    color: #493321;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 14px;
    border: 1.5px solid #E2DCD3;
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}
.menu-login-btn:hover { border-color: #805633; }
.menu-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #A39A91;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
}
.menu-close-btn:hover { color: #493321; }
.sidebar-mobile-menu-item{display:none}

.sidebar-menu-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}
.menu-column { display: flex; flex-direction: column; }
.menu-heading {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #A39A91;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 0;
}
.menu-heading a { color: inherit; text-decoration: none; }
.menu-heading a:hover { color: #805633; }
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.menu-list li a {
    padding: 6px 0 !important;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.4;
    color: #374151 !important;
    margin-bottom: 2px;
    text-decoration: none;
    cursor: pointer;
    display: block;
    background: transparent !important;
    border-radius: 6px;
    transition: color .12s;
}
.menu-list li a:hover { color: #805633 !important; }
.menu-list li .menu-list-action{width:100%;padding:6px 0;border:0;background:transparent;color:#374151;font:500 14px/1.4 var(--font-body);text-align:left;cursor:pointer}
.menu-list li .menu-list-action:hover,.menu-list li .menu-list-action:focus-visible{color:#805633;outline:none}

.social-icons { display: flex; gap: 10px; }
.social-icon {
    width: 34px;
    height: 34px;
    background: #F0E4D2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #493321;
    font-size: 0.65rem;
    font-weight: bold;
    font-family: var(--font-body);
    transition: all 0.2s;
}
.social-icon:hover { background: #805633; color: white; }

.app-download-btn { display: inline-block; transition: opacity 0.2s; }
.app-download-btn:hover { opacity: 0.8; }

/* ========================================== */
/* RESPONSIVE (Mobile - One Row Same Design)  */
/* ========================================== */

/* Desktop pe Login dikhe */
@media (min-width: 769px) {
    .hide-on-mobile { display: inline-block; }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
    .topbar-inner {
        padding: 0 10px;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .topbar-left { order: 1; flex-shrink: 0; }
    .topbar-center { order: 2; flex-grow: 1; min-width: 0; }
    .topbar-right { order: 3; flex-shrink: 0; }

    /* Login Button Hide */
    .hide-on-mobile { display: none !important; }

    /* Logo chhota */
    .logo-icon { width: 34px; height: 34px; }
    .logo-icon svg { width: 18px; height: 18px; }

    /* Brand Name */
    .brand-name { font-size: 0.9rem; }

    /* Search bar */
    .search-form { height: 36px; }
    .search-input { font-size: 12px; padding: 0 8px; }
    .search-btn { padding: 0 12px; }
    .search-btn svg { width: 14px; height: 14px; }

    /* Grid Button */
    .grid-menu-btn { width: 34px; height: 34px; }
    .grid-menu-btn svg { width: 16px; height: 16px; }

    /* Sidebar Mobile */
    .sidebar-menu { width: 70vw; max-width: 70vw; right: -70vw; overflow-x: hidden; overflow-y: auto; }
    .sidebar-menu-inner { padding: 16px 12px 28px; }
    .sidebar-menu-top { align-items: center; flex-wrap: nowrap; gap: 6px; }
    .menu-top-actions { flex: 1; width: auto; justify-content: space-between; gap: 6px; }
    .sidebar-mobile-menu-item { display: list-item; }

    /* 2 COLUMN MENU */
    .sidebar-menu-content {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 18px 12px;
    }

    /* 3rd column (More + Stay Connected) neeche poori width mein */
    .sidebar-menu-content .menu-column:nth-child(3) {
        grid-column: 1 / -1;
    }
}

/* Extra Small (<= 480px) */
@media (max-width: 480px) {
    .brand-name { display: none; }
    .logo-icon { width: 32px; height: 32px; }
    .grid-menu-btn { width: 32px; height: 32px; }
    .search-input { font-size: 11px; }

    /* Sidebar text thoda chhota taaki 2 columns mein fit ho */
    .menu-list li a,.menu-list li .menu-list-action { font-size: 13px !important; }
    .menu-heading { font-size: 0.65rem; }
}

/* ========================================== */
/* MAIN NAV (Desktop only)                    */
/* ========================================== */

.main-nav {
    width: 100%;
    background-color: var(--bg-color);
    border-top: 1px solid var(--section-bg);
    padding: 0;
    margin-top: 10px;
}

.nav-list {
    list-style: none;
    margin: 0 auto;
    padding: 12px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    max-width: 100%;
}

.nav-list li {
    display: inline-block;
}

.nav-list li a {
    text-decoration: none;
    color: #30271F;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 6px 0;
    position: relative;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--btn-color);
    transition: width 0.3s ease;
}

.nav-list li a:hover,
.nav-list li a.active,
.nav-dropdown-trigger.active {
    color: var(--btn-color);
}

.nav-list li a:hover::after,
.nav-list li a.active::after,
.nav-dropdown-trigger.active::after {
    width: 100%;
}

/* Nav Item Dropdown (Explore Media) */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-chevron {
    transition: transform 0.25s ease;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown.is-open .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #FFFDF9;
    border: 1px solid #E8DCCB;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(60, 40, 20, 0.12);
    min-width: 165px;
    padding: 6px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1200;
    margin: 0;
}

/* Hover bridge so mouse movement doesn't close dropdown */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(2px);
}

.nav-dropdown-menu li {
    display: block !important;
    margin: 0 !important;
    width: 100%;
}

.nav-dropdown-menu li a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 12px !important;
    color: #493321 !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}

.nav-dropdown-menu li a::after {
    display: none !important;
}

.nav-dropdown-menu li a svg {
    color: #805633;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.nav-dropdown-menu li a:hover,
.nav-dropdown-menu li a.active {
    background-color: #F6EBDA !important;
    color: #805633 !important;
}

.nav-dropdown-menu li a:hover svg {
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .nav-list {
        gap: 20px;
        padding: 10px 20px;
    }
    .nav-list li a {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
}
/* Logged-in user ka avatar (Login / Sign Up ki jagah) */
.hdr-avatar {
    display: inline-grid; place-items: center; flex-shrink: 0;
    width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
    background: #805633; color: #fff; font-family: var(--font-body);
    font-weight: 700; font-size: 1.05rem; text-decoration: none;
    border: 2px solid #E2DCD3; transition: border-color .2s, box-shadow .2s;
}
.hdr-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hdr-avatar:hover { border-color: #805633; box-shadow: 0 0 0 3px rgba(128,86,51,.15); }
.hdr-account { position: relative; flex: 0 0 auto; }
.hdr-account > summary { cursor: pointer; list-style: none; }
.hdr-account > summary::-webkit-details-marker { display: none; }
.hdr-account-menu { position: absolute; z-index: 1300; top: calc(100% + 10px); right: 0; width: 224px; padding: 8px; border: 1px solid #E8DCCB; border-radius: 14px; background: #fff; box-shadow: 0 14px 34px rgba(60,40,20,.18); }
.hdr-account-name { overflow: hidden; padding: 9px 10px 10px; color: #8A7B6C; font-size: .82rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; border-bottom: 1px solid #EFE3D2; margin-bottom: 5px; }
.hdr-account-menu a, .hdr-account-menu button { display: block; width: 100%; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: #3B2A1A; font: inherit; font-size: .9rem; text-align: left; text-decoration: none; cursor: pointer; }
.hdr-account-menu a:hover, .hdr-account-menu button:hover { background: #F6EBDA; }
.hdr-account-menu form { margin: 0; }
.hdr-account-menu button { color: #9A3B32; }

/* ---- Site search: live suggestions ---- */
.topbar-center { position: relative; }
.search-dd { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid #E8DCCB; border-radius: 14px; box-shadow: 0 18px 40px rgba(60,40,20,.18); z-index: 1200; max-height: 70vh; overflow-y: auto; padding: 8px; }
.search-dd[hidden] { display: none; }
.search-dd h6 { margin: 8px 10px 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8A7B6C; }
.search-dd a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #3B2A1A; text-decoration: none; }
.search-dd a:hover, .search-dd a.is-on { background: #F6EBDA; }
.search-dd a b { display: block; font-weight: 600; font-size: 14px; }
.search-dd a small { display: block; color: #8A7B6C; font-size: 12px; }
.search-dd img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.search-dd .sd-none, .search-dd .sd-all { padding: 12px; font-size: 13px; color: #8A7B6C; }
.search-dd .sd-all a { justify-content: center; font-weight: 600; color: #805633; }

/* ---- /search results page ---- */
.srch-page { max-width: 900px; margin: 0 auto; padding: 36px 20px 64px; }
.srch-page h1 { font-family: 'Playfair Display', serif; font-size: 28px; color: #3B2A1A; margin: 0 0 6px; }
.srch-page .srch-meta { color: #8A7B6C; margin: 0 0 24px; }
.srch-page section { margin-bottom: 28px; }
.srch-page h2 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: #805633; margin: 0 0 10px; }
.srch-page .srch-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid #EFE3D2; border-radius: 12px; margin-bottom: 8px; color: #3B2A1A; text-decoration: none; }
.srch-page .srch-item:hover { border-color: #C9A67E; box-shadow: 0 6px 18px rgba(128,86,51,.12); }
.srch-page .srch-item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.srch-page .srch-item b { display: block; font-size: 16px; }
.srch-page .srch-item small { color: #8A7B6C; }

/* Refined signed-in account menu. */
.hdr-account{z-index:1301}
.hdr-account[open]>.hdr-avatar{border-color:#805633;box-shadow:0 0 0 4px rgba(128,86,51,.13)}
.hdr-account-menu{top:calc(100% + 12px);width:min(264px,calc(100vw - 24px));padding:10px;border-color:#eadcc6;border-radius:18px;background:linear-gradient(155deg,#fff 0%,#fffdf9 72%,#f8f0e4 100%);box-shadow:0 18px 46px rgba(60,40,20,.2);animation:hdr-menu-in .16s ease-out}
.hdr-account-menu::before{content:"";position:absolute;top:-7px;right:17px;width:13px;height:13px;transform:rotate(45deg);border-left:1px solid #eadcc6;border-top:1px solid #eadcc6;border-radius:3px 0 0;background:#fff}
.hdr-account-name{position:relative;display:flex;align-items:center;gap:11px;margin:0 1px 7px;padding:8px 8px 12px;border-bottom:1px solid #efe3d2}
.hdr-account-name-avatar{width:38px;height:38px;flex:none;display:grid;place-items:center;border:1px solid rgba(128,86,51,.18);border-radius:50%;background:linear-gradient(145deg,#f4e5ce,#e8d2b4);color:#805633;font-weight:700}
.hdr-account-name-copy{display:grid;min-width:0;gap:2px}
.hdr-account-name-copy strong{overflow:hidden;color:#493321;font-size:.9rem;text-overflow:ellipsis;white-space:nowrap}
.hdr-account-name-copy small{color:#8a7766;font-size:.72rem;letter-spacing:.04em}
.hdr-account-menu a,.hdr-account-menu form button{display:flex;align-items:center;gap:10px;min-height:48px;padding:7px 8px;border-radius:12px;font-size:.87rem;font-weight:600;transition:background .16s,color .16s,transform .16s}
.hdr-account-menu-icon{width:34px;height:34px;flex:none;display:grid;place-items:center;border:1px solid #efe3d2;border-radius:10px;background:#fbf5ec;color:#805633}
.hdr-account-menu-icon svg,.hdr-account-menu-arrow{width:17px;height:17px}
.hdr-account-menu-label{min-width:0;line-height:1.35}
.hdr-account-menu-arrow{margin-left:auto;color:#a28c73;transition:transform .16s,color .16s}
.hdr-account-menu a:hover,.hdr-account-menu a:focus-visible{background:#f6ebda;color:#5d3b22;outline:none}
.hdr-account-menu a:hover .hdr-account-menu-arrow{transform:translateX(2px);color:#805633}
.hdr-account-menu form{margin-top:7px;padding-top:7px;border-top:1px solid #efe3d2}
.hdr-account-menu form button{color:#9a3b32}
.hdr-account-menu form button .hdr-account-menu-icon{border-color:#f0d8d2;background:#fff5f3;color:#a63d2f}
.hdr-account-menu form button:hover,.hdr-account-menu form button:focus-visible{background:#fbece9;color:#8d2e25;outline:none}
.hdr-account-menu form button:hover .hdr-account-menu-icon{background:#f8dfda}
.hdr-account-menu a:active,.hdr-account-menu form button:active{transform:scale(.99)}
@keyframes hdr-menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:480px){
 .hdr-account-menu{top:calc(100% + 9px);right:0;width:min(264px,calc(100vw - 20px));padding:9px;border-radius:16px}
 .hdr-account-menu::before{right:14px}
 .hdr-account-menu a,.hdr-account-menu form button{min-height:46px}
}
@media(prefers-reduced-motion:reduce){.hdr-account-menu{animation:none}.hdr-account-menu a,.hdr-account-menu form button,.hdr-account-menu-arrow{transition:none}}

/* Reference layout: announcement strip, then one responsive brand/navigation row. */
.topbar-container{padding:0;background:var(--bg-color)}
.announcement-bar{position:relative;z-index:2;min-height:34px;display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,780px) minmax(0,1fr);grid-template-areas:"greeting message actions";align-items:center;gap:18px;padding:0 clamp(16px,5vw,76px);background:linear-gradient(100deg,#493321 0%,#5b3d27 52%,#493321 100%);color:#fffdf9;font:500 .8rem/1.3 var(--font-body);text-align:center}
.announcement-greeting{grid-area:greeting;justify-self:start;color:#f0e4d2;white-space:nowrap;letter-spacing:.02em}
.announcement-track,.announcement-fallback{grid-area:message;width:100%;max-width:780px;margin:0 auto;color:#fffdf9}
.announcement-track:not(.owl-loaded){display:block}
.announcement-track:not(.owl-loaded) .announcement-item:not(:first-child){display:none}
.announcement-item,.announcement-fallback{min-height:34px;display:flex;align-items:center;justify-content:center;padding:2px 12px}
.announcement-item a,.announcement-item span{color:inherit;text-decoration:none}
.announcement-item a:hover{color:#e8c59c;text-decoration:none}.announcement-fallback{color:inherit;text-decoration:none}
.announcement-actions{grid-area:actions;display:flex;align-items:center;justify-content:flex-end;gap:0;height:34px;white-space:nowrap}
.announcement-action{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:0 15px;border:0;background:transparent;color:#fffdf9;font:600 .8rem/1 var(--font-body);text-decoration:none;cursor:pointer}
.announcement-action:hover,.announcement-action:focus-visible{color:#e8c59c;outline:none}
.announcement-action svg{width:16px;height:16px;flex:none}
.announcement-action::after{content:"";position:absolute;right:0;top:8px;bottom:8px;width:1px;background:rgba(240,228,210,.3)}
.announcement-language{position:relative;flex:none;height:34px;padding:0;line-height:1}
.announcement-language>summary{display:flex;align-items:center;min-height:34px;padding:0 14px;color:#fffdf9;font-weight:700;cursor:pointer;list-style:none}
.announcement-language>summary::-webkit-details-marker{display:none}
.announcement-language>summary::after{content:"⌄";margin-left:5px;font-size:.7rem;opacity:.8}
.announcement-language-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:1400;display:flex;flex-direction:column;gap:7px;width:min(280px,calc(100vw - 24px));max-height:min(62vh,480px);padding:10px;border:1px solid #e8dccb;border-radius:14px;background:#fffdf9;box-shadow:0 12px 32px rgba(25,18,12,.22);color:#493321;text-align:left}
.language-search-label{padding:3px 3px 0;color:#805633;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.language-search{flex:none;width:100%;height:38px;padding:0 10px;border:1px solid #e8dccb;border-radius:9px;background:#fff;color:#493321;font:500 .85rem var(--font-body);outline:none}
.language-search:focus{border-color:#805633;box-shadow:0 0 0 3px rgba(128,86,51,.12)}
.language-options{display:grid;min-height:0;flex:1 1 auto;gap:2px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.language-option{display:flex;align-items:center;gap:9px;width:100%;min-height:36px;padding:6px 8px;border:0;border-radius:8px;background:transparent;color:#493321;font:500 .82rem var(--font-body);text-align:left;cursor:pointer}
.language-option:hover,.language-option:focus-visible{background:#f6ebda;outline:none}
.language-option[aria-selected="true"]{background:#f0e4d2;font-weight:700}
.language-flag{position:relative;display:block;width:21px;height:14px;flex:none;overflow:hidden;border:1px solid rgba(73,51,33,.12);border-radius:2px;background:#fff}
.flag-gb{background:linear-gradient(28deg,transparent 42%,#fff 42% 47%,#c8102e 47% 53%,#fff 53% 58%,transparent 58%),linear-gradient(-28deg,transparent 42%,#fff 42% 47%,#c8102e 47% 53%,#fff 53% 58%,transparent 58%),linear-gradient(90deg,transparent 40%,#fff 40% 60%,transparent 60%),linear-gradient(transparent 34%,#fff 34% 66%,transparent 66%),linear-gradient(90deg,transparent 45%,#c8102e 45% 55%,transparent 55%),linear-gradient(transparent 40%,#c8102e 40% 60%,transparent 60%),#012169}
.flag-in{background:linear-gradient(#ff9933 0 33.33%,#fff 33.33% 66.66%,#138808 66.66%)}.flag-in::after{content:"";position:absolute;left:9px;top:5px;width:3px;height:3px;border:1px solid #000080;border-radius:50%}
.flag-bd{background:#006a4e}.flag-bd::after{content:"";position:absolute;left:8px;top:3px;width:7px;height:7px;border-radius:50%;background:#f42a41}
.flag-pk{background:linear-gradient(90deg,#fff 0 24%,#01411c 24%)}.flag-pk::after{content:"☾";position:absolute;left:9px;top:-4px;color:#fff;font-size:13px}
.flag-np{background:#dc143c;clip-path:polygon(0 0,78% 0,100% 48%,78% 48%,100% 100%,0 100%);border:0}.flag-np::after{content:"✦";position:absolute;left:4px;top:0;color:#fff;font-size:8px}
.flag-sa{background:#006c35}.flag-sa::after{content:"━";position:absolute;left:4px;top:1px;color:#fff;font-size:13px}
.flag-fr{background:linear-gradient(90deg,#0055a4 0 33.33%,#fff 33.33% 66.66%,#ef4135 66.66%)}.flag-es{background:linear-gradient(#aa151b 0 25%,#f1bf00 25% 75%,#aa151b 75%)}.flag-de{background:linear-gradient(#000 0 33.33%,#dd0000 33.33% 66.66%,#ffce00 66.66%)}
.flag-jp::after{content:"";position:absolute;left:7px;top:2px;width:7px;height:7px;border-radius:50%;background:#bc002d}.flag-cn{background:#de2910}.flag-cn::after{content:"★";position:absolute;left:2px;top:-1px;color:#ffde00;font-size:9px}
.language-option[hidden],.language-no-results[hidden]{display:none!important}
.language-name{flex:1;min-width:0}
.language-option small{color:#92765b;font-size:.68rem;font-weight:600}
.language-no-results{margin:2px 0;padding:12px 8px;color:#92765b;font-size:.8rem;text-align:center}
.language-google-note{padding:7px 3px 0;border-top:1px solid #eee5da;color:#92765b;font-size:.68rem;line-height:1.4}
.announcement-language[open]>summary{color:#e8c59c}
.topbar-inner{max-width:1500px;min-height:82px;padding:8px clamp(16px,4vw,54px);gap:clamp(12px,2vw,28px)}
.topbar-left{order:0}
.logo-icon{width:54px;height:54px;border:1px solid #e8dccb}
.brand-name{font-size:1.12rem}
.main-nav{display:block;flex:1;min-width:0;width:auto;margin:0;padding:0;border:0;background:transparent}
.nav-list{max-width:none;justify-content:center;flex-wrap:nowrap;gap:clamp(12px,2vw,30px);margin:0;padding:0 4px}
.nav-list li a{font-size:clamp(.84rem,.95vw,1rem)}
.topbar-right{order:2;gap:12px}
.header-search-btn{display:grid;place-items:center;width:42px;height:42px;flex:none;padding:0;border:1px solid transparent;border-radius:50%;background:transparent;color:var(--btn-color);cursor:pointer;transition:background .2s,border-color .2s}
.header-search-btn:hover,.header-search-btn:focus-visible{border-color:var(--section-bg);background:#f7f0e6;outline:none}
.header-search-btn svg{width:22px;height:22px}
.grid-menu-btn{color:var(--heading-color)}
.auth-btn{font-size:.9rem;padding:10px 18px}
.search-modal[hidden]{display:none}
.search-modal{position:fixed;inset:0;z-index:5000;display:flex;align-items:flex-start;justify-content:center;padding:clamp(74px,15vh,150px) 18px 24px}
.search-modal-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(32,24,18,.62);cursor:default}
.search-modal-panel{position:relative;width:min(840px,100%);max-height:min(78vh,680px);overflow-y:auto;border:1px solid #eadfce;border-radius:26px;background:var(--bg-color);box-shadow:0 24px 70px rgba(25,18,12,.28)}
.search-modal-form{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:14px;min-height:82px;padding:12px 20px;border:0;border-bottom:1px solid #eee5da;border-radius:26px 26px 0 0;background:var(--bg-color)}
.search-modal-icon{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:50%;background:var(--section-bg);color:var(--btn-color)}
.search-modal-icon svg{width:23px;height:23px}
.search-modal-form .search-input{height:48px;font-size:clamp(1rem,2.2vw,1.25rem)}
.search-esc{flex:none;padding:7px 11px;border:1px solid #e8dccb;border-radius:999px;background:#fff;color:#786b5e;font:600 .72rem var(--font-body);cursor:pointer}
.search-submit-icon{display:none;place-items:center;width:40px;height:40px;flex:none;border:0;border-radius:50%;background:var(--btn-color);color:#fff}
.search-submit-icon svg{width:19px;height:19px}
.search-modal-content{padding:24px 28px 30px}
.search-modal-label{margin-bottom:13px;color:#8a7b6c;font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.search-trending{display:flex;flex-wrap:wrap;gap:9px;padding-bottom:24px;border-bottom:1px solid #eee5da}
.search-trending a,.search-quick-links a{display:flex;align-items:center;justify-content:center;min-height:40px;padding:8px 15px;border:1px solid #e8e0d6;border-radius:999px;background:#fff;color:#493321;font-size:.88rem;text-decoration:none;transition:background .18s,border-color .18s,color .18s}
.search-trending a:hover,.search-quick-links a:hover{border-color:#c9a67e;background:#f6ebda;color:var(--btn-color)}
.quick-label{margin-top:22px}
.search-quick-links{display:flex;flex-wrap:wrap;gap:9px}
.search-modal .search-dd{position:relative;top:auto;left:auto;right:auto;max-height:42vh;border:0;border-radius:0;box-shadow:none;padding:10px 18px}
.search-modal .search-dd:not([hidden])~.search-modal-content{display:none}
body.search-modal-open{overflow:hidden}
@media(max-width:1180px){
 .topbar-inner{gap:10px;padding-inline:20px}
 .nav-list{gap:12px}
 .nav-list li a{font-size:.82rem}
 .brand-name{font-size:1rem}
 .logo-icon{width:48px;height:48px}
}
@media(max-width:1020px){
 .main-nav{display:none}
 .topbar-inner{min-height:72px}
}
@media(max-width:768px){
  .announcement-bar{grid-template-columns:minmax(0,1fr);grid-template-areas:"message";gap:0;padding:0 8px}
  .announcement-track{min-width:0;max-width:none}
 .announcement-item,.announcement-fallback{width:100%;min-width:0;min-height:30px;padding:3px 8px;font-size:clamp(.6rem,2.5vw,.68rem);line-height:1.15}
  .announcement-item>a,.announcement-item>span{display:block;width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:center}
  .announcement-greeting,.announcement-actions{display:none}
  .announcement-language>summary{min-height:38px;padding:0 6px;color:var(--heading-color);font-size:.72rem}
 .topbar-inner{padding:7px 14px;gap:8px}
 .logo-icon{width:42px;height:42px}
 .brand-name{display:inline;font-size:.95rem}
 .topbar-right{gap:5px}
 .auth-btn{display:none}
 .header-search-btn,.grid-menu-btn{width:38px;height:38px}
 .hdr-avatar{width:36px;height:36px}
 .search-modal{padding:10vh 12px 16px}
 .search-modal-panel{max-height:82vh;border-radius:20px}
 .search-modal-form{min-height:68px;gap:9px;padding:10px 12px;border-radius:20px 20px 0 0}
 .search-modal-icon{width:36px;height:36px}
 .search-modal-content{padding:20px 18px 24px}
}
@media(max-width:480px){
 .topbar-inner{padding-inline:10px}
 .logo-icon{width:36px;height:36px}
 .brand-name{font-size:.84rem;max-width:104px;overflow:hidden;text-overflow:ellipsis}
  .announcement-bar{grid-template-columns:1fr;grid-template-areas:"message";gap:0;padding:0 8px}
  .announcement-greeting,.announcement-actions{display:none}
 .announcement-item,.announcement-fallback{min-height:28px;padding:2px 6px;font-size:clamp(.58rem,2.5vw,.64rem);line-height:1.1}
 .search-modal{padding:7vh 8px 10px}
 .search-modal-panel{max-height:86vh;border-radius:18px}
 .search-modal-form{min-height:62px;padding:8px 10px;gap:7px;border-radius:18px 18px 0 0}
 .search-modal-icon{width:32px;height:32px}
 .search-modal-icon svg{width:19px;height:19px}
 .search-modal-form .search-input{height:42px;padding-inline:2px;font-size:.98rem}
 .search-esc{padding:6px 8px;font-size:.65rem}
 .search-submit-icon{display:grid}
 .search-modal-content{padding:17px 14px 20px}
 .search-trending a,.search-quick-links a{min-height:36px;padding:7px 11px;font-size:.8rem}
}
@media(prefers-reduced-motion:reduce){.announcement-track,.header-search-btn,.search-trending a,.search-quick-links a{transition:none}}
