/* =====================================================
   HEADER — Noor-i-Subah theme
   Royal Blue • Crimson Red • Sun Gold • Leaf Green
   ===================================================== */
:root {
    --nis-blue: #1746b8;
    --nis-blue-dark: #0b2a78;
    --nis-blue-deep: #071d57;
    --nis-blue-light: #2f74e6;
    --nis-red: #e3151d;
    --nis-red-dark: #b80f16;
    --nis-gold: #f6b400;
    --nis-gold-light: #ffd23f;
    --nis-gold-dark: #e09200;
    --nis-green: #2b9a3c;
    --nis-green-light: #5cc04a;
    --nis-grad-red: linear-gradient(135deg, #ff3b2f 0%, #b80f16 100%);
    --nis-grad-blue: linear-gradient(135deg, #2f74e6 0%, #0b2a78 100%);
    --nis-grad-gold: linear-gradient(135deg, #ffd23f 0%, #e09200 100%);
    --nis-brand: linear-gradient(90deg, #e3151d 0 25%, #f6b400 25% 50%, #2b9a3c 50% 75%, #2f74e6 75% 100%);
}

/* ========== 1. TOP INFO BAR (compact) ========== */
.srnt-topbar {
    position: relative;
    background: var(--nis-blue-deep);
    color: #fff;
    height: 38px;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}
.srnt-topbar::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--nis-brand);
}
.srnt-topbar > .container-fluid { height: 100%; }
.topbar-item {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.topbar-item i { color: var(--nis-gold-light); font-size: 13px; }
a.topbar-item:hover { color: var(--nis-gold-light); }
.topbar-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 14px;
    display: inline-block;
}

.topbar-right { height: 100%; }
.topbar-social { gap: 14px; margin-right: 24px; }
.follow-text { font-size: 12.5px; font-weight: 500; margin-right: 2px; }
.topbar-social a {
    color: #fff;
    font-size: 13.5px;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}
.topbar-social a:hover { color: var(--nis-gold-light); transform: translateY(-2px); }

.topbar-join {
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 26px 0 44px;
    margin-right: -1rem;
    background: linear-gradient(90deg, #ff3b2f 0%, #b80f16 100%);
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%);
    transition: filter 0.2s;
}
.topbar-join i {
    font-size: 13px;
    color: var(--nis-gold-light);
    background: rgba(255,255,255,0.18);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
a.topbar-join:hover { filter: brightness(1.08); }
.topbar-join.no-link { cursor: default; }
@media (min-width: 1200px) { .topbar-join { margin-right: -1.5rem; } }

/* Mobile top bar (compact) */
@media (max-width: 767.98px) {
    .srnt-topbar { height: 34px; }
    .topbar-left { flex-wrap: nowrap !important; min-width: 0; overflow: hidden; }
    .topbar-item { font-size: 12px; gap: 6px; }
    .topbar-item i { font-size: 12px; }
    .topbar-right { flex-shrink: 0; }
    .topbar-social { gap: 10px; margin-right: 12px; }
    .follow-text { font-size: 11px; margin-right: 0; white-space: nowrap; }
    .topbar-social a { font-size: 12.5px; }
    .topbar-join { font-size: 12px; padding: 0 14px 0 30px; gap: 6px; clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%); }
    .topbar-join i { width: 20px; height: 20px; font-size: 11px; }
}
@media (max-width: 575.98px) {
    .topbar-item { font-size: 11.5px; gap: 5px; }
    .topbar-social { gap: 8px; margin-right: 8px; }
    .topbar-social a { font-size: 12px; }
    .topbar-join { font-size: 11.5px; padding: 0 10px 0 24px; gap: 5px; clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%); }
    .topbar-join i { width: 19px; height: 19px; font-size: 10px; }
}
@media (max-width: 359.98px) {
    .topbar-social { gap: 6px; margin-right: 6px; }
    .topbar-join i { display: none; }
    .topbar-join { padding-left: 20px; }
}

/* ========== 2. BRANDING BANNER (compact) ========== */
.srnt-brand-bar {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}
.brand-inner { min-height: 64px; }
.brand-link { min-width: 0; padding: 6px 0; }

/* LOGO — round white badge, full logo visible (no crop) */
.srnt-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    border: 2px solid var(--nis-gold);
    box-shadow: 0 0 0 3px rgba(23,70,184,.12), 0 6px 16px rgba(11,42,120,.18);
    display: block;
}

