/* ==========================================================================
   CSS DESIGN SYSTEM - Students SOCIAL WELFARE TRUST (SSWT)
   Theme: Earth, Biodiverse, Professional, Sleek
   ========================================================================== */

/* 1. Custom CSS Variables */
:root {
  /* HSL Colors */
  --hue-green: 136;
  --hue-slate: 210;

  --primary: hsl(var(--hue-green), 45%, 26%);
  /* Forest Green #245e35 */
  --primary-light: HSL(var(--hue-green), 40%, 36%);
  --primary-dark: HSL(var(--hue-green), 50%, 18%);

  --secondary: HSL(38, 80%, 46%);
  /* Amber Earth #d18715 */
  --secondary-light: HSL(38, 80%, 56%);

  --bg-base: HSL(var(--hue-green), 20%, 96%);
  /* Soft green-tinted off-white */
  --bg-panel: rgba(255, 255, 255, 0.75);
  /* For Glassmorphism */
  --bg-dark: HSL(var(--hue-slate), 35%, 12%);
  /* Slate dark background */

  --text-main: HSL(var(--hue-slate), 30%, 16%);
  /* High contrast dark slate */
  --text-muted: HSL(var(--hue-slate), 15%, 44%);
  /* Accessible gray */
  --text-white: HSL(0, 0%, 100%);

  --border-color: rgba(255, 255, 255, 0.45);
  /* Glass border */
  --border-solid: HSL(var(--hue-green), 15%, 86%);

  --success: HSL(145, 55%, 38%);
  --warning: HSL(35, 85%, 45%);
  --danger: HSL(0, 75%, 45%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 31, 14, 0.05);
  --shadow-md: 0 8px 30px rgba(10, 31, 14, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 31, 14, 0.12);

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-round: 50%;
}

/* 2. Global Resets & Accessibility Defaults */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-column: true;
  /* Standard flex defaults */
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary-dark);
}

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

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

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* Accessible Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.max-width-large {
  max-width: 1000px;
}

.max-width-medium {
  max-width: 800px;
}

.max-width-small {
  max-width: 600px;
}

.max-width-tiny {
  max-width: 420px;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 24px;
}

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

.grid-3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4-cols {
  grid-template-columns: repeat(4, 1fr);
}

.grid-span-2 {
  grid-column: span 2;
}

/* Flex Utilities */
.flex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-grow {
  flex-grow: 1;
}

.gap-small {
  gap: 12px;
}

.gap-medium {
  gap: 24px;
}

.gap-large {
  gap: 48px;
}

/* Alignment & Sizing */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--text-muted);
}

.text-white {
  color: var(--text-white);
}

.text-small {
  font-size: 0.875rem;
}

.text-tiny {
  font-size: 0.75rem;
}

.text-large {
  font-size: 1.25rem;
}

.font-weight-semibold {
  font-weight: 600;
}

.font-italic {
  font-style: italic;
}

.font-family-monospace {
  font-family: Courier, monospace;
}

.whitespace-pre-wrap {
  white-space: pre-wrap;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.border-radius-medium {
  border-radius: var(--radius-md);
}

.border-radius-small {
  border-radius: var(--radius-sm);
}

.cursor-pointer {
  cursor: pointer;
}

/* Padding/Margin Spacers */
.py-medium {
  padding: 48px 0;
}

.py-large {
  padding: 80px 0;
}

.margin-top-tiny {
  margin-top: 6px;
}

.margin-top-small {
  margin-top: 16px;
}

.margin-top-medium {
  margin-top: 32px;
}

.margin-bottom-tiny {
  margin-bottom: 8px;
}

.margin-bottom-small {
  margin-bottom: 16px;
}

.margin-bottom-medium {
  margin-bottom: 32px;
}

.margin-bottom-large {
  margin-bottom: 60px;
}

.padding-small {
  padding: 16px;
}

.padding-medium {
  padding: 32px;
}

.padding-bottom-tiny {
  padding-bottom: 8px;
}

.border-bottom-light {
  border-bottom: 1px solid var(--border-solid);
}

.height-fit-content {
  height: fit-content;
}

.min-height-viewport {
  min-height: 85vh;
}

.width-100 {
  width: 100%;
}

/* ==========================================================================
   3. DESIGN SYSTEM: GLASSMORPHISM & BLURS
   ========================================================================== */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.glass-panel:hover {
  box-shadow: var(--shadow-lg);
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   4. UI COMPONENTS: BUTTONS, BADGES, ALERTS
   ========================================================================== */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-heading);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--text-white);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-white);
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
  color: var(--text-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-white);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--text-white);
  border-color: var(--text-white);
}

