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

:root {
  --color-primary: #FFD9D2;
  --color-secondary: #99B7C7;
  --color-accent: #9AB59C;
  --color-warm: #FFE8C8;
  --color-bg: #FFFDF9;
  --color-foreground: #18181B;
  --color-muted: #6B7280;
  --color-white: #FFFFFF;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

main, .page-main, .container {
  padding-top: 16px; /* Adjust this value to match your navbar height */
}

body {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-foreground);
}

/* Generic buttons */

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-foreground);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background-color: #ffc2b5;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-foreground);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background-color: #f9fafb;
}

.btn-outline-primary {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

/* Layout */

.page-main {
  margin-top: 80px;
}

/* NAVBAR */

.navbar-fixed {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06);
}

/* Constrain navbar to a centered max-width so left/right margins match */
.navbar-inner {
  max-width: 1200px;      /* tweak until the logo and Logout align visually */
  margin: 0 auto;         /* centers the whole bar */
  padding: 0 1.5rem;      /* equal left/right padding inside */
}

/* Main row layout */
.navbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Keep logo snug to the left edge of the inner container */
.navbar-logo-link {
  margin-left: 0;         /* reset any negative margins */
}

.navbar-logo-img {
  height: 120px;
  width: auto;
}

/* Desktop nav */

/* Keep links tight to the right edge of the inner container */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--color-foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-user-label {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.nav-logout-form {
  margin: 0;
}

/* Mobile nav button */

.navbar-menu-button {
  display: none;
  border: none;
  background: transparent;
  padding: 0.4rem;
  border-radius: 0.5rem;
}

.navbar-menu-button:hover {
  background-color: rgba(148, 163, 184, 0.12);
}

.navbar-menu-icon {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-foreground);
  position: relative;
}

.navbar-menu-icon::before,
.navbar-menu-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-color: var(--color-foreground);
  transform-origin: center;
}

.navbar-menu-icon::before {
  transform: translateY(-6px);
}

.navbar-menu-icon::after {
  transform: translateY(6px);
}

/* Mobile nav list */

.navbar-mobile {
  display: none;
  flex-direction: column;
  padding: 0.75rem 0 1rem 0;
  gap: 0.3rem;
}

.nav-link-mobile {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--color-foreground);
}

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

.nav-link-primary {
  font-weight: 600;
  color: var(--color-primary);
}

/* Mobile open state (simple global toggle) */

html.nav-open .navbar-mobile {
  display: flex;
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .navbar-menu-button {
    display: block;
  }
}

/* HERO */

.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 0% 0%, #ffe6df, transparent 60%),
    radial-gradient(circle at 100% 0%, #d0e1eb, transparent 60%),
    linear-gradient(135deg, #fffdf9, #ffeef1);
}

.curved-bg {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.curved-bg-primary {
  width: 24rem;
  height: 24rem;
  background-color: rgba(255, 217, 210, 0.4);
  top: -5rem;
  right: -5rem;
}

.curved-bg-secondary {
  width: 20rem;
  height: 20rem;
  background-color: rgba(153, 183, 199, 0.35);
  bottom: 2rem;
  left: -4rem;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 700;
  margin: 0 0 0.8rem 0;
  color: var(--color-foreground);
  line-height: 1.1;
}

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

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 32rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-btn-main {
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.hero-arrow {
  margin-left: 0.4rem;
}

/* Hero collage */

.hero-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hero-collage-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-collage-column-2 {
  padding-top: 2rem;
}

.hero-img {
  width: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  transition: transform 0.25s ease;
}

.hero-img:hover {
  transform: scale(1.03);
}

.hero-img-small {
  height: 190px;
}

.hero-img-medium {
  height: 260px;
}

.hero-img-large {
  height: 320px;
}

/* Stats */

.stats-section {
  padding: 4rem 0;
  background-color: var(--color-white);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
} */

/* .stat-card {
  background-color: #f9fafb;
  border-radius: 1.3rem;
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
} */

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Programs */

.programs-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #fff4ee, #e7f2f7);
  border-radius: 3rem 3rem 0 0;
  margin-top: 1rem;
}

.programs-header {
  text-align: center;
  margin-bottom: 2.8rem;
}

.programs-title {
  font-size: 2.4rem;
  margin: 0 0 0.5rem 0;
}

.programs-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 34rem;
  margin: 0 auto;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

.program-row {
  display: flex;
  gap: 1.3rem;
}

.program-img {
  width: 33%;
  min-width: 120px;
  height: 190px;
  object-fit: cover;
  border-radius: 1.3rem;
  transition: transform 0.25s ease;
}

.program-copy {
  flex: 1;
}

.program-heading {
  margin: 0 0 0.4rem 0;
  font-size: 1.3rem;
}

.program-text {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0 0 0.6rem 0;
}

.program-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.program-link:hover {
  text-decoration: underline;
}

/* Donate */

.donate-section {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.donate-header {
  text-align: center;
  margin-bottom: 2.4rem;
}

.donate-title {
  font-size: 2.4rem;
  margin: 0 0 0.6rem 0;
}

.donate-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 32rem;
  margin: 0 auto;
}

.donate-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.donate-flower {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.donate-center {
  text-align: center;
}

.donate-main-img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 1.8rem;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  margin-bottom: 1.6rem;
}

.donate-btn {
  font-size: 1.05rem;
  padding-inline: 3rem;
}

/* CTA */

.cta-section {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, #ffe6df, #e9f2f7);
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.cta-title {
  font-size: 2.4rem;
  margin: 0 0 0.8rem 0;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Footer */

.footer {
  background: linear-gradient(135deg, #fff4ee, #e7f2f7);
  margin-top: 3rem;
}

.footer-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem 1.5rem;
}

.footer-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-logo-img {
  height: 100px;
  width: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--color-muted);
}

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

.footer-link {
  font-size: 0.9rem;
  color: var(--color-muted);
  text-decoration: none;
}

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

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.footer-contact-icon {
  color: var(--color-primary);
}

.footer-social-row {
  display: flex;
  gap: 0.8rem;
}

.footer-social-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.footer-social-primary {
  background-color: rgba(255, 217, 210, 0.4);
  color: var(--color-foreground);
}

.footer-social-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}

.footer-social-secondary {
  background-color: rgba(153, 183, 199, 0.3);
  color: var(--color-foreground);
}

.footer-social-secondary:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-1px);
}

