/**
 * Bharat Jyoti NGO - Clean, Normal & Professional CSS
 * All menu items strictly 1-line (no wrapping), modern & trustworthy layout
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

:root {
  --primary: #0a3a60;         /* Bharat Jyoti Deep Navy */
  --primary-hover: #072a46;
  --secondary: #0284c7;       /* Sky Blue */
  --accent: #e65100;          /* Warm NGO Saffron / Orange */
  --accent-hover: #bf360c;
  --dark: #0f172a;
  --light-bg: #f8fafc;
  --border: #e2e8f0;
  --text-main: #334155;
  --text-muted: #64748b;
  --color-brand-primary: var(--primary);
  --color-accent: var(--accent);
}

body {
  font-family: 'Roboto', 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  background-color: var(--light-bg);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* ==========================================================================
   Top Header Strip
   ========================================================================== */
.top-strip {
  background-color: #082844;
  color: #e2e8f0;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-strip a {
  color: #f1f5f9;
}

.top-strip a:hover {
  color: #ffcc80;
}

.top-tax-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Main Navbar (Guaranteed Single Line, No Wrapping)
   ========================================================================== */
.main-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  box-shadow: 0 2px 8px rgba(10, 58, 96, 0.06);
}

.main-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  white-space: nowrap !important;
}

.main-navbar .logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.main-navbar .brand-text h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  line-height: 1.1;
  white-space: nowrap !important;
}

.main-navbar .brand-text span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  white-space: nowrap !important;
}

/* All Menu Items Strictly 1-Line */
.main-navbar .navbar-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 2px;
}

.main-navbar .nav-item {
  white-space: nowrap !important;
}

.main-navbar .nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b !important;
  padding: 7px 11px !important;
  border-radius: 4px;
  white-space: nowrap !important;
  transition: all 0.15s ease;
  display: inline-block;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: var(--accent) !important;
  background-color: #fff7ed;
}

.main-navbar .dropdown-menu {
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  font-size: 13px;
  padding: 6px;
  min-width: 210px;
}

.main-navbar .dropdown-item {
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap !important;
}

.main-navbar .dropdown-item:hover {
  background-color: #f1f5f9;
  color: var(--primary);
}

