/* =========================================
   ELLA RISES BRAND VARIABLES
   ========================================= */
:root {
  /* Official palette */
  --er-blue-light: #99B7C6;
  --er-blue: #97BEC4;
  --er-cream: #F9F5EA;
  --er-peach-light: #FFD8D1;
  --er-peach: #F9AFB1;
  --er-sage: #9AB59D;
  --er-charcoal: #3A3F3B;
  --er-coral: #F4B092;
  --er-rose: #CE325B;

  --er-text-dark: #222222;
  --er-text-muted: #555555;
  --er-black: #111111;

  --er-radius-pill: 999px;
  --er-radius-card: 24px;

  --er-shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* =========================================
   GLOBAL RESET
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--er-text-dark);
  background-color: var(--er-cream);
}


/* =========================================
   Donations
   ========================================= */
/* For screen-reader-only labels */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Donations filters bar */
.donations-controls {
  margin: 1.5rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  align-items: flex-end;
}

.donations-controls-left {
  flex: 1 1 230px;
}

.donations-controls-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.donations-controls-right select {
  padding: 0.45rem 0.7rem;
  border-radius: 20px;
  border: 1px solid var(--er-charcoal);
  font-size: 0.9rem;
  background-color: #fff;
}

@media (max-width: 800px) {
  .donations-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .donations-controls-right {
    justify-content: flex-start;
  }
}


.donations-search-form {
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

.donations-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.donations-sort-form {
  flex: 1;
}

.donations-toolbar-right {
  display: flex;
  align-items: center;
}


.er-table {
  margin-left: auto;
  margin-right: auto;
}

/* Events table: keep event name on one line */
.events-table th:nth-child(1),
.events-table td:nth-child(1) {
  white-space: nowrap;
}

/* Slightly shift the Events table left to visually center it */
.events-table {
  margin-left: calc(40% - 50%);
}



/* Full-page donate background */
.er-page-form.donate-background {
  /* override the narrow layout on this page only */
  width: 100%;
  max-width: 100%;
  margin: 0;              /* remove auto-centering from main container */
  padding: 80px 0;        /* vertical spacing around the card */

  background-image: url('/img/donate-bg.jpg');  /* your file path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Keep the card itself centered and readable */
.er-page-form.donate-background .er-form-card {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 40px;
}









/* =========================================
   HEADER / NAV
   ========================================= */
.er-header {
  background-color: var(--er-peach-light);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--er-shadow-soft);
}

.er-header-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.er-logo-img {
  height: 48px;
  width: auto;
}

.er-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.er-nav a {
  text-decoration: none;
  color: var(--er-text-dark);
  font-weight: 500;
}

.er-nav a:hover {
  text-decoration: underline;
}

.logout-btn {
  background-color: #F7F4EE;
  color: var(--er-charcoal);
  border: 1.5px solid var(--er-charcoal);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--er-radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;

  /* alignment tweak so the button lines up with nav links */
  padding: 0.25rem 0.9rem;
  position: relative;
  top: -3px;
}



.logout-btn:hover {
  background-color: #EFEDE7;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* User / Login Pill */
.er-user-pill {
  margin-right: 0.75rem;
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--er-radius-pill);
  background-color: var(--er-cream);
}
.create-account-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 0.75rem;
  background-color: var(--er-peach-light);
  color: var(--er-charcoal);
  border-radius: var(--er-radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s ease;
}

.create-account-link:hover {
  background-color: var(--er-peach);
  color: white;
}

/* LOGIN CARD — DESKTOP DEFAULT */
.login-card {
  max-width: 600px;        /* Desktop width */
  width: 100%;             /* Allows shrinking on small screens */
  padding: 3rem;           /* Balanced padding */
  background: white;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  border-radius: 24px;
  margin: 6rem auto;       /* Centered */
}

/* MOBILE ONLY */
@media (max-width: 480px) {
  .login-card {
    padding: 1.5rem;       /* Smaller spacing */
    margin: 2rem auto;     /* Bring card closer to top */
  }

  .login-card h1 {
    font-size: 1.6rem;
  }

  .login-card input {
    height: 40px;
    font-size: 0.95rem;
  }
}

/* =========================================
   MAIN LAYOUT
   ========================================= */
.er-main {
  min-height: 70vh;
  padding-bottom: 2rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--er-radius-pill);
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--er-shadow-soft);
}

