/* ============================================================
   Premium Glassmorphism Theme Additions
   ============================================================ */

/* Glass Cards -> plain premium white cards */
.glass-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.0rem;

  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.glass-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

/* Premium Navbar Redesign - white sticky pill bar */
.premium-glass-navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: var(--container);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  padding: 0.5rem 1.5rem;
  z-index: 1100;
  transition: all 0.3s ease;
}

.premium-glass-navbar.scrolled {
  top: 10px;
  background: rgba(255, 255, 255, 0.98);
}

.premium-navbar {
  display: flex;
  align-items: center;
  width: 100%;
}

/* Brand / Logo */
.premium-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  /* flex: 1; */
  flex-shrink: 0;
}

.premium-logo {
  height: 60px;
  width: auto;
}

.premium-brand-text {
  display: flex;
  flex-direction: column;
}

.premium-brand-text strong {
  font-family: 'Outfit', sans-serif;
  color: var(--color-ink);
  font-size: 1.1rem;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.premium-brand-text small {
  font-size: 0.65rem;
  color: #000;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Center Navigation Links */
.premium-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: 2;
  list-style: none;
  margin: 0;
  padding: 0;
}

.premium-nav-links>li {
  position: relative;
}

.premium-nav-links>li>a {
  color: var(--color-ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 10px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.premium-nav-links>li>a:hover,
.premium-nav-links>li>a.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* Dropdown */
.premium-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 0.5rem 0;
  min-width: 220px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

.has-dropdown:hover .premium-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.premium-dropdown li a {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--color-ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.premium-dropdown li a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

/* Right Actions */
.premium-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  /* flex: 1; */
  flex-shrink: 0;
}

.premium-text-link {
  color: var(--color-ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.premium-text-link:hover {
  color: var(--color-primary);
}

.btn-donate-premium {
  background: linear-gradient(135deg, var(--color-success), var(--color-success-dark));
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.35);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-donate-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
  background: linear-gradient(135deg, #22c55e, var(--color-success));
}

.premium-nav-toggle {
  display: none;
}

/* Responsive Breakpoints & Offcanvas Menu */
.premium-offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1050;
}

.premium-offcanvas-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--color-border);
  z-index: 1060;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  padding-top: 80px;
}

body.show-offcanvas {
  overflow: hidden;
}

body.show-offcanvas .premium-offcanvas-overlay {
  opacity: 1;
  visibility: visible;
}

body.show-offcanvas .premium-offcanvas-menu {
  right: 0;
}

body.show-offcanvas .premium-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.show-offcanvas .premium-nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.show-offcanvas .premium-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.offcanvas-header {
  display: none !important;
}



.premium-offcanvas-content {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.premium-offcanvas-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.premium-offcanvas-content>ul>li {
  border-bottom: 1px solid var(--color-border);
}

.premium-offcanvas-content a {
  display: block;
  padding: 1rem 0;
  color: var(--color-ink-soft);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
}

.premium-offcanvas-content a:hover,
.premium-offcanvas-content a.active {
  color: var(--color-primary);
}

.premium-offcanvas-content .premium-dropdown {
  position: static;
  transform: none;
  box-shadow: none;
  border: none;
  background: transparent;
  padding: 0 0 0 1rem;
  opacity: 1;
  visibility: visible;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.premium-offcanvas-content .has-dropdown.is-open .premium-dropdown {
  max-height: 500px;
  padding-bottom: 1rem;
}

.premium-offcanvas-content .has-dropdown>a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.premium-offcanvas-content .has-dropdown>a::after {
  content: "▼";
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.premium-offcanvas-content .has-dropdown.is-open>a::after {
  transform: rotate(180deg);
}

/* Mobile Actions inside Offcanvas */
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
}

/* Breakpoints */
@media (max-width: 1600px) {
  .premium-nav-links>li>a {
    /* padding: 0.5rem 0.75rem; */
    font-size: 12px;
  }

  .premium-glass-navbar {
    padding: 0.5rem 1rem;
    width: 95%;
  }

  .premium-nav-actions {
    12px;
  }
}

@media (max-width: 1366px) {
  .premium-brand-text small {
    display: none;
  }

  .premium-nav-links>li>a {
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
  }

  .premium-nav-actions .premium-text-link {
    font-size: 0.85rem;
  }

  .btn-donate-premium {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 1024px) {
  .premium-nav-links {
    display: none;
  }

  .premium-nav-actions {
    display: none;
  }

  .premium-navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
  }

  .premium-brand {
    justify-self: start;
    flex: unset;
  }

  .mobile-donate-btn {
    display: flex !important;
    justify-self: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .premium-nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 0.5rem;
    justify-self: end;
    width: auto !important;
    height: auto !important;
  }

  .premium-nav-toggle span {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background: var(--color-ink) !important;
    transition: all 0.3s ease;
    border-radius: 2px;
    margin: 0 !important;
  }

  .premium-glass-navbar {
    width: 98%;
  }
}

@media (max-width: 768px) {
  .premium-glass-navbar {
    border-radius: 0;
    width: 100%;
    top: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
  }

  .premium-logo {
    height: 40px;
  }

  .premium-brand-text strong {
    font-size: 1rem;
  }

  .btn-donate-premium {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .premium-nav-actions {
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .premium-brand-text {
    display: none;
  }

  /* Just icon on very small screens */
}

/* Buttons */
.btn-premium-primary {
  background: linear-gradient(135deg, #3b82f6, var(--color-primary));
  color: #fff !important;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-premium-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.btn-gradient-blue-green {
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-gradient-blue-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
  background: linear-gradient(90deg, #60a5fa, #4ade80);
}

.btn-premium-secondary {
  background: transparent;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-premium-secondary:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Premium Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--color-ink);
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(to right, #3b82f6, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p {
  color: var(--color-ink-soft);
}

/* Hero Section */
.premium-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  /* offset for navbar */
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* Soft blue/green tinted wash so the photo stays readable behind dark text
   while remaining clearly visible (no flat white veil); sits above the
   photo (z-index 1) but below all hero content (z-index 2). */
.premium-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgb(224 242 254 / 23%) 0%, rgb(219 234 254 / 39%) 45%, rgb(220 252 231 / 0%) 100%);
}

.premium-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.premium-hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  padding-right: 2rem;
}

.premium-hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.premium-hero-title .text-accent-green {
  color: var(--color-success);
}

.premium-hero-title .text-accent-blue {
  color: var(--color-primary);
}

.premium-hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-actions .read-more-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.premium-hero-card {
  width: 100%;
  max-width: 400px;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}

.hero-card-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-card-row:last-of-type {
  margin-bottom: 2rem;
}

.hero-card-row h4 {
  margin: 0;
  font-size: 1.1rem;
}

.hero-card-row p {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.btn-block {
  width: 100%;
  justify-content: space-between;
}

@media (max-width: 992px) {
  .premium-hero {
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 3rem;
  }

  .premium-hero-inner {
    justify-content: center !important;
  }

  .premium-hero-content {
    padding-right: 0 !important;
  }

  .hero-actions {
    justify-content: center !important;
  }

  .premium-hero-card {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .premium-hero {
    padding-top: 95px;
    padding-bottom: 2.5rem;
  }

  .premium-hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
    margin-bottom: 1rem;
  }

  .premium-hero-subtitle {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .premium-hero {
    padding-top: 85px;
    padding-bottom: 2rem;
  }
}

/* Footer */
.glass-footer {
  background: linear-gradient(180deg, #22c55e4d 0%, #22c55e2b 100%);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}

.glass-footer h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.glass-footer p,
.glass-footer a {
  color: var(--color-ink-soft);
}

.glass-footer a:hover {
  color: var(--color-success);
}

/* Utilities */
.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-8 {
  margin-top: 2rem;
}

.flex {
  display: flex;
}

.gap-4 {
  gap: 1rem;
}

.items-center {
  align-items: center;
}

/* Dashboard overrides for dark theme */
.dashboard-container {
  background: transparent !important;
}

/* ============================================================
   New Home Page Specific Layouts (Reference Image Match)
   ============================================================ */

/* Stats Bar */
.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  margin: -60px auto 2.5rem;
  /* overlaps the hero section slightly on desktop, where the hero has
     fixed height/columns to overlap safely against */
  max-width: var(--container);
  position: relative;
  z-index: 10;
  background-color: rgb(244, 244, 203);
}

@media (max-width: 992px) {
  .stats-bar-grid {
    /* hero switches to a stacked column layout at this breakpoint, so the
       negative overlap margin would ride up over its content instead of
       sitting cleanly below it */
    margin-top: 1.5rem;
    padding: 1.5rem;
    gap: 1.25rem;
  }
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
  color: var(--color-ink);
}

.stat-info p {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  margin: 0;
}

/* Programs Section */
.programs-section-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.programs-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.programs-info .eyebrow {
  color: var(--color-primary);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.program-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 !important;
}

.program-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.program-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.program-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -35px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.program-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.program-card p {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more-link {
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more-link:hover {
  color: var(--color-primary-dark);
}

/* Impact Section */
.impact-section-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.impact-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.video-thumb-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.video-thumb-card:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.play-icon-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.video-thumb-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-ink);
  text-align: center;
  font-weight: 500;
}

/* Join Hands CTA Banner */
.cta-banner-wrapper {
  max-width: var(--container);
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.cta-banner {
  background: linear-gradient(90deg, var(--color-primary), var(--color-success));
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.cta-banner-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cta-icon-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-banner h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  color: #fff;
}

.cta-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
  display: flex;
  gap: 1rem;
}

.btn-cta-orange {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-cta-orange:hover {
  background: var(--color-accent-dark);
}

@media (max-width: 1024px) {

  .programs-section-layout,
  .impact-section-layout {
    grid-template-columns: 1fr;
  }

  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .cta-banner-content {
    flex-direction: column;
  }
}

@media (max-width: 640px) {

  .programs-grid,
  .impact-videos-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Shared component layer
   Reusable primitives so every page (public + dashboard) draws
   from one system instead of inventing its own inline styling.
   ============================================================ */

/* -- Tinted section backgrounds (breaks up flat white pages) -- */
.home-section {
  padding: 3rem 0;
}

@media (max-width: 640px) {
  .home-section {
    padding: 2rem 0;
  }
}

.section-tint-blue {
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
}

.section-tint-green {
  background: linear-gradient(180deg, #eefcf3 0%, #ffffff 100%);
}

.section-tint-orange {
  background: linear-gradient(180deg, #fff4ec 0%, #ffffff 100%);
}

.section-tint-ink {
  background: linear-gradient(135deg, var(--color-primary-darker), var(--color-primary-dark));
}

.section-tint-ink h2,
.section-tint-ink h3,
.section-tint-ink .section-heading h2 {
  color: #fff;
}

.section-tint-ink p,
.section-tint-ink .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

/* -- Card accent modifiers (layer on top of .glass-card) -- */
.glass-card.accent-top {
  border-top: 3px solid var(--color-border);
}

.glass-card.accent-top.accent-blue {
  border-top-color: var(--color-primary);
}

.glass-card.accent-top.accent-green {
  border-top-color: var(--color-success);
}

.glass-card.accent-top.accent-orange {
  border-top-color: var(--color-accent);
}

.glass-card.compact {
  padding: 1.25rem;
}

/* -- Form components -- */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-ink);
}

.form-label .required {
  color: var(--color-accent);
  margin-left: 0.15rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-base);
  font-size: 0.95rem;
  color: var(--color-ink);
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-control::placeholder {
  color: var(--color-muted);
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

input[type="file"].form-control {
  padding: 0.6rem 0.75rem;
  background: var(--color-bg-alt);
  cursor: pointer;
}

input[type="file"].form-control::file-selector-button {
  margin-right: 1rem;
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

input[type="file"].form-control::file-selector-button:hover {
  background: var(--color-primary-dark);
}

.form-control.is-invalid {
  border-color: #dc2626;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form-help {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.form-error-text {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #dc2626;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* -- Feedback: alerts -- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.5;
}

.alert svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
}

.alert-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

.alert-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.program-progress {
  margin: 0.6rem 0 1rem;
}

.program-progress-track {
  background: var(--color-border);
  border-radius: var(--radius-sm);
  height: 10px;
  overflow: hidden;
}

.program-progress-fill {
  background: var(--color-primary);
  height: 100%;
}

.program-progress-label {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
}

.donation-upi-block {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.donation-upi-block p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.donation-upi-block img {
  width: 180px;
  height: 180px;
  margin: 0 auto 0.75rem;
  border-radius: var(--radius-sm);
}

.donation-upi-link {
  margin-top: 0.5rem;
  font-weight: 600;
}

/* -- Feedback: badges (shared by public site + dashboard) -- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-transform: capitalize;
}

.badge-blue {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.badge-green {
  background: #ecfdf5;
  color: #15803d;
}

.badge-orange {
  background: #fff7ed;
  color: #c2410c;
}

.badge-red {
  background: #fef2f2;
  color: #b91c1c;
}

.badge-gray {
  background: var(--color-bg-alt);
  color: var(--color-muted);
}

/* ============================================================
   Decorative primitives — used sparingly (hero + 1-2 CTA
   sections), not on every section.
   ============================================================ */

/* Soft blurred color blob tucked behind a section's content.
   Host element needs position: relative and overflow: hidden. */
.section-blob {
  position: relative;
  overflow: hidden;
}

.section-blob::before,
.section-blob::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.section-blob::before {
  width: 380px;
  height: 380px;
  top: -140px;
  right: -120px;
  background: rgba(37, 99, 235, 0.16);
}

.section-blob::after {
  width: 320px;
  height: 320px;
  bottom: -120px;
  left: -100px;
  background: rgba(22, 163, 74, 0.14);
}

.section-blob-orange::before {
  background: rgba(249, 115, 22, 0.16);
}

.section-blob>* {
  position: relative;
  z-index: 1;
}

/* Curved wave divider along the bottom edge of a section, to replace a
   hard horizontal line between two sections. */
.section-wave-bottom {
  position: relative;
}

.section-wave-bottom::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,32 C240,60 480,0 720,16 C960,32 1200,58 1440,28 L1440,60 L0,60 Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}