.srnt-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.3px;
    word-break: break-word;
}
.srnt-title .t-navy { color: var(--nis-blue-dark); }
.srnt-title .t-orange { color: var(--nis-red); }
.srnt-tagline {
    font-size: 10px;
    font-weight: 600;
    color: #4f5d7a;
    margin-top: 2px;
    line-height: 1.3;
    display: block;
}

.srnt-divider { align-items: center; margin-top: 4px; width: 100%; max-width: 300px; }
.srnt-divider .line {
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--nis-gold));
}
.srnt-divider .line:last-child {
    background: linear-gradient(90deg, var(--nis-gold), transparent);
}
.srnt-divider .diamond {
    width: 7px;
    height: 7px;
    background: var(--nis-red);
    transform: rotate(45deg);
    margin: 0 8px;
    flex-shrink: 0;
    box-shadow: -9px 0 0 -2px var(--nis-green-light), 9px 0 0 -2px var(--nis-blue-light);
}

@media (min-width: 576px) {
    .brand-inner { min-height: 72px; }
    .srnt-logo { width: 58px; height: 58px; }
    .srnt-title { font-size: 20px; }
    .srnt-tagline { font-size: 11.5px; }
}
@media (min-width: 768px) {
    .brand-inner { min-height: 92px; }
    .srnt-logo { width: 72px; height: 72px; padding: 3px; border-width: 3px; }
    .srnt-title { font-size: 24px; }
    .srnt-tagline { font-size: 13px; }
}
@media (min-width: 1200px) {
    .brand-inner { min-height: 112px; }
    .srnt-logo { width: 90px; height: 90px; }
    .logo-wrap { margin-left: 20px; margin-right: 18px !important; }
    .srnt-title { font-size: 30px; }
    .srnt-tagline { font-size: 15px; margin-top: 3px; }
}

/* Desktop action buttons */
.brand-actions { gap: 14px; padding-right: 16px; font-family: 'Poppins', sans-serif; }
.btn-apply-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--nis-blue-dark);
    border: 1.5px solid var(--nis-gold);
    border-radius: 10px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(11, 42, 120, 0.10);
    transition: all 0.2s ease;
}
.btn-apply-outline i { font-size: 18px; color: var(--nis-gold-dark); }
.btn-apply-outline:hover {
    background: var(--nis-gold);
    color: var(--nis-blue-deep);
    transform: translateY(-2px);
}
.btn-apply-outline:hover i { color: var(--nis-blue-deep); }