.btn-primary {
  background-color: #fff;
  color: var(--er-charcoal);
}

.btn-dark {
  background-color: var(--er-charcoal);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--er-charcoal);
  color: var(--er-charcoal);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  background-color: var(--er-peach);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-kicker {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.hero-title {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin: 0.5rem 0;
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 1rem auto 2rem;
  color: var(--er-text-muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-bottom: 0;    /* keeps buttons from dropping into the blue strip below */
}

.btn {
  padding: 0.75rem 1.6rem;
  font-size: 1rem;
  letter-spacing: 0.3px;
}
.hero-actions .btn {
  background-color: #F7F4EE;
  color: var(--er-charcoal);
  border: 1.5px solid var(--er-charcoal);
  border-radius: 60px;
  padding: 0.65rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.18s ease;
}

.hero-actions .btn:hover {
  background-color: #EFEDE7;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.10);
}


/* =========================================
   SECTIONS
   ========================================= */
.er-section {
  padding: 3rem 1.5rem;
}

.er-section-light {
  background-color: var(--er-cream);
}

.er-section-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.er-section-inner h2 {
  font-family: "DM Serif Display", serif;
  font-size: 1.9rem;
  margin-bottom: 0.6rem;
}

.er-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* =========================================
   IMAGE GRID
   ========================================= */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.image-card {
  border-radius: var(--er-radius-card);
  height: 230px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--er-shadow-soft);
}

/* Placeholder colors — replace w/ real images */
.image-card-1 { background-color: var(--er-peach-light); }
.image-card-2 { background-color: var(--er-sage); }
.image-card-3 { background-color: var(--er-blue-light); }

/* =========================================
   FORMS (Login, CRUD)
   ========================================= */
.er-auth-card {
  max-width: 450px;
  text-align: left;
  margin: 0 auto;
}

.er-auth-card form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.er-auth-card input {
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

/* =========================================
   TABLES – GLOBAL STYLE
   ========================================= */
.table,
.er-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background-color: #fff;
  border-radius: var(--er-radius-card);
  overflow: hidden;
  box-shadow: var(--er-shadow-soft);
  font-size: 0.9rem;
}

/* Header */
.table thead th,
.er-table thead th {
  background-color: var(--er-peach-light);
  color: var(--er-charcoal);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Cells */
.table tbody td,
.er-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  vertical-align: top;
}

/* Zebra striping */
.table tbody tr:nth-child(even),
.er-table tbody tr:nth-child(even) {
  background-color: #fef7f3;
}

/* Row hover */
.table tbody tr:hover,
.er-table tbody tr:hover {
  background-color: #ffe9e2;
}

/* Make long text columns (like comments) easier to read */
.table td:nth-child(9),
.er-table td.comments-cell {
  max-width: 420px;
  line-height: 1.4;
}

/* Actions links/buttons inside tables */
.table td a,
.table td button,
.er-table td a,
.er-table td button {
  font-size: 0.8rem;
}

/* Responsive: allow horizontal scroll on small screens */
@media (max-width: 900px) {
  .table,
  .er-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}


/* =========================================
   FOOTER
   ========================================= */
/* ===============================
   FOOTER LAYOUT
   =============================== */
.er-footer {
  background: var(--er-blue-light);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--er-charcoal);
  font-size: 1rem;
}

/* Left side (centered text visually) */
.footer-left {
  flex: 1;
  text-align: center;
}

/* Right side icons + status */
.footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Social icons */
.social-icon i {
  font-size: 1.3rem;
  color: var(--er-charcoal);
  transition: color 0.2s ease;
  cursor: pointer;
}

.social-icon i:hover {
  color: var(--er-rose);
}

/* Status link */
.footer-easter-egg a {
  color: var(--er-charcoal);
  text-decoration: none;
}

.footer-easter-egg a:hover {
  text-decoration: underline;
}

/* ===============================
   KEEP FOOTER AT BOTTOM
   =============================== */
html, body {
  height: 100%;
}

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

footer {
  margin-top: auto;
}



/* =========================================
   RESPONSIVE NAVIGATION
   ========================================= */