.btn-outline-white:hover {
  background-color: var(--text-white);
  color: var(--primary-dark);
}

.btn-danger {
  background-color: var(--danger);
  color: var(--text-white);
}

.btn-danger:hover {
  background-color: HSL(0, 80%, 35%);
  color: var(--text-white);
}

.btn-small {
  padding: 6px 14px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1.125rem;
  border-radius: var(--radius-md);
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
}

.badge-primary {
  background-color: HSL(var(--hue-green), 20%, 90%);
  color: var(--primary-dark);
}

.badge-success {
  background-color: HSL(145, 50%, 90%);
  color: var(--success);
}

.badge-warning {
  background-color: HSL(35, 80%, 90%);
  color: var(--warning);
}

/* Alerts */
.alert {
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

.alert-success {
  background-color: HSL(145, 40%, 94%);
  border: 1px solid HSL(145, 40%, 80%);
  color: HSL(145, 50%, 25%);
}

.alert-danger {
  background-color: HSL(0, 60%, 95%);
  border: 1px solid HSL(0, 60%, 85%);
  color: HSL(0, 70%, 30%);
}

.alert-list {
  padding-left: 20px;
}

/* ==========================================================================
   5. STICKY HEADER & RESPONSIVE NAVBAR
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 247, 245, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  padding: 6px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   6. PUBLIC PAGE VIEW SECTIONS
   ========================================================================== */
/* Hero Section */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-attachment: scroll;
  /* smooth scroll fallback */
  color: var(--text-white);
  padding: 80px 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-white);
}

/* Hero Leaf Particles */
.hero-leaf-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.leaf-particle {
  position: absolute;
  top: -40px;
  pointer-events: none;
  opacity: 0;
  animation: fall-and-drift linear infinite;
}

@keyframes fall-and-drift {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(90vh) rotate(540deg) translateX(120px);
    opacity: 0;
  }
}

.hero-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-heading {
  font-size: 3.5rem;
  color: var(--text-white);
  max-width: 900px;
  margin: 0 auto 20px auto;
}

.hero-lead {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 36px auto;
  opacity: 0.9;
}

.hero-actions-container {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Impact cards */
.impact-card {
  padding: 36px 24px;
}

.impact-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.impact-label {
  font-weight: 600;
  color: var(--text-muted);
}

/* Cards (Event/Blog) */
.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-image-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #ddd;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-image-wrapper img {
  transform: scale(1.05);
}

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

.card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  align-items: center;
}

.card-meta svg {
  vertical-align: middle;
  margin-right: 4px;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.card-excerpt {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-link {
  font-size: 0.875rem;
}

/* Gallery Lightbox Viewport */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.gallery-item-card {
  cursor: pointer;
  overflow: hidden;
}

.gallery-image-wrapper {
  height: 240px;
  overflow: hidden;
}

.gallery-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item-card:hover .gallery-image-wrapper img {
  transform: scale(1.04);
}

.gallery-info {
  padding: 16px;
}

.gallery-caption {
  font-weight: 500;
  font-size: 0.9375rem;
}

/* Lightbox Overlay */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 31, 14, 0.92);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 36px;
  font-size: 3rem;
  color: var(--text-white);
  cursor: pointer;
  user-select: none;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption-text {
  color: var(--text-white);
  margin-top: 16px;
  font-size: 1.125rem;
  text-align: center;
}

/* Inner Banner */
.page-banner {
  padding: 100px 0;
  background-position: center;
  background-size: cover;
  color: var(--text-white);
}

.banner-title {
  font-size: 3rem;
  color: var(--text-white);
  margin-bottom: 12px;
}

.banner-lead {
  font-size: 1.125rem;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Map frame & Forms */
.map-embed-wrapper {
  overflow: hidden;
  height: 300px;
  border-radius: var(--radius-md);
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-solid);
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px HSL(var(--hue-green), 45%, 90%);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9375rem;
}

/* Team Profile Cards */
.team-avatar-wrapper {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-round);
  overflow: hidden;
  margin: 0 auto 20px auto;
  border: 4px solid var(--border-solid);
}

