:root {
    --bfc-red: #e60012;
    --bfc-red-dark: #b8000e;
    --bfc-pink: #ff2d55;
    --bfc-pink-soft: #ffe3e8;
    --bfc-cream: #fff5f7;
    --bfc-black: #111114;
    --bfc-black-soft: #1c1c22;
    --logo-h: 44px;
}

/* ========== 1. TOP INFO BAR ========== */
.bfc-topbar {
    background: var(--bfc-black) !important;
    color: #fff !important;
    height: 38px;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}
.bfc-topbar > .container-fluid { height: 100%; }
.topbar-item {
    color: #fff !important;
    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(--bfc-pink) !important; font-size: 13px; }
a.topbar-item:hover { color: #ffc2cd !important; }
.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; color: #fff !important; }
.topbar-social a {
    color: #fff !important;
    font-size: 13.5px;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}
.topbar-social a:hover { color: var(--bfc-pink) !important; 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, #ff2d55 0%, #e60012 100%) !important;
    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.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
a.topbar-join:hover { filter: brightness(1.1); }
.topbar-join.no-link { cursor: default; }
@media (min-width: 1200px) { .topbar-join { margin-right: -1.5rem; } }

/* Mobile top bar */
@media (max-width: 767.98px) {
    .bfc-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 (white + soft pink, no image) ========== */
.bfc-brand-bar {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    background-image:
        radial-gradient(circle at 92% 20%, rgba(255, 45, 85, 0.14) 0%, rgba(255, 45, 85, 0) 42%),
        radial-gradient(circle at 5% 90%, rgba(230, 0, 18, 0.08) 0%, rgba(230, 0, 18, 0) 40%),
        linear-gradient(180deg, #ffffff 0%, var(--bfc-cream) 100%);
}
.brand-inner { min-height: 64px; }
.brand-link { min-width: 0; padding: 4px 0; }

/* Logo: size locked so it can never blow up */
.bfc-logo {
    height: var(--logo-h) !important;
    width: auto !important;
    max-width: 140px !important;
    max-height: 90px !important;
    object-fit: contain;
    display: block;
}
.bfc-title {
    font-family: 'Cinzel', Georgia, serif !important;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.3px;
    word-break: break-word;
}
.bfc-title .t-red  { color: var(--bfc-red) !important; }
.bfc-title .t-dark { color: var(--bfc-black) !important; }
.bfc-tagline {
    font-size: 10px;
    font-weight: 600;
    color: var(--bfc-black-soft) !important;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-top: 3px;
    line-height: 1.3;
    display: block;
}

.bfc-divider { align-items: center; margin-top: 5px; width: 100%; max-width: 320px; }
.bfc-divider .line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--bfc-pink));
}
.bfc-divider .line:last-child {
    background: linear-gradient(90deg, var(--bfc-pink), transparent);
}
.bfc-divider .ball {
    margin: 0 9px;
    color: var(--bfc-red);
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}

@media (min-width: 576px) {
    :root { --logo-h: 50px; }
    .brand-inner { min-height: 70px; }
    .bfc-title { font-size: 21px; }
    .bfc-tagline { font-size: 11px; }
}
@media (min-width: 768px) {
    :root { --logo-h: 64px; }
    .brand-inner { min-height: 90px; }
    .bfc-title { font-size: 26px; }
    .bfc-tagline { font-size: 12px; }
}
@media (min-width: 1200px) {
    :root { --logo-h: 80px; }
    .brand-inner { min-height: 110px; }
    .logo-wrap { margin-left: 20px; margin-right: 16px !important; }
    .bfc-title { font-size: 32px; }
    .bfc-tagline { font-size: 13.5px; margin-top: 4px; }
}

/* 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(--bfc-red) !important;
    border: 1.5px solid var(--bfc-red);
    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(230, 0, 18, 0.12);
    transition: all 0.2s ease;
}
.btn-apply-outline i { font-size: 18px; color: var(--bfc-red); }
.btn-apply-outline:hover {
    background: var(--bfc-red);
    color: #fff !important;
    transform: translateY(-2px);
}
.btn-apply-outline:hover i { color: #fff; }

.btn-donate-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff2d55 0%, #e60012 100%) !important;
    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(230, 0, 18, 0.35);
    transition: all 0.2s ease;
}
.heart-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    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 */
.bfc-mobile-action-bar { border-color: #ffe0e6 !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(--bfc-red);
    border: 1.5px solid var(--bfc-red);
}
.membership-pill i { color: var(--bfc-red); }
.membership-pill:active { background-color: var(--bfc-pink-soft); transform: scale(0.97); }
.donate-pill {
    background: linear-gradient(135deg, #ff2d55 0%, #e60012 100%);
    color: #fff !important;
    border: none;
    box-shadow: 0 2px 6px rgba(230, 0, 18, 0.3);
}
.donate-pill:active { transform: scale(0.97); }
.login-pill {
    background: var(--bfc-black);
    color: #fff !important;
    border: none;
    padding: 6px 12px;
    box-shadow: 0 2px 6px rgba(17, 17, 20, 0.25);
}
.login-pill:active { transform: scale(0.97); }

/* ========== 3. BOTTOM NAVBAR (red gradient) ========== */
.bfc-navbar {
    background: linear-gradient(90deg, var(--bfc-red-dark) 0%, var(--bfc-red) 50%, #f21a3a 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 56px;
    height: 56px;
    font-family: 'Poppins', sans-serif;
}
.bfc-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 !important;
    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: #ffffff;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.nav-item-link:hover, .nav-item-link.active { color: #ffffff !important; }
.nav-item-link:hover::after, .nav-item-link.active::after { transform: scaleX(1); }
.nav-item-link.active { text-shadow: 0 0 12px rgba(255,255,255,.55); }
.caret-icon { font-size: 9px; margin-left: 4px; opacity: 0.9; }

.nav-item-dropdown { position: relative; }
.dropdown-popover {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    background-color: #ffffff;
    min-width: 230px;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
    border-top: 3px solid var(--bfc-black);
    border-radius: 0 0 8px 8px;
    z-index: 999;
}
.dropdown-popover li a {
    color: var(--bfc-black);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: block;
    padding: 9px 16px;
    transition: background 0.15s, padding-left 0.2s ease, color 0.15s;
}
.dropdown-popover li a i { color: var(--bfc-red); width: 16px; text-align: center; transition: color .15s; }
.dropdown-popover li a:hover { background: var(--bfc-pink-soft); color: var(--bfc-red); padding-left: 22px; }
.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: #ffffff;
    color: var(--bfc-red) !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 8px rgba(0, 0, 0, 0.25);
    margin-left: 10px;
    margin-right: -20px;
    transition: 0.2s ease;
}
.btn-nav-login:hover { background: var(--bfc-black); color: #ffffff !important; }

/* Mobile trigger */
.modern-menu-trigger {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #ffc2cd;
    background: #ffffff;
    color: var(--bfc-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.2s ease;
}
.modern-menu-trigger:active { background: var(--bfc-pink-soft); transform: scale(0.95); }

/* ========== 4. MOBILE DRAWER ========== */
.off-canvas-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 20, 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; }
.off-canvas-card-drawer .card-modal-header { border-bottom: 2px solid var(--bfc-pink-soft) !important; }

.circular-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--bfc-pink-soft);
    color: var(--bfc-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: 0.2s;
}
.circular-close-btn:active { background: var(--bfc-red); color: #ffffff; }

.card-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    color: #1e1e24;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.15s ease;
}
.card-menu-item:active, .card-menu-item.active { background: var(--bfc-pink-soft); color: var(--bfc-red); }
.card-menu-item.active .menu-icon-pill { background: var(--bfc-red); color: #ffffff; }

.menu-icon-pill {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--bfc-pink-soft);
    color: var(--bfc-red);
    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: #1e1e24;
    text-align: left;
    transition: 0.15s;
}
.card-collapse-trigger:active, .card-collapse-trigger.open { background: var(--bfc-pink-soft); color: var(--bfc-red); }
.sub-arrow { font-size: 11px; color: #9a9aa5; transition: transform 0.2s ease; }
.card-collapse-trigger.open .sub-arrow { transform: rotate(180deg); color: var(--bfc-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: #5c5c68;
    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(--bfc-red); background: var(--bfc-cream); }

.btn-card-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--bfc-black);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(17, 17, 20, 0.3);
    transition: transform 0.15s ease;
}
.btn-card-login:active { transform: scale(0.98); }
.btn-card-donate {
    background: linear-gradient(135deg, #ff2d55 0%, #e60012 100%);
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
}

.card-footer-info { font-size: 13px; }
.contact-pill-icon {
    width: 20px;
    color: var(--bfc-red);
    font-size: 13px;
    flex-shrink: 0;
    text-align: center;
}
.contact-pill-link {
    color: #5c5c68;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    word-break: break-all;
    transition: color 0.15s ease;
}
.contact-pill-link:hover { color: var(--bfc-red); }
.contact-pill-text { color: #5c5c68; font-weight: 500; font-size: 13px; line-height: 1.4; }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes bfcRise     { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bfcSlideR   { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: none; } }
@keyframes bfcNavIn    { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes bfcPop      { 0% { opacity: 0; transform: scale(.3) rotate(-120deg); } 70% { transform: scale(1.1) rotate(8deg); } 100% { opacity: 1; transform: none; } }
@keyframes bfcFloat    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes bfcSpin     { to { transform: rotate(360deg); } }
@keyframes bfcHalo     { 0% { box-shadow: 0 0 0 0 rgba(255,45,85,.5); } 100% { box-shadow: 0 0 0 18px rgba(255,45,85,0); } }
@keyframes bfcFlow     { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes bfcShine    { 0% { left: -80%; } 55%,100% { left: 140%; } }
@keyframes bfcBeat     { 0%,100% { transform: scale(1); } 15% { transform: scale(1.28); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } 60% { transform: scale(1); } }
@keyframes bfcPulse    { 0%,100% { box-shadow: 0 6px 18px rgba(230,0,18,.35), 0 0 0 0 rgba(255,45,85,.6); } 50% { box-shadow: 0 6px 18px rgba(230,0,18,.35), 0 0 0 14px rgba(255,45,85,0); } }
@keyframes bfcPulseRed { 0%,100% { box-shadow: 0 0 0 0 rgba(230,0,18,.35); } 50% { box-shadow: 0 0 0 8px rgba(230,0,18,0); } }
@keyframes bfcGrow     { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bfcDrop     { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes bfcBall     { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(180deg); } }
@keyframes bfcBlob     { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes bfcSpinBall { to { transform: rotate(360deg); } }

/* ----- Top bar ----- */
.bfc-topbar { animation: bfcRise .6s ease backwards; }
.topbar-social a { display: inline-block; animation: bfcRise .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: bfcSpinBall 4s linear infinite; }

/* ----- Shine sweep on red buttons ----- */
.btn-donate-main, .topbar-join { position: relative; overflow: hidden; }
.btn-donate-main::after, .topbar-join::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-20deg);
    animation: bfcShine 3.2s ease-in-out infinite;
    pointer-events: none;
}

/* ----- Brand banner: bottom flowing line ----- */
.bfc-brand-bar::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bfc-black), var(--bfc-red), var(--bfc-pink), var(--bfc-red), var(--bfc-black));
    background-size: 200% 100%;
    animation: bfcFlow 5s linear infinite;
    z-index: 3;
}
.brand-inner, .bfc-mobile-action-bar { position: relative; z-index: 2; }

/* ----- Decorative shapes ----- */
.hdr-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.fx-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,45,85,.18), rgba(255,45,85,0) 70%);
    animation: bfcBlob 6s ease-in-out infinite;
}
.fx-c1 { width: 320px; height: 320px; right: 4%; top: -50%; }
.fx-c2 { width: 220px; height: 220px; left: 2%; bottom: -60%; animation-delay: -3s; }
.fx-ball {
    position: absolute;
    color: var(--bfc-red);
    opacity: .09;
    animation: bfcBall 6s ease-in-out infinite;
}
.fx-b1 { font-size: 64px; right: 14%; top: 14%; }
.fx-b2 { font-size: 38px; left: 38%; bottom: 8%; animation-delay: -2.5s; opacity: .07; }

