:root {
    /* Logo Colors */
    --srnt-navy: #0f2f7a;        /* Ribbon Dark Blue */
    --srnt-navy-dark: #0a2058;
    --srnt-navy-light: #1ea7e1;  /* Swirl Sky Blue */
    --srnt-orange: #f58220;      /* Logo Orange */
    --srnt-orange-dark: #e8400c;
    --srnt-red: #ed1c24;         /* Heart Red */
    --srnt-green: #1f8f2e;       /* Leaves Green */
    --srnt-gold: #e2a72e;        /* Logo Border Gold */
    --srnt-cream: #fdf3dc;       /* Logo Cream */

    /* Header gradient: Ribbon Navy -> Swirl Sky Blue */
  --srnt-header-bg: linear-gradient(135deg, #fffaf0 0%, #fdf0d5 50%, #f9e1b0 100%);
}

/* ========== 1. TOP INFO BAR (compact) ========== */
.srnt-topbar {
    background: var(--srnt-navy-dark); /* Dark Navy for Top Bar */
    color: #fff;
    height: 38px;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}
.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(--srnt-gold); font-size: 13px; }
.topbar-social a:hover { color: var(--srnt-gold); transform: translateY(-2px); }
.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(--srnt-orange); 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, #ff7a1a 0%, #e8400c 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;
    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 (Logo Style) ========== */
.srnt-brand-bar {
    position: relative;
    overflow: hidden;
    background: var(--srnt-header-bg);
    background-image: var(--srnt-header-bg);
    border-bottom: 4px solid var(--srnt-gold, #e2a72e);
}
.brand-inner { min-height: 64px; }
.brand-link { min-width: 0; padding: 4px 0; }
.srnt-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
}
.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;
    /* Dark shadow hataya, ab yeh gradient background par saaf dikhega */
    filter: none; 
}
.srnt-title .t-navy { color: var(--srnt-navy); }
.srnt-title .t-orange {color: var(--srnt-orange); } /* Light Orange/Peach for contrast */
.srnt-tagline {
    font-size: 10px;
    font-weight: 600;
    color: var(--srnt-navy);
    text-shadow: none;
    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(--srnt-navy));
}
.srnt-divider .line:last-child {
   background: linear-gradient(90deg, var(--srnt-navy), transparent);
}
.srnt-divider .diamond {
    width: 7px;
    height: 7px;
    transform: rotate(45deg);
    margin: 0 8px;
    flex-shrink: 0;
    background: var(--srnt-orange);
    box-shadow: -9px 0 0 -2px var(--srnt-orange), 9px 0 0 -2px var(--srnt-orange);
}

