/* ============================================
   MODERN PROFESSIONAL DESIGN SYSTEM
   Enhanced UI for Premium Experience
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@700;800&display=swap");

/* ============================================
   CSS VARIABLES & THEME
   ============================================ */

:root {
  /* Color Palette */
  --ink: #0f2419;
  --muted: #5a7370;
  --teal: #0d9488;
  --teal-light: #ccf0eb;
  --teal-dark: #087d6c;
  --coral: #ef6f61;
  --coral-light: #fce8e5;
  --gold: #f3b64b;
  --gold-light: #fef3e5;
  --paper: #f8faf9;
  --white: #ffffff;
  --border: #e0e5e3;
  --border-light: #f0f3f2;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Typography */
  --font-sans: "DM Sans", sans-serif;
  --font-display: "Manrope", sans-serif;

  /* Shadows - Enhanced for depth */
  --shadow-sm: 0 2px 8px rgba(15, 36, 25, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 36, 25, 0.12);
  --shadow-lg: 0 8px 32px rgba(15, 36, 25, 0.14);
  --shadow-xl: 0 12px 48px rgba(15, 36, 25, 0.16);
  --shadow-2xl: 0 16px 64px rgba(15, 36, 25, 0.18);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-sans);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.admin-auth {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    #dceee8 0%,
    var(--paper) 52%,
    #fce8e5 100%
  );
}

.admin-auth .auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem 1rem;
}

.admin-auth .auth-card {
  width: min(100%, 460px);
  padding: clamp(2rem, 5vw, 3.25rem);
  border: 1px solid rgba(15, 36, 25, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-xl);
}

.admin-auth .auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 2.5rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.admin-auth .auth-card > .eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  text-align: center;
}

.admin-auth .auth-brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.45rem;
  letter-spacing: 0.18em;
}

.admin-auth .auth-card h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
}

.admin-auth .auth-intro {
  margin-bottom: 1.75rem;
  color: var(--muted);
}

.admin-auth .auth-form {
  display: grid;
  gap: 0.65rem;
}

.admin-auth .auth-form label {
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-auth .auth-form .form-control {
  min-height: 50px;
  margin-bottom: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

.admin-auth .auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.3rem 0 1rem;
  font-size: 0.82rem;
}

.admin-auth .remember-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.admin-auth .remember-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.admin-auth .auth-options a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
}

.admin-auth .auth-options a:hover {
  color: var(--coral);
}

@media (max-width: 480px) {
  .admin-auth .auth-card {
    padding: 1.75rem 1.25rem;
  }

  .admin-auth .auth-options {
    align-items: flex-start;
    flex-direction: column;
  }
}

.footer {
  background: var(--ink);
  color: #dfece9;
}

.footer p,
.footer address,
.footer a,
.footer span,
.footer small {
  color: inherit;
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-lg) 0;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md) 0;
}

h3 {
  font-size: 1.4rem;
  margin: 0 0 var(--space-md) 0;
}

h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

p {
  margin: 0 0 var(--space-md) 0;
}

.lead {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: var(--space-md);
}

.text-muted {
  color: var(--muted) !important;
}

.text-ink {
  color: var(--ink) !important;
}

/* ============================================
   BUTTONS & CTA ELEMENTS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  gap: var(--space-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--paper);
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline-dark:hover {
  background: var(--ink);
  color: white;
}

.btn-sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-lg {
  min-height: 56px;
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn i {
  font-size: 1.1em;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.form-control,
.form-select,
input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: white;
  transition: all var(--transition-base);
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--ink);
}

.form-group {
  margin-bottom: var(--space-lg);
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */

