/* ============================================================
   NGO CMS — Main Stylesheet
   Colors: #0d6efd (blue-600), #198754 (green), #fff
   Font: Plus Jakarta Sans (body), Merriweather (headings)
   ============================================================ */

:root {
  --blue:      #1a56db;
  --blue-dark: #0d3fa6;
  --green:     #16a34a;
  --green-lt:  #dcfce7;
  --amber:     #f59e0b;
  --text:      #1e293b;
  --text-muted:#64748b;
  --bg-light:  #f8fafc;
  --border:    #e2e8f0;
  --white:     #ffffff;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.14);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

a { color: var(--blue); text-decoration: none; transition: .2s; }
a:hover { color: var(--blue-dark); }

img { max-width: 100%; height: auto; }

/* ── Top Bar ─────────────────────────────────────────────── */
.topbar {
  background: var(--blue-dark);
  color: rgba(255,255,255,.8);
  font-size: 13px;
  padding: 6px 0;
}
.topbar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  color: #fff !important;
  font-size: 12px;
  margin-left: 4px;
  transition: .2s;
}
.topbar-social:hover { background: var(--amber); }

/* ── Navbar ──────────────────────────────────────────────── */
.main-nav {
  background: var(--white);
  box-shadow: 0 1px 12px rgba(0,0,0,.07);
  padding: 10px 0;
  transition: .3s;
}
.main-nav.scrolled {
  padding: 6px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-main {
  font-family: 'Merriweather', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-dark);
}
.brand-sub { font-size: 11px; color: var(--green); font-weight: 600; letter-spacing: .03em; }

.navbar-nav .nav-link {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text) !important;
  padding: 6px 14px !important;
  border-radius: 6px;
  transition: .2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--blue) !important; background: rgba(26,86,219,.06); }

.dropdown-menu {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 8px;
}
.dropdown-item { border-radius: 6px; font-size: 14px; font-weight: 500; padding: 8px 14px; }
.dropdown-item:hover { background: rgba(26,86,219,.08); color: var(--blue); }

.btn-donate {
  background: var(--green);
  color: #fff !important;
  border: none;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  transition: .2s;
}
.btn-donate:hover { background: #15803d; color: #fff !important; transform: translateY(-1px); }

/* ── Hero Slider ─────────────────────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
}
.hero-slider .carousel-inner {
  overflow: hidden;
}
.hero-slide {
  min-height: 560px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #1a56db 50%, var(--green) 100%);
  position: relative;
  /* display:flex এখানে নেই — Bootstrap carousel ভাঙে */
}
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255,255,255,0.04)" d="M43,-50.8C54.6,-40.4,61.6,-24.5,63.2,-8C64.8,8.5,60.9,25.7,51.4,38.2C41.8,50.7,26.5,58.5,10.4,62.1C-5.7,65.7,-22.6,65,-36.2,57.1C-49.8,49.2,-60.1,34.1,-64.2,17.4C-68.3,0.6,-66.1,-17.8,-57.5,-31.3C-48.9,-44.8,-33.8,-53.4,-18.7,-58C-3.6,-62.6,11.5,-63.2,25.4,-59.5C39.3,-55.9,31.4,-61.2,43,-50.8Z" transform="translate(100 100)"/></svg>') no-repeat center/cover;
}
/* flex wrapper — slide-এর ভেতরে content vertically center করে */
.hero-content-wrapper {
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-content { position: relative; z-index: 2; padding: 80px 0; }
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.85); margin-bottom: 32px; max-width: 580px; }
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}
.hero-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  text-align: center;
}
.hero-card .num { font-size: 1.8rem; font-weight: 800; display: block; }
.hero-card .lbl { font-size: 12px; opacity: .8; }
.carousel-indicators button { width: 8px; height: 8px; border-radius: 50%; }