.btn-donate-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--nis-grad-red);
    color: #fff !important;
    border-radius: 10px;
    padding: 9px 22px 9px 14px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(184, 15, 22, 0.4);
    transition: all 0.2s ease;
}
.heart-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--nis-gold);
    color: var(--nis-red-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.btn-donate-main:hover { transform: translateY(-2px); filter: brightness(1.07); }

/* Mobile sub-action bar */
.srnt-mobile-action-bar { border-color: #f1f5f9 !important; }
.mobile-sub-btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.membership-pill {
    background-color: #fff;
    color: var(--nis-blue);
    border: 1.5px solid var(--nis-blue-light);
}
.membership-pill i { color: var(--nis-blue); }
.membership-pill:active { background-color: #eef3ff; transform: scale(0.97); }
.donate-pill {
    background: var(--nis-grad-red);
    color: #fff !important;
    border: none;
    box-shadow: 0 2px 6px rgba(184, 15, 22, 0.3);
}
.donate-pill i { color: var(--nis-gold-light); }
.donate-pill:active { transform: scale(0.97); }
.login-pill {
    background: var(--nis-grad-blue);
    color: #fff !important;
    border: none;
    padding: 6px 12px;
    box-shadow: 0 2px 6px rgba(11, 42, 120, 0.25);
}
.login-pill:active { transform: scale(0.97); }

/* ========== 3. BOTTOM NAVBAR ========== */
.srnt-navbar {
    background-color: var(--nis-blue-dark) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 56px;
    height: 56px;
    font-family: 'Poppins', sans-serif;
}
.srnt-navbar > .container-fluid { height: 100%; }
.nav-links-wrapper { min-width: 0; }
.main-menu { white-space: nowrap; gap: 4px; }
.nav-item-link {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(11.5px, 0.9vw, 13.5px);
    font-weight: 600;
    padding: 0 6px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s ease;
}
.nav-item-link::after {
    content: '';
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--nis-gold);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.nav-item-link:hover, .nav-item-link.active { color: var(--nis-gold-light); }
.nav-item-link:hover::after, .nav-item-link.active::after { transform: scaleX(1); }
.caret-icon { font-size: 9px; margin-left: 4px; opacity: 0.85; }

.nav-item-dropdown { position: relative; }
.dropdown-popover {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    background-color: var(--nis-blue-dark);
    border-top: 3px solid var(--nis-gold);
    min-width: 220px;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    border-radius: 0 0 5px 5px;
    z-index: 999;
}
.dropdown-popover li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    display: block;
    padding: 8px 16px;
    transition: background 0.15s;
}
.dropdown-popover li a i { color: var(--nis-gold-light); width: 16px; text-align: center; transition: color .15s; }
.dropdown-popover li a:hover { background: var(--nis-red); color: #ffffff; }
.dropdown-popover li a:hover i { color: #ffffff; }
.nav-item-dropdown:hover .dropdown-popover { display: block; }
.main-menu > .nav-item-dropdown:nth-last-child(-n+2) .dropdown-popover { left: auto; right: 0; }

.btn-nav-login {
    background: var(--nis-grad-red);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(184, 15, 22, 0.45);
    margin-left: 10px;
    margin-right: -20px;
    transition: 0.2s ease;
}
.btn-nav-login:hover { filter: brightness(1.08); }

/* Mobile trigger */
.modern-menu-trigger {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: var(--nis-gold);
    color: var(--nis-blue-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.2s ease;
}
.modern-menu-trigger:active { background: var(--nis-gold-dark); transform: scale(0.95); }

/* ========== 4. MOBILE DRAWER ========== */
.off-canvas-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 29, 87, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.off-canvas-backdrop.active { display: block; opacity: 1; }

.off-canvas-card-drawer {
    position: fixed;
    top: 12px;
    right: -105%;
    width: 86%;
    max-width: 340px;
    height: calc(100vh - 24px);
    background: #ffffff;
    border-radius: 20px 0 0 20px;
    box-shadow: -8px 0 35px rgba(0, 0, 0, 0.22);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: right 0.32s cubic-bezier(0.25, 1, 0.5, 1);
}
.off-canvas-card-drawer::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 4px;
    background: var(--nis-brand);
}
.off-canvas-card-drawer.active { right: 0; }

.drawer-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    border: 2px solid var(--nis-gold);
    flex-shrink: 0;
}
.drawer-title { color: var(--nis-blue-dark); }
.drawer-apply-link { color: var(--nis-red); }

.circular-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(227, 21, 29, 0.1);
    color: var(--nis-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: 0.2s;
}
.circular-close-btn:active { background: var(--nis-red); color: #fff; }

.card-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    color: #1e293b;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.15s ease;
}
.card-menu-item:active, .card-menu-item.active { background: #eef3ff; color: var(--nis-blue); }
.card-menu-item.active .menu-icon-pill { background: var(--nis-grad-blue); color: #ffffff; }

.menu-icon-pill {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eef3ff;
    color: var(--nis-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: 0.2s;
}
.menu-label { font-size: 14px; font-weight: 600; }

.card-collapse-group { display: flex; flex-direction: column; }
.card-collapse-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 9px 12px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #1e293b;
    text-align: left;
    transition: 0.15s;
}
.card-collapse-trigger:active, .card-collapse-trigger.open { background: #eef3ff; color: var(--nis-blue); }
.card-collapse-trigger.open .menu-icon-pill { background: var(--nis-grad-blue); color: #fff; }
.sub-arrow { font-size: 11px; color: #94a3b8; transition: transform 0.2s ease; }
.card-collapse-trigger.open .sub-arrow { transform: rotate(180deg); color: var(--nis-red); }

.card-collapse-panel {
    display: none;
    flex-direction: column;
    padding-left: 48px;
    padding-bottom: 6px;
    gap: 2px;
}
.card-collapse-panel.show { display: flex; }
.nested-link {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: 0.15s;
}
.nested-link:hover, .nested-link:active { color: var(--nis-red); background: #fff8e1; border-left-color: var(--nis-gold); }

.btn-card-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--nis-grad-blue);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(11, 42, 120, 0.3);
    transition: transform 0.15s ease;
}
.btn-card-login:active { transform: scale(0.98); }
.btn-card-donate {
    background: var(--nis-grad-red);
    box-shadow: 0 4px 12px rgba(184, 15, 22, 0.3);
}
.btn-card-donate i { color: var(--nis-gold-light); }

.card-footer-info { font-size: 13px; }
.contact-pill-icon {
    width: 20px;
    color: var(--nis-green);
    font-size: 13px;
    flex-shrink: 0;
    text-align: center;
}
.contact-pill-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    word-break: break-all;
    transition: color 0.15s ease;
}
.contact-pill-link:hover { color: var(--nis-blue); }
.contact-pill-text { color: #64748b; font-weight: 500; font-size: 13px; line-height: 1.4; }

/* =====================================================
   ✨ ANIMATIONS
   ===================================================== */
@keyframes srntKenBurns { from { transform: scale(1) translate3d(0,0,0); } to { transform: scale(1.14) translate3d(-2%,-1%,0); } }
@keyframes srntRise     { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes srntSlideR   { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: none; } }
@keyframes srntNavIn    { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes srntPop      { 0% { opacity: 0; transform: scale(.3) rotate(-120deg); } 70% { transform: scale(1.1) rotate(8deg); } 100% { opacity: 1; transform: none; } }
@keyframes srntFloat    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes srntSpin     { to { transform: rotate(360deg); } }
@keyframes srntHalo     { 0% { box-shadow: 0 0 0 0 rgba(246,180,0,.55); } 100% { box-shadow: 0 0 0 18px rgba(246,180,0,0); } }
@keyframes srntFlow     { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes srntText     { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes srntShine    { 0% { left: -80%; } 55%,100% { left: 140%; } }
@keyframes srntBeat     { 0%,100% { transform: scale(1); } 15% { transform: scale(1.28); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } 60% { transform: scale(1); } }
@keyframes srntPulse    { 0%,100% { box-shadow: 0 6px 18px rgba(184,15,22,.4), 0 0 0 0 rgba(227,21,29,.55); } 50% { box-shadow: 0 6px 18px rgba(184,15,22,.4), 0 0 0 14px rgba(227,21,29,0); } }
@keyframes srntPulseGold { 0%,100% { box-shadow: 0 0 0 0 rgba(246,180,0,.5); } 50% { box-shadow: 0 0 0 8px rgba(246,180,0,0); } }
@keyframes srntGlow     { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } }
@keyframes srntSweep    { 0% { left: -220px; } 45%,100% { left: 115%; } }
@keyframes srntSpark    { 0% { transform: translate3d(0,0,0) scale(.4); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate3d(var(--dx),-150px,0) scale(1); opacity: 0; } }
@keyframes srntGrow     { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes srntDiamond  { 0%,100% { transform: rotate(45deg) scale(1); } 50% { transform: rotate(135deg) scale(1.35); } }
@keyframes srntDrop     { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ----- Top bar ----- */
.srnt-topbar { animation: srntRise .6s ease backwards; }
.topbar-social a { display: inline-block; animation: srntRise .5s backwards; }
.topbar-social a:nth-of-type(1) { animation-delay: .25s; }
.topbar-social a:nth-of-type(2) { animation-delay: .32s; }
.topbar-social a:nth-of-type(3) { animation-delay: .39s; }
.topbar-social a:nth-of-type(4) { animation-delay: .46s; }
.topbar-social a:nth-of-type(5) { animation-delay: .53s; }
.topbar-item i { transition: transform .25s ease; }
a.topbar-item:hover i { transform: scale(1.3) rotate(-12deg); }
.topbar-join i { animation: srntBeat 1.6s ease-in-out infinite; }

/* ----- Shine sweep on red buttons ----- */
.btn-donate-main, .btn-nav-login, .topbar-join { position: relative; overflow: hidden; }
.btn-donate-main::after, .btn-nav-login::after, .topbar-join::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,226,120,.55), transparent);
    transform: skewX(-20deg);
    animation: srntShine 3.2s ease-in-out infinite;
    pointer-events: none;
}

/* ----- Brand banner: Ken Burns background (with blue overlay) + brand line ----- */
.srnt-brand-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    display: none;   /* background image removed — plain white banner */
}
.srnt-brand-bar::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #e3151d, #f6b400, #2b9a3c, #2f74e6, #e3151d, #f6b400, #2b9a3c, #2f74e6);
    background-size: 200% 100%;
    animation: srntFlow 8s linear infinite;
    z-index: 3;
}
.brand-inner, .srnt-mobile-action-bar { position: relative; z-index: 2; }

/* ----- Effects layer: sun glow, light sweep, floating sparks ----- */
.hdr-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.hdr-glow {
    position: absolute;
    left: 2%;
    top: -60%;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,210,63,.22), rgba(246,180,0,0) 65%);
    animation: srntGlow 4.5s ease-in-out infinite;
}
.hdr-fx::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: -220px;
    width: 120px;
    background: linear-gradient(100deg, transparent, rgba(246,180,0,.08), transparent);
    transform: skewX(-20deg);
    animation: srntSweep 7s ease-in-out infinite;
}
.hdr-spark {
    position: absolute;
    bottom: -10px;
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: radial-gradient(circle, #fff6c9 0%, #ffd23f 45%, rgba(246,180,0,0) 72%);
    opacity: 0;
    animation: srntSpark var(--d) linear var(--delay) infinite;
}

/* ----- Logo: pop-in, float, spinning gold ring, pulsing halo ----- */
.logo-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    border-radius: 50%;
    animation: srntFloat 4s ease-in-out infinite;
}
.logo-wrap .srnt-logo { position: relative; z-index: 1; animation: srntPop 1s cubic-bezier(.2,1.3,.4,1) backwards; }
.logo-wrap::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 40%, var(--nis-red) 60%, var(--nis-gold) 80%, var(--nis-gold-light) 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    animation: srntSpin 3s linear infinite;
}
.logo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: srntHalo 2.4s ease-out infinite;
}

/* ----- Title / tagline / divider ----- */
.srnt-title { animation: srntRise .8s .25s cubic-bezier(.2,.8,.2,1) backwards; }
.srnt-title .t-orange {
    background: linear-gradient(90deg, #e3151d, #ff5a3c, #e09200, #e3151d);
    background-size: 250% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: srntText 4s ease-in-out infinite alternate;
}
.srnt-tagline { animation: srntRise .8s .5s cubic-bezier(.2,.8,.2,1) backwards; }
.srnt-divider .line { animation: srntGrow 1s .9s ease backwards; }
.srnt-divider .line:first-child { transform-origin: right center; }
.srnt-divider .line:last-child  { transform-origin: left center; }
.srnt-divider .diamond { animation: srntDiamond 4s ease-in-out infinite; }

/* ----- Action buttons ----- */
.btn-apply-outline { animation: srntSlideR .7s .45s cubic-bezier(.2,.8,.2,1) backwards; }
.btn-donate-main { animation: srntSlideR .7s .6s cubic-bezier(.2,.8,.2,1) backwards, srntPulse 2.4s 1.4s ease-in-out infinite; }
.heart-circle i { animation: srntBeat 1.6s ease-in-out infinite; }
.modern-menu-trigger { animation: srntPulseGold 2.6s ease-in-out infinite; }

/* ----- Navbar ----- */
.srnt-navbar { animation: srntNavIn .7s .1s cubic-bezier(.2,.8,.2,1) backwards; transition: box-shadow .3s ease; }
.srnt-navbar.is-scrolled { box-shadow: 0 8px 26px rgba(7,29,87,.45) !important; }
.srnt-navbar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f6b400, #ffd23f, #f6b400, transparent);
    background-size: 200% 100%;
    animation: srntFlow 3.5s linear infinite;
}
.main-menu > li { animation: srntRise .5s backwards; }
.main-menu > li:nth-child(1) { animation-delay: 0.26s; }
.main-menu > li:nth-child(2) { animation-delay: 0.32s; }
.main-menu > li:nth-child(3) { animation-delay: 0.38s; }
.main-menu > li:nth-child(4) { animation-delay: 0.44s; }
.main-menu > li:nth-child(5) { animation-delay: 0.50s; }
.main-menu > li:nth-child(6) { animation-delay: 0.56s; }
.main-menu > li:nth-child(7) { animation-delay: 0.62s; }
.main-menu > li:nth-child(8) { animation-delay: 0.68s; }
.main-menu > li:nth-child(9) { animation-delay: 0.74s; }
.main-menu > li:nth-child(10) { animation-delay: 0.80s; }
.main-menu > li:nth-child(11) { animation-delay: 0.86s; }
.main-menu > li:nth-child(12) { animation-delay: 0.92s; }
.main-menu > li:nth-child(13) { animation-delay: 0.98s; }
.main-menu > li:nth-child(14) { animation-delay: 1.04s; }
.caret-icon { display: inline-block; transition: transform .25s ease; }
.nav-item-dropdown:hover .caret-icon { transform: rotate(180deg); }
.nav-item-link.active { text-shadow: 0 0 12px rgba(246,180,0,.6); }

/* ----- Dropdown open animation ----- */
.nav-item-dropdown:hover .dropdown-popover { animation: srntDrop .22s ease; }
.dropdown-popover li { animation: srntDrop .3s ease backwards; }
.dropdown-popover li:nth-child(1) { animation-delay: 0.04s; }
.dropdown-popover li:nth-child(2) { animation-delay: 0.08s; }
.dropdown-popover li:nth-child(3) { animation-delay: 0.12s; }
.dropdown-popover li:nth-child(4) { animation-delay: 0.16s; }
.dropdown-popover li:nth-child(5) { animation-delay: 0.20s; }
.dropdown-popover li:nth-child(6) { animation-delay: 0.24s; }
.dropdown-popover li:nth-child(7) { animation-delay: 0.28s; }
.dropdown-popover li a { transition: background .15s, padding-left .2s ease; }
.dropdown-popover li a:hover { padding-left: 22px; }

/* ----- Mobile drawer: items slide in one by one ----- */
.off-canvas-card-drawer.active .card-modal-body > .d-flex.flex-column > * { animation: srntSlideR .4s cubic-bezier(.2,.8,.2,1) backwards; }
.off-canvas-card-drawer.active .card-modal-body > .d-flex.flex-column > *:nth-child(1) { animation-delay: 0.125s; }
.off-canvas-card-drawer.active .card-modal-body > .d-flex.flex-column > *:nth-child(2) { animation-delay: 0.170s; }
.off-canvas-card-drawer.active .card-modal-body > .d-flex.flex-column > *:nth-child(3) { animation-delay: 0.215s; }
.off-canvas-card-drawer.active .card-modal-body > .d-flex.flex-column > *:nth-child(4) { animation-delay: 0.260s; }
.off-canvas-card-drawer.active .card-modal-body > .d-flex.flex-column > *:nth-child(5) { animation-delay: 0.305s; }
.off-canvas-card-drawer.active .card-modal-body > .d-flex.flex-column > *:nth-child(6) { animation-delay: 0.350s; }
.off-canvas-card-drawer.active .card-modal-body > .d-flex.flex-column > *:nth-child(7) { animation-delay: 0.395s; }
.off-canvas-card-drawer.active .card-modal-body > .d-flex.flex-column > *:nth-child(8) { animation-delay: 0.440s; }
.off-canvas-card-drawer.active .card-modal-body > .d-flex.flex-column > *:nth-child(9) { animation-delay: 0.485s; }
.off-canvas-card-drawer.active .card-modal-body > .d-flex.flex-column > *:nth-child(10) { animation-delay: 0.530s; }
.off-canvas-card-drawer.active .card-modal-body > .d-flex.flex-column > *:nth-child(11) { animation-delay: 0.575s; }
.off-canvas-card-drawer.active .card-modal-body > .d-flex.flex-column > *:nth-child(12) { animation-delay: 0.620s; }
.off-canvas-card-drawer.active .card-modal-body > .d-flex.flex-column > *:nth-child(13) { animation-delay: 0.665s; }

@media (max-width: 767.98px) {
    .hdr-glow { width: 260px; height: 260px; }
    .logo-wrap::before { inset: -4px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .srnt-topbar, .srnt-topbar *, .srnt-topbar *::after,
    .srnt-brand-bar, .srnt-brand-bar *, .srnt-brand-bar::before, .srnt-brand-bar::after, .hdr-fx::after,
    .srnt-navbar, .srnt-navbar *, .srnt-navbar::before,
    .off-canvas-card-drawer * { animation: none !important; transition: none !important; }
}