html {
  scroll-behavior: smooth;
}

/* ===== THEME VARIABLES ===== */
:root {

  /* Primary Blues */
  --blue-dark: #1E3A8A;
  --blue-primary: #405b9c;
  --blue-accent: #6e96c7;

  /* Light Backgrounds */
  --blue-light: #DBEAFE;
  --blue-very-light: #F0F7FF;

  /* Text */
  --text-dark: #0F172A;
  --text-medium: #334155;
  --text-light: #E0ECFF;

  /* Base */
  --white: #FFFFFF;

  /* Shadows */
  --shadow-soft: 0 6px 18px rgba(37, 99, 235, 0.15);
  --shadow-medium: 0 12px 28px rgba(37, 99, 235, 0.25);

  /* Borders */
  --border-light: 1px solid var(--blue-light);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ===== GLOBAL / RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Outfit", sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
}


/* ===== FONTS ===== */
:root {
  --funnel-display: "Funnel Display", sans-serif;
}

@font-face {
  font-family: regfont;
  src: url("Nexa-ExtraLight.ttf");
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  background: rgba(4, 10, 28, 0.75);
  padding: 0 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 54px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(80, 140, 255, 0.1);
  box-shadow: 0 1px 0 rgba(80, 140, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* ─── LINKS ──────────────────────────────────────────────── */
.navbar-links {
  list-style: none;
  display: flex;
  gap: 2px;
  align-items: center;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.navbar-links li {
  position: relative;
}

.navbar-links a {
  color: rgba(194, 212, 255, 0.7);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}

/* Animated underline on hover */
.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, #4f8fff, #82b4ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}

.navbar-links a:hover {
  color: #c8dcff;
  background: rgba(79, 143, 255, 0.08);
}

.navbar-links a:hover::after {
  transform: scaleX(1);
}

.navbar-links a.active {
  color: #a8c8ff;
  background: rgba(79, 143, 255, 0.12);
}

.navbar-links a.active::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, #6fa8ff, #a8c8ff);
}

/* ─── HAMBURGER TOGGLE ──────────────────────────────────── */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: 0;
  z-index: 1001;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(194, 212, 255, 0.8);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.open span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
    justify-content: flex-end;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-links {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 54px);
    background: rgba(4, 10, 28, 0.85);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom: none;
    box-shadow: none;
    padding: 0;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  }

  .navbar-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar-links li {
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .navbar-links.open li {
    opacity: 1;
    transform: translateY(0);
  }

  .navbar-links.open li:nth-child(1) { transition-delay: 0.05s; }
  .navbar-links.open li:nth-child(2) { transition-delay: 0.1s; }
  .navbar-links.open li:nth-child(3) { transition-delay: 0.15s; }
  .navbar-links.open li:nth-child(4) { transition-delay: 0.2s; }
  .navbar-links.open li:nth-child(5) { transition-delay: 0.25s; }
  .navbar-links.open li:nth-child(6) { transition-delay: 0.3s; }
  .navbar-links.open li:nth-child(7) { transition-delay: 0.35s; }

  .navbar-links a {
    padding: 16px 24px;
    font-size: 0.95rem;
    width: 100%;
    border-radius: 0;
    background: rgba(79, 143, 255, 0.06);
    border-bottom: 1px solid rgba(80, 140, 255, 0.08);
  }

  .navbar-links a::after {
    display: none;
  }
}

/* Glowing top accent */
.dropdown-content::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 143, 255, 0.5), transparent);
}

/* Left accent bar on hover */
.dropdown-content a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 2px;
  background: linear-gradient(180deg, #4f8fff, #82b4ff);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transition: transform 0.18s ease;
}

.dropdown-content a:hover {
  color: #c8dcff;
  background: rgba(79, 143, 255, 0.08);
  padding-left: 24px;
}

.dropdown-content a:hover::before {
  transform: scaleY(1);
}
/* logo on left of navbar */
.logo {
  position: absolute;
  left: 40px;
  color: white;
  text-decoration: none;
  font-family: "Funnel Display", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}
/* ===== HERO ===== */
.hero {
  width: 100%;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('forestlake.avif') center/cover no-repeat;
  color: white;
  position: relative;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-family: "Funnel Display", sans-serif;
  font-weight: 800;

  background: linear-gradient(90deg, #ffffff, #c8dcff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  font-family: "Funnel Display", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;

}

.hero .btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background-color: var(--blue-primary);
  border-radius: 8px;
  transition: 0.3s ease;
}