@media (max-width: 780px) {
  .er-header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .er-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Dashboard Grid */
.dashboard-grid {
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  max-width: 700px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

/* Individual Cards */
.dashboard-card {
  display: block;
  background-color: #fff;
  padding: 1.2rem 1.4rem;
  border-radius: var(--er-radius-card);
  text-decoration: none;
  color: var(--er-charcoal);
  font-weight: 600;
  text-align: center;
  box-shadow: var(--er-shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.12);
  background-color: var(--er-peach-light);
}

.dashboard-grid li:last-child {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
}

.dashboard-grid li:last-child .dashboard-card {
  max-width: 450px;
  width: 100%;
}

.dashboard-grid li:last-child .dashboard-card {
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

.actions-cell {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.dashboard-hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.dashboard-hero h1 {
  font-family: "DM Serif Display", serif;
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
  color: var(--er-text-dark);
}

.dashboard-hero p {
  font-size: 1.15rem;
  color: var(--er-text-muted);
  margin-top: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-tableau-section {
  max-width: 1100px;
  margin: 3rem auto 4rem;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--er-cream);
  border-radius: 20px;
  box-shadow: var(--er-shadow-soft);
}

.dashboard-tableau-title {
  font-family: "DM Serif Display", serif;
  font-size: 2.1rem;
  margin-bottom: 1.5rem;
  color: var(--er-text-dark);
}

.tableau-container {
  width: 100%;
  min-height: 600px;
  margin-top: 1rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}


/* Base pill action buttons */
.btn-action {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s ease;
}

/* EDIT button: soft blue */
.btn-edit {
  background-color: var(--er-blue-light);
  color: var(--er-black);
}
.btn-edit:hover {
  background-color: var(--er-blue);
}

/* DELETE button: soft rose */
.btn-delete {
  background-color: var(--er-rose);
  color: #fff;
}
.btn-delete:hover {
  background-color: #b6284d;
}

/* Inline form fix */
.actions-cell form {
  display: inline;
}

/* Pretty outline button for "Add Donation" */
.btn-outline {
  border: 1.5px solid var(--er-charcoal);
  background-color: #F7F4EE;
  color: var(--er-charcoal);
  padding: 0.45rem 1rem;
  border-radius: var(--er-radius-pill);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.18s ease;
}

.btn-outline:hover {
  background-color: #EFEDE7;
  transform: translateY(-2px);
}


.er-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--er-text-muted);
}

/* Tiny, subtle Easter egg link */
.footer-easter-egg {
  font-size: 0.75rem;
  opacity: 0.5;
}

.footer-easter-egg a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.2);
}

.footer-easter-egg a:hover {
  opacity: 1;
  text-decoration: underline;
}


/* =========================================
   FORM PAGE LAYOUT (Donate, Add/Edit pages)
   ========================================= */

.er-page-form {
  max-width: 700px;
  margin: 2.5rem auto;
  padding: 1.5rem;
}

.er-form-card {
  background-color: #fff;
  padding: 2rem 2.5rem;
  border-radius: var(--er-radius-card);
  box-shadow: var(--er-shadow-soft);
  text-align: center;
}

.er-form-card h1 {
  font-family: "DM Serif Display", serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.er-form-card p {
  color: var(--er-text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Form layout */
.er-form {
  width: 100%;
  text-align: left;
}

.er-form .form-group {
  margin-bottom: 1rem;
}

.er-form .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--er-charcoal);
}

/* Inputs */
.er-form input[type="text"],
.er-form input[type="email"],
.er-form input[type="number"],
.er-form input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background-color: #fff;
  transition: all 0.15s ease;
}

.er-form input:focus {
  outline: none;
  border-color: var(--er-peach);
  box-shadow: 0 0 0 3px rgba(249, 175, 177, 0.25);
}

/* Ensure Submit button is centered */
.btn-add {
  margin-top: 1rem;
  width: auto;
  display: inline-block;
}

.donate-submit {
  display: block;
  margin: 1rem auto 0;
}

.form-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* Make both buttons identical width */
.form-buttons .btn,
.form-buttons .btn-cancel {
  width: 260px;
  text-align: center;
}


