/* ==========================================================================
   NGO Website — Design System & Custom Styles
   Colors: Primary (#1F7A4D), Secondary (#F2A93B), Accent (#E85D4C)
   Typography: Poppins (Headings), Inter (Body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

:root {
  --primary-color: #1F7A4D;
  --primary-hover: #175e3b;
  --primary-light: #e8f5ee;
  --secondary-color: #F2A93B;
  --secondary-hover: #d99127;
  --accent-color: #E85D4C;
  --accent-hover: #d24635;
  --accent-light: #fdf0ee;
  --neutral-dark: #1E293B;
  --neutral-body: #475569;
  --neutral-light: #F8FAFC;
  --neutral-border: #E2E8F0;
  --white: #FFFFFF;
  --success: #2E7D32;
  --warning: #F9A825;
  --danger: #C62828;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 50px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--neutral-body);
  background-color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .heading-font {
  font-family: 'Poppins', sans-serif;
  color: var(--neutral-dark);
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

/* Section Rhythm */
.section-padding {
  padding: 80px 0;
}
@media (max-width: 768px) {
  .section-padding {
    padding: 48px 0;
  }
}
.bg-light-section {
  background-color: var(--neutral-light);
}

/* Top Notification / Info Bar */
.top-bar {
  background: #0f3d26;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar a {
  color: #fff;
}
.top-bar a:hover {
  color: var(--secondary-color);
}

/* Main Navigation */
.navbar-custom {
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  padding: 12px 0;
  transition: var(--transition);
}
.navbar-custom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  padding: 0;
  margin-right: 0;
  max-width: calc(100% - 160px);
}
.navbar-brand .brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon-box {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(31, 122, 77, 0.25);
  flex-shrink: 0;
}
.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--neutral-dark);
  line-height: 1.1;
  display: block;
}
.brand-sub {
  font-size: 0.7rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

/* Mobile Header Adaptations */
@media (max-width: 1199px) {
  .navbar-custom {
    padding: 10px 0;
  }
  .navbar-brand {
    max-width: calc(100% - 155px);
  }
  .brand-icon-box {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
  }
  .brand-name {
    font-size: 1.02rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-sub {
    font-size: 0.64rem;
  }
  .mobile-nav-controls {
    flex-shrink: 0;
  }
  .btn-mobile-donate {
    font-size: 0.8rem !important;
    padding: 6px 14px !important;
    white-space: nowrap;
  }
  .navbar-toggler {
    padding: 6px 9px !important;
    font-size: 1.15rem !important;
    border: 1px solid var(--neutral-border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--neutral-dark) !important;
  }
  .navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--neutral-border);
  }
}

@media (max-width: 400px) {
  .navbar-brand {
    max-width: calc(100% - 135px);
  }
  .brand-name {
    font-size: 0.92rem;
  }
  .brand-sub {
    display: none;
  }
  .btn-mobile-donate {
    padding: 5px 10px !important;
    font-size: 0.75rem !important;
  }
  .btn-mobile-donate i {
    display: none;
  }
}

.navbar-nav .nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--neutral-dark);
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background-color: var(--primary-light);
}

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 10px 24px;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-custom {
  background-color: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
}
.btn-primary-custom:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(31, 122, 77, 0.25);
}

.btn-secondary-custom {
  background-color: var(--secondary-color);
  color: #fff;
  border: 1px solid var(--secondary-color);
}
.btn-secondary-custom:hover {
  background-color: var(--secondary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(242, 169, 59, 0.3);
}

.btn-accent-custom {
  background-color: var(--accent-color);
  color: var(--white);
  border: 1px solid var(--accent-color);
}
.btn-accent-custom:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 93, 76, 0.3);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-pill {
  border-radius: var(--radius-pill);
}

/* Hero Carousel */
.hero-slider-section {
  position: relative;
  background: var(--neutral-dark);
}
.hero-slide-item {
  min-height: 560px;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 80px 0;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(15, 61, 38, 0.92) 0%, rgba(30, 41, 59, 0.75) 60%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-badge {
  display: inline-block;
  background: rgba(242, 169, 59, 0.2);
  border: 1px solid rgba(242, 169, 59, 0.4);
  color: var(--secondary-color);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.hero-title {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .hero-slide-item {
    min-height: 440px;
    padding: 50px 0;
  }
  .hero-title {
    font-size: 1.9rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
}

/* Impact Statistics Cards */
.impact-section {
  position: relative;
  margin-top: -50px;
  z-index: 10;
}
.impact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-lg);
  border-bottom: 4px solid var(--primary-color);
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
.impact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
  border-color: var(--secondary-color);
}
.impact-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 16px;
  transition: var(--transition);
}
.impact-card:hover .impact-icon-wrap {
  background: var(--primary-color);
  color: #fff;
}
.impact-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--neutral-dark);
  font-family: 'Poppins', sans-serif;
  line-height: 1;
  margin-bottom: 8px;
}
.impact-label {
  font-size: 0.95rem;
  color: var(--neutral-body);
  font-weight: 500;
  margin: 0;
}