.card-base {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card-base:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-elevated {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
  border: none;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  height: 76px;
  background: white;
  box-shadow: var(--shadow-sm);
  z-index: 1040;
}

.navbar-brand {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.navbar-brand small {
  display: block;
  font: 600 0.48rem var(--font-sans);
  letter-spacing: 0.2em;
  color: var(--muted);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

.nav-link {
  font-weight: 600;
  color: var(--ink);
  padding: 8px 16px;
  transition: all var(--transition-base);
  position: relative;
}

.nav-link:hover {
  color: var(--teal);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--teal);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-slide {
  min-height: clamp(480px, 70vh, 720px);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 36, 25, 0.75) 0%,
    rgba(15, 36, 25, 0.3) 65%,
    rgba(15, 36, 25, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 760px;
  width: min(100%, 760px);
  padding: var(--space-4xl) 0;
  margin-left: 0;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  color: white;
  margin-bottom: var(--space-lg);
  line-height: 0.96;
}

.hero-content .lead {
  color: #e2eeeb;
  max-width: 680px;
}

.hero-content .eyebrow {
  color: #f3b64b;
  margin-bottom: var(--space-lg);
}

.home-hero .hero-content .d-flex {
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-hero .container,
.navbar .container,
.donate-band .container,
.section-space .container {
  max-width: 1280px;
}

.about-page > .section-space > .container > .row {
  align-items: center;
}

.about-page > .section-space > .container > .row > .col-lg-6 {
  max-width: 650px;
}

.about-page > .section-space > .container > .row > .col-lg-5 {
  margin-left: auto;
}

.about-page > .section-space .section-copy {
  max-width: 620px;
}

.about-page .story-highlight {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: var(--radius-xl);
  background: #eaf5f3;
  box-shadow: var(--shadow-md);
}

.about-page .story-highlight > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.7fr) 1fr;
  align-items: center;
  gap: var(--space-lg);
  min-height: 112px;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid rgba(13, 148, 136, 0.16);
}

.about-page .story-highlight > div:last-child {
  border-bottom: 0;
}

.about-page .story-highlight strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.about-page .story-highlight span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 767.98px) {
  .about-page .story-highlight > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    min-height: 0;
    padding: 1.25rem 1.5rem;
  }
}

.about-page .story-section {
  background: linear-gradient(135deg, #edf7f4 0%, #f8faf9 100%);
}

.about-page .story-section .section-heading {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}

.about-page .story-section .section-heading h2 {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.about-page .story-section .row {
  align-items: stretch;
  max-width: 1060px;
  margin-right: auto;
  margin-left: auto;
}

.about-page .story-section .row > div {
  display: flex;
}

.about-page .story-section .section-copy {
  width: 100%;
  margin: 0;
  padding: var(--space-lg) var(--space-xl);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 767.98px) {
  .about-page .story-section .section-copy {
    padding: 1.25rem 1.25rem 1.25rem 1rem;
  }
}

.about-page > .section-space:has(.info-card) .row,
.about-page > .section-space:has(.profile-card) .row,
.about-page .team-section .row {
  align-items: stretch;
}

.about-page .info-card,
.about-page .profile-card,
.about-page .team-card {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.about-page .info-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-xl);
}

.about-page .info-card .eyebrow {
  margin-bottom: 0.75rem;
}

.about-page .info-card h3 {
  min-height: 3.65rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  line-height: 1.35;
}

.about-page .info-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.about-page .value-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.about-page .value-list li {
  position: relative;
  padding-left: 1.25rem;
}

.about-page .value-list li::before {
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.about-page .founder-photo-wrap {
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.about-page .founder-photo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-page .founder-meta {
  display: grid;
  gap: 0.2rem;
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}

.about-page .founder-meta strong {
  font-family: var(--font-display);
}

.about-page .founder-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.about-page .profile-card {
  padding: var(--space-xl);
}

.about-page .profile-card h3 {
  margin-bottom: 0.9rem;
  color: var(--teal-dark);
  font-size: 1.25rem;
}

.about-page .profile-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.about-page .team-section {
  background: #f1f6f4;
}

.about-page .team-card {
  overflow: hidden;
}

.about-page .team-card > img {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.about-page .team-card-body {
  display: flex;
  flex-direction: column;
  height: calc(100% - 270px);
  padding: var(--space-lg);
}

.about-page .team-card-body h3 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.about-page .team-card-body > span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-page .team-card-body p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

@media (max-width: 767.98px) {
  .about-page .info-card,
  .about-page .profile-card {
    padding: 1.5rem;
  }

  .about-page .info-card h3 {
    min-height: 0;
  }

  .about-page .founder-photo-wrap {
    min-height: 320px;
  }

  .about-page .team-card > img {
    height: 240px;
  }

  .about-page .team-card-body {
    height: auto;
  }
}

#programs {
  position: relative;
}

#programs > .container > .d-flex {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
}

#programs .section-count {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

#programs .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
  gap: 1.5rem 0;
}

#programs .col-sm-6,
#programs .col-lg-3 {
  padding: 0 0.75rem;
}