/* Donate Now Button - Strictly 1 Line */
.btn-donate {
  background: linear-gradient(135deg, #e65100 0%, #d84315 100%);
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 18px !important;
  border-radius: 4px;
  border: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(230, 81, 0, 0.3);
  transition: all 0.2s ease;
}

.btn-donate:hover {
  background: linear-gradient(135deg, #d84315 0%, #bf360c 100%);
  box-shadow: 0 4px 10px rgba(230, 81, 0, 0.4);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.btn-primary-normal {
  background-color: var(--primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap !important;
  transition: all 0.2s;
}

.btn-primary-normal:hover {
  background-color: var(--primary-hover);
  color: #ffffff !important;
}

.btn-outline-normal {
  background: transparent;
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 13.5px;
  padding: 7px 16px;
  border-radius: 4px;
  border: 1px solid var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap !important;
  transition: all 0.2s;
}

.btn-outline-normal:hover {
  background-color: var(--primary);
  color: #ffffff !important;
}

/* ==========================================================================
   Home Hero Banner
   ========================================================================== */
.hero-banner {
  background: linear-gradient(135deg, rgba(8, 40, 68, 0.94) 0%, rgba(10, 58, 96, 0.9) 100%), url('../images/banner1.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 70px 0;
  position: relative;
}

.hero-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fde047;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-banner h1 {
  color: #ffffff;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-banner p {
  color: #e2e8f0;
  font-size: 16px;
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 26px;
}

.hero-photo-card {
  background: #ffffff;
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  display: inline-block;
  width: 100%;
  max-width: 440px;
}

.hero-photo-card img {
  border-radius: 6px;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.hero-photo-caption {
  padding: 10px 8px 4px;
  text-align: left;
}

.hero-photo-caption h6 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.hero-photo-caption small {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Check Receipt Slip Bar
   ========================================================================== */
.slip-verify-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.slip-verify-bar h5 {
  font-size: 17px;
  margin-bottom: 2px;
  color: var(--primary);
  font-weight: 700;
}

.slip-verify-bar p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Impact Stats Strip
   ========================================================================== */
.stats-strip {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.stat-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.stat-box .num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-box .lbl {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

/* ==========================================================================
   Page Header Strip & Sections
   ========================================================================== */
.page-header-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.page-header-strip .sub-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.page-header-strip h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.25;
}

.page-header-strip p {
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 700px;
}

.section-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 6px;
}

.section-heading-main {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-lead-main {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 650px;
}

.section-v2 {
  padding: 60px 0;
}

.shadow-xs {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.gallery-filter-btn.active {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

.normal-section {
  padding: 60px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head .sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}

.section-head h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-head p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Cause Card */
.cause-card-normal {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cause-card-normal:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.cause-card-normal .img-wrap {
  position: relative;
  height: 200px;
  background: #e2e8f0;
}

.cause-card-normal .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cause-card-normal .cat-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.cause-card-normal .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cause-card-normal h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.cause-card-normal p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Sponsor Child Card */
.child-card-normal {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: transform 0.2s;
}

.child-card-normal:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.child-card-normal img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 3px solid #ffedd5;
}

.child-card-normal h5 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.child-card-normal .sub-cat {
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.child-card-normal p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-grow: 1;
}

.child-card-normal .cost-badge {
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 4px;
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 12px;
}

/* Compatibility Aliases for Buttons and Cards */
.btn-outline-ngo {
  background: transparent;
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 13.5px;
  padding: 7px 16px;
  border-radius: 4px;
  border: 1px solid var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap !important;
  transition: all 0.2s;
}

.btn-outline-ngo:hover {
  background-color: var(--primary);
  color: #ffffff !important;
}

.btn-primary-ngo {
  background-color: var(--primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap !important;
  transition: all 0.2s;
}

.btn-primary-ngo:hover {
  background-color: var(--primary-hover);
  color: #ffffff !important;
}

.cause-card-v2 {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cause-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.cause-media {
  position: relative;
  height: 200px;
  background: #e2e8f0;
}

.cause-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cause-badge-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.cause-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cause-title-v2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.cause-summary {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.progress-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 4px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.progress-labels .current {
  color: #16a34a;
}

.child-card-v2 {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.child-avatar-v2 {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 3px solid #ffedd5;
}

.child-name-v2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.child-meta-badge {
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.child-desc-v2 {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-grow: 1;
}

.child-cost-bar {
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 4px;
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 12px;
}

/* ==========================================================================
   Donation Page Dedicated Standee (QR IS ONLY HERE!)
   ========================================================================== */
.donation-qr-card {
  background: #ffffff;
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
}

.donation-qr-card .qr-image-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 14px;
}

.donation-qr-card .qr-image-box img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

/* Amount Pills on Donation Page */
.amt-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.amt-btn-group .btn-amt {
  flex: 1 1 0;
  min-width: 65px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 6px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap !important;
}

.amt-btn-group .btn-amt:hover {
  background: #f1f5f9;
}

.amt-btn-group .btn-amt.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   Receipt Voucher / Slip Layout
   ========================================================================== */
.receipt-voucher {
  max-width: 780px;
  margin: 20px auto;
  background: #ffffff;
  border: 2px solid #0f172a;
  padding: 35px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.receipt-voucher-inner {
  border: 1px solid #cbd5e1;
  padding: 24px;
  position: relative;
}

.voucher-header {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.voucher-title-bar {
  background: var(--primary);
  color: #ffffff;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.voucher-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
}

.voucher-table td {
  padding: 7px 10px;
  border: 1px solid var(--border);
  vertical-align: top;
}

.voucher-table .lbl {
  width: 32%;
  background-color: #f8fafc;
  color: #64748b;
  font-weight: 600;
}

.voucher-table .val {
  color: #0f172a;
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.normal-footer {
  background-color: #082138;
  color: #94a3b8;
  font-size: 13px;
  padding: 50px 0 20px;
  border-top: 3px solid var(--accent);
}

.normal-footer h5 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.normal-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.normal-footer ul li {
  margin-bottom: 8px;
}

.normal-footer ul a {
  color: #cbd5e1;
}

.normal-footer ul a:hover {
  color: #ffffff;
}

.normal-footer .copy-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 35px;
  font-size: 12px;
  color: #64748b;
}

/* Print Rules */
@media print {
  .no-print, .top-strip, .main-navbar, .normal-footer, .btn, header, footer, nav {
    display: none !important;
  }
  body {
    background: #ffffff !important;
  }
  .receipt-voucher {
    box-shadow: none !important;
    border: 1px solid #000 !important;
    margin: 0 !important;
    padding: 15px !important;
    width: 100% !important;
  }
}

@media (min-width: 992px) and (max-width: 1250px) {
  .main-navbar .logo-img {
    height: 42px;
  }
  .main-navbar .brand-text h2 {
    font-size: 16px;
  }
  .main-navbar .brand-text span {
    font-size: 10px;
  }
  .main-navbar .nav-link {
    font-size: 12px !important;
    padding: 6px 7px !important;
  }
  .btn-donate {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }
  .main-navbar .navbar-brand {
    margin-right: 10px !important;
  }
}

@media (max-width: 991px) {
  .hero-banner h1 {
    font-size: 28px;
  }
  .hero-banner {
    padding: 50px 0;
  }
  .main-navbar .navbar-nav {
    flex-wrap: wrap !important;
    align-items: flex-start;
    padding-top: 10px;
  }
  .main-navbar .nav-link {
    display: block;
    width: 100%;
    padding: 8px 12px !important;
  }
  .btn-donate {
    margin-top: 8px;
    width: 100%;
  }
}