/* ── Section Titles ─────────────────────────────────────── */
.section-tag {
  display: inline-block;
  background: var(--green-lt);
  color: var(--green);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section-line {
  width: 48px; height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin: 0 auto 24px;
}
.section-line.left { margin-left: 0; }

/* ── Stats Counter ───────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #1a56db 100%);
  padding: 70px 0;
}
.stat-card { text-align: center; }
.stat-number { font-size: 3rem; font-weight: 900; color: #fff; line-height: 1; }
.stat-label { color: rgba(255,255,255,.75); font-size: 15px; margin-top: 8px; }
.stat-icon { font-size: 2.5rem; color: var(--amber); margin-bottom: 12px; }

/* ── Project Cards ───────────────────────────────────────── */
.project-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: .3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card .card-img { position: relative; overflow: hidden; height: 200px; }
.project-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.project-card:hover .card-img img { transform: scale(1.05); }
.project-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 3px 12px; border-radius: 50px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.badge-ongoing { background: #dcfce7; color: #16a34a; }
.badge-completed { background: #dbeafe; color: #1d4ed8; }
.badge-upcoming { background: #fef3c7; color: #d97706; }

.project-card .card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.project-card .card-title { font-size: 1rem; margin-bottom: 10px; }
.project-card .card-text { font-size: 14px; color: var(--text-muted); flex: 1; }

.progress-wrap { margin-top: 14px; }
.progress-info { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.progress { height: 6px; border-radius: 3px; background: var(--border); }
.progress-bar { background: var(--green); border-radius: 3px; }

.card-meta {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Team Cards ──────────────────────────────────────────── */
.team-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: .3s;
  text-align: center;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-card .team-img { position: relative; overflow: hidden; }
.team-card .team-img img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  object-position: top;
  transition: .4s;
}
.team-card:hover .team-img img { transform: scale(1.04); }
.team-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(13,63,166,.7));
  padding: 20px 14px 10px;
  transform: translateY(100%);
  transition: .3s;
}
.team-card:hover .team-overlay { transform: translateY(0); }
.team-overlay a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  margin: 0 3px;
  transition: .2s;
}
.team-overlay a:hover { background: var(--amber); }
.team-card .team-info { padding: 18px; }
.team-card .team-name { font-size: 1rem; margin-bottom: 4px; }
.team-card .team-role { font-size: 13px; color: var(--text-muted); }

/* ── News Cards ──────────────────────────────────────────── */
.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: .3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card .news-img { height: 180px; overflow: hidden; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.news-card:hover .news-img img { transform: scale(1.06); }
.news-card .news-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-cat { color: var(--blue); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.news-title { font-size: .95rem; margin: 8px 0 10px; }
.news-date { font-size: 12px; color: var(--text-muted); }

/* ── Donation CTA ────────────────────────────────────────── */
.donation-cta {
  background: linear-gradient(135deg, var(--green) 0%, #15803d 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.donation-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(255,255,255,.06) 0%, transparent 60%);
}
.donation-cta h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: #fff; }
.donation-cta p { color: rgba(255,255,255,.85); font-size: 1.1rem; }

.btn-cta-white {
  background: #fff;
  color: var(--green);
  border: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 16px;
  transition: .3s;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-cta-white:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.2); color: var(--green); }

.btn-cta-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: .3s;
}
.btn-cta-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #1a56db 100%);
  padding: 70px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 50px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.breadcrumb-item, .breadcrumb-item a, .breadcrumb-item.active { color: rgba(255,255,255,.75) !important; font-size: 14px; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ── Forms ───────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: 8px;
  border: 1.5px solid var(--border);
  padding: 10px 14px;
  font-size: 14.5px;
  transition: .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
.form-label { font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 6px; }

.btn-primary {
  background: var(--blue);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  padding: 10px 24px;
  transition: .2s;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-success { background: var(--green); border: none; border-radius: 8px; font-weight: 700; }

/* ── Auth pages ──────────────────────────────────────────── */
.auth-page { min-height: 100vh; background: var(--bg-light); display: flex; align-items: center; padding: 40px 0; }
.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}
.auth-header {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 36px 40px;
  text-align: center;
}
.auth-header h2 { color: #fff; margin: 0; }
.auth-header p { color: rgba(255,255,255,.8); margin: 6px 0 0; font-size: 14px; }
.auth-body { padding: 36px 40px; }

/* ── Dashboard ───────────────────────────────────────────── */
.dashboard-sidebar {
  position: sticky; top: 80px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 0;
  height: fit-content;
}
.dashboard-sidebar .nav-link {
  padding: 10px 20px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  border-radius: 0;
  transition: .2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dashboard-sidebar .nav-link:hover, .dashboard-sidebar .nav-link.active {
  color: var(--blue);
  background: rgba(26,86,219,.06);
  border-left: 3px solid var(--blue);
}

.stat-widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 18px;
}
.stat-widget-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.stat-widget-value { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-widget-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ── Donation status badges ──────────────────────────────── */
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-approved { background: #dcfce7; color: #166534; }
.badge-rejected { background: #fee2e2; color: #991b1b; }

/* ── Awards ──────────────────────────────────────────────── */
.award-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: .3s;
  height: 100%;
}
.award-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.award-icon { font-size: 2.5rem; color: var(--amber); flex-shrink: 0; }
.award-year { background: var(--blue-dark); color: #fff; padding: 2px 10px; border-radius: 50px; font-size: 12px; font-weight: 700; display: inline-block; margin-bottom: 8px; }

/* ── Reports ─────────────────────────────────────────────── */
.report-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: .3s;
}
.report-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.report-icon { font-size: 2.5rem; color: #ef4444; flex-shrink: 0; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
  height: 100%;
}
.contact-icon {
  width: 60px; height: 60px;
  background: rgba(26,86,219,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--blue);
  margin: 0 auto 16px;
}

/* ── Partners ────────────────────────────────────────────── */
.partner-logo {
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  min-height: 80px;
  transition: .2s;
  filter: grayscale(1);
  opacity: .6;
}
.partner-logo:hover { filter: none; opacity: 1; box-shadow: var(--shadow); }
.partner-logo img { max-height: 50px; max-width: 140px; object-fit: contain; }

/* ── Map embed ───────────────────────────────────────────── */
.map-wrapper { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrapper iframe { display: block; width: 100%; border: none; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: #0f172a; }
.footer-top { padding: 70px 0 40px; }
.footer-heading { color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.55); font-size: 14px; transition: .2s; }
.footer-links a:hover { color: var(--amber); padding-left: 6px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { color: rgba(255,255,255,.65); font-size: 14px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.footer-contact i { color: var(--amber); font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  font-size: 16px;
  transition: .2s;
}
.footer-social a:hover { background: var(--amber); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 0;
}

/* ── Scroll to top ───────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: .3s;
  box-shadow: var(--shadow);
  z-index: 999;
}
.scroll-top.show { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--blue-dark); transform: translateY(-3px); }

/* ── Misc utilities ──────────────────────────────────────── */
.bg-light-blue { background: #eff6ff; }
.bg-light-green { background: #f0fdf4; }
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 48px 0; }

.alert-dismissible { border-radius: var(--radius); }

.card-hover {
  transition: .3s;
  cursor: pointer;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.placeholder-img {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
  font-size: 2rem;
}

/* ── Donation form ───────────────────────────────────────── */
.donation-step { display: none; }
.donation-step.active { display: block; }
.amount-btn { border: 2px solid var(--border); border-radius: 8px; padding: 12px; cursor: pointer; font-weight: 700; font-size: 1.1rem; transition: .2s; background: #fff; width: 100%; }
.amount-btn.selected, .amount-btn:hover { border-color: var(--green); background: var(--green-lt); color: var(--green); }

/* ── Video embed ─────────────────────────────────────────── */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .section-pad { padding: 50px 0; }
  .hero-slide { min-height: 480px; }
  .hero-content-wrapper { min-height: 480px; }
  .hero-visual { display: none; }
  .auth-body, .auth-header { padding: 28px 24px; }
  .stats-section { padding: 50px 0; }
  .stat-number { font-size: 2.2rem; }
}