/* Section Headings */
.section-header {
  margin-bottom: 48px;
}
.section-subtitle {
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.82rem;
  margin-bottom: 8px;
  display: block;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--neutral-dark);
  margin-bottom: 14px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--neutral-body);
  max-width: 650px;
  margin: 0 auto;
}

/* Custom Cards (Programs, Projects, Campaigns, Blogs) */
.custom-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.custom-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(31, 122, 77, 0.3);
}
.custom-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
  background-color: #f1f5f9;
}
.custom-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.custom-card:hover .card-img-wrap img {
  transform: scale(1.05);
}
.custom-card .card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-urgent {
  background-color: var(--accent-color);
  color: #fff;
}
.badge-success-custom {
  background-color: var(--success);
  color: #fff;
}
.badge-secondary-custom {
  background-color: var(--secondary-color);
  color: #fff;
}
.custom-card .card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.custom-card .card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}
.custom-card .card-title a {
  color: var(--neutral-dark);
}
.custom-card .card-title a:hover {
  color: var(--primary-color);
}
.custom-card .card-text {
  color: var(--neutral-body);
  font-size: 0.92rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Campaign Progress Bar */
.campaign-progress-wrap {
  margin: 16px 0;
}
.campaign-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.campaign-stats .raised {
  font-weight: 700;
  color: var(--primary-color);
}
.campaign-stats .goal {
  color: var(--neutral-body);
}
.progress-custom {
  height: 10px;
  border-radius: var(--radius-pill);
  background-color: #e2e8f0;
  overflow: hidden;
}
.progress-custom .progress-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-pill);
  transition: width 1s ease;
}

/* Feature/Value Box */
.value-box {
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.value-box:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.value-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Donation Page Styling */
.donation-box-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-border);
  padding: 36px;
}
.amount-btn-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 576px) {
  .amount-btn-group {
    grid-template-columns: repeat(2, 1fr);
  }
}
.amount-preset-btn {
  padding: 14px 10px;
  border: 2px solid var(--neutral-border);
  background: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--neutral-dark);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.amount-preset-btn:hover,
.amount-preset-btn.active {
  border-color: var(--accent-color);
  background-color: var(--accent-light);
  color: var(--accent-color);
}
.payment-method-card {
  border: 2px solid var(--neutral-border);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: var(--transition);
}
.payment-method-card:hover,
.payment-method-card.selected {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

/* Success Story Cards */
.story-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.story-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.story-quote {
  font-style: italic;
  color: var(--primary-color);
  font-weight: 500;
  border-left: 3px solid var(--secondary-color);
  padding-left: 14px;
  margin-top: 14px;
}

/* Event List Card */
.event-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .event-card {
    flex-direction: column;
  }
}
.event-date-badge {
  background: var(--primary-color);
  color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  text-align: center;
}
.event-date-day {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  font-family: 'Poppins', sans-serif;
}
.event-date-month {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.event-card-body {
  padding: 24px;
  flex-grow: 1;
}

/* Gallery Grid */
.gallery-grid-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  height: 240px;
  box-shadow: var(--shadow-sm);
}
.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 61, 38, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #fff;
  opacity: 0;
  transition: var(--transition);
}
.gallery-grid-item:hover .gallery-overlay {
  opacity: 1;
}

/* Page Header / Breadcrumb Hero */
.page-hero {
  background: linear-gradient(135deg, #0f3d26 0%, #1e293b 100%);
  color: #fff;
  padding: 60px 0;
  position: relative;
}
.page-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.breadcrumb-custom {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb-custom a {
  color: var(--secondary-color);
}
.breadcrumb-custom li + li:before {
  content: "/";
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.5);
}

/* Main Footer */
.main-footer {
  background: #0f172a;
  color: #94a3b8;
  padding-top: 70px;
  font-size: 0.92rem;
}
.main-footer h5 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
}
.main-footer h5::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: var(--radius-pill);
}
.main-footer a {
  color: #94a3b8;
}
.main-footer a:hover {
  color: #fff;
  padding-left: 4px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 12px;
}
.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: var(--transition);
}
.social-icon-btn:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  margin-top: 60px;
  font-size: 0.85rem;
}

/* Official Receipt Styles */
.receipt-wrapper {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  padding: 40px;
}
@media print {
  body * {
    visibility: hidden;
  }
  .receipt-wrapper, .receipt-wrapper * {
    visibility: visible;
  }
  .receipt-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    border: none;
    box-shadow: none;
  }
  .no-print {
    display: none !important;
  }
}