#programs .program-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

#programs .program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

#programs .icon-box {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  color: white;
  background: var(--teal);
}

#programs .icon-box.teal {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
}

#programs .icon-box.coral {
  background: linear-gradient(135deg, var(--coral) 0%, #f29b8b 100%);
}

#programs .icon-box.gold {
  background: linear-gradient(135deg, var(--gold) 0%, #f7c870 100%);
  color: var(--ink);
}

#programs .program-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.35;
}

#programs .program-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.97rem;
}

#programs .program-card a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

#programs .program-card a i {
  font-size: 0.9rem;
}

#impact {
  background: linear-gradient(180deg, #eaf5f3 0%, #f7f8f3 100%);
}

#impact .row {
  align-items: center;
}

#impact .col-lg-5,
#impact .col-lg-7 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#impact .section-copy {
  max-width: 560px;
}

#impact .impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(13, 148, 136, 0.18);
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

#impact .impact-grid > div {
  background: rgba(234, 246, 244, 0.9);
  padding: 1.5rem 1.25rem;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#impact .impact-grid strong {
  display: block;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

#impact .impact-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#impact canvas {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 200px !important;
  background: rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  border: 1px solid rgba(13, 148, 136, 0.12);
}

@media (max-width: 767.98px) {
  #programs .row {
    margin: 0;
    gap: 1rem 0;
  }

  #programs .col-sm-6,
  #programs .col-lg-3 {
    padding: 0;
  }

  #programs .program-card {
    padding: 1.4rem 1.2rem;
  }

  #impact .impact-grid {
    grid-template-columns: 1fr;
  }

  #impact canvas {
    height: 170px !important;
  }
}

/* ============================================
   SECTIONS & SPACING
   ============================================ */

