/* Public pages (home, activities, organizations) */
.public .hero { background: linear-gradient(135deg, rgba(13,110,253,.10), rgba(220,53,69,.08)); }
.public .hero-search { max-width: 560px; }
.public .activity-card { transition: transform .15s ease, box-shadow .15s ease; }
.public .activity-card:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.12) !important; }
.public .text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.public .rank-num, .public .rank-medal { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; font-weight: 600; flex-shrink: 0; }
.public .rank-num { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); }
.public .rank-medal { color: #fff; }
.public .rank-1 { background: #d4a017; }
.public .rank-2 { background: #9ea7ad; }
.public .rank-3 { background: #b87333; }
.public .org-avatar { width: 4rem; height: 4rem; border-radius: 1rem; background: var(--bs-primary-bg-subtle); color: var(--bs-primary); display: flex; align-items: center; justify-content: center; font-size: 2rem; flex-shrink: 0; }
.public .activity-description { line-height: 1.8; }
.qr-box { background: #fff; padding: 1rem; border-radius: .75rem; display: inline-block; }
.qr-box svg, .qr-box img { width: 240px; height: 240px; display: block; }
.public .tag-district { background: var(--bs-info-bg-subtle); color: var(--bs-info-text-emphasis); }
.public .tag-skill { background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); }
.public .tag-beneficiary { background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); }
.public .org-logo { width: 4rem; height: 4rem; border-radius: 1rem; object-fit: contain; background: #fff; border: 1px solid var(--bs-border-color); padding: .25rem; flex-shrink: 0; }
.public .org-logo-sm { width: 1.5rem; height: 1.5rem; border-radius: .35rem; object-fit: contain; background: #fff; border: 1px solid var(--bs-border-color); flex-shrink: 0; }
.public .activity-poster { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bs-tertiary-bg); }
.public .activity-poster-empty { display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: rgba(13,110,253,.35);
    background: linear-gradient(135deg, rgba(13,110,253,.12), rgba(13,202,240,.10)); }
.public .activity-poster-empty.flagday { color: rgba(220,53,69,.4); background: linear-gradient(135deg, rgba(220,53,69,.12), rgba(255,193,7,.12)); }

/* ---------- Home page ---------- */
.public .home-hero { position: relative; overflow: hidden; color: #fff; padding: 4.5rem 0 6rem;
    background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 38%, #0ea5e9 68%, #f472b6 100%); }
.public .home-hero .hero-shape { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .25; pointer-events: none; }
.public .home-hero .hero-shape-1 { width: 420px; height: 420px; background: #fde047; top: -160px; right: -80px; }
.public .home-hero .hero-shape-2 { width: 260px; height: 260px; background: #fff; bottom: -90px; left: 8%; opacity: .12; }
.public .home-hero .hero-shape-3 { width: 140px; height: 140px; background: #f472b6; top: 30%; left: 48%; opacity: .3; }
.public .home-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
    background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.4px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%); mask-image: linear-gradient(90deg, transparent 0%, #000 60%); }
.public .hero-kicker { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35); font-size: .85rem; backdrop-filter: blur(4px); }
.public .home-hero h1 { text-shadow: 0 2px 12px rgba(15,23,42,.25); }
.public .hero-lead { color: rgba(255,255,255,.9); }
.public .home-hero .hero-search { max-width: 560px; }
.public .home-hero .hero-search .form-control { border: 0; box-shadow: 0 .5rem 1.5rem rgba(15,23,42,.25); }
.public .hero-links a { color: #fff; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.6); }
.public .hero-links a:hover { border-bottom-style: solid; }
.public .hero-stat { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 1rem; padding: 1rem 1.1rem;
    backdrop-filter: blur(6px); height: 100%; }
.public .hero-stat i { font-size: 1.4rem; color: #fde047; }
.public .hero-stat-value { font-size: 1.9rem; font-weight: 700; line-height: 1.2; margin-top: .2rem; }
.public .hero-stat-label { font-size: .85rem; color: rgba(255,255,255,.85); }
.public .hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; }
.public .hero-wave path { fill: var(--bs-body-bg); }

.public .home-steps { padding: .5rem 0 0; }
.public .home-step { padding: 1rem; }
.public .home-step-icon { width: 3.4rem; height: 3.4rem; border-radius: 1rem; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff; box-shadow: 0 .4rem 1rem rgba(15,23,42,.15); }
.public .home-step-icon.step-1 { background: linear-gradient(135deg, #2563eb, #0ea5e9); }
.public .home-step-icon.step-2 { background: linear-gradient(135deg, #f97316, #facc15); }
.public .home-step-icon.step-3 { background: linear-gradient(135deg, #db2777, #f472b6); }

.public .home-band { padding: 3rem 0; }
.public .home-band-tint { background: linear-gradient(180deg, rgba(37,99,235,.06), rgba(14,165,233,.04)); border-top: 1px solid rgba(37,99,235,.08); border-bottom: 1px solid rgba(37,99,235,.08); }
.public .home-band-dots { background-color: rgba(250,204,21,.05);
    background-image: radial-gradient(rgba(37,99,235,.12) 1px, transparent 1.2px); background-size: 18px 18px; }
.public main > .home-band:last-child { padding-bottom: 4rem; }
.public main:has(.home-hero) + footer { margin-top: 0 !important; }

[data-bs-theme="dark"] .public .home-hero { background: linear-gradient(120deg, #0b1d4f 0%, #1d4ed8 45%, #0369a1 75%, #9d174d 100%); }
[data-bs-theme="dark"] .public .home-band-tint { background: linear-gradient(180deg, rgba(59,130,246,.10), rgba(14,165,233,.06)); border-color: rgba(59,130,246,.15); }
[data-bs-theme="dark"] .public .home-band-dots { background-color: rgba(250,204,21,.03); background-image: radial-gradient(rgba(148,163,184,.15) 1px, transparent 1.2px); }
@media (max-width: 575.98px) {
    .public .home-hero { padding: 3rem 0 5rem; }
    .public .home-step { padding: .5rem 0; font-size: .9rem; }
    .public .home-step-icon { width: 2.8rem; height: 2.8rem; font-size: 1.3rem; }
    .public .hero-stat-value { font-size: 1.5rem; }
}

/* ---------- Inner page hero (activity list / detail) ---------- */
.public .page-hero { position: relative; overflow: hidden; color: #fff; padding: 2.5rem 0 5rem;
    background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 45%, #0ea5e9 100%); }
.public .page-hero.page-hero-flagday { background: linear-gradient(120deg, #7f1d1d 0%, #dc2626 45%, #f59e0b 100%); }
.public .page-hero.page-hero-compact { padding-bottom: 4.5rem; }
.public .page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16;
    background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.4px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%); mask-image: linear-gradient(90deg, transparent 0%, #000 70%); }
.public .page-hero .hero-shape { position: absolute; border-radius: 50%; opacity: .2; pointer-events: none; }
.public .page-hero .hero-shape-1 { width: 360px; height: 360px; background: #fde047; top: -170px; right: -60px; }
.public .page-hero .hero-shape-2 { width: 200px; height: 200px; background: #fff; bottom: -110px; left: 12%; opacity: .1; }
.public .page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); --bs-breadcrumb-item-active-color: rgba(255,255,255,.85); }
.public .page-hero .breadcrumb a { color: #fff; }
.public .page-hero h1 { text-shadow: 0 2px 12px rgba(15,23,42,.25); }
.public .page-hero .hero-lead { color: rgba(255,255,255,.88); }
.public .hero-badge { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); font-weight: 600; }
.public .hero-org, .public .hero-cohosts a { color: #fff; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; }
.public .hero-org:hover, .public .hero-cohosts a:hover { text-decoration: underline; }
.public .hero-cohosts { color: rgba(255,255,255,.85); }
.public .hero-pill { display: inline-flex; align-items: center; padding: .35rem .8rem; border-radius: 999px; font-size: .9rem;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(4px); }
.public .hero-filter .form-control, .public .hero-filter .form-select { border: 0; box-shadow: 0 .4rem 1rem rgba(15,23,42,.2); }
.public .page-hero .hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; }
.public .page-hero .hero-wave path { fill: var(--bs-tertiary-bg); }

.public .page-body { background: var(--bs-tertiary-bg); padding: 1.5rem 0 3.5rem; }
.public .page-body .content-card { border: 0; box-shadow: 0 .25rem .9rem rgba(15,23,42,.06); border-radius: .9rem; }
.public .page-body .content-card h2 { margin-bottom: .9rem; }
.public .poster-frame { background: var(--bs-body-bg); border-radius: .9rem; padding: .5rem; box-shadow: 0 .25rem .9rem rgba(15,23,42,.06); }
.public .signup-card { border: 0; border-radius: .9rem; overflow: hidden; }
.public .signup-card-header { background: linear-gradient(120deg, #2563eb, #0ea5e9); color: #fff; font-weight: 600; border: 0; }
.public .page-hero-flagday ~ .page-body .signup-card-header { background: linear-gradient(120deg, #dc2626, #f59e0b); }
/* desktop: aligned with the first content card and stays in view while scrolling (top only applies while sticky) */
@media (min-width: 992px) { .public .page-body .signup-card { top: 5rem; } }
.public main:has(.page-body) { background: var(--bs-tertiary-bg); }
.public main:has(.page-body) + footer { margin-top: 0 !important; background: var(--bs-body-bg); }
[data-bs-theme="dark"] .public .page-hero { background: linear-gradient(120deg, #0b1d4f 0%, #1d4ed8 50%, #0369a1 100%); }
[data-bs-theme="dark"] .public .page-hero.page-hero-flagday { background: linear-gradient(120deg, #450a0a 0%, #991b1b 50%, #b45309 100%); }
.public .mine-avatar { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.6); flex-shrink: 0; }
.public .page-hero .hero-stat { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 1rem; padding: 1rem .75rem; backdrop-filter: blur(6px); height: 100%; }
.public .page-hero .hero-stat i { font-size: 1.4rem; color: #fde047; }
.public .page-hero .hero-stat-value { font-size: 1.9rem; font-weight: 700; line-height: 1.2; margin-top: .2rem; }
.public .page-hero .hero-stat-label { font-size: .85rem; color: rgba(255,255,255,.85); }

/* ---------- Volunteer profile (public style) ---------- */
.public .profile-avatar { position: relative; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; cursor: pointer; flex-shrink: 0; margin: 0;
    border: 3px solid rgba(255,255,255,.8); background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 700; }
.public .profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.public .profile-avatar-cam { position: absolute; inset: auto 0 0 0; height: 30%; background: rgba(15,23,42,.55); font-size: .9rem;
    display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.public .profile-avatar:hover .profile-avatar-cam { opacity: 1; }
.public .profile-body .card { border: 0; border-radius: .9rem; box-shadow: 0 .25rem .9rem rgba(15,23,42,.06) !important; margin-bottom: 1.5rem !important; }
.public .profile-body .card-header { background: transparent; border-bottom: 1px solid var(--bs-border-color-translucent); padding: 1rem 1.25rem; font-size: 1.05rem; }
.public .profile-body .card-header .bi { color: var(--bs-primary); }
@media (min-width: 992px) { .public .profile-qr-card { top: 5rem; } }
.public .qr-box svg { width: 200px; height: 200px; }
.public .qr-box-lg svg { width: 260px; height: 260px; }