/* Donate page: make the card narrower */
.er-page-form.donate-background .er-form-card {
  max-width: 600px;
  margin: 0 auto;
}

/* HOME LAYOUT */
.home {
  background-color: var(--er-cream);
}

/* HERO – homepage */
.hero {
  padding: 4.5rem 1.5rem 13rem;
  background: var(--er-peach);
  color: #2b2432;
  position: relative;
}

/* blue band sits below hero content */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -260px;
  height: 420px;
  background: #8fb0c3;
  z-index: 0;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* BIG “Ella Rises” wordmark above everything */
.hero-text::before {
  content: "Ella Rises";
  display: block;
  font-family: "DM Serif Display", serif;
  font-size: clamp(5rem, 4.4vw, 3.6rem);
  letter-spacing: 0.02em;
  color: var(--er-black);
  margin-bottom: 0.15rem;
}

/* little pill: UTAH • NONPROFIT PROGRAM, etc. */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.9rem;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: 999px;
  background-color: #f7f4ee;
  color: var(--er-rose);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* main tagline */
.hero h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 1rem;
  color: var(--er-charcoal);
}

.hero-subtitle {
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 34rem;
  margin-bottom: 1.7rem;
  color: var(--er-text-muted);
}

/* CTA buttons row */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.hero-note {
  font-size: 0.9rem;
  opacity: 0.95;
}

/* Hero Media / Photos */
.hero-media {
  position: relative;
  height: 360px;
}

