/* Shared public header. Keep all header breakpoints here. */
.site-header { 
    position: sticky !important; 
    position: -webkit-sticky !important; 
    top: 0 !important; 
    left: 0 !important; 
    right: 0 !important; 
    width: 100% !important; 
    background: #fffaf3 !important; 
    border-bottom: 1px solid #ebdcca; 
    box-shadow: 0 2px 12px rgba(71, 25, 8, 0.08); 
    z-index: 1030 !important; 
}

/* The .site-header-inner now uses the .container class in HTML, which handles max-width and side padding. */
.site-header .site-header-inner { 
    display:flex; 
    justify-content:space-between; 
    align-items:center; 
    flex-wrap:nowrap; 
    gap:20px; 
    min-height:70px; 
    padding-top:10px; 
    padding-bottom:10px; 
}

.site-header .header-brand-link { display:flex!important; align-items:center; gap:12px!important; min-width:0!important; text-decoration:none; flex-shrink:0; }
.site-header .header-brand-logo { width:80px!important; height:80px!important; flex:0 0 80px; object-fit:contain; padding:3px; background:white; border-radius:8px; }
.site-header .header-brand-text { min-width:0; display:flex; flex-direction:column; text-align:left!important; justify-content:center; }
.site-header .header-brand-title { color:var(--maroon,#7a1512); font-size:1.125rem!important; font-weight:700; line-height:1.4!important; margin:0; white-space:normal; }
.site-header .header-brand-sub { color:#765139; font-size:.8125rem!important; font-weight:500; line-height:1.5!important; margin-top:3px; white-space:normal; letter-spacing:0!important; }

/* Navigation */
.site-header .main-header-nav { display:flex; justify-content:center; align-items:center; flex-wrap:nowrap; gap:0; min-width:0; border:0; flex:1; }
.site-header .header-nav-link { position:relative; display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:10px 18px; font-size:1.1rem; font-weight:600; line-height:1.45; color:#7a1512; text-decoration:none; white-space:nowrap; }
.site-header .header-nav-link:hover,.site-header .header-nav-link.active { color:#a33d08; }
.site-header .header-nav-link.active::after { content:""; position:absolute; inset:auto 0 2px; height:3px; border-radius:3px 3px 0 0; background:#c95b17; }

/* Actions (Right Side) */
.site-header .header-actions { display:flex!important; align-items:center; justify-content:flex-end; width:auto!important; gap:8px!important; flex-shrink:0; }
.site-header .header-donate,.site-header .lang-toggle { display:inline-flex!important; min-height:44px!important; height:auto!important; width:110px!important; padding:10px 16px!important; border-radius:22px!important; font-size:.9375rem!important; font-weight:600!important; line-height:1.4!important; align-items:center; justify-content:center; text-align:center; flex-shrink:0; }
.site-header .header-donate { display:none!important; background:#b94c12; color:white!important; border:1px solid #b94c12; }
.site-header .lang-toggle { background:#b94c12; color:#fff!important; border:1px solid #b94c12; }
.site-header .header-donate:hover { background:#94390b; }
.site-header .lang-toggle:hover { background:#94390b; border-color:#94390b; color:#fff!important; }
.site-header .mobile-menu-btn { display:inline-flex!important; align-items:center; justify-content:center; border:1px solid #dbc4b1; border-radius:10px; background:white; color:#7a1512; width:44px!important; height:44px!important; min-width:44px!important; flex:0 0 44px!important; padding:0!important; }

/* Mobile Menu Offcanvas */
.site-header .offcanvas.nav-gradient { display:flex!important; background:#7a1512; }
.site-header .offcanvas .nav-link { min-height:48px; padding:12px 16px!important; font-size:1rem!important; border-radius:8px; }
.site-header .offcanvas .nav-link:hover,.site-header .offcanvas .nav-link.active { background:#ffffff1a; color:white!important; }
.site-header .offcanvas-header { gap:12px; }
.site-header .offcanvas-body { overflow-y:auto; }

/* Responsive adjustments */
@media(max-width:1199.98px) {
 .site-header .site-header-inner { min-height:80px; gap:12px; }
 .site-header .main-header-nav { display:none!important; }
 .site-header .header-actions { margin-left: auto; }
 .site-header .header-actions .header-donate,.site-header .header-actions .lang-toggle { display:none!important; }
 .site-header .header-brand-logo { width:78px!important; height:78px!important; flex-basis:78px; }
 .site-header .header-brand-title { font-size:1.0625rem!important; }
 .site-header .header-brand-sub { font-size:.8125rem!important; }
}

@media(max-width:399.98px) {
 .site-header .header-brand-link { gap:8px!important; }
 .site-header .header-brand-logo { width:70px!important; height:70px!important; flex-basis:70px; }
 .site-header .header-brand-title { font-size:.9375rem!important; }
 .site-header .header-brand-sub { font-size:.75rem!important; }
}

/* Compact desktop spacing keeps the complete menu in the same header row. */
@media(min-width:1200px) {
 .site-header .mobile-menu-btn { display: none !important; }
}

@media(min-width:1200px) and (max-width:1399.98px) {
 .site-header .site-header-inner { gap:14px; }
 .site-header .header-brand-link { gap:8px!important; }
 .site-header .header-brand-logo { width:74px!important; height:74px!important; flex-basis:74px; }
 .site-header .header-brand-title { font-size:1rem!important; }
 .site-header .header-brand-sub { font-size:.75rem!important; }
 .site-header .header-nav-link { font-size:1rem; padding: 10px 14px; }
 .site-header .header-donate { padding-inline:12px!important; }
}

@media(min-width:1200px) and (max-width:1340px) { 
 .site-header .header-nav-link { font-size:.9375rem; padding: 10px 10px; } 
 .site-header .header-actions { gap:5px!important; } 
 .site-header .header-donate,.site-header .lang-toggle { padding-inline:10px!important; font-size:.8125rem!important; } 
}

/* Increased spacing between nav links only for English */
html[lang="en"] .site-header .header-nav-link { padding: 10px clamp(12px, 1.5vw, 25px); }
@media(min-width:1200px) and (max-width:1399.98px) { html[lang="en"] .site-header .header-nav-link { padding: 10px 14px; } }
@media(min-width:1200px) and (max-width:1340px) { html[lang="en"] .site-header .header-nav-link { padding: 10px 10px; } }

/* Tighter spacing and smaller font for Kannada to prevent overlap while staying in the same place */
html[lang="kn"] .site-header .header-nav-link { font-size: 0.95rem; padding: 10px clamp(4px, 0.6vw, 12px); }
@media(min-width:1200px) and (max-width:1450px) { 
    html[lang="kn"] .site-header .header-nav-link { font-size: 0.85rem; padding: 10px 5px; }
    html[lang="kn"] .site-header .header-actions { gap: 5px!important; }
    html[lang="kn"] .site-header .header-donate, html[lang="kn"] .site-header .lang-toggle { width: auto!important; padding: 10px 12px!important; font-size: 0.8125rem!important; }
}