@media (min-width: 576px) {
    .brand-inner { min-height: 70px; }
    .srnt-logo { height: 50px; }
    .srnt-title { font-size: 20px; }
    .srnt-tagline { font-size: 11.5px; }
}
@media (min-width: 768px) {
    .brand-inner { min-height: 90px; }
    .srnt-logo { height: 64px; }
    .srnt-title { font-size: 24px; }
    .srnt-tagline { font-size: 13px; }
}
@media (min-width: 1200px) {
    .brand-inner { min-height: 110px; }
    .srnt-logo { height: 80px; }
    .logo-wrap { margin-left: 20px; margin-right: 16px !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(--srnt-navy);
    border: 1.5px solid var(--srnt-navy);
    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(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}
.btn-apply-outline i { font-size: 18px; color: var(--srnt-navy); }
.btn-apply-outline:hover {
    background: var(--srnt-navy);
    color: #fff;
    transform: translateY(-2px);
}
.btn-apply-outline:hover i { color: #fff; }

.btn-donate-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--srnt-red); /* Logo ka Red color */
    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(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}
.heart-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.btn-donate-main:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* Mobile sub-action bar */
.srnt-mobile-action-bar { border-color: rgba(11, 42, 91, 0.15) !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(--srnt-navy);
    border: 1.5px solid #fff;
}
.membership-pill i { color: var(--srnt-navy); }
.membership-pill:active { background-color: #eef3fb; transform: scale(0.97); }
.donate-pill {
    background: var(--srnt-red);
    color: #fff !important;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.donate-pill:active { transform: scale(0.97); }
.login-pill {
    background: #fff;
    color: var(--srnt-navy) !important;
    border: none;
    padding: 6px 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.login-pill:active { transform: scale(0.97); }

/* ========== 3. BOTTOM NAVBAR ========== */
.srnt-navbar {
    background-color: var(--srnt-navy) !important; /* Navy Blue */
    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(--srnt-gold);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.nav-item-link:hover, .nav-item-link.active { color: var(--srnt-gold); }
.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(--srnt-navy);
    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(--srnt-orange); width: 16px; text-align: center; transition: color .15s; }
.dropdown-popover li a:hover { background: var(--srnt-orange); 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: linear-gradient(135deg, #ff7a1a 0%, #e8400c 100%);
    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(232, 64, 12, 0.4);
    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: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--srnt-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.2s ease;
}
.modern-menu-trigger:active { background: #e2e8f0; transform: scale(0.95); }

/* ========== 4. MOBILE DRAWER ========== */
.off-canvas-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 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;
    transition: right 0.32s cubic-bezier(0.25, 1, 0.5, 1);
}
.off-canvas-card-drawer.active { right: 0; }

.circular-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: 0.2s;
}
.circular-close-btn:active { background: #e2e8f0; color: #0f172a; }

.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: #eef3fb; color: var(--srnt-navy); }
.card-menu-item.active .menu-icon-pill { background: var(--srnt-navy); color: #ffffff; }

.menu-icon-pill {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eef3fb;
    color: var(--srnt-navy);
    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: #eef3fb; color: var(--srnt-navy); }
.sub-arrow { font-size: 11px; color: #94a3b8; transition: transform 0.2s ease; }
.card-collapse-trigger.open .sub-arrow { transform: rotate(180deg); color: var(--srnt-navy); }

.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;
    transition: 0.15s;
}
.nested-link:hover, .nested-link:active { color: var(--srnt-navy); background: #f8fafc; }

.btn-card-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--srnt-navy);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(11, 42, 91, 0.3);
    transition: transform 0.15s ease;
}
.btn-card-login:active { transform: scale(0.98); }
.btn-card-donate {
    background: var(--srnt-red);
    box-shadow: 0 4px 12px rgba(237, 28, 36, 0.3);
}

.card-footer-info { font-size: 13px; }
.contact-pill-icon {
    width: 20px;
    color: var(--srnt-navy);
    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(--srnt-navy); }
.contact-pill-text { color: #64748b; font-weight: 500; font-size: 13px; line-height: 1.4; }

/* =====================================================
   ✨ ANIMATIONS (Simplified for Clean Look)
   ===================================================== */
@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(.9); } 100% { opacity: 1; transform: none; } }
@keyframes srntFlow     { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes srntBeat     { 0%,100% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } 60% { transform: scale(1); } }

/* ----- Top bar ----- */
.srnt-topbar { animation: srntRise .6s ease backwards; }
.topbar-join i { animation: srntBeat 1.6s ease-in-out infinite; }
/* Topbar: sab kuch ek line mein */
.topbar-left { flex-wrap: nowrap !important; min-width: 0; overflow: hidden; }
.topbar-item { white-space: nowrap; }
.topbar-item span { overflow: hidden; text-overflow: ellipsis; }

/* Address ki max width (extra safety) */
.topbar-address { min-width: 0; max-width: 340px; }
.topbar-address span { display: inline-block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fa-phone-alt {
    transform: scaleX(-1);
    display: inline-block;
}
/* Chhoti screens par divider/email ko tight rakho */
@media (max-width: 1399.98px) {
    .topbar-address { max-width: 260px; }
    .topbar-address span { max-width: 220px; }
}
/* ----- Brand banner: Bottom Line ----- */
.srnt-brand-bar::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--srnt-navy), var(--srnt-navy-light), var(--srnt-gold), var(--srnt-orange), var(--srnt-red), var(--srnt-green), var(--srnt-navy));
    background-size: 200% 100%;
    animation: srntFlow 5s linear infinite;
    z-index: 3;
}
.brand-inner, .srnt-mobile-action-bar { position: relative; z-index: 2; }

/* ----- Logo Effects Removed for Clean Look ----- */
.logo-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}
.logo-wrap .srnt-logo { position: relative; z-index: 1; animation: srntPop 0.8s ease backwards; }

/* ----- Title / tagline / divider ----- */
.srnt-title { animation: srntRise .8s .25s cubic-bezier(.2,.8,.2,1) backwards; }
.srnt-tagline { animation: srntRise .8s .5s cubic-bezier(.2,.8,.2,1) backwards; }

/* ----- 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(0,0,0,.38) !important; }
.srnt-navbar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--srnt-orange), transparent);
    background-size: 200% 100%;
    animation: srntFlow 3.5s linear infinite;
}

/* ----- Dropdown open animation ----- */
.nav-item-dropdown:hover .dropdown-popover { animation: srntDrop .22s ease; }

/* ----- 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; }
/* Phone icon direction fix */
.srnt-topbar .topbar-item .fa-phone-alt {
    transform: scaleX(-1) !important;
    display: inline-block;
}
/* 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::after,
    .srnt-navbar, .srnt-navbar *, .srnt-navbar::before,
    .off-canvas-card-drawer * { animation: none !important; transition: none !important; }
}