.hero-photo {
  position: absolute;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transform-origin: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* main mural image */
.hero-photo-main {
  top: 0;
  left: 0;
  right: 0;
  bottom: 25%;
}

/* secondary STEM image (stacked lower right) */
.hero-photo-bottom {
  bottom: -20px;
  right: -20px;
  width: 55%;
  height: 45%;
  border-radius: 1rem;
}

.hero-photo:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

/* SECTIONS */
.section {
  padding: 3.5rem 1.5rem;
}

.section-header {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-header h2 {
  font-family: "DM Serif Display", serif;
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
  color: var(--er-text-dark);
}

.section-header p {
  font-size: 1rem;
  color: #4c4453;
}

/* EXPERIENCE GRID */
.experience-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.experience-card {
  background: #fffdf9;
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f4e3d3;
}

.experience-card h3 {
  margin-bottom: 0.5rem;
}

.experience-card p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.experience-card ul {
  list-style: disc;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

/* GALLERY / PROGRAMS IN ACTION */
.section-gallery {
  background-color: #fbe9dd;
}

.gallery-carousel {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.gallery-viewport {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0 0.75rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.gallery-viewport::-webkit-scrollbar {
  height: 8px;
}

.gallery-viewport::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}

/* individual cards */
.gallery-card {
  flex: 0 0 min(260px, 72vw);
  border-radius: 1rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  font-size: 0.85rem;
  scroll-snap-align: start;
}

.gallery-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.gallery-card figcaption {
  padding: 0.7rem 0.85rem 1rem;
}

/* arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(253, 246, 234, 0.95);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-arrow-left {
  left: -1.5rem;
}

.gallery-arrow-right {
  right: -1.5rem;
}

/* hide arrows on very small screens (scroll with touch) */
@media (max-width: 700px) {
  .gallery-arrow {
    display: none;
  }

  .gallery-viewport {
    padding-inline: 0.25rem;
  }
}

/* STORIES / TESTIMONIALS */
.section-stories {
  background-color: #fdf6ea;
}

.stories-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.story-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
  position: relative;
}

.story-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.story-meta {
  font-size: 0.85rem;
  color: #6b6472;
}

/* GET INVOLVED */
.section-get-involved {
  background-color: #8fb0c3;
  color: #1f2430;
}

.section-get-involved .section-header p {
  color: #1f2430;
}

.get-involved-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.involved-card {
  background: #fdf6ea;
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.involved-card h3 {
  margin-bottom: 0.4rem;
}

.involved-card p {
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

/* BUTTON TWEAKS (if needed) */
.er-button-primary {
  background-color: #f7d8de;
  color: #2b2432;
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
}

.er-button-secondary {
  background-color: transparent;
  border: 1px solid #2b2432;
  color: #2b2432;
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
}



/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero::after {
    bottom: -50px;
    height: 140px;
  }

  .hero-media {
    margin-top: 1.5rem;
    height: 240px;
  }

  .experience-grid,
  .gallery-grid,
  .stories-grid,
  .get-involved-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================
   PARTICIPANTS PAGE LAYOUT
   ============================ */

.page-header {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
}

.page-header h1 {
  font-family: "DM Serif Display", serif;
  font-size: 2.4rem;
  color: var(--er-text-dark);
  margin-bottom: 1rem;
}

/* SEARCH BAR CONTAINER */
.participants-searchbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.2rem auto 0;
}

/* MAIN LARGE SEARCH BAR */
.search-input {
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
}

.search-input::placeholder {
  font-size: 0.8rem;
  color: #777;
  opacity: 1;
}

.search-input:focus {
  outline: none;
  border-color: var(--er-blue);
  box-shadow: 0 0 10px rgba(151, 190, 196, 0.35);
}

/* SMALL SECOND INPUT */
.search-input-small {
  width: 180px;
  padding: 0.7rem 1rem;
  border-radius: 50px;
  border: 1.5px solid var(--er-charcoal);
  font-size: .5 rem;
  background-color: #fff;
}

.search-input-small:focus {
  outline: none;
  border-color: var(--er-blue-light);
}

/* SEARCH BUTTON */
.btn-search {
  background-color: var(--er-charcoal);
  color: #fff;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-search:hover {
  background-color: var(--er-blue-light);
  color: var(--er-black);
}

/* CLEAR BUTTON */
.btn-clear {
  background-color: #F7F4EE;
  border: 1.5px solid var(--er-charcoal);
  padding: 0.7rem 1.3rem;
  border-radius: 50px;
  text-decoration: none;
  color: var(--er-charcoal);
  font-weight: 600;
  transition: all 0.18s ease;
}

.btn-clear:hover {
  background-color: #EDEBE7;
}

/* Hint text */
.hint {
  text-align: center;
  font-size: 0.95rem;
  color: var(--er-text-muted);
  margin-top: 0.5rem;
}

/* EVENTS SEARCH BAR WRAPPER */
.events-searchbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.2rem auto 1.5rem;
  width: 100%;
}

/* Entire events header centered */
.events-header {
  text-align: center;
  margin: 2rem auto 1rem;
}

/* Search bar layout */
.events-searchbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem auto 2rem;
  width: 100%;
}

/* Search input style */
.search-input {
  padding: 0.75rem 1rem;
  width: 350px;
  max-width: 90%;
  border-radius: 25px;
  border: 1.5px solid var(--er-charcoal);
  font-size: 1rem;
}

/* Search button */
.btn-search {
  padding: 0.7rem 1.3rem;
  border-radius: 25px;
  background-color: var(--er-charcoal);
  color: #fff;
  cursor: pointer;
}

/* Clear button */
.btn-clear {
  padding: 0.7rem 1.1rem;
  border-radius: 25px;
  border: 1.5px solid var(--er-charcoal);
  color: var(--er-charcoal);
  background: #F7F4EE;
  text-decoration: none;
}

/* Center the Add Event button */
.add-event-btn {
  display: inline-block;
  margin-top: 1rem;
}

/* =========================================
   SHARED EDIT PAGE LAYOUT
   ========================================= */

/* Outer shell for any edit/create form page */
.er-page-form {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 1.5rem;
}

/* White card wrapper */
.er-form-card {
  background-color: #fff;
  padding: 2rem 2.5rem;
  border-radius: var(--er-radius-card);
  box-shadow: var(--er-shadow-soft);
  margin-bottom: 1.5rem;
}

/* Headings inside cards */
.er-form-card h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-family: "DM Serif Display", serif;
}

/* Optional small subtitle text */
.er-form-subtitle {
  margin-bottom: 1.5rem;
  color: var(--er-text-muted);
  font-size: 0.95rem;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-decoration: none;
}
.back-link:hover {
  text-decoration: underline;
}

/* Forms */
.er-form {
  width: 100%;
}

/* 2-column responsive grid for fields */
.er-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem 1.5rem;
}

/* Full-width field in that grid */
.form-group-full {
  grid-column: 1 / -1;
}