.hero .btn:hover {
  background-color: var(--blue-dark);
  transform: translateY(-2px);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}
.hero-content h1,
.hero-content p,
.hero-content .btn {
  opacity: 0;
  transform: translateY(20px); /* start slightly lower */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-content .arrowandtext {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Add this class with JS or via page load */
.hero-content.show h1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s; /* delay for h1 */
}

.hero-content.show p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s; /* fade in after h1 */
}

.hero-content.show .btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.hero-content.show .arrowandtext {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0.8s;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

.overscroll-wrap {
  position: relative;
}

.hero {
  position: relative;
  top: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 0;
  overflow: hidden;
}
/* slogan section */
.slogan-section {
  background: linear-gradient(to bottom, #ffffff, var(--blue-very-light));
  padding: 30px 20px;  
  text-align: center;
}

.slogan-container {
  max-width: 900px;
  margin: 0 auto;
}

.slogan-section h2 {
  font-family: "Funnel Display", sans-serif;
  font-size: 2rem;
  font-weight: 500 !important;  /* no bold */
  color: var(--blue-dark);
}

/* subtle underline accent */
.slogan-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--blue-primary);
  margin: 20px auto 0;
  border-radius: 4px;
}

.mission-section {
  position: relative;
  z-index: 1;
}

section {
  margin-bottom: 80px;
}

.arrowandtext {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.arrowtext {
  margin: 0;
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0.8;
  line-height: 1;
}

.scroll-arrow {
  display: block;
  font-size: 30px;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
  animation: scroll-arrow 2s;

}

@keyframes scroll-arrow {
	0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
	40% {transform: translateY(-20px);}
	60% {transform: translateY(-15px);}
}

.scroll-arrow:hover {
  transform: translateY(10px);
}


/* ===== MISSION SECTION ===== */
.mission-section {
  padding: 100px 10%;
  background-color: var(--white);
}

.mission-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.mission-text {
  flex: 1;
}

.mission-text h2 {
  font-size: 2rem;
  color: var(--blue-dark);
  margin-bottom: 20px;
  font-weight: bold;
  font-family: "Funnel Display", sans-serif;
}

.mission-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  font-family: "Funnel Display", sans-serif;
}

.mission-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.mission-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(11, 60, 93, 0.15);
}

.mcblurb-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  font-family: "Funnel Display", sans-serif;
}

.stat {
  text-align: center;
}

.number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue-primary);
  transition: transform 0.3s ease, color 0.3s ease;
}

.stat:hover .number {
  transform: scale(1.1);
  color: var(--blue-dark);
}

.label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== SEARCH FORM ===== */
.search-container {
  max-width: 60%;
  margin: 50px auto;
  padding: 25px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-md);
}

.search-container h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #333;
  font-family: "Funnel Display", sans-serif;
}

.searchbox {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.searchbox label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #444;
}

.searchbox input,
.searchbox select {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--blue-light);
  border-radius: 8px;
  font-size: 14px;
  transition: 0.25s ease;
  font-family: "Funnel Display", sans-serif;
}

.searchbox input:focus,
.searchbox select:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.2);
  outline: none;
}

.date-range {
  display: flex;
  gap: 10px;
}

.date-range div {
  flex: 1;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-left div {
  flex: 2;
  margin-bottom: 10px;
}

.form-right div {
  flex: 1;
  margin-top: 5px;
}

button {
  margin-top: 10px;
  padding: 12px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
  background: var(--blue-primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-family: "Funnel Display", sans-serif;
}


button:hover {
  background: var(--blue-dark);
}

/* ===== FEATURED CARDS ===== */
.card-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 5%;
  flex-wrap: wrap;
  background-color: var(--white);
}

.card-grid .card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 28%;
  height: 260px;
  padding: 30px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
  background: var(--white);
  border: var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.card-grid .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
  background: linear-gradient(145deg, #ffffff, #eaf3ff);
}

.card-grid .card h3 {
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-size: 1.3rem;
  font-weight: 700;
  font-family: "Funnel Display", sans-serif;
}

.card-grid .card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  font-family: "Funnel Display", sans-serif;
}

.icon-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
  transition: 0.3s ease;
}

.card:hover .icon-placeholder {
  transform: scale(1.1);
}