.team-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 1.25rem;
}

.team-role {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.875rem;
  margin-bottom: 12px;
}

/* Safe Markdown layout */
.styled-markdown h1,
.styled-markdown h2,
.styled-markdown h3 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.styled-markdown p {
  margin-bottom: 16px;
}

.styled-markdown ul,
.styled-markdown ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.styled-markdown img {
  border-radius: var(--radius-sm);
  margin: 16px auto;
  max-width: 100%;
}

/* ==========================================================================
   7. PRIVATE AREA: ADMIN VIEWS & FORMS
   ========================================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  border-radius: 0;
  border-right: 1px solid var(--border-color);
  background: var(--bg-dark);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-white);
}

.user-name {
  font-size: 0.875rem;
}

.sidebar-links {
  list-style: none;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: block;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--secondary);
  padding-left: 20px;
}

.admin-main {
  flex-grow: 1;
  padding: 40px;
  background-color: HSL(var(--hue-green), 20%, 93%);
}

/* Logo Dimensions */
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Admin Dashboard Stats Layout */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.1;
  margin-bottom: 12px;
  display: block;
}

.stat-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-block;
  margin-top: auto;
}

.stat-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.table-wrapper {
  overflow-x: auto;
  margin-bottom: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-solid);
}

.admin-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-dark);
}

.table-thumbnail {
  width: 50px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.table-thumbnail-large {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Split editor */
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.editor-preview-pane {
  background: var(--bg-panel);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
}

.preview-header {
  padding: 8px 16px;
  background-color: var(--primary-dark);
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: 4px 4px 0 0;
  text-transform: uppercase;
}

.markdown-preview-content {
  padding: 16px;
  flex-grow: 1;
  min-height: 250px;
  overflow-y: auto;
  max-height: 400px;
  background-color: var(--text-white);
}

/* Gallery management thumbnail */
.gallery-thumbnail-wrapper {
  height: 160px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: #ddd;
}

.gallery-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Audit box logs */
.pre-scrollable {
  max-height: 150px;
  overflow-y: auto;
}

/* ==========================================================================
   8. DONATE MODAL CARDS
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 31, 14, 0.7);
  backdrop-filter: blur(8px);
  z-index: 110;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  padding: 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 0;
  font-size: 2.25rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-close-btn:hover {
  color: var(--primary-dark);
}

.modal-heading {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal-subheading {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal-quote-container {
  background: HSL(var(--hue-green), 20%, 94%);
  border-left: 4px solid var(--primary);
  padding: 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
  position: relative;
}

.quote-icon-svg {
  position: absolute;
  top: 8px;
  right: 16px;
  color: HSL(var(--hue-green), 20%, 86%);
}

.modal-blockquote p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9375rem;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.modal-blockquote cite {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.payment-method-card {
  background-color: #fff;
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.payment-title {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.payment-code {
  font-family: monospace;
  font-size: 1.0625rem;
  background-color: var(--bg-base);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  flex-grow: 1;
  border: 1px dashed var(--border-solid);
}

.bank-details-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
}

.bank-detail-item {
  display: flex;
  justify-content: space-between;
}

.bank-label {
  color: var(--text-muted);
  font-weight: 500;
}

.bank-value {
  font-weight: 600;
}

.copy-success-toast {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--success);
  min-height: 20px;
  margin-bottom: 12px;
}

.modal-footer-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   9. FOOTER STYLING
   ========================================================================== */
.main-footer {
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 40px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-white);
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.875rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-socials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.875rem;
}

.footer-socials a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-socials a:hover {
  color: var(--text-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  font-size: 0.8125rem;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS (Mobile-First CSS)
   ========================================================================== */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {

  .grid-4-cols,
  .grid-3-cols,
  .grid-2-cols {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(244, 247, 245, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
  }

  .nav-menu.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 16px;
  }

  .hero-heading {
    font-size: 2.25rem;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .hero-actions-container {
    flex-direction: column;
  }

  .footer-bottom-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    min-height: auto;
  }

  .admin-main {
    padding: 20px;
  }
}

/* Preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-delay: -1ms !important;
    animation-duration: -1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}

/* ==========================================================================
   11. CUSTOM THEMING & CONTRAST OVERRIDES
   ========================================================================== */

/* Background Utilities */
.bg-primary {
  background-color: var(--primary) !important;
}

.bg-primary-dark {
  background-color: var(--primary-dark) !important;
}

.bg-secondary {
  background-color: var(--secondary) !important;
}

.bg-light {
  background-color: HSL(var(--hue-green), 20%, 94%) !important;
}

.bg-dark {
  background-color: var(--bg-dark) !important;
}

/* Footer Link and Button Contrast Overrides */
.main-footer a {
  color: rgba(255, 255, 255, 0.75) !important;
}

.main-footer a:hover {
  color: var(--text-white) !important;
}

.main-footer .footer-logo span {
  color: var(--text-white) !important;
}

/* Button Active Feedback and Centering */
.btn:active {
  transform: scale(0.96);
}

.btn-primary:active {
  background-color: var(--primary-dark);
}

.btn-secondary:active {
  background-color: HSL(38, 80%, 36%);
}

/* Homepage Symmetry & Card Beautification */
.grid-flex-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.grid-flex-center>* {
  flex: 1 1 320px;
  max-width: 380px;
}

/* Card Hover Interactions */
.card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.impact-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.impact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Gallery Card Improvements */
.gallery-item-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.gallery-item-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Clickable Map Card Overlay & Interactions */
.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 31, 14, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.map-overlay-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  transform: translateY(15px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-overlay-content svg {
  color: var(--primary);
  flex-shrink: 0;
}

.map-col:hover .map-overlay {
  opacity: 1;
}

.map-col:hover .map-overlay-content {
  transform: translateY(0);
}

/* On mobile/touch screens, show the directions overlay directly and format it nicely */
@media (max-width: 768px) {
  .map-overlay {
    opacity: 1;
    background: rgba(10, 31, 14, 0.15);
  }

  .map-overlay-content {
    transform: translateY(0);
    padding: 10px 18px;
    font-size: 0.9375rem;
  }
}

/* QR Code Zoom Interaction Hover Effects */
#upi-qr-trigger {
  cursor: pointer;
}
#upi-qr-trigger:hover {
  transform: scale(1.04);
}
#upi-qr-trigger:hover .upi-qr-wrapper {
  box-shadow: var(--shadow-md);
}

/* Markdown Editor Toolbar Styles */
.btn-tb {
  padding: 4px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border-solid);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.btn-tb:hover {
  background: var(--bg-base);
  border-color: var(--primary);
  color: var(--primary);
}

/* 3D Cover-flow Carousel Styles */
.carousel-viewport {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  background-color: rgba(10, 31, 14, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}

.carousel-slide {
  position: absolute;
  width: 380px;
  height: 250px;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0, -200px) rotateY(0);
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) rotateY(0);
  z-index: 10;
  cursor: default;
  box-shadow: var(--shadow-lg);
}

