/* ============ Public website design (header, footer, home page) ============ */
:root {
  --teal: var(--brand, #0d4f5c);
  --teal-dark: var(--brand-dark, #083c47);
  --teal-2: color-mix(in srgb, var(--teal) 85%, #fff);
  --gold: var(--accent, #f5b21b);
  --gold-dark: color-mix(in srgb, var(--gold) 88%, #000);
  --mint: #eef7f2;
  --cream: #fff8ea;
  --ink: #1b2a33;
}
body.site { font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; }
.site h1, .site h2, .site h3, .site .ff-head { font-family: "Baloo 2", "Poppins", system-ui, sans-serif; }
.gold { color: var(--gold); }
.teal { color: var(--teal); }

/* ---------- Top bar ---------- */
.topbar { background: var(--teal); color: #fff; font-size: .9rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.social { display: flex; gap: 8px; }
.social a { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; font-size: .95rem; }
.social .fb { background: #1877f2; } .social .ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social .yt { background: #ff0000; } .social .wa { background: #25d366; }
.social.lg a { width: 46px; height: 46px; font-size: 1.35rem; }
.topbar .phone { color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.topbar .phone i { color: #fff; margin-right: 6px; }

/* ---------- Header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.site-header .container { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; flex-shrink: 1; }
.main-nav { flex-shrink: 0; }
.brand img { height: 62px; width: 62px; object-fit: contain; flex-shrink: 0; }
.brand-name { font-family: "Oswald", "Baloo 2", sans-serif; font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--teal); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.brand-tag { font-size: .82rem; color: #3a4a52; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn { margin-left: auto; width: 54px; height: 54px; border: 0; border-radius: 10px; background: var(--gold); color: var(--ink); font-size: 1.8rem; display: grid; place-items: center; flex-shrink: 0; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.main-nav > a, .main-nav .dropdown > a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 11px; border-radius: 8px; font-size: .95rem; white-space: nowrap; }
.main-nav > a:hover, .main-nav .dropdown > a:hover, .main-nav a.active { color: var(--teal); background: var(--mint); }
.main-nav .btn-donate { background: var(--gold); color: var(--ink); font-weight: 700; padding: 9px 18px; border-radius: 30px; margin-left: 6px; }
.main-nav .btn-donate:hover { background: var(--gold-dark); color: var(--ink); }
.mobile-nav { border-top: 1px solid #eee; background: #fff; }
.mobile-nav a { display: block; padding: 12px 20px; color: var(--ink); text-decoration: none; border-bottom: 1px solid #f2f2f2; font-weight: 500; }
.mobile-nav a i { color: var(--teal); width: 26px; display: inline-block; }
@media (min-width: 1400px) { .menu-btn, .mobile-nav { display: none !important; } }
@media (max-width: 1399.98px) { .main-nav { display: none; } }
@media (max-width: 575.98px) {
  .brand img { height: 46px; width: 46px; } .brand-name { font-size: 1.35rem; } .brand-tag { font-size: .68rem; }
  .menu-btn { width: 46px; height: 46px; font-size: 1.5rem; }
}

/* ---------- News ticker ---------- */
.ticker { background: #e3f1ec; }
.ticker .container { display: flex; align-items: center; gap: 14px; padding-top: 8px; padding-bottom: 8px; }
.ticker .tag { background: var(--teal); color: #fff; font-weight: 600; padding: 7px 16px; border-radius: 6px; white-space: nowrap; font-size: .95rem; }
.ticker .tag i { margin-right: 6px; }
.ticker .track { overflow: hidden; flex: 1; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker .track span { display: inline-block; padding-left: 100%; animation: tick 28s linear infinite; font-weight: 600; font-size: .95rem; }
.ticker .track a { color: var(--ink); text-decoration: none; margin-right: 60px; }
.ticker .track:hover span { animation-play-state: paused; }
.ticker .more { color: var(--ink); font-size: 1.2rem; text-decoration: none; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track span { animation: none; padding-left: 0; } }

/* ---------- Hero slider ---------- */
.hero-slider .carousel-item { height: 540px; background: #0b3a2c center right / cover no-repeat; }
.hero-slider .carousel-item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,45,30,.92) 0%, rgba(6,45,30,.7) 35%, rgba(6,45,30,.05) 70%); }
.hero-slider .caption { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 560px; color: #fff; }
.hero-slider h1 { font-size: 4rem; line-height: 1.02; font-weight: 800; margin: 0 0 14px; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero-slider p { font-size: 1.2rem; max-width: 460px; margin-bottom: 26px; }
.btn-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 40px; padding: 11px 24px; font-weight: 700; text-decoration: none; font-size: 1.02rem; transition: transform .15s; }
.btn-pill:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); border: 2px solid var(--gold); }
.btn-gold:hover { background: var(--gold-dark); color: var(--ink); }
.btn-teal-outline { background: var(--teal); color: #fff; border: 2px solid rgba(255,255,255,.85); }
.btn-teal-outline:hover { color: #fff; background: var(--teal-2); }
.btn-teal { background: var(--teal); color: #fff; border: 2px solid var(--teal); }
.btn-teal:hover { background: var(--teal-2); color: #fff; }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: auto; opacity: 1; padding: 0 14px; z-index: 3; }
.hero-arrow { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.hero-slider .carousel-indicators { margin-bottom: 14px; }
.hero-slider .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #fff; opacity: .6; margin: 0 4px; }
.hero-slider .carousel-indicators .active { width: 22px; border-radius: 4px; opacity: 1; }
@media (max-width: 991.98px) { .hero-slider .carousel-item { height: 420px; } .hero-slider h1 { font-size: 3rem; } .hero-slider .caption { max-width: 62%; padding-left: 30px; } .founder h2 { font-size: 1.9rem; } .founder .msg { font-size: 1rem; } .sec-title { font-size: 2.1rem; } }
@media (max-width: 575.98px) {
  .hero-slider .carousel-item { height: 330px; }
  .hero-slider .caption { padding-left: 34px; padding-right: 20px; max-width: 78%; }
  .hero-slider h1 { font-size: 2.15rem; } .hero-slider p { font-size: .9rem; margin-bottom: 14px; max-width: 220px; }
  .hero-slider .btn-pill { padding: 7px 14px; font-size: .85rem; }
  .hero-arrow { width: 32px; height: 32px; font-size: .95rem; }
  .hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { padding: 0 4px; }
}

/* ---------- Section headings ---------- */
.sec { padding: 56px 0; }
.sec-title { font-weight: 800; font-size: 2.5rem; color: var(--teal); margin: 0; line-height: 1.1; }
.sec-sub { color: #3a4a52; margin-top: 2px; }
.sec-line { display: flex; justify-content: center; gap: 4px; margin: 8px 0 22px; }
.sec-line span { height: 4px; border-radius: 4px; background: var(--teal); width: 46px; } .sec-line span + span { background: var(--gold); width: 22px; }
.pill-link { border: 1.5px solid var(--teal); color: var(--teal); border-radius: 30px; padding: 6px 16px; font-weight: 600; text-decoration: none; font-size: .92rem; white-space: nowrap; background: #fff; }
.pill-link:hover { background: var(--teal); color: #fff; }
@media (max-width: 575.98px) { .sec { padding: 34px 0; } .sec-title { font-size: 1.9rem; } }

/* ---------- Quick links ---------- */
.quick { background: var(--mint); }
.qgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.qtile { border-radius: 16px; padding: 22px 10px 18px; text-align: center; text-decoration: none; color: var(--ink); box-shadow: 0 4px 14px rgba(13,79,92,.08); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qtile:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(13,79,92,.14); color: var(--ink); }
.qicon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.8rem; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.qtile b { font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
@media (max-width: 575.98px) { .qgrid { gap: 8px; } .qtile { padding: 12px 4px; border-radius: 12px; gap: 6px; } .qicon { width: 44px; height: 44px; font-size: 1.25rem; } .qtile b { font-size: .74rem; } }

/* ---------- Founder ---------- */
.founder { background: linear-gradient(90deg, #fffdf6, var(--cream)); position: relative; overflow: hidden; }
.founder-photo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 5px solid var(--gold); padding: 5px; background: #fff; box-shadow: 0 8px 26px rgba(0,0,0,.12); }
.founder .name { font-weight: 700; font-size: 1.35rem; color: var(--ink); margin-top: 12px; }
.founder .role { color: #3a4a52; }
.founder h2 { font-size: 2.3rem; font-weight: 800; color: var(--teal); }
.founder .msg { font-size: 1.1rem; line-height: 1.6; white-space: pre-line; color: var(--ink); }
.leaf { position: absolute; color: #9cc77d; opacity: .55; pointer-events: none; }
.leaf.l1 { top: -10px; right: -20px; width: 170px; transform: rotate(-20deg); }
.leaf.l2 { bottom: -30px; right: 60px; width: 120px; transform: rotate(160deg); opacity: .35; }
@media (max-width: 575.98px) { .founder-photo { width: 140px; height: 140px; border-width: 3px; padding: 3px; } .founder h2 { font-size: 1.5rem; } .founder .msg { font-size: .9rem; } .founder .name { font-size: 1rem; } .founder .role { font-size: .8rem; } }

/* ---------- Goals ---------- */
.goals { background: var(--mint); }
.ggrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gcard { background: #fff; border-radius: 12px; padding: 18px 10px 14px; text-align: center; box-shadow: 0 3px 12px rgba(13,79,92,.07); }
.gcard i { font-size: 2rem; display: block; margin-bottom: 6px; }
.gcard b { font-weight: 600; font-size: .98rem; line-height: 1.25; display: block; overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 991.98px) { .gcard b { font-size: .74rem; } .gcard i { font-size: 1.6rem; } .gcard { padding: 12px 6px; } }
.goal-img { border-radius: 16px; overflow: hidden; height: 100%; min-height: 250px; position: relative; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.goal-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; position: absolute; inset: 0; }
.goal-img .script { position: absolute; top: 12%; left: 10%; right: 8%; font-family: "Caveat", cursive; color: #fff; font-size: 2.6rem; line-height: 1.05; transform: rotate(-8deg); text-shadow: 0 2px 8px rgba(0,0,0,.35); }
@media (max-width: 575.98px) { .ggrid { gap: 8px; } .gcard { padding: 10px 4px; } .gcard i { font-size: 1.4rem; } .gcard b { font-size: .7rem; } .goal-img { min-height: 200px; } }

/* ---------- Projects ---------- */
.pcard { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.08); height: 100%; text-decoration: none; color: var(--ink); display: block; }
.pcard:hover { color: var(--ink); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.pcard img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.pcard .pb { padding: 12px 14px 16px; }
.pcard h3 { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--teal); margin: 0 0 2px; }
.pcard .loc { font-size: .85rem; color: #444; } .pcard .loc i { color: #e0262c; }
.pcard p { font-size: .88rem; margin: 6px 0 0; color: #3a4a52; }
@media (max-width: 575.98px) {
  .pscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; }
  .pscroll > * { scroll-snap-align: start; }
}

/* ---------- Donate ---------- */
.donate-band { background: var(--cream); overflow: hidden; }
.donate-band .img { height: 100%; min-height: 260px; background: center / cover no-repeat; border-radius: 0 50% 50% 0 / 0 60% 60% 0; }
.donate-band h2 { font-size: 2.5rem; font-weight: 800; color: var(--teal); }
.amt-chip { background: #fff; border: 1.5px solid #e5e5e5; border-radius: 10px; padding: 10px 6px; font-weight: 700; color: var(--ink); text-decoration: none; text-align: center; flex: 1 1 0; min-width: 0; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.amt-chip.other { flex-grow: 1.6; }
.amt-chip:hover { border-color: var(--gold); color: var(--ink); }
.btn-donate-big { display: flex; justify-content: center; align-items: center; gap: 10px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 1.15rem; border-radius: 40px; padding: 13px; text-decoration: none; box-shadow: 0 6px 16px rgba(245,178,27,.4); }
.btn-donate-big:hover { background: var(--gold-dark); color: var(--ink); }
@media (max-width: 991.98px) { .amt-chip { font-size: .85rem; padding: 8px 4px; } .donate-band h2 { font-size: 2rem; } }
@media (max-width: 575.98px) { .donate-band h2 { font-size: 1.5rem; } .donate-band .img { min-height: 180px; } .amt-chip { font-size: .72rem; padding: 7px 2px; border-radius: 8px; } .btn-donate-big { font-size: 1rem; padding: 10px; } }

/* ---------- Stats ---------- */
.stats-band { background: linear-gradient(90deg, var(--teal-dark), var(--teal)); color: #fff; padding: 28px 0; }
.stat-item { display: flex; align-items: center; gap: 14px; justify-content: center; }
.stat-item i { font-size: 2.6rem; color: var(--gold); }
.stat-item .v { font-family: "Baloo 2", sans-serif; font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-item .l { font-size: .92rem; opacity: .9; line-height: 1.2; }
@media (max-width: 991.98px) { .stat-item { gap: 8px; } .stat-item i { font-size: 1.8rem; } .stat-item .v { font-size: 1.45rem; } .stat-item .l { font-size: .75rem; } }
@media (max-width: 575.98px) { .stat-item { justify-content: flex-start; } .stat-item i { font-size: 1.6rem; } .stat-item .v { font-size: 1.3rem; } .stat-item .l { font-size: .7rem; } }

/* ---------- Gallery ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gal-grid a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 3px 12px rgba(0,0,0,.1); }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gal-grid a:hover img { transform: scale(1.05); }
.gal-grid.full { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 575.98px) { .gal-grid { gap: 6px; } .gal-grid a { border-radius: 8px; } }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 20px; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 8px; }
.lightbox .cap { color: #fff; margin-top: 10px; }
.lightbox .x { position: absolute; top: 14px; right: 20px; color: #fff; font-size: 2rem; background: none; border: 0; }

/* ---------- Footer ---------- */
.site-foot { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: #e7f1f2; padding: 44px 0 0; margin-top: 0; }
.site-foot h4 { font-family: "Poppins", sans-serif; color: var(--gold); font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 7px; font-size: .92rem; }
.site-foot li a { color: #e7f1f2; text-decoration: none; }
.site-foot li a:hover { color: var(--gold); }
.site-foot li a::before { content: "\2192"; margin-right: 7px; color: #fff; }
.foot-bar { background: rgba(0,0,0,.18); margin-top: 30px; padding: 14px 0; font-size: .9rem; }
.foot-bar .container { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
.foot-bar a, .foot-bar span { color: #fff; text-decoration: none; }
.foot-bar i { color: var(--gold); margin-right: 6px; }
.copy { text-align: center; font-size: .8rem; color: #b9cfd2; padding: 10px 0 14px; }
@media (max-width: 991.98px) { .site-foot h4 { font-size: 1rem; } .site-foot li { font-size: .8rem; } .site-foot li a::before { margin-right: 4px; } }
@media (max-width: 575.98px) { .site-foot h4 { font-size: .95rem; } .site-foot li { font-size: .78rem; } .foot-bar { font-size: .75rem; } }

/* ---------- Blood donor directory ---------- */
.blood-hero { background: linear-gradient(120deg, #b3121a, #e0262c 60%, #ef5350); color: #fff; border-radius: 18px; padding: 26px 28px; position: relative; overflow: hidden; }
.blood-hero > i { font-size: 3.6rem; opacity: .9; }
.blood-hero p { opacity: .92; }
.blood-drop { width: 86px; height: 86px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #e0262c; color: #fff; font: 800 1.6rem/86px "Poppins", sans-serif; text-align: center; box-shadow: 0 6px 16px rgba(224,38,44,.3); flex: none; }
.blood-drop.sm { width: 52px; height: 52px; font-size: 1rem; line-height: 52px; box-shadow: none; }
.donor-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 12px 14px; }
.donor-card:hover { border-color: #f3b4b6; }
.blood-groups { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.bg-tile { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 12px; background: #fff; border: 1.5px solid #f1d4d5; text-decoration: none; color: #1d2430; }
.bg-tile .g { font: 800 1.25rem "Poppins", sans-serif; color: #e0262c; }
.bg-tile .c { font-size: .72rem; color: #666; white-space: nowrap; }
.bg-tile.active, .bg-tile:hover { background: #e0262c; border-color: #e0262c; }
.bg-tile.active .g, .bg-tile.active .c, .bg-tile:hover .g, .bg-tile:hover .c { color: #fff; }
@media (max-width: 767.98px) { .blood-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* home page blood band */
.blood-band { background: #fff4f4; border-top: 1px solid #f7d9da; border-bottom: 1px solid #f7d9da; }
.blood-band .drops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.blood-band .drops a { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 8px 10px; text-decoration: none; color: #1d2430; border: 1px solid #f3d0d1; }
.blood-band .drops b { color: #e0262c; font: 800 1.05rem "Poppins", sans-serif; min-width: 34px; }
.blood-band .drops span { font-size: .78rem; color: #666; }