/* ----- Logo: pop-in, float, spinning ring, pulsing halo ----- */
.logo-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    max-width: 150px;
    animation: bfcFloat 4s ease-in-out infinite;
}
.logo-wrap .bfc-logo { position: relative; z-index: 1; animation: bfcPop 1s cubic-bezier(.2,1.3,.4,1) backwards; }
.logo-wrap::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 50%, var(--bfc-red) 80%, var(--bfc-pink) 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: bfcSpin 3s linear infinite;
}
.logo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: bfcHalo 2.4s ease-out infinite;
}

/* ----- Title / tagline / divider ----- */
.bfc-title { animation: bfcRise .8s .25s cubic-bezier(.2,.8,.2,1) backwards; }
.bfc-tagline { animation: bfcRise .8s .5s cubic-bezier(.2,.8,.2,1) backwards; }
.bfc-divider .line { animation: bfcGrow 1s .9s ease backwards; }
.bfc-divider .line:first-child { transform-origin: right center; }
.bfc-divider .line:last-child  { transform-origin: left center; }
.bfc-divider .ball i { display: inline-block; animation: bfcSpinBall 5s linear infinite; }

/* ----- Action buttons ----- */
.btn-apply-outline { animation: bfcSlideR .7s .45s cubic-bezier(.2,.8,.2,1) backwards; }
.btn-donate-main { animation: bfcSlideR .7s .6s cubic-bezier(.2,.8,.2,1) backwards, bfcPulse 2.4s 1.4s ease-in-out infinite; }
.heart-circle i { animation: bfcBeat 1.6s ease-in-out infinite; }
.modern-menu-trigger { animation: bfcPulseRed 2.6s ease-in-out infinite; }