.section-space {
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

.section-space.py-5 {
  padding: 3rem 0;
}

.container {
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ============================================
   GRID & LAYOUT
   ============================================ */

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  gap: 1.5rem;
}

.col,
.col-12,
.col-md-6,
.col-lg-4,
.col-lg-3 {
  flex: 1 1 auto;
  padding: 0;
}

.col-12 {
  flex-basis: 100%;
}

@media (max-width: 767.98px) {
  .col-md-6 {
    flex-basis: 100%;
  }

  .home-hero .hero-content {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .home-hero .hero-content .d-flex {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 768px) {
  .col-md-6 {
    flex-basis: 48%;
  }
  .col-md-4 {
    flex-basis: 31%;
  }
}

@media (min-width: 1200px) {
  .col-lg-4 {
    flex-basis: 31%;
  }
  .col-lg-3 {
    flex-basis: 23%;
  }
}

/* ============================================
   CARD COMPONENTS
   ============================================ */

.program-card,
.project-card,
.event-card,
.blog-card,
.story-card,
.gallery-item,
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.card-base:hover .card-image {
  transform: scale(1.05);
}

.card-body {
  padding: var(--space-xl);
}

.card-category {
  display: inline-block;
  margin-bottom: var(--space-md);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-title {
  font-size: 1.4rem;
  margin: var(--space-md) 0;
  line-height: 1.3;
}

.card-description {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============================================
   TABLES
   ============================================ */

.table-responsive {
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: var(--paper);
  padding: var(--space-md);
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
}

tbody td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

tbody tr:hover {
  background: var(--paper);
}

/* ============================================
   BADGES & LABELS
   ============================================ */

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
}

.badge.bg-success {
  background: #d1e7e3;
  color: #087d6c;
}

.badge.bg-danger {
  background: #ffe8e4;
  color: #c94640;
}

.badge.bg-warning {
  background: #fef3e5;
  color: #a56c00;
}

.badge.bg-primary {
  background: #d1e7e3;
  color: var(--teal);
}

.badge.bg-info {
  background: #d1e7e3;
  color: #0891b2;
}

/* ============================================
   MODALS & OVERLAYS
   ============================================ */

.modal {
  display: none;
}

.modal.show {
  display: flex;
}

.modal-dialog {
  width: calc(100% - 2rem);
  max-width: 1140px;
  margin: auto;
}

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  border: none;
}

.modal-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.modal-body {
  padding: var(--space-xl);
}

.modal-footer {
  padding: var(--space-xl);
  border-top: 1px solid var(--border);
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */

.admin-page {
  margin-left: 280px;
  transition: margin-left var(--transition-base);
}

.admin-sidebar {
  position: fixed;
  z-index: 1035;
  top: 76px;
  bottom: 0;
  left: 0;
  width: 280px;
  background: linear-gradient(180deg, #0f2419 0%, #162d25 100%);
  color: #dfece9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-sidebar-nav > a,
.admin-sidebar-nav details summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  color: #dfece9;
  font-weight: 600;
}

.admin-sidebar-nav > a:hover,
.admin-sidebar-nav details summary:hover,
.admin-sidebar-dashboard {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.metric {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-base);
}

.metric:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.metric strong {
  display: block;
  font: 800 2.2rem var(--font-display);
  color: var(--ink);
  line-height: 1.2;
}

.metric i {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: #e0e5e3;
  font-size: 2.4rem;
}

/* Admin Chart Cards */
.admin-chart-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.admin-chart-card h2 {
  font-size: 1.4rem;
  margin: 0 0 var(--space-xl) 0;
}

/* ============================================
   STAT CARDS
   ============================================ */

.stat-card {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--teal);
  transition: all var(--transition-base);
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.stat-card p {
  margin: 0 0 var(--space-sm) 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.stat-card h2 {
  font-size: 2.2rem;
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
}

/* ============================================
   FILTER & SEARCH
   ============================================ */

.admin-filters {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.crud-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.crud-toolbar input,
.crud-toolbar select {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  background: white;
  font-family: var(--font-sans);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: white;
  border: 2px solid var(--border);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--transition-base);
}

.filter-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.filter-pill.active {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1199.98px) {
  h1 {
    font-size: 2.8rem;
  }
  h2 {
    font-size: 2rem;
  }

  .section-space {
    padding: var(--space-3xl) 0;
  }
}

@media (max-width: 991.98px) {
  .admin-page {
    margin-left: 0;
  }

  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-base);
  }

  .admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .section-space {
    padding: var(--space-3xl) 0;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.2rem;
  }

  .section-space {
    padding: var(--space-2xl) 0;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .row {
    gap: 1rem;
  }

  .col-md-6 {
    flex-basis: 100%;
  }

  .btn {
    min-height: 44px;
    padding: 10px 20px;
  }

  .card-body {
    padding: var(--space-lg);
  }
}

@media (max-width: 575.98px) {
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.4rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .section-space {
    padding: var(--space-2xl) 0;
  }

  .col-lg-4,
  .col-lg-3 {
    flex-basis: 100%;
  }

  .hero-slide {
    min-height: 380px;
  }

  .hero-content {
    padding: var(--space-2xl) 0;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}

.gap-2 {
  gap: var(--space-sm);
}

.gap-3 {
  gap: var(--space-md);
}

.gap-4 {
  gap: var(--space-lg);
}

.mt-1 {
  margin-top: var(--space-sm);
}
.mt-2 {
  margin-top: var(--space-md);
}
.mt-3 {
  margin-top: var(--space-lg);
}
.mt-4 {
  margin-top: var(--space-xl);
}

.mb-1 {
  margin-bottom: var(--space-sm);
}
.mb-2 {
  margin-bottom: var(--space-md);
}
.mb-3 {
  margin-bottom: var(--space-lg);
}
.mb-4 {
  margin-bottom: var(--space-xl);
}

.px-3 {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}
.py-3 {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}
.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-xl {
  border-radius: var(--radius-xl);
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