.carousel-slide.prev {
  opacity: 0.8;
  visibility: visible;
  transform: translate3d(-180px, 0, -100px) rotateY(25deg);
  z-index: 5;
}

.carousel-slide.next {
  opacity: 0.8;
  visibility: visible;
  transform: translate3d(180px, 0, -100px) rotateY(-25deg);
  z-index: 5;
}

.carousel-slide.far-prev {
  transform: translate3d(-340px, 0, -180px) rotateY(40deg);
  opacity: 0;
  z-index: 2;
}

.carousel-slide.far-next {
  transform: translate3d(340px, 0, -180px) rotateY(-40deg);
  opacity: 0;
  z-index: 2;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-round);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  font-size: 1.25rem;
  font-weight: 700;
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn-left {
  left: 24px;
}

.carousel-btn-right {
  right: 24px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-round);
  background-color: var(--border-solid);
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot.active {
  background-color: var(--primary);
  transform: scale(1.4);
}

.event-embed-container iframe {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .carousel-viewport {
    height: 280px;
  }
  .carousel-slide {
    width: 260px;
    height: 170px;
  }
  .carousel-slide.prev {
    transform: translate3d(-110px, 0, -80px) rotateY(20deg);
  }
  .carousel-slide.next {
    transform: translate3d(110px, 0, -80px) rotateY(-20deg);
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .carousel-btn-left {
    left: 12px;
  }
  .carousel-btn-right {
    right: 12px;
  }
}