/* ============================================================
   Kare Bridge Foundation - Public Site Stylesheet
   Bootstrap 5 + Custom Overrides
   ============================================================ */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --kbf-primary:   #1a6b3a;   /* Forest green  */
  --kbf-secondary: #f5a623;   /* Warm amber    */
  --kbf-accent:    #e67e22;   /* Orange accent */
  --kbf-light:     #f0f7f4;   /* Pale green bg */
  --kbf-dark:      #0d2d1a;
  --kbf-text:      #2c3e50;
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* ── Global ─────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  color: var(--kbf-text);
  line-height: 1.7;
  background: #fff;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; }

a { color: var(--kbf-primary); text-decoration: none; }
a:hover { color: var(--kbf-accent); }

img { max-width: 100%; height: auto; }

/* ── Color Utilities ─────────────────────────────────────────── */
.text-kbf-primary  { color: var(--kbf-primary)   !important; }
.text-kbf-accent   { color: var(--kbf-secondary)  !important; }
.bg-kbf-primary    { background-color: var(--kbf-primary) !important; }
.bg-kbf-light      { background-color: var(--kbf-light)   !important; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-kbf-primary {
  background: var(--kbf-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background .2s;
}
.btn-kbf-primary:hover { background: #15582f; color: #fff; }

.btn-kbf-accent {
  background: var(--kbf-secondary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 500;
}
.btn-kbf-accent:hover { background: var(--kbf-accent); color: #fff; }

.btn-outline-kbf {
  border: 2px solid var(--kbf-primary);
  color: var(--kbf-primary);
  border-radius: 4px;
  font-weight: 500;
}
.btn-outline-kbf:hover { background: var(--kbf-primary); color: #fff; }

/* ── Top Bar ─────────────────────────────────────────────────── */
.top-bar { font-size: 0.82rem; }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar { transition: box-shadow .3s; }
.navbar-logo {
  height: 70px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
.navbar .nav-link {
  font-weight: 500;
  color: var(--kbf-text);
  padding: .5rem .75rem;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--kbf-primary); background: var(--kbf-light); }
.navbar .dropdown-item:hover { background: var(--kbf-light); color: var(--kbf-primary); }
.navbar .dropdown-menu { min-width: 220px; }

/* ── Hero Slider ─────────────────────────────────────────────── */
.hero-slider { position: relative; }
.hero-slider .carousel-item {
  height: 540px;
  background: var(--kbf-dark);
  overflow: hidden;
}
.hero-slider .carousel-item img {
  width: 100%; height: 100%; object-fit: cover; opacity: .55;
}
.hero-slider .carousel-caption {
  top: 50%; transform: translateY(-50%); bottom: auto;
  left: 10%; right: 10%; text-align: left;
}
.hero-slider .carousel-caption h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.hero-slider .carousel-caption p {
  font-size: 1.1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  max-width: 500px;
}

/* No slides placeholder */
.hero-placeholder {
  height: 420px;
  background: linear-gradient(135deg, var(--kbf-dark), var(--kbf-primary));
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  color: #fff; text-align: center;
}

/* ── Section Titles ──────────────────────────────────────────── */
.section-title {
  position: relative; display: inline-block;
  font-size: 1.9rem; color: var(--kbf-primary); margin-bottom: .5rem;
}
.section-title::after {
  content: '';
  display: block; width: 60px; height: 3px;
  background: var(--kbf-secondary);
  margin-top: .4rem;
}
.section-title.center { text-align: center; }
.section-title.center::after { margin: .4rem auto 0; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--kbf-dark) 0%, var(--kbf-primary) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 3rem 0;
  position: relative;
}
.page-hero h1 { color: #fff; font-size: 2.2rem; }
.breadcrumb-item a { color: var(--kbf-secondary); }
.breadcrumb-item.active { color: #ccc; }
.breadcrumb-item + .breadcrumb-item::before { color: #ccc; }

/* ── Cards ───────────────────────────────────────────────────── */
.kbf-card {
  border: 0; border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}
.kbf-card:hover { transform: translateY(-4px); box-shadow: 0 6px 24px rgba(0,0,0,.13); }
.kbf-card .card-img-top { height: 200px; object-fit: cover; }
.kbf-card .card-body { padding: 1.25rem; }

/* ── Team Card ────────────────────────────────────────────────── */
.team-card { text-align: center; }
.team-card .team-photo {
  width: 120px; height: 120px;
  border-radius: 50%; object-fit: cover;
  border: 4px solid var(--kbf-light);
  margin: 0 auto 1rem;
  display: block;
}
.team-card .team-placeholder {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--kbf-light); border: 4px solid #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 2.5rem; color: var(--kbf-primary);
}

/* ── Activity Card ────────────────────────────────────────────── */
.activity-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--kbf-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--kbf-primary);
  margin-bottom: 1rem;
}

/* ── Gallery ──────────────────────────────────────────────────── */
.gallery-item { position: relative; overflow: hidden; border-radius: 8px; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(26,107,58,.5);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: center; justify-content: center;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 2rem; color: #fff; }

/* ── Video Card ───────────────────────────────────────────────── */
.video-thumb { position: relative; cursor: pointer; border-radius: 8px; overflow: hidden; }
.video-thumb img { width: 100%; height: 200px; object-fit: cover; }
.video-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35);
}
.video-play-btn i { font-size: 3rem; color: #fff; drop-shadow: 0 2px 8px rgba(0,0,0,.5); }

/* ── Events Calendar ──────────────────────────────────────────── */
#calendar { min-height: 500px; }
.event-card-badge {
  font-size: .7rem; font-weight: 600; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 20px;
}
.badge-upcoming  { background: #e8f5e9; color: #2e7d32; }
.badge-ongoing   { background: #fff8e1; color: #f57f17; }
.badge-completed { background: #f3e5f5; color: #6a1b9a; }
.badge-cancelled { background: #fce4ec; color: #b71c1c; }

/* ── Stats Section ────────────────────────────────────────────── */
.stat-box {
  text-align: center; padding: 2rem 1rem;
  background: #fff; border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.stat-box .stat-number {
  font-size: 2.5rem; font-weight: 700; color: var(--kbf-primary);
  font-family: var(--font-display);
}
.stat-box .stat-label { font-size: .85rem; color: #6c757d; text-transform: uppercase; letter-spacing: 1px; }

/* ── Forms ────────────────────────────────────────────────────── */
.form-control:focus, .form-select:focus {
  border-color: var(--kbf-primary);
  box-shadow: 0 0 0 .2rem rgba(26,107,58,.15);
}
.form-label { font-weight: 500; font-size: .9rem; }
.required-star { color: #dc3545; }

/* ── Contact ──────────────────────────────────────────────────── */
.contact-info-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--kbf-light); color: var(--kbf-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer { font-size: .88rem; }
.footer-link { color: #adb5bd; transition: color .2s; }
.footer-link:hover { color: var(--kbf-secondary); }
.bg-darker { background: rgba(0,0,0,.3); }

/* ── Alerts ───────────────────────────────────────────────────── */
.alert { border: 0; border-radius: 8px; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-slider .carousel-item { height: 320px; }
  .hero-slider .carousel-caption h1 { font-size: 1.5rem; }
  .section-title { font-size: 1.5rem; }
}