/* ----- Navbar ----- */
.bfc-navbar { animation: bfcNavIn .7s .1s cubic-bezier(.2,.8,.2,1) backwards; transition: box-shadow .3s ease; }
.bfc-navbar.is-scrolled { box-shadow: 0 8px 26px rgba(0,0,0,.35) !important; }
.bfc-navbar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, #ffc2cd, #ffffff, transparent);
    background-size: 200% 100%;
    animation: bfcFlow 3.5s linear infinite;
}
.main-menu > li { animation: bfcRise .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); }

/* ----- Dropdown open animation ----- */
.nav-item-dropdown:hover .dropdown-popover { animation: bfcDrop .22s ease; }
.dropdown-popover li { animation: bfcDrop .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; }

/* ----- Mobile drawer: items slide in one by one ----- */
.off-canvas-card-drawer.active .card-modal-body > .d-flex.flex-column > * { animation: bfcSlideR .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) {
    .fx-c1 { width: 200px; height: 200px; }
    .fx-b1 { font-size: 42px; }
    .fx-b2 { display: none; }
    .logo-wrap::before { inset: -3px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bfc-topbar, .bfc-topbar *, .bfc-topbar *::after,
    .bfc-brand-bar, .bfc-brand-bar *, .bfc-brand-bar::after,
    .bfc-navbar, .bfc-navbar *, .bfc-navbar::before,
    .off-canvas-card-drawer * { animation: none !important; transition: none !important; }
}