/* Labels + spacing */
.er-form .form-group {
  margin-bottom: 1rem;
}

.er-form .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

/* Inputs/textarea/select */
.er-form input[type="text"],
.er-form input[type="email"],
.er-form input[type="number"],
.er-form input[type="password"],
.er-form input[type="date"],
.er-form input[type="datetime-local"],
.er-form input[type="tel"],
.er-form select,
.er-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background-color: #fff;
  transition: all 0.15s ease;
  font-family: inherit;
}

.er-form input:focus,
.er-form select:focus,
.er-form textarea:focus {
  outline: none;
  border-color: var(--er-peach);
  box-shadow: 0 0 0 3px rgba(249, 175, 177, 0.25);
}

/* Fieldsets look like soft card separators */
.er-form fieldset {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem 1.25rem 1.25rem;
  margin-bottom: 1rem;
}

.er-form legend {
  padding: 0 0.4rem;
  font-weight: 600;
}

/* Buttons row */
.form-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Make buttons look consistent on small screens */
.form-actions .btn {
  min-width: 160px;
  justify-content: center;
}

/* Impact Box Styling */
.impact-container {
  background: linear-gradient(135deg, #d5dde4, #b8c8c3);
  padding: 40px;
  border-radius: 25px;
  text-align: left;
  color: white;
  margin: 40px auto;
  max-width: 1100px;
}

.impact-subtitle {
  letter-spacing: 3px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.impact-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 40px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 40px;
  row-gap: 40px;
}

.impact-item {
  text-align: left;
}

.impact-number {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 8px;
}

.impact-label {
  font-size: 16px;
  opacity: 0.9;
}

.impact-wide {
  grid-column: auto;
}

/* Pull the impact section up so it sits in the blue strip */
.section-impact {
  margin-top: -200px;
  position: relative;
  z-index: 1;
}


/* ============================
   HERO BACKGROUND SECTION
   ============================ */

.hero-bg {
  position: relative;
  height: 105vh;
  min-height: 700px;
  max-height: none;

  background-image: url('/img/stem-workshop-group.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: stretch;
  justify-content: center;
  text-align: center;

  padding: 5rem 1.5rem 3rem;        /* extra space so content is not flush with top/bottom */
}

/* Soft clouded overlay */
.hero-bg .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  z-index: 0;
}

/* make the content fill the hero and space title vs buttons nicely */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: -20px auto 0;  /* nudges content upward slightly */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Big "Ella Rises" title */
.hero-brand {
  font-family: "DM Serif Display", serif;
  font-size: clamp(5rem, 7vw, 6rem);
  margin: 0 0 0.4rem;
  color: var(--er-charcoal);
}

/* Pink pill "Utah • Nonprofit Program" */
.hero-kicker-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 1.1rem;
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: 999px;
  background-color: #f7d8de;
  color: var(--er-charcoal);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Main heading – slightly smaller than before */
.hero-heading {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1rem, 3vw, 2rem);
  line-height: 1.3;
  margin: 0 0 1rem;
  color: var(--er-charcoal);
}

/* Subtext */
.hero-subtext {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 2rem;
}



/* Base hero buttons + remove underline */
.er-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
}

/* Pink-ish primary style to match your palette */
.er-button-primary {
  background-color: #f7d8de;
  color: #2b2432;
  border: 1px solid #2b2432;
  transition: all 0.18s ease;
}

.er-button-primary:hover {
  background-color: #f1c2cd;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Make sure hero is still decent on small screens */
@media (max-width: 700px) {
  .hero-bg {
    height: 80vh;
    min-height: 480px;
    padding-top: 1rem;
  }

  .hero-subtext {
    font-size: 0.98rem;
  }

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


/* Frosted background panel behind hero text */
.hero-text-panel {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  padding: 1rem 2rem;
  border-radius: 18px;
  max-width: 650px;
  margin: 0 auto 2rem;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  margin-bottom: 1.75rem;
}

.hero-title {
  margin-top: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.6;
}


/* Final hero tweaks */

.hero-content {
  justify-content: flex-start;
}

/* Add breathing room below the frosted panel */
.hero-text-panel {
  margin-bottom: 0rem;
}

/* Keep hero buttons within the hero background area */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1;
  padding-bottom: 0rem;
}
