/* ============================
   COLORS
============================ */
:root {
  --pink: #F4CFC9;
  --pink-light: #FFD8D1;
  --pink-medium: #F9AFB1;
  --dark: #3A3F3B;
  --white: #ffffff;
  --blue-light: #99B7C6;
}

/* ============================
   GLOBAL
============================ */
body {
  background: #FFF9F7;
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  margin: 0;
}

.custom-bg {
  background-color: #FFD8D1 !important;
}
.custom-nav-color {
  background-color: #99B7C6 !important;
}

/* ============================
   NAVBAR
============================ */
.er-nav {
  background: var(--pink);
}

.er-logo-small {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

/* Buttons */
.nav-btn {
  background: var(--blue-light);
  margin-left: .5rem;
  padding: 6px 14px !important;
  border-radius: 8px;
  color: white !important;
  transition: 0.2s ease;
}

.nav-btn:hover {
  background: var(--pink-medium);
  color: var(--dark) !important;
}

.logout-btn {
  background: #CE325B !important;
}

.logout-btn:hover {
  background: #aa2a4b !important;
}

/* HERO */
.er-hero {
  background: url('/images/hero-background.jpg') center/cover no-repeat;
  min-height: 70vh;
  position: relative;
  padding-top: 4rem;
}

/* Shrinks hero section to fit its content without affecting other pages */
/* Shrinks hero section to fit its content ONLY when er-hero-auto is added */
.er-hero.er-hero-auto {
  height: auto !important;
  min-height: 0 !important;
  padding-top: 40px;
  padding-bottom: 40px;
}

.er-hero {
  background: var(--blue-light);
  padding: 4rem 1rem;
  color: var(--dark);   /* ← THIS IS WHAT YOU ARE MISSING */
}




/* Light blue overlay */
.er-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(153, 183, 198, 0.6); /* light blue overlay */
}

/* Text and button on top of overlay */
.er-hero .container {
  position: relative;
  z-index: 2;
  color: var(--dark); /* keeps text readable on light blue */
}

/* Hero heading */
.er-hero h1 {
  font-size: 2.5rem; /* proportional size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Hero paragraph */
.er-hero p.lead {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
}

/* Hero button */
.er-btn {
  background: var(--pink); /* keeps brand accent */
  color: var(--dark);
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  transition: 0.2s ease;
}

.er-btn:hover {
  background: var(--pink-medium);
  transform: scale(1.03);
  color: var(--dark);
}

/* ============================
   MISSION CARD
============================ */
.er-mission-card {
  background: var(--pink-light);
  border-radius: 20px;
  max-width: 700px;
}

/* ============================
   FOOTER
============================ */
.er-footer {
  background: var(--pink);
  color: var(--dark);
  font-weight: 600;
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
}

/* ============================
   LOGIN PAGE
============================ */
.login-page {
  background-color: var(--blue-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.er-header-small {
  background-color: var(--pink-light);
  padding: 20px 0;
  text-align: center;
}

/* CENTER LOGO ON LOGIN PAGE */
.er-logo-wrap img {
  width: 160px;          /* <<< MUCH smaller */
  border-radius: 12px;
}

/* centers login content */
.login-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

/* login card */
.login-card {
  background-color: var(--white);
  border-radius: 18px;
  padding: 2.2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.12);
  animation: fadeIn 0.3s ease;
}

.login-card h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--dark);
}

/* Form styling */
.form-group label {
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: .3rem;
}

.login-card button {
  margin-top: 1rem;
  background: var(--pink-medium);
  border: none;
  width: 100%;
  padding: .8rem;
  font-weight: 700;
  border-radius: 10px;
  transition: 0.2s;
}

.login-card button:hover {
  background: var(--pink-light);
  color: var(--dark);
}

/* cute fade */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ---------------------------------------
   Reference Site Style Recreation
---------------------------------------- */

/* Top welcome section background */
.hero-wrapper {
  background: var(--pink);
  padding: 3rem 1rem 4rem 1rem;
}

/* “WELCOME TO” */
.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 2rem;
}

/* Circle images */
.hero-circle-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  transition: 0.2s ease;
}

.hero-circle-img:hover {
  transform: scale(1.03);
}

/* Subtitle under circles */
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--dark);
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Main blue section with title */
.er-hero {
  background: var(--blue-light);
  padding: 4rem 1rem;
}

.hero-big-title {
  font-size: 2.8rem;
  font-weight: 700;
}

.hero-big-subtext {
  font-size: 1.2rem;
  margin: 1rem auto 2rem auto;
  max-width: 700px;
}

/* Support button (should match reference Donate button style) */
.er-support-btn {
  display: inline-block;
  background: var(--pink);
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  color: var(--dark);
  transition: 0.2s ease;
}

.er-support-btn:hover {
  background: var(--pink-medium);
  transform: scale(1.05);
}

/* Donate / Login button in navbar (reference pastel pill) */
.er-donate-btn {
  background: var(--blue-light);
  padding: 6px 18px;
  border-radius: 14px;
  color: white !important;
  font-weight: 600;
}

.er-donate-btn:hover {
  background: var(--pink-medium);
  color: var(--dark) !important;
}

/* Donation page button — soft pastel style */
.er-btn-donation {
  background: var(--pink);
  color: var(--dark);
  padding: 0.7rem 1.8rem;
  border-radius: 10px;
  font-weight: 700;
  border: 2px solid var(--pink-light);   /* thinner + softer border */
  transition: 0.2s ease-in-out;
}

.er-btn-donation:hover {
  background: var(--pink-medium);
  border-color: var(--pink);             /* subtle deeper border on hover */
  transform: scale(1.03);
}


/* ======================================
   NEW INTRO SECTION (two-column hero)
====================================== */

.er-intro-section {
  background: var(--blue-light);
  border-top: 6px solid var(--pink);
  border-bottom: 6px solid var(--pink-light);
}

.intro-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--dark);
}

.intro-subtext {
  font-size: 1.1rem;
  color: var(--dark);
  max-width: 480px;
  line-height: 1.6;
  margin: 0 auto 1rem auto;
}

.intro-image {
  width: 90%;
  max-width: 420px;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  object-fit: cover;
}

/* ======================================
   CLEAN MISSION BLOCK
====================================== */

.er-mission-clean {
  background: var(--pink-light);
  padding: 4rem 1rem;
}

.mission-clean-title {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--dark);
}

.mission-clean-text {
  max-width: 700px;
  margin: 1rem auto;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--dark);
}

.login-btn {
  padding: .8rem !important;   /* match login button EXACTLY */
  border-radius: 10px !important;
  font-size: 1rem;
  font-weight: 700;
}

.back-link {
  display: inline-block;
  margin-left: 20px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
  color: var(--dark);
}