.footer-social-accent {
  background-color: rgba(154, 181, 156, 0.3);
  color: var(--color-foreground);
}

.footer-social-accent:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding-top: 1.2rem;
  text-align: center;
}

.footer-bottom-text {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Full-width black footer bar */
.footer-logo-bar {
  width: 100%;
  height: 80px;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure logo fits nicely */
.footer-logo-bar .footer-logo-img {
  height: 60px;
  width: auto;
}


/* Animations */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.animate-fade-in {
  animation: fadeIn 0.7s ease forwards;
}

.animate-slide-in {
  animation: slideIn 0.7s ease forwards;
}

.animate-float {
  animation: float 3.5s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 1s;
}

.stat-delay-1 { animation-delay: 0.1s; }
.stat-delay-2 { animation-delay: 0.2s; }
.stat-delay-3 { animation-delay: 0.3s; }

/* Responsive */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr);
  }

  .hero-collage {
    max-width: 420px;
    margin: 2rem auto 0 auto;
  }

  /* .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  } */

  .programs-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 640px) {
  .hero-inner {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  /* .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  } */

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

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}




/* ============================================================
   ELLA RISES ENHANCED STYLING (ADD TO BOTTOM OF FILE)
   Matches the React version visually without Tailwind
============================================================ */

/* Page background softness */
body {
  background: radial-gradient(circle at 20% 40%, #ffe6df 0%, transparent 55%),
              radial-gradient(circle at 80% 20%, #d9e9f4 0%, transparent 55%),
              linear-gradient(135deg, #fffdf9, #f7faff);
  min-height: 100vh;
}

/* Page title */
.page-title,
h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--color-foreground);
}

/* EVENTS GRID LAYOUT */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}

/* CARD STYLE — upgraded to pastel/light, matching screenshot
.card-pastel {
  background: #ffffffee;
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.card-pastel:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
} */

/* ICON inside card */
.event-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Titles on cards */
.event-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: .25rem;
  color: var(--color-foreground);
}

/* Date/time */
.event-card-date {
  font-size: 1rem;
  color: #556;
  margin-bottom: .6rem;
}

/* Location */
.event-card-location {
  font-size: .95rem;
  color: #778;
  margin-bottom: 1rem;
}

/* Attendees */
.event-card-attendees {
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* Edit link */
.event-edit-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.event-edit-link:hover {
  text-decoration: underline;
}

/* ADD EVENT button */
.add-event-btn {
  float: right;
  margin-top: -4.4rem;
  background: var(--color-primary);
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  color: white;
  box-shadow: 0 10px 20px rgba(15,23,42,0.1);
  transition: .2s ease;
}

.add-event-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15,23,42,0.18);
}

/* Event card tweaks */
.event-card {
  padding: 2.2rem;
  border-radius: 1.8rem;
}

