/* ============================================================
   BORISU SESANG FOUNDATION — CALM & COOL THEME
   For a free school NGO serving underprivileged children
   Palette: Deep Teal · Soft Green · Warm White · Golden Accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Crimson+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

/* ---- Font Variables ---- */
:root {
  --font-royal:  'Cinzel', 'Times New Roman', serif;
  --font-body:   'Crimson Pro', Georgia, serif;
}

/* ---- Colour Palette ---- */
:root {
  --teal:        #1B6B8A;   /* Deep teal — trust, education */
  --teal-mid:    #2589AC;   /* Medium teal */
  --teal-light:  #3AAFCE;   /* Bright teal */
  --green:       #2E8B6E;   /* Soft green — growth, hope */
  --green-light: #3DAF8C;   /* Brighter green */
  --gold:        #E09B2D;   /* Warm gold — gentle saffron echo */
  --gold-light:  #F0B84A;   /* Lighter gold */
  --navy:        #0D3347;   /* Deep navy for text / dark elements */
  --navy-mid:    #174E6B;

  --bg-white:    #FFFFFF;
  --bg-light:    #F2F8FB;   /* Very light blue-tinted white */
  --bg-mint:     #EAF5F1;   /* Soft mint */
  --bg-sky:      #EBF4F9;   /* Light sky blue */

  --text-dark:   #0D2E3F;   /* Deep navy readable text */
  --text-mid:    #2C5F77;   /* Mid teal text */
  --text-muted:  #5E8FA3;   /* Muted teal */

  /* Gradient shorthands */
  --grad-main:   linear-gradient(135deg, #0D3347 0%, #1B6B8A 60%, #2E8B6E 100%);
  --grad-teal:   linear-gradient(135deg, #1B6B8A 0%, #2589AC 60%, #3AAFCE 100%);
  --grad-green:  linear-gradient(135deg, #2E8B6E 0%, #3DAF8C 100%);
  --grad-gold:   linear-gradient(135deg, #C07A1A 0%, #E09B2D 60%, #F0B84A 100%);
  --grad-hero:   linear-gradient(135deg, #0D3347 0%, #1B6B8A 50%, #2E8B6E 100%);
  --grad-light:  linear-gradient(180deg, #F2F8FB 0%, #EAF5F1 100%);
  --grad-card:   linear-gradient(145deg, #FFFFFF 0%, #F2F8FB 100%);

  /* Legacy aliases (used in views) */
  --ngo-primary:   var(--teal);
  --ngo-secondary: var(--gold);
  --ngo-dark:      var(--navy);
  --ngo-light:     var(--bg-light);
  --ngo-text:      var(--text-dark);
  --bhagwa:        var(--teal);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
  font-size: 1.06rem;
  line-height: 1.82;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-royal);
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--navy);
}
p, li, td, th, label, input, textarea, select, button {
  font-family: var(--font-body);
}
a { color: var(--teal); text-decoration: none; transition: color .25s; }
a:hover { color: var(--green); }
::selection { background: var(--teal); color: #fff; }

/* ============================================================
   NAVBAR
   ============================================================ */
.ngo-navbar {
  background: #fff !important;
  border-bottom: 2px solid #C8E6F0;
  box-shadow: 0 2px 16px rgba(27,107,138,.08) !important;
  transition: all .35s ease;
}
.ngo-navbar.scrolled {
  box-shadow: 0 4px 28px rgba(27,107,138,.15) !important;
}
.ngo-navbar .navbar-brand img {
  height: 42px;
  width: auto;
}
.ngo-navbar .nav-link {
  color: var(--text-mid) !important;
  font-family: var(--font-royal);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .07em;
  padding: .5rem 1rem !important;
  position: relative;
  transition: color .25s;
}
.ngo-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2.5px;
  background: var(--grad-teal);
  border-radius: 2px;
  transition: all .3s ease;
  transform: translateX(-50%);
}
.ngo-navbar .nav-link:hover::after,
.ngo-navbar .nav-link.active::after { width: 70%; }
.ngo-navbar .nav-link:hover,
.ngo-navbar .nav-link.active { color: var(--teal) !important; }
.ngo-navbar .btn-donate {
  background: var(--grad-teal);
  color: #fff !important;
  border-radius: 50px;
  padding: .45rem 1.4rem !important;
  font-family: var(--font-royal);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .08em;
  box-shadow: 0 4px 16px rgba(27,107,138,.3);
  transition: all .3s ease;
  border: none;
}
.ngo-navbar .btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,107,138,.45);
}
.ngo-navbar .dropdown-menu {
  background: #fff;
  border: 1px solid #C8E6F0;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(27,107,138,.12);
  margin-top: .5rem;
  overflow: hidden;
}
.ngo-navbar .dropdown-item {
  color: var(--text-mid);
  padding: .65rem 1.2rem;
  font-weight: 500;
  transition: all .2s;
}
.ngo-navbar .dropdown-item:hover {
  background: var(--bg-sky);
  color: var(--teal);
  padding-left: 1.6rem;
}
.ngo-navbar .bi-list { color: var(--teal) !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  background: var(--grad-hero);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(46,139,110,.2) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 25%, rgba(58,175,206,.15) 0%, transparent 50%);
  animation: heroGlow 7s ease-in-out infinite alternate;
}
@keyframes heroGlow { 0% { opacity:.8; } 100% { opacity:1; } }
.hero-section::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,139,110,.1) 0%, transparent 70%);
  right: -150px; top: -150px;
  animation: floatOrb 9s ease-in-out infinite;
}
@keyframes floatOrb { 0%,100% { transform:translate(0,0) scale(1); } 50% { transform:translate(-30px,25px) scale(1.08); } }
.hero-section .hero-content { position: relative; z-index: 2; }
.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900; color: #fff; line-height: 1.15;
}
.hero-section h1 span {
  background: linear-gradient(135deg, #7FD4E8 0%, #A8E6CF 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-section p { font-size: 1.1rem; color: rgba(255,255,255,.85); line-height: 1.85; }

/* Particles */
.hero-particle {
  position: absolute; border-radius: 50%; opacity: .15;
  animation: particleFloat linear infinite; pointer-events: none;
}
@keyframes particleFloat {
  0%   { transform:translateY(100vh) rotate(0deg); opacity:0; }
  10%  { opacity:.2; }
  90%  { opacity:.15; }
  100% { transform:translateY(-100px) rotate(720deg); opacity:0; }
}

.hero-badge {
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.1));
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  padding: .38rem 1.1rem;
  border-radius: 50px;
  font-family: var(--font-royal);
  font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase;
  display: inline-block; margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-ngo-primary {
  background: var(--grad-teal);
  color: #fff; border: none; border-radius: 50px;
  padding: .65rem 2rem; font-family: var(--font-royal);
  font-weight: 600; font-size: .8rem; letter-spacing: .1em;
  box-shadow: 0 4px 18px rgba(27,107,138,.3);
  transition: all .3s ease; position: relative; overflow: hidden;
}
.btn-ngo-primary::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.15); opacity: 0; transition: opacity .3s;
}
.btn-ngo-primary:hover { color:#fff; transform:translateY(-3px); box-shadow:0 10px 28px rgba(27,107,138,.45); }
.btn-ngo-primary:hover::before { opacity: 1; }

.btn-ngo-outline {
  border: 2px solid rgba(255,255,255,.75); color: #fff; border-radius: 50px;
  padding: .65rem 2rem; font-family: var(--font-royal);
  font-weight: 600; font-size: .8rem; letter-spacing: .1em;
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px);
  transition: all .3s ease;
}
.btn-ngo-outline:hover {
  background:#fff; color:var(--teal); border-color:#fff;
  transform:translateY(-3px); box-shadow:0 8px 24px rgba(255,255,255,.2);
}