.icon-placeholder i {
  color: white;
  font-size: 22px;
}

.card-grid .card {
  position: relative;
  overflow: hidden;
}

/* ===== FUNDRAISERS ===== */
.palfundraiser {
  display: flex;
  gap: 3rem;
  padding: 3rem;
  max-width: 1200px;
  margin: 3rem auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
  transition: 0.3s ease;
}

.palfundraiser:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.18);
}

.palfundraisertext {
  flex: 0.8;
  font-family: "Funnel Display", sans-serif;
}

.palfundraisertext h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--blue-dark);
  font-weight: 800;
  font-family: "Funnel Display", sans-serif;
}

.palfundraisertext p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-medium);
  font-family: "Funnel Display", sans-serif;
}

.palfundraiserImg {
  width: 100%;
  height: auto;
  border-radius: 14px;
  transition: transform 0.4s ease;
}

.cards:hover .palfundraiserImg {
  transform: scale(1.05);
}

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

.cards {
  width: 300px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(11, 60, 93, 0.15);
  transition: 0.3s;
}

.cards img {
  width: 100%;
  height: auto;
  display: block;
}

.palfundraiser:nth-child(even) {
  background: linear-gradient(to right, #f5f9ff, #ffffff);
}

/* Fundraiser responsive */
@media (max-width: 768px) {
  .palfundraiser {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .palfundraisertext h2 {
    font-size: 2rem;
    font-family: "Funnel Display", sans-serif;
  }

  .palfundraisertext p {
    font-size: 1rem;
    font-family: "Funnel Display", sans-serif;
  }
}

/* ===== footer ===== */
.footer {
  background: var(--blue-very-light);
  color: var(--text-dark);
  padding: 60px 10% 30px;
  margin-top: 80px;
  position: relative;
  border-top: 2px solid var(--blue-light);
}

.f-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: flex-start;
}

.f-section.mission {
  max-width: 200px;
}

.footer-left {
  display: flex;
  gap: 80px;
}

.connect {
  margin-left: auto;
}

/* ===== TEXT ===== */
.f-section h3, 
.f-section h4 {
  margin-bottom: 18px;
  font-family: "Funnel Display", sans-serif;
  color: var(--blue-dark);  
  font-weight: bold;
  font-size: 0.95rem;
}

.f-section p {
  line-height: 1.6;
  font-size: 0.85rem;
  color: var(--text-medium); 
  font-family: "Funnel Display", sans-serif;  
}

/* ===== LINKS ===== */
.f-section ul {
  list-style: none;
  padding: 0;
}

.f-section ul li {
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.f-section ul li a {
  color: var(--text-medium);
  text-decoration: none;
  transition: all 0.2s ease;
}

.f-section ul li a:hover {
  color: var(--blue-primary);  
  text-decoration: underline;
}

/* ===== BUTTON ===== */
.button-link {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  border: 1px solid var(--blue-dark);
  color: var(--blue-dark);
  transition: all 0.25s ease;
}

.button-link:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-2px);
}

/* ===== BOTTOM ===== */
.bottom-footer {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 40px;
  padding-top: 20px;
  font-family:  "Funnel Display", sans-serif;;
  text-align: center;
  font-size: 0.8rem;
  color: var(--blue-medium); 
}
.featured-section {
  padding: 80px 0;
}






/* ===== RESULTS PAGE ===== */
.background-results {
background: rgba(255, 255, 255, 0.85);
  color: white;
}

.background-results h1{
  /*text-align: center;
  font-size: 40px;
  padding: 35px;
  background-color: var(--blue-accent);
  margin-bottom: 15px;
  font-family: "Funnel Display", sans-serif;*/
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--blue);

  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;  

  box-shadow: 0 10px 30px rgba(30, 80, 180, 0.08);
  font-family: "Funnel Display", sans-serif;
}

/* SEARCHBAR result CARDS */
.event-card {
  background: rgb(195, 202, 216);
  color: rgb(46, 43, 54);
  width: 320px;
  padding: 20px;
  border-radius: 12px;
  display: flex;

  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.event-card a {
  margin-top: 12px;
  text-decoration: none;
  background: white;
  color: black;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}

.event-card a:hover {
  background: rgba(85, 91, 194, 0.3);
  color: white;
}

.event-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: #739ad2;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.allresults-section {
  background: #000;
  padding: 50px 30px;
  margin-top: 40px;
}

#results {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}