/* ===============================
   LOGIN PAGE — CLEAN & CENTERED
   =============================== */

   .login-page-wrapper {
    min-height: calc(100vh - 200px); /* 120px navbar + breathing room */
    padding-top: 160px;              /* Push BELOW your huge navbar */
    padding-bottom: 80px;
    display: flex;
    justify-content: center;
  }
  
  /* THE CARD */
  .login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffffee;
    border-radius: 1.6rem;
    padding: 2.2rem 2rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(0,0,0,0.06);
    animation: fadeIn 0.6s ease-out;
    text-align: center;
  }
  
  /* HEADINGS */
  .login-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
  }
  
  .login-subtitle {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
  }
  
  /* FORM */
  .login-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }
  
  .login-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
  }
  
  .login-field input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(0,0,0,0.15);
    font-size: 0.95rem;
    background: #fff;
  }
  
  /* ROW */
  .login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .remember-me {
    font-size: 0.9rem;
    color: var(--color-muted);
  }
  
  .forgot-link {
    font-size: 0.9rem;
    color: var(--color-primary);
    text-decoration: none;
  }
  
  .forgot-link:hover {
    text-decoration: underline;
  }
  
  /* BUTTON */
  .login-btn {
    width: 100%;
    margin-top: 0.5rem;
  }
  
  /* BOTTOM */
  .login-bottom {
    margin-top: 1.6rem;
    font-size: 0.9rem;
    color: var(--color-muted);
  }
  
  .signup-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
  }
  
  .signup-link:hover {
    text-decoration: underline;
  }

  /* ===============================
   REGISTER PAGE — CLEAN VERSION
   =============================== */

.register-page-wrapper {
  min-height: calc(100vh - 200px);
  padding-top: 160px;
  padding-bottom: 80px;
  display: flex;
  justify-content: center;
}

.register-card {
  width: 100%;
  max-width: 440px;
  background: #ffffffee;
  border-radius: 1.6rem;
  padding: 2.2rem 2rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(0,0,0,0.06);
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

.register-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.register-subtitle {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}

.register-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Fields */
.register-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.register-field input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 0.95rem;
  background: #fff;
}

/* Button */
.register-btn {
  width: 100%;
  margin-top: 0.4rem;
}

/* Bottom text */
.register-bottom {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.register-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.register-link:hover {
  text-decoration: underline;
}

/* IMPACT STYLING */
/* Row that holds 4 vertical cards side-by-side */
.impact-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: nowrap;      /* THIS forces 4 cards in one row */
  margin-top: 2rem;
}

/* Vertical cards */
.impact-vertical-card {
  width: 220px;
  background: #ffffff;
  padding: 1.8rem 1.4rem;
  border-radius: 1.4rem;
  text-align: center;
  box-shadow: 0 12px 26px rgba(15,23,42,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

.impact-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-foreground);
  margin-bottom: 0.5rem;
}

.impact-number {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.impact-sub {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.impact-wrapper-card {
  background: #ffffffee;
  padding: 3rem 2rem;
  border-radius: 1.8rem;
  box-shadow: 0 18px 32px rgba(15,23,42,0.08);
  margin-bottom: 4rem;
}
.impact-section-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--color-foreground);
}

.testimonial-carousel {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  min-height: 150px;
}

.testimonial-slide {
  opacity: 0;
  display:none;
  transition: opacity 0.8s ease;
  position: absolute;
  width: 100%;
  text-align: center;
}

.testimonial-slide.active {
  opacity: 1;
  display: block;
  position: static;
}

.testimonial-text {
  font-size: 1.3rem;
  color: var(--color-muted);
  font-style: italic;
  margin-bottom: 0.6rem;
}

.testimonial-author {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-foreground);
}


/* ================================================
   DASHBOARD FIX — MATCHES THE REACT VERSION EXACTLY
   ================================================ */

