/* =====================================================================
   The Outpouring Foundation — Frontend Stylesheet
   Palette: Primary Blue #0056A6 | White | Gold #F4B400
   Fonts: Poppins (headings) / Open Sans (body)
   ===================================================================== */
:root {
  --primary: #0056A6;
  --primary-dark: #003e78;
  --primary-light: #e8f1fa;
  --accent: #F4B400;
  --accent-dark: #cf9900;
  --dark: #101828;
  --grey: #667085;
  --light: #f7f9fc;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(16, 24, 40, .08);
  --shadow-lg: 0 16px 44px rgba(16, 24, 40, .14);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', system-ui, sans-serif;
  color: #344054;
  background: #fff;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .navbar-brand, .btn { font-family: 'Poppins', sans-serif; }
h1, h2, h3 { color: var(--dark); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(0, 86, 166, .4); outline-offset: 2px; }

/* ---------- Top bar & Navbar ---------- */
.topbar { background: var(--primary-dark); color: #fff; padding: .45rem 0; }
.topbar a { color: #fff; opacity: .85; }
.topbar a:hover { opacity: 1; color: var(--accent); }

.main-nav { background: #fff; box-shadow: 0 2px 14px rgba(16,24,40,.07); padding: .55rem 0; }
.brand-logo { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; }
.brand-text { line-height: 1.05; }
.brand-text strong { color: var(--primary); font-size: 1.02rem; }
.brand-text small { color: var(--grey); font-size: .72rem; }
.main-nav .nav-link { font-weight: 600; font-size: .93rem; color: var(--dark); padding: .55rem .7rem; border-radius: 8px; }
.main-nav .nav-link:hover { color: var(--primary); background: var(--primary-light); }
.main-nav .nav-link.active { color: var(--primary); }
.navbar-toggler { border: 0; color: var(--primary); }

.btn-donate {
  background: var(--accent); color: var(--dark); font-weight: 700;
  border-radius: 50rem; padding: .55rem 1.35rem; border: 2px solid var(--accent);
  transition: all .25s ease;
}
.btn-donate:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-primary { background: var(--primary); border-color: var(--primary); border-radius: 50rem; font-weight: 600; padding: .55rem 1.4rem; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); border-radius: 50rem; font-weight: 600; }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }
.btn-outline-light { border-radius: 50rem; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--light); }
.section-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--accent-dark); font-family: 'Poppins'; font-weight: 600;
  font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .6rem;
}
.section-tag.light { color: var(--accent); }
.section-title { font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.35rem); margin-bottom: 1rem; }

/* ---------- Hero slider ---------- */
.hero-slide { position: relative; min-height: min(88vh, 720px); display: flex; align-items: center; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,32,64,.88) 15%, rgba(0,86,166,.55) 60%, rgba(0,32,64,.35));
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 6rem 0; }
.hero-content h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15; }
.hero-content p { font-size: 1.1rem; color: rgba(255,255,255,.9); max-width: 620px; }
.hero-badge {
  display: inline-flex; gap: .5rem; align-items: center; background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px); border-radius: 50rem; padding: .4rem 1rem; font-size: .85rem; font-weight: 600;
}
.carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; }
.carousel-control-prev, .carousel-control-next { width: 8%; }

/* ---------- Cards ---------- */
.card-modern {
  border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease; overflow: hidden; height: 100%;
}
.card-modern:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-modern .card-img-top { height: 220px; object-fit: cover; }
.card-modern .card-title { font-weight: 600; font-size: 1.08rem; }
.card-modern .card-title a { color: var(--dark); }
.card-modern .card-title a:hover { color: var(--primary); }
.card-meta { font-size: .82rem; color: var(--grey); display: flex; flex-wrap: wrap; gap: .9rem; }
.card-meta i { color: var(--accent-dark); }
.badge-cat { background: var(--accent); color: var(--dark); font-weight: 600; border-radius: 6px; }
.badge-status-ongoing { background: var(--primary); }
.badge-status-completed { background: #12b76a; }
.badge-status-upcoming { background: var(--accent); color: var(--dark); }

/* ---------- Impact stats ---------- */
.stats-band { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 3.5rem 0; }
.stat-box { text-align: center; }
.stat-box .num { font-family: 'Poppins'; font-size: 2.6rem; font-weight: 800; color: var(--accent); }
.stat-box .label { font-size: .95rem; color: rgba(255,255,255,.85); }

/* ---------- About / mission ---------- */
.about-img-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.mv-card { background: var(--primary-light); border-left: 4px solid var(--primary); border-radius: 10px; padding: 1.2rem; height: 100%; }
.mv-card h5 { color: var(--primary); font-weight: 700; font-size: 1rem; }
.value-chip { background: #fff; border: 1px solid #e4e7ec; border-radius: 50rem; padding: .45rem 1.05rem; font-weight: 600; font-size: .88rem; color: var(--primary); }
.check-list li { margin-bottom: .55rem; }
.check-list i { color: var(--accent-dark); margin-right: .5rem; }

/* ---------- Team ---------- */
.team-card { text-align: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem 1rem; transition: transform .3s ease; height: 100%; }
.team-card:hover { transform: translateY(-6px); }
.team-card img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid var(--primary-light); margin-bottom: .8rem; }
.team-card h6 { font-weight: 700; margin-bottom: .1rem; }
.team-card span { font-size: .82rem; color: var(--grey); }

/* ---------- Events ---------- */
.event-date-chip {
  background: var(--accent); color: var(--dark); border-radius: 10px; text-align: center;
  padding: .5rem .8rem; font-family: 'Poppins'; line-height: 1.1; min-width: 64px;
}
.event-date-chip .d { font-size: 1.4rem; font-weight: 800; display: block; }
.event-date-chip .m { font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.countdown { display: flex; gap: .8rem; flex-wrap: wrap; }
.countdown .cd-box { background: var(--primary-light); border-radius: 10px; padding: .6rem .9rem; text-align: center; min-width: 72px; }
.countdown .cd-box b { display: block; font-family: 'Poppins'; font-size: 1.5rem; color: var(--primary); }
.countdown .cd-box span { font-size: .72rem; color: var(--grey); text-transform: uppercase; }

/* ---------- Gallery ---------- */
.gallery-filter .btn { border-radius: 50rem; font-size: .85rem; font-weight: 600; }
.gallery-item { border-radius: var(--radius); overflow: hidden; position: relative; display: block; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 230px; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,62,120,.8), transparent 60%);
  opacity: 0; transition: opacity .3s ease; display: flex; align-items: flex-end; padding: 1rem; color: #fff; font-weight: 600; font-size: .9rem;
}
.gallery-item:hover .overlay { opacity: 1; }