.btn-ngo-secondary {
  background: #fff; color: var(--teal); border: 2px solid var(--teal);
  border-radius: 50px; padding: .65rem 2rem; font-family: var(--font-royal);
  font-weight: 600; font-size: .8rem; letter-spacing: .1em;
  transition: all .3s ease; box-shadow: 0 2px 12px rgba(27,107,138,.12);
}
.btn-ngo-secondary:hover {
  background: var(--grad-teal); color:#fff; border-color:transparent;
  transform:translateY(-3px); box-shadow:0 10px 28px rgba(27,107,138,.38);
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  font-family: var(--font-royal); font-size: 2rem; font-weight: 700;
  color: var(--navy); line-height: 1.25; letter-spacing: .04em;
}
.section-title span {
  background: var(--grad-teal);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-subtitle { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.divider {
  width: 60px; height: 4px;
  background: var(--grad-teal);
  border-radius: 4px; margin: .8rem auto 1.6rem; position: relative;
}
.divider::after {
  content: ''; position: absolute;
  width: 28px; height: 4px; background: var(--grad-green);
  opacity: .45; border-radius: 4px; top: 0; left: 68px;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  background: var(--grad-hero); position: relative; overflow: hidden;
}
.stats-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(255,255,255,.08) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 50%, rgba(58,175,206,.12) 0%, transparent 50%);
  pointer-events: none;
}
.stats-section .container { position: relative; z-index: 1; }
.stat-item { padding: 1.5rem; position: relative; }
.stat-item::after {
  content: ''; position: absolute; right:0; top:20%; bottom:20%;
  width:1px; background:rgba(255,255,255,.18);
}
.stat-item:last-child::after { display: none; }
.stat-item h2 { font-family:var(--font-royal); font-size:2.8rem; font-weight:700; color:#fff; line-height:1; letter-spacing:.03em; }
.stat-item p { font-family:var(--font-body); color:rgba(255,255,255,.82); font-size:.95rem; margin-top:.4rem; }
.stat-icon { font-size:2.4rem; color:rgba(255,255,255,.85); margin-bottom:.5rem; display:block; }

/* ============================================================
   CARDS
   ============================================================ */
.ngo-card {
  border: 1px solid #C8E6F0;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(27,107,138,.07);
  background: #fff;
  transition: all .35s cubic-bezier(.175,.885,.32,1.275);
  overflow: hidden; position: relative;
}
.ngo-card::before {
  content: ''; position: absolute; top:0; left:0; right:0;
  height: 3px; background: var(--grad-teal);
  transform: scaleX(0); transform-origin: left; transition: transform .38s ease;
}
.ngo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(27,107,138,.16);
  border-color: rgba(27,107,138,.3);
}
.ngo-card:hover::before { transform: scaleX(1); }
.ngo-card .card-img-top { height:200px; object-fit:cover; }
.ngo-card .card-category { font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:1.2px; color:var(--teal); }
.ngo-card .card-title { font-weight:700; color:var(--navy); }
.ngo-card .card-footer { background:#F2F8FB; border-top:1px solid #C8E6F0; }

/* ============================================================
   STATUS BADGES
   ============================================================ */
.badge-active    { background:linear-gradient(135deg,#1B6B8A,#2E8B6E); color:#fff; }
.badge-upcoming  { background:linear-gradient(135deg,#2589AC,#3AAFCE); color:#fff; }
.badge-completed { background:#EAF5F1; color:var(--green); border:1px solid #B2DDD3; }
.badge-planning  { background:#F2F8FB; color:var(--teal); border:1px solid #C8E6F0; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--grad-hero);
  padding: 5rem 0 3.5rem; position: relative; overflow: hidden;
  border-bottom: 2px solid rgba(58,175,206,.3);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 40%, rgba(46,139,110,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 80%, rgba(58,175,206,.12) 0%, transparent 45%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-royal); color: #fff; font-weight: 900; font-size: 2.8rem;
  background: linear-gradient(135deg, #fff 0%, #A8E6CF 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.65); }
.page-hero .breadcrumb-item.active { color: #A8E6CF; font-weight:600; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ============================================================
   DONATE SECTION
   ============================================================ */
.donate-section { background: linear-gradient(180deg, #F2F8FB 0%, #EAF5F1 100%); }
.amount-btn {
  border: 2px solid #C8E6F0; color: var(--teal); border-radius: 10px;
  padding: .55rem 1.4rem; font-weight:700; cursor:pointer;
  transition: all .25s ease; background: #F2F8FB; font-size:.9rem;
}
.amount-btn:hover, .amount-btn.active {
  background: var(--grad-teal); color:#fff; border-color:transparent;
  box-shadow:0 5px 18px rgba(27,107,138,.3); transform:translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.ngo-footer {
  background: linear-gradient(180deg, #0D3347 0%, #071E2C 100%);
  color: rgba(255,255,255,.72);
  border-top: 2px solid rgba(27,107,138,.4);
}
.ngo-footer h5 { color:#fff; font-family:var(--font-royal); font-weight:700; margin-bottom:1.2rem; letter-spacing:.04em; }
.ngo-footer a { color:rgba(255,255,255,.6); transition:all .25s; }
.ngo-footer a:hover { color:#7FD4E8; padding-left:4px; }
.ngo-footer .footer-brand img {
  height: 48px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer-bottom { background:rgba(0,0,0,.3); border-top:1px solid rgba(27,107,138,.2); }
.footer-bottom p { color:rgba(255,255,255,.55); }

/* Social links */
.social-link {
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%;
  border:1px solid rgba(255,255,255,.2); color:rgba(255,255,255,.65);
  transition:all .3s ease; position:relative; overflow:hidden; background:transparent;
}
.social-link::before {
  content:''; position:absolute; inset:0; border-radius:50%;
  background:var(--grad-teal); transform:scale(0); transition:transform .3s ease;
}
.social-link i { position:relative; z-index:1; }
.social-link:hover { border-color:transparent; color:#fff; transform:translateY(-3px); box-shadow:0 6px 20px rgba(27,107,138,.4); }
.social-link:hover::before { transform:scale(1); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-item {
  overflow:hidden; border-radius:14px; cursor:pointer;
  position:relative; border:2px solid #C8E6F0; transition:border-color .3s;
}
.gallery-item::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(to top, rgba(13,51,71,.6) 0%, transparent 60%);
  opacity:0; transition:opacity .35s ease;
}
.gallery-item:hover { border-color:var(--teal); }
.gallery-item:hover::after { opacity:1; }
.gallery-item img { width:100%; height:220px; object-fit:cover; transition:transform .45s cubic-bezier(.25,.46,.45,.94); }
.gallery-item:hover img { transform:scale(1.1); }

/* ============================================================
   CONTACT INFO CARD
   ============================================================ */
.contact-info-card {
  background: linear-gradient(135deg, #0D3347 0%, #1B6B8A 60%, #2E8B6E 100%);
  border-radius: 18px; color: #fff;
  border: 1px solid rgba(58,175,206,.2); position:relative; overflow:hidden;
}
.contact-info-card::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse at 80% 0%, rgba(58,175,206,.2) 0%, transparent 55%);
  pointer-events:none;
}
.contact-info-card h4, .contact-info-card h5 { color:#fff; }
.contact-info-item { display:flex; gap:1rem; margin-bottom:1.5rem; align-items:flex-start; }
.contact-info-item .icon {
  width:46px; height:46px; border-radius:12px;
  background:linear-gradient(135deg, #1B6B8A, #2E8B6E);
  border:1px solid rgba(255,255,255,.15);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; font-size:1.1rem; color:#fff; transition:all .3s;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity:0; transform:translateY(30px); transition:opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-left { opacity:0; transform:translateX(-40px); transition:opacity .6s ease, transform .6s ease; }
.reveal-left.visible { opacity:1; transform:translateX(0); }
.reveal-right { opacity:0; transform:translateX(40px); transition:opacity .6s ease, transform .6s ease; }
.reveal-right.visible { opacity:1; transform:translateX(0); }
.delay-1 { transition-delay:.1s !important; }
.delay-2 { transition-delay:.2s !important; }
.delay-3 { transition-delay:.3s !important; }
.delay-4 { transition-delay:.4s !important; }
.delay-5 { transition-delay:.5s !important; }
.delay-6 { transition-delay:.6s !important; }

/* ============================================================
   SECTION BACKGROUNDS
   ============================================================ */
.bg-ngo-light   { background: linear-gradient(180deg, #F2F8FB 0%, #EAF5F1 100%); }
.bg-bhagwa-soft { background: linear-gradient(135deg, #EBF4F9 0%, #EAF5F1 100%); }
.bg-white       { background: #fff; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-ngo-primary {
  background: var(--grad-teal);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.text-ngo-secondary { color:var(--gold) !important; }
.text-warning        { color:var(--gold) !important; }
section { padding:5rem 0; }
.fw-800 { font-weight:800 !important; }
.text-gradient {
  background: var(--grad-teal);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}

/* Form focus */
.form-control:focus, .form-select:focus {
  border-color: var(--teal); box-shadow:0 0 0 .25rem rgba(27,107,138,.18);
}

/* Progress bar */
.progress-bar { background:var(--grad-teal) !important; }

/* Scrollbar */
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:#F2F8FB; }
::-webkit-scrollbar-thumb { background:var(--grad-teal); border-radius:10px; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#backToTop {
  position:fixed; bottom:2rem; right:2rem;
  width:48px; height:48px; border-radius:50%;
  background:var(--grad-teal); color:#fff; border:none;
  display:flex; align-items:center; justify-content:center;
  font-size:1.2rem; box-shadow:0 6px 22px rgba(27,107,138,.4);
  cursor:pointer; opacity:0; pointer-events:none;
  transform:translateY(20px); transition:all .35s ease; z-index:9999;
}
#backToTop.show { opacity:1; pointer-events:all; transform:translateY(0); }
#backToTop:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(27,107,138,.55); }

/* ============================================================
   RIPPLE
   ============================================================ */
.ripple {
  position:absolute; border-radius:50%; transform:scale(0);
  background:rgba(255,255,255,.35); animation:rippleOut .6s linear; pointer-events:none;
}
@keyframes rippleOut { to { transform:scale(4); opacity:0; } }

/* ============================================================
   CARD ICON WRAPPER
   ============================================================ */
.icon-wrap {
  width:54px; height:54px; border-radius:14px;
  background:linear-gradient(135deg,#EBF4F9,#EAF5F1);
  border:1px solid #C8E6F0;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:all .3s;
}
.ngo-card:hover .icon-wrap {
  background:var(--grad-teal); border-color:transparent;
  box-shadow:0 4px 14px rgba(27,107,138,.3);
}
.ngo-card:hover .icon-wrap i { color:#fff !important; -webkit-text-fill-color:#fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:768px) {
  .hero-section { min-height:75vh; }
  .section-title { font-size:1.75rem; }
  .stat-item h2 { font-size:2.2rem; }
  .stat-item::after { display:none; }
  .page-hero h1 { font-size:2rem; }
}