/* Section layout */
.bg-gradient-hero {
  background: radial-gradient(circle at 0% 0%, #ffe6df, transparent 60%),
              radial-gradient(circle at 100% 0%, #d0e1eb, transparent 60%),
              linear-gradient(135deg, #fffdf9, #f7faff);
}

/* Stat cards (top 3) */
.stat-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem 1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

/* Emoji/icon inside top stat cards */
.stat-card div:first-child {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Grid for top stats */
.grid.md\:grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Pastel cards for events, achievements, programs */
.card-pastel {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform .2s ease;
}

.card-pastel:hover {
  transform: translateY(-4px);
}

/* Gradient card (achievements) */
.bg-gradient-card {
  background: linear-gradient(135deg, #fff4ee, #e7f2f7);
  border-radius: 1.5rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

/* Section headers */
.card-pastel h2 {
  margin-bottom: 1.5rem;
}

/* Event category blocks */
.bg-primary\/5,
.bg-secondary\/5,
.bg-accent\/5 {
  background-color: rgba(255, 217, 210, .25);
}

.bg-secondary\/5 {
  background-color: rgba(153, 183, 199, .20);
}

.bg-accent\/5 {
  background-color: rgba(154, 181, 156, .25);
}

/* Left border on events */
.border-l-4 {
  border-left-width: 4px;
  border-style: solid;
}

.border-primary {
  border-color: var(--color-primary);
}

.border-secondary {
  border-color: var(--color-secondary);
}

.border-accent {
  border-color: var(--color-accent);
}

/* Progress bars */
.bg-muted {
  background-color: #e5e7eb;
}

.bg-primary,
.bg-secondary,
.bg-accent {
  height: 100%;
  border-radius: 999px;
}

/* Text colors that Tailwind normally handled */
.text-primary {
  color: var(--color-primary);
}
.text-secondary {
  color: var(--color-secondary);
}
.text-accent {
  color: var(--color-accent);
}
.text-muted-foreground {
  color: var(--color-muted);
}

/* Fix margin between dashboard sections */
.mt-8 {
  margin-top: 2.5rem !important;
}
.mb-6 {
  margin-bottom: 1.5rem !important;
}


/* ============================================================
   DASHBOARD GRID — 3 CARDS ACROSS WITH SPACING
============================================================ */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.dashboard-card {
  background: #ffffffee;
  border-radius: 1.8rem;
  padding: 2rem;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 40px rgba(15, 23, 42, 0.12);
}

.dashboard-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.dashboard-section-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.dashboard-section-link:hover {
  text-decoration: underline;
}

.dashboard-card p {
  margin-top: 0.6rem;
  color: var(--color-muted);
}

.dashboard-main {
  padding-top: 140px; /* space for navbar */
}


/* Dashboard page side margins */
.dashboard-container {
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (min-width: 1024px) {
  .dashboard-container {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

@media (min-width: 1440px) {
  .dashboard-container {
    padding-left: 8rem;
    padding-right: 8rem;
  }
}

/* Extra space before footer on dashboard pages */
.dashboard-main {
  padding-bottom: 4rem;   /* default */
}

@media (min-width: 1024px) {
  .dashboard-main {
    padding-bottom: 6rem; /* more on larger screens */
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.dashboard-card {
  background: #ffffffee;
  border-radius: 1.8rem;
  padding: 2rem;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 40px rgba(15, 23, 42, 0.12);
}

/* ==============================
    Slider + tick styling
   ============================== */

/* Wrapper around ticks + slider */
.slider-wrapper {
  position: relative;
  padding-top: 0.4rem;
}

/* Tick bar */
.slider-ticks {
  position: absolute;
  /* inset so first/last tick align with thumb travel */
  left: 21px;          /* ≈ half of thumb width */
  right: 21px;
  top: 50%;
  transform: translateY(-50%);
  height: 10px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.slider-tick {
  width: 2px;
  background-color: #c4a57a;
  height: 6px;
}

.slider-tick.major {
  height: 10px;
  width: 3px;
  background-color: #8b5e2e;
}

/* Base slider */
.score-slider {
  -webkit-appearance: none;
  width: 100%;
  margin: 0;
  background: transparent;
  cursor: grab;        /* open hand by default */
}

/* While dragging: closed hand */
.score-slider:active {
  cursor: grabbing;
}

/* Chrome / Edge / Safari track with filled brown portion */
.score-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #b48a57 0%,
    #b48a57 var(--val, 0%),
    #e5e7eb var(--val, 0%),
    #e5e7eb 100%
  );
  border: none;
}

/* Chrome / Edge / Safari thumb */
.score-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #b48a57;
  border: 2px solid #f5f5f5;
  margin-top: -5px;    /* vertically center on 6px track */
  cursor: inherit;     /* grab / grabbing from input */
}

/* Firefox track + filled part */
.score-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  border: none;
}

.score-slider::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #b48a57;
}

/* Firefox thumb */
.score-slider::-moz-range-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #b48a57;
  border: 2px solid #f5f5f5;
  cursor: inherit;
}

/* IE / old Edge fallback */
.score-slider::-ms-track {
  height: 6px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

.score-slider::-ms-fill-lower,
.score-slider::-ms-fill-upper {
  background: #e5e7eb;
  border-radius: 999px;
}

.score-slider::-ms-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #b48a57;
  border: 2px solid #f5f5f5;
  cursor: inherit;
}
/* ==============================
    END SLIDER + TICK STYLING
   ============================== */

/* ==============================
    Navbar link styling updates
   ============================== */

/* Primary nav links (Home, Impact) - large, dark pink, high contrast */
.nav-link.nav-link-primary {
  color: #c2185b;                    /* Dark pink */
  font-weight: 900;
  font-size: 1.1rem;                 /* Larger than other links */
  transition: color var(--duration-fast) var(--ease-standard);
}

.nav-link.nav-link-primary:hover {
  color: #a01650;                    /* Even darker on hover */
}

/* Mobile primary nav links */
.nav-link-mobile.nav-link-primary {
  color: #c2185b;                    /* Dark pink */
  font-weight: 900;
  font-size: 1.05rem;
  transition: color var(--duration-fast) var(--ease-standard);
}

.nav-link-mobile.nav-link-primary:hover {
  color: #a01650;                    /* Even darker on hover */
}

/* User label styling */
.nav-user-label {
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  white-space: nowrap;
}

/* Mobile logout button */
.btn-logout-mobile {
  background-color: var(--color-secondary);
  color: var(--color-text);
  border: none;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard);
}

.btn-logout-mobile:hover {
  background-color: var(--color-secondary-hover);
}

/* On very wide screens, keep it centered with even margins */
@media (min-width: 1440px) {
  .navbar-inner {
    max-width: 1280px;
  }
}

/* ==============================
    END Navbar link styling updates
   ============================== */

/* 418 Easter Egg – Teapot page */
.teapot-card {
  width: 100%;
  max-width: 520px;
  margin: 4rem auto;
  background: linear-gradient(135deg, #fff4ee, #e9f2f7);
  border-radius: 1.8rem;
  padding: 2.6rem 2.2rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  text-align: center;
  animation: fadeIn 0.6s ease-out;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.teapot-icon {
  font-size: 3.4rem;
  margin-bottom: 1rem;
}

.teapot-title {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--color-foreground);
}

.teapot-subtitle {
  font-size: 0.98rem;
  color: var(--color-muted);
  max-width: 360px;
  margin: 0 auto 1.8rem auto;
}

.teapot-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.teapot-footnote {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Make dashboard cards fully clickable but keep normal text color */
.dashboard-card-link {
  display: block;
  text-decoration: none;
  color: inherit;              /* use regular body color, not link purple */
}

/* Optional: subtle hover accent instead of purple text */
.dashboard-card-link:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.14);
}

/* Card Wrapper */
.survey-index-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1.2rem;
  max-width: 1000px;
  margin: 2rem auto;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

/* Title Area */
.survey-index-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.survey-index-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* Table */
.survey-index-table-container {
  overflow-x: auto;
  margin-top: 1rem;
}

.survey-index-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.6rem;
}

.survey-index-table thead th {
  padding: 0.75rem;
  text-align: left;
  font-size: 0.95rem;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
}

.survey-index-table tbody tr {
  background: #fafafa;
}

.survey-index-table tbody td {
  padding: 0.85rem;
  font-size: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.survey-index-table tbody tr:last-child td {
  border-bottom: none;
}

/* Score cell */
.avg-score-cell {
  text-align: center;
  font-weight: 600;
}

/* View Surveys Button */
.survey-view-btn {
  background: #fda899;
  padding: 0.45rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: background 0.2s;
}

.survey-view-btn:hover {
  background: #fc8e7f;
}

.view-btn-cell {
  text-align: center;
}

.user-row.editing {
  background: #fff4ee;
}

.cell {
  padding: 0.6rem;
  vertical-align: middle;
}

.inline-input {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  box-shadow: 0 0 0 2px transparent;
  transition: all 0.15s ease;
}

.inline-input:focus {
  outline: none;
  border-color: #ffb7a2;
  box-shadow: 0 0 0 2px #ffe2db;
}

.btn-edit,
.btn-save,
.btn-cancel {
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.btn-edit {
  background: #ffe4dd;
  color: #444;
}

.btn-edit:hover {
  background: #ffcfbe;
}

.btn-save {
  background: #b7f2ce;
}

.btn-save:hover {
  background: #a4e7c0;
}

.btn-cancel {
  background: #ffd1d1;
  margin-left: 0.5rem;
}

.btn-cancel:hover {
  background: #ffbaba;
}

.link-delete {
  color: #ff8a80;
  margin-left: 1rem;
}

.link-delete:hover {
  text-decoration: underline;
}

.actions-cell {
  white-space: nowrap;
}