/* ---------- Testimonials ---------- */
.testi-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem; height: 100%; }
.testi-card .stars { color: var(--accent); }
.testi-card .quote-icon { font-size: 2rem; color: var(--primary-light); }
.testi-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--primary-light); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

/* ---------- Partners ---------- */
.partner-logo { filter: grayscale(1); opacity: .7; transition: all .3s ease; max-height: 64px; object-fit: contain; }
.partner-logo:hover { filter: none; opacity: 1; }

/* ---------- Donation ---------- */
.donate-box { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-lg); }
.donate-box .acct { font-family: 'Poppins'; font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: .06em; }
.qr-placeholder { background: #fff; border-radius: 12px; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; color: var(--grey); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.form-control, .form-select { border-radius: 10px; padding: .65rem .9rem; border-color: #e4e7ec; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(0,86,166,.12); }
.form-label { font-weight: 600; font-size: .88rem; color: var(--dark); }

/* ---------- Page banner ---------- */
.page-banner {
  background: linear-gradient(100deg, rgba(0,32,64,.92), rgba(0,86,166,.75)), url('../../images/main.jpg') center/cover;
  color: #fff; padding: 5rem 0 3.5rem; text-align: center;
}
.page-banner h1 { color: #fff; font-weight: 800; }
.page-banner .breadcrumb { justify-content: center; margin: 0; }
.page-banner .breadcrumb a { color: var(--accent); }
.page-banner .breadcrumb-item.active { color: rgba(255,255,255,.8); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }

/* ---------- CTA band & footer ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); padding: 3.4rem 0; }
.site-footer { background: #0b1220; color: rgba(255,255,255,.75); }
.footer-title { color: #fff; font-family: 'Poppins'; font-weight: 700; margin-bottom: 1.1rem; position: relative; padding-bottom: .5rem; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--accent); border-radius: 3px; }
.footer-links a { color: rgba(255,255,255,.72); display: inline-block; padding: .22rem 0; }
.footer-links a:hover { color: var(--accent); padding-left: .3rem; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .7rem; align-items: flex-start; font-size: .92rem; }
.footer-contact i { color: var(--accent); margin-top: .2rem; }
.footer-contact a { color: rgba(255,255,255,.72); }
.footer-contact a:hover { color: var(--accent); }
.footer-news img { border-radius: 8px; object-fit: cover; }
.footer-news p { color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 600; }
.footer-news-date { color: var(--accent); font-size: .74rem; }
.footer-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.footer-gallery img { width: 100%; height: 62px; object-fit: cover; border-radius: 8px; transition: opacity .3s; }
.footer-gallery img:hover { opacity: .75; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: all .3s;
}
.social-btn:hover { background: var(--accent); color: var(--dark); transform: translateY(-3px); }

.back-to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 99;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--accent); color: var(--dark); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all .3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary); color: #fff; }

/* ---------- News detail ---------- */
.article-content { font-size: 1.03rem; line-height: 1.85; }
.article-content img { border-radius: var(--radius); margin: 1rem 0; }
.share-buttons a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.share-fb { background: #1877f2; } .share-tw { background: #111; } .share-wa { background: #25d366; } .share-ln { background: #0a66c2; }
.sidebar-widget { background: var(--light); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.5rem; }
.sidebar-widget h6 { font-weight: 700; padding-bottom: .5rem; border-bottom: 2px solid var(--accent); display: inline-block; }

/* ---------- Volunteer photo preview ---------- */
.photo-preview { width: 110px; height: 110px; border-radius: 12px; object-fit: cover; border: 2px dashed #cbd5e1; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .section { padding: 3.2rem 0; }
  .hero-slide { min-height: 76vh; }
}
@media (max-width: 575.98px) {
  .hero-content { padding: 4rem 0; }
  .donate-box .acct { font-size: 1.5rem; }
  .card-modern .card-img-top { height: 190px; }
}

/* High-contrast focus for accessibility */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
