/* ============================================================
   MAPS Soul Meditation Center — v4
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800;900&family=Lora:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy:        #0d1b3e;
  --gold:        #c9a84c;
  --gold-light:  #e2c97e;
  --gold-dim:    rgba(201,168,76,0.28);
  --green:       #3dba7e;
  --green-dim:   rgba(61,186,126,0.12);
  --white:       #f8f5ee;
  --white-dim:   rgba(248,245,238,0.82);
  --glass:       rgba(13,27,62,0.72);
  --transition:  all 0.35s cubic-bezier(0.4,0,0.2,1);
  --shadow-gold: 0 4px 28px rgba(201,168,76,0.22);
  --shadow-deep: 0 8px 40px rgba(0,0,0,0.55);
  --radius:      12px;
  --radius-sm:   7px;
  --black:       #000;
}

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}

body {
  font-family: 'Raleway', sans-serif;
  color: var(--white);
  background: var(--navy) url('../images/bg-cosmic.jpg') no-repeat center center fixed;
  background-size: cover;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body::before {
  content:''; position:fixed; inset:0;
  background: linear-gradient(155deg,rgba(5,12,35,0.6) 0%,rgba(10,20,55,0.45) 100%);
  pointer-events:none; z-index:0;
  will-change: transform;
}
header,main,footer{position:relative;z-index:1;}

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
header {
  background: #ffffff;
  box-shadow: 0 3px 20px rgba(0,0,0,0.15);
  border-bottom: 3px solid #27ae60;
  position: sticky;
  top: 0;
  z-index: 200;
  isolation: isolate;
  transition: box-shadow 0.3s ease;
}

.header-wrapper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "logo center btn"
    "logo nav    btn";
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 0;
  align-items: start;
}

.logo-container {
  grid-area: logo;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem 0.5rem 0;
  flex-shrink: 0;
  align-self: center;
  transition: padding 0.35s ease;
}
.logo {
  height: 250px;
  width: auto;
  object-fit: contain;
  transition: height 0.32s ease, transform 0.5s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
}
.logo:hover{transform:rotate(4deg) scale(1.04);}

.header-center {
  grid-area: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.6rem 0 0;
  transition: padding 0.35s ease;
}

.header-title-block {
  text-align: center;
  line-height: 1.15;
  width: 100%;
  transition: max-height 0.32s ease, opacity 0.25s ease, margin 0.32s ease, padding 0.32s ease;
  overflow: hidden;
  max-height: 320px;
  opacity: 1;
}

.header-line-maps {
  font-family: 'Raleway', sans-serif;
  font-size: 3.6rem;
  font-weight: 900;
  color: #1a2e7a;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1;
}
.header-line-soul {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.05;
}
.soul-orange { color: #e07b00; font-family:'Raleway',sans-serif; font-weight:900; }
.soul-navy   { color: #1a2e7a; font-family:'Raleway',sans-serif; font-weight:900; }
.header-line-location {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-top: 0.1rem;
}
.loc-cyan  { color: #00b4d8; font-family:'Raleway',sans-serif; font-weight:800; }
.loc-green { color: #27ae60; font-family:'Raleway',sans-serif; font-weight:800; }
.header-line-nonprofit {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #333;
  margin-top: 0.15rem;
}

/* Nav */
nav#mainNav {
  grid-area: nav;
  width: 100%;
  margin-top: 0;
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 0.45rem 0 0.5rem;
  background: transparent;
}
nav#mainNav ul {
  display: flex;
  list-style: none;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
@media(max-width:768px){
  nav#mainNav ul { display: none; }
  nav#mainNav ul.active { display: flex; }
}
nav#mainNav ul li a {
  display: inline-block;
  padding: 0.55em 1.5em;
  border-radius: 30px;
  text-decoration: none;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
}
nav#mainNav ul li a:hover{
  filter:brightness(1.18);transform:translateY(-2px);
  box-shadow:0 4px 14px rgba(0,0,0,0.25);
}
nav#mainNav ul li a::after{display:none;}
nav#mainNav ul li:nth-child(1) a{background:linear-gradient(135deg,#c0392b,#e74c3c);}
nav#mainNav ul li:nth-child(2) a{background:linear-gradient(135deg,#1e8449,#27ae60);}
nav#mainNav ul li:nth-child(3) a{background:linear-gradient(135deg,#1a6fa8,#2980b9);}
nav#mainNav ul li:nth-child(4) a.cta-button {
  background: linear-gradient(135deg,#f39c12,#e67e22) !important;
  color: #fff !important;
  padding: 0.55em 1.5em;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: 0 4px 14px rgba(243,156,18,0.45);
}
nav#mainNav ul li:nth-child(4) a.cta-button:hover{
  background:linear-gradient(135deg,#e67e22,#d35400) !important;
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(243,156,18,0.6);
}

.cta-button{background:var(--gold);color:var(--black);padding:.5rem 1.5rem;border-radius:25px;font-weight:bold;transition:var(--transition);text-decoration:none;}

.mobile-menu-btn{
  grid-area: btn;
  display:none;background:none;border:2px solid #1a3a6b;color:#1a3a6b;
  font-size:1.5rem;cursor:pointer;border-radius:8px;padding:0.3rem 0.65rem;
  align-self:center;transition:var(--transition);
}

/* ════════ STICKY SCROLL ════════ */
header.scrolled { box-shadow: 0 2px 14px rgba(0,0,0,0.18); }

/* Collapse title block smoothly — no grid change needed */
header.scrolled .header-title-block {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

/* Shrink logo smoothly */
header.scrolled .logo-container { padding: 0.2rem 0.75rem 0.2rem 0; }
header.scrolled .logo { height: 52px; }

/* Nav adjusts but stays in same grid area */
header.scrolled nav#mainNav { border-top: none; margin-top: 0; padding: 0.25rem 0; }
header.scrolled nav#mainNav ul { justify-content: flex-start; }

/* Hide center block — it's already collapsed via title-block, just zero the padding */
header.scrolled .header-center { padding: 0; }

@media(min-width:769px){ header.scrolled .mobile-menu-btn{ display:none; } }

/* ════════════════════════════════════════
   MAIN
════════════════════════════════════════ */
main{flex:1;padding:2.5rem 0;}
.container{max-width:900px;margin:0 auto;padding:0 2rem;}

.section-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg,rgba(142,68,173,0.88),rgba(100,40,140,0.92));
  border-radius: 50px;
  padding: 0.55rem 1.6rem;
  display: inline-block;
  margin: 0 0 1.25rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(142,68,173,0.35);
  border: 1px solid rgba(255,255,255,0.1);
}

.welcome-messege {
  font-family: 'Raleway', sans-serif;
  text-align: center;
  color: var(--gold-light);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 1.75rem;
  padding: 1.75rem 2.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg,rgba(5,12,35,0.88),rgba(13,27,62,0.82));
  border: 1px solid var(--gold-dim);
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  line-height: 1.55;
}
.welcome-messege::before{
  content:'';position:absolute;inset:0;
  background:radial-gradient(ellipse at 50% -30%,rgba(201,168,76,0.12),transparent 65%);
  pointer-events:none;
}
.welcome-messege::after{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
}

/* ════════ ANNOUNCEMENT ════════ */
.announcement-center { display:flex; justify-content:center; margin-bottom:2rem; }
.announcement-wrapper {
  width:100%; max-width:680px;
  background: linear-gradient(160deg,rgba(8,18,48,0.95) 0%,rgba(20,40,90,0.92) 100%);
  border:1px solid rgba(201,168,76,0.4); border-radius:18px;
  padding:1.75rem 2rem;
  box-shadow: var(--shadow-gold), 0 0 40px rgba(201,168,76,0.08), inset 0 1px 0 rgba(255,255,255,0.07);
  position:relative; overflow:hidden;
}
.announcement-wrapper::before{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,var(--gold),var(--green),var(--gold));
}
.announcement-wrapper::after{
  content:'';position:absolute;bottom:-60px;right:-60px;
  width:180px;height:180px;border-radius:50%;
  background:radial-gradient(circle,rgba(201,168,76,0.07),transparent 70%);
  pointer-events:none;
}
.announcement-header{display:flex;align-items:center;gap:.85rem;margin-bottom:.4rem;}
.announcement-icon{
  background:linear-gradient(135deg,var(--gold),#a07820);color:#000;
  width:42px;height:42px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:1.1rem;flex-shrink:0;box-shadow:0 3px 10px rgba(201,168,76,0.45);
}
.announcement-header h3{
  font-family:'Raleway',sans-serif;color:var(--gold-light);
  font-size:1.4rem;font-weight:800;letter-spacing:2px;text-transform:uppercase;margin:0;
}
.announcement-desc{
  font-size:.88rem;color:rgba(248,245,238,0.5);font-style:italic;
  margin-bottom:1.4rem;padding-bottom:1.1rem;border-bottom:1px solid rgba(201,168,76,0.18);
}
.audio-player{display:flex;align-items:center;gap:1rem;}
.audio-play-btn{
  width:52px;height:52px;border-radius:50%;border:none;
  background:linear-gradient(135deg,var(--gold),#a07820);color:#0a1225;
  font-size:1.1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;
  flex-shrink:0;box-shadow:0 4px 16px rgba(201,168,76,0.45);transition:var(--transition);
}
.audio-play-btn:hover{transform:scale(1.1);box-shadow:0 6px 22px rgba(201,168,76,0.65);}
.audio-play-btn:active{transform:scale(0.96);}
.audio-track{flex:1;display:flex;flex-direction:column;gap:.5rem;}
.audio-progress-container{
  position:relative;width:100%;height:8px;
  background:rgba(255,255,255,0.12);border-radius:10px;cursor:pointer;overflow:visible;
}
.audio-progress{
  height:100%;width:0%;
  background:linear-gradient(90deg,var(--gold),var(--green));
  border-radius:10px;transition:width .1s linear;
}
.audio-thumb{
  position:absolute;top:50%;left:0;
  transform:translate(-50%,-50%);
  width:14px;height:14px;border-radius:50%;
  background:var(--gold-light);box-shadow:0 0 6px rgba(201,168,76,0.8);
  pointer-events:none;transition:left .1s linear;
}
.audio-labels{display:flex;justify-content:space-between;align-items:center;}
.audio-label-title{
  font-family:'Raleway',sans-serif;font-size:.72rem;
  color:rgba(248,245,238,0.5);letter-spacing:1px;text-transform:uppercase;
}
.audio-time{
  font-family:'Courier New',monospace;font-size:.78rem;
  color:rgba(248,245,238,0.55);min-width:90px;text-align:right;
}

/* ════════ QUESTIONS ════════ */
.questions-section{
  background:var(--glass); border:1px solid rgba(201,168,76,0.18);
  border-radius:var(--radius); padding:2rem 2.5rem;
  backdrop-filter:blur(10px); box-shadow:var(--shadow-deep);
}
.questions-list{list-style:none;padding-left:0;}
.questions-list h3{
  font-family:'Raleway',sans-serif;font-size:.82rem;font-weight:800;
  color:var(--green);text-align:center;text-transform:uppercase;letter-spacing:2px;
  border:1.5px solid rgba(61,186,126,0.45);border-radius:30px;
  padding:.45rem 1.2rem;background:var(--green-dim);
  display:inline-block;margin:1.25rem auto .75rem;
}
.questions-list li{
  background:rgba(255,255,255,0.04);border-left:3px solid var(--gold);
  padding:.9rem 1.2rem .9rem 1.25rem;margin-bottom:.6rem;
  font-size:1.05rem;transition:var(--transition);cursor:pointer;
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;position:relative;
}
/* No dot — left border line only */
.questions-list li::before{ display:none; }
.questions-list li:hover{
  transform:translateX(8px);background:rgba(201,168,76,0.08);
  border-left-color:var(--gold-light);box-shadow:0 2px 10px rgba(201,168,76,0.1);
}
.questions-cta{
  font-family:'Lora',serif;font-style:italic;
  font-size:1.15rem;color:var(--gold-light);
  margin-top:1.75rem;line-height:1.65;text-align:center;
  padding:1.25rem 1.5rem;
  background:rgba(201,168,76,0.07);
  border:1px solid rgba(201,168,76,0.2);
  border-radius:var(--radius-sm);
}

/* ════════════════════════════════════════
   ABOUT PAGE
════════════════════════════════════════ */
.about-section{
  background:var(--glass);backdrop-filter:blur(10px);
  padding:2rem 2.5rem;margin:0 0 1.75rem;
  border-radius:var(--radius);border:1px solid rgba(201,168,76,0.14);
  box-shadow:var(--shadow-deep);transition:var(--transition);
}
.about-section:hover{
  transform:translateY(-3px);border-color:rgba(201,168,76,0.3);
  box-shadow:var(--shadow-deep),0 0 0 1px rgba(201,168,76,0.1);
}
.about-section h2{
  font-family:'Raleway',sans-serif;color:var(--gold-light);
  font-size:1.2rem;font-weight:700;margin-bottom:1rem;
  text-align:center;line-height:1.55;
}
.about-section-heading{
  font-family:'Raleway',sans-serif;color:var(--gold-light);
  font-size:1.4rem !important;font-weight:800 !important;
  text-align:center;letter-spacing:1px;
  border-bottom:1px solid rgba(201,168,76,0.2);
  padding-bottom:0.75rem;margin-bottom:1.25rem !important;
}
.about-category-intro{
  font-size:1rem;color:var(--white-dim);margin-bottom:1.5rem;
  text-align:center;font-style:italic;
}
.program-category{
  margin-bottom:1.75rem;padding:1.25rem 1.5rem;
  background:rgba(255,255,255,0.03);
  border-radius:var(--radius-sm);
  border-left:3px solid var(--gold);
}
.program-category:last-child{margin-bottom:0;}
.category-title{
  font-family:'Raleway',sans-serif;color:var(--gold);
  font-size:1rem;font-weight:800;text-transform:uppercase;
  letter-spacing:1px;margin-bottom:0.75rem;
}
.about-section p{font-size:.97rem;line-height:1.8;color:var(--white-dim);margin:.4rem 0;}

/* About page list — left border line only, matching home page style */
.dot-list{margin:.75rem 0 0;padding-left:0;list-style:none;}
.dot-list li{
  padding:.6rem 1rem .6rem 1.25rem;margin-bottom:.4rem;
  background:rgba(61,186,126,0.06);
  border-left:3px solid var(--green);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  position:relative;font-size:.97rem;color:var(--white-dim);
  transition:var(--transition);
}
.dot-list li::before{ display:none; }
.dot-list li:hover{
  transform:translateX(6px);background:rgba(61,186,126,0.12);
  border-left-color:#5dd49a;
}

.about-section table{width:100%;border-collapse:collapse;margin-top:1rem;}
.about-section table th,
.about-section table td{
  text-align:left;padding:.85rem 1.2rem;border-bottom:1px solid rgba(255,255,255,0.07);
}
.about-section table th{
  color:var(--gold);font-family:'Raleway',sans-serif;font-size:.82rem;font-weight:700;
  text-transform:uppercase;letter-spacing:1.5px;border-bottom:1px solid rgba(201,168,76,0.3);
}
td.person-name{
  font-family:'Raleway',sans-serif;font-size:1.15rem;font-weight:800;
  color:var(--white);letter-spacing:.5px;
}
td.person-role{
  font-family:'Raleway',sans-serif;font-size:1rem;font-weight:600;color:var(--gold-light);
}
.about-section table tr:hover td{background:rgba(255,255,255,0.04);}
.person-highlight{
  display:flex;align-items:center;gap:1.25rem;
  background:linear-gradient(135deg,rgba(201,168,76,0.08),rgba(61,186,126,0.06));
  border:1px solid rgba(201,168,76,0.28);border-radius:var(--radius-sm);
  padding:1.1rem 1.4rem;margin-top:.5rem;
}
.person-avatar{
  width:54px;height:54px;border-radius:50%;
  background:linear-gradient(135deg,var(--gold),#8a6010);
  display:flex;align-items:center;justify-content:center;
  font-size:1.3rem;color:#fff;flex-shrink:0;box-shadow:0 4px 14px rgba(201,168,76,0.4);
}
.person-name-large{
  font-family:'Raleway',sans-serif;font-size:1.35rem;font-weight:800;
  color:var(--white);letter-spacing:1px;
}
.person-title-tag{
  display:inline-block;margin-top:.35rem;
  font-family:'Raleway',sans-serif;font-size:.82rem;font-weight:700;
  color:var(--gold-light);text-transform:uppercase;letter-spacing:1.5px;
  background:rgba(201,168,76,0.12);border:1px solid rgba(201,168,76,0.3);
  border-radius:20px;padding:.2rem .85rem;
}

/* ════════════════════════════════════════
   CONTACT PAGE — Inter font
════════════════════════════════════════ */
.contact-inter, .contact-inter h2, .contact-inter h3,
.contact-inter p, .contact-inter a {
  font-family: 'Inter', sans-serif;
}
.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem;}
.contact-info,.contact-form{
  background:var(--glass);backdrop-filter:blur(10px);padding:2.25rem;
  border-radius:var(--radius);border:1px solid rgba(201,168,76,0.16);box-shadow:var(--shadow-deep);
}
.contact-info h2,.contact-form h2{
  font-family:'Raleway',sans-serif;color:var(--gold-light);font-size:1.4rem;font-weight:700;
  margin-bottom:1.75rem;padding-bottom:.75rem;border-bottom:1px solid rgba(201,168,76,0.22);
}
.contact-item{display:flex;align-items:flex-start;margin-bottom:1.5rem;gap:1rem;}
.contact-icon{color:var(--gold);font-size:1.5rem;margin-top:.15rem;width:22px;text-align:center;flex-shrink:0;}
.contact-item h3{
  font-family:'Inter',sans-serif;font-size:1rem;font-weight:700;
  text-transform:uppercase;letter-spacing:1px;color:var(--green);margin-bottom:.3rem;
}
.contact-item p{font-size:.97rem;color:var(--white-dim);line-height:1.7;font-family:'Inter',sans-serif;}
.contact-item a{color:var(--gold-light);text-decoration:none;font-family:'Inter',sans-serif;}
.contact-item a:hover{color:var(--gold);text-decoration:underline;}

/* ════════════════════════════════════════
   FORMS
════════════════════════════════════════ */
.form-group{margin-bottom:1.4rem;}
.form-group label{
  display:block;margin-bottom:.45rem;color:var(--green);
  font-weight:700;font-size:.82rem;text-transform:uppercase;letter-spacing:.5px;
}
.form-group input,.form-group textarea,.form-group select{
  width:100%;padding:.8rem 1rem;
  background:rgba(255,255,255,0.07);border:1px solid rgba(255,255,255,0.16);
  border-radius:var(--radius-sm);color:var(--white);
  font-family:'Raleway',sans-serif;font-size:.97rem;
  transition:var(--transition);box-sizing:border-box;
}
.form-group input:focus,.form-group textarea:focus,.form-group select:focus{
  outline:none;border-color:var(--gold);background:rgba(255,255,255,0.11);
  box-shadow:0 0 0 3px rgba(201,168,76,0.2);
}
.form-group select option{background:var(--navy);color:var(--white);}
.submit-btn{
  background:linear-gradient(135deg,var(--gold),#a07820);color:#0a1225;border:none;
  padding:.85rem 2.5rem;border-radius:30px;font-family:'Raleway',sans-serif;
  font-weight:800;font-size:.9rem;letter-spacing:1px;text-transform:uppercase;
  cursor:pointer;transition:var(--transition);box-shadow:0 4px 16px rgba(201,168,76,0.32);
}
.submit-btn:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(201,168,76,0.5);}

/* Registration page */
.join-form{
  max-width:620px;margin:1.5rem auto;background:var(--glass);backdrop-filter:blur(12px);
  padding:2.5rem;border-radius:var(--radius);border:1px solid rgba(201,168,76,0.22);
  box-shadow:var(--shadow-deep);
}

/* Highlighted "Fill out the form below" badge */
.form-intro-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  padding: 0.9rem 1.75rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(61,186,126,0.12));
  border: 1.5px solid rgba(201,168,76,0.5);
  border-radius: 50px;
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 18px rgba(201,168,76,0.2);
}
.form-intro-badge i { font-size: 1rem; color: var(--gold); }

/* DOB select row */
.dob-selects {
  display: flex;
  gap: 0.5rem;
}
.dob-selects select {
  flex: 1;
  min-width: 0;
}

.join-form .section-title{text-align:center;display:block;}
.join-form .form-group label{color:var(--gold-light);}
.join-form .form-group input,
.join-form .form-group textarea,
.join-form .form-group select{background:rgba(255,255,255,0.93);color:#111;border:1px solid #ccc;}
.join-form .form-group input::placeholder,
.join-form .form-group textarea::placeholder{color:#888;}
.join-form .form-group input:focus,
.join-form .form-group textarea:focus,
.join-form .form-group select:focus{
  border-color:var(--gold);background:#fff;box-shadow:0 0 0 3px rgba(201,168,76,0.25);color:#111;
}
.join-form .submit-btn{display:block;width:100%;margin-top:.75rem;}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer{
  background:rgba(5,10,25,0.93);border-top:1px solid rgba(201,168,76,0.18);
  padding:1.75rem 0 1.25rem;margin-top:auto;
}
.footer-container{
  max-width:1200px;margin:0 auto;padding:0 2rem;
  display:flex;flex-wrap:wrap;justify-content:space-between;
  align-items:center;gap:1.25rem;
}
.footer-about{flex:1;min-width:200px;}
.footer-logo{display:flex;align-items:center;gap:10px;}
.footer-logo img{height:44px;filter:drop-shadow(0 2px 4px rgba(0,0,0,0.5));}
.footer-logo span{font-family:'Raleway',sans-serif;font-size:.92rem;font-weight:700;color:var(--gold-light);letter-spacing:.5px;}
div.footer-links{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:flex-end;}
div.footer-links h3{
  font-family:'Raleway',sans-serif;color:var(--gold);font-size:.8rem;font-weight:700;
  text-transform:uppercase;letter-spacing:2px;margin-right:.5rem;white-space:nowrap;
}
div.footer-links a{
  display:inline-block;color:rgba(248,245,238,0.65);text-decoration:none;
  font-size:.88rem;padding:.35rem .85rem;border-radius:20px;
  border:1px solid rgba(255,255,255,0.1);transition:var(--transition);white-space:nowrap;
}
div.footer-links a:hover{color:var(--gold);border-color:rgba(201,168,76,0.4);background:rgba(201,168,76,0.08);}
.copyright{
  width:100%;text-align:center;padding-top:1rem;
  border-top:1px solid rgba(255,255,255,0.07);margin-top:.25rem;
  font-size:.78rem;color:rgba(248,245,238,0.38);font-family:'Lora',serif;letter-spacing:.5px;
}

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
.fade-in{animation:fadeUp 0.8s ease forwards;}
.delay-1{animation-delay:.15s;opacity:0;}
.delay-2{animation-delay:.3s;opacity:0;}
@keyframes fadeUp{from{opacity:0;transform:translateY(22px);}to{opacity:1;transform:translateY(0);}}
@keyframes spin{to{transform:rotate(360deg);}}

/* ════════════════════════════════════════
   RESPONSIVE — tablet
════════════════════════════════════════ */
@media(max-width:900px){
  .header-line-maps{font-size:2.8rem;}
  .header-line-soul{font-size:1.8rem;}
  .header-line-location{font-size:1.3rem;}
}

/* ════════════════════════════════════════
   RESPONSIVE — mobile
════════════════════════════════════════ */
@media(max-width:768px){

  /* Override grid with flex for mobile */
  .header-wrapper{
    display:flex; flex-wrap:wrap; align-items:flex-start;
    padding:0.5rem 0.75rem 0; gap:0;
  }
  .logo-container{
    display:flex; flex-shrink:0; padding:0 0.5rem 0.5rem 0;
    order:1; grid-area:unset; align-self:auto;
  }
  .logo{ height:65px; }
  .header-center{
    flex:1; display:flex; flex-direction:column;
    align-items:center; justify-content:center;
    padding:0 0.25rem 0.5rem; order:2; min-width:0; grid-area:unset;
  }
  .header-title-block{
    display:block !important; max-height:300px !important; opacity:1 !important;
    overflow:hidden; width:100%; text-align:center;
  }
  .header-line-maps{ font-size:1.4rem; letter-spacing:2px; }
  .header-line-soul{ font-size:0.92rem; }
  .header-line-location{ font-size:0.8rem; }
  .header-line-nonprofit{ font-size:0.73rem; }

  .mobile-menu-btn{
    display:flex; flex-shrink:0; order:3; align-self:flex-start;
    grid-area:unset; margin-top:0.1rem;
    padding:0.3rem 0.55rem; background:none;
    border:2px solid #1a3a6b; color:#1a3a6b;
    font-size:1.2rem; cursor:pointer; border-radius:8px; z-index:20;
  }

  nav#mainNav{
    order:4; width:100%; grid-area:unset;
    margin:0; padding:0; border-top:none;
  }
  nav#mainNav ul{
    display:none; flex-direction:row; flex-wrap:nowrap;
    gap:5px; padding:0.4rem 0.75rem 0.5rem;
    justify-content:center; align-items:center;
    border-top:1px solid rgba(0,0,0,0.1);
    width:100%; box-sizing:border-box;
  }
  nav#mainNav ul.active{ display:flex; }
  nav#mainNav ul li{ flex:1; min-width:0; }
  nav#mainNav ul li:nth-child(4){ flex:1.4; }
  nav#mainNav ul li a{
    display:flex; align-items:center; justify-content:center;
    text-align:center; padding:0.45em 0.2em;
    font-size:0.68rem; letter-spacing:0;
    white-space:normal; word-break:break-word;
    border-radius:22px; font-weight:700; line-height:1.2;
    width:100%; box-sizing:border-box;
  }
  nav#mainNav ul li:nth-child(4) a,
  nav#mainNav ul li:nth-child(4) a.cta-button{
    background:linear-gradient(135deg,#f39c12,#e67e22) !important;
    color:#fff !important; box-shadow:0 3px 8px rgba(243,156,18,0.35);
    padding:0.45em 0.3em; font-size:0.68rem; border-radius:22px;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }

  /* Scrolled mobile */
  header.scrolled .logo-container{ display:none; }
  header.scrolled .header-title-block{ display:none !important; max-height:0 !important; opacity:0 !important; }
  header.scrolled .header-center{ display:none; }
  header.scrolled .header-wrapper{
    display:flex; flex-wrap:wrap; padding:0.3rem 0.75rem 0;
    align-items:center; justify-content:flex-start;
  }
  header.scrolled .mobile-menu-btn{ align-self:center; margin-top:0; order:1; }
  header.scrolled nav#mainNav{ order:2; width:100%; }
  header.scrolled nav#mainNav ul{ border-top:none; padding:0.35rem 0.75rem 0.4rem; }

  /* Content adjustments */
  .contact-grid{ grid-template-columns:1fr; }
  .welcome-messege{ font-size:1.1rem; padding:1.1rem; }
  .container{ padding:0 1rem; }
  .footer-container{ flex-direction:column; align-items:center; text-align:center; }
  .footer-about{ text-align:center; min-width:100%; }
  .footer-logo{ justify-content:center; }
  div.footer-links{ justify-content:center; width:100%; }
  .dob-selects{ flex-direction:column; }
  .program-category{ padding:1rem; }
  .questions-section{ padding:1.5rem 1.25rem; }
}

@media(max-width:480px){
  body{ background-attachment:scroll; }
  .join-form,.about-section{ padding:1.25rem; }
  .person-name-large{ font-size:1.1rem; }
  .announcement-wrapper{ padding:1.25rem; }
  .form-intro-badge{ font-size:0.95rem; padding:0.75rem 1.25rem; }
}

/* Extra-small screens: ensure nav button text fits */
@media(max-width:400px){
  nav#mainNav ul{ gap:3px; padding:0.4rem 0.4rem 0.5rem; }
  nav#mainNav ul li a,
  nav#mainNav ul li:nth-child(4) a,
  nav#mainNav ul li:nth-child(4) a.cta-button{
    font-size:0.6rem !important;
    padding:0.4em 0.15em !important;
    line-height:1.3;
  }
  nav#mainNav ul li:nth-child(4){ flex:1.5; }
  nav#mainNav ul li:nth-child(4) a,
  nav#mainNav ul li:nth-child(4) a.cta-button{
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
}

/* ════════════════════════════════════════
   SCROLL-WHEEL DATE PICKER
════════════════════════════════════════ */

/* Trigger button */
.dob-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.93);
  border: 1px solid #ccc;
  border-radius: var(--radius-sm);
  color: #555;
  font-family: 'Raleway', sans-serif;
  font-size: 0.97rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}
.dob-trigger:focus, .dob-trigger:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
  outline: none;
  color: #111;
}
.dob-trigger .dob-icon { color: #888; font-size: 1rem; flex-shrink: 0; }
.dob-trigger .dob-value { flex: 1; }
.dob-trigger .dob-arrow { color: #aaa; font-size: 0.75rem; margin-left: auto; }

/* Overlay backdrop */
.dob-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dob-overlay.open { display: flex; }

/* Dialog box */
.dob-dialog {
  background: #2d2d2d;
  border-radius: 12px;
  width: 320px;
  max-width: 94vw;
  max-height: 90vh;
  overflow: hidden;
  margin: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: dobPop 0.22s cubic-bezier(0.34,1.3,0.64,1) forwards;
  position: relative;
}
@keyframes dobPop {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Display area at top */
.dob-display {
  padding: 1.1rem 1.5rem 0.9rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.dob-display-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.3rem;
}
.dob-display-value {
  font-family: 'Raleway', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  min-height: 1.8rem;
}

/* Columns container */
.dob-columns {
  display: flex;
  position: relative;
  padding: 0 0.5rem;
  background: #2d2d2d;
}

/* Selection highlight band */
.dob-columns::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
  background: rgba(255,255,255,0.06);
  border-top: 1.5px solid rgba(100,160,255,0.55);
  border-bottom: 1.5px solid rgba(100,160,255,0.55);
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}

/* Each column (Day / Month / Year) */
.dob-col {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 220px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.dob-col:active { cursor: grabbing; }

/* Fade top & bottom */
.dob-col::before,
.dob-col::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  z-index: 3;
  pointer-events: none;
}
.dob-col::before {
  top: 0;
  background: linear-gradient(to bottom, #2d2d2d 0%, transparent 100%);
}
.dob-col::after {
  bottom: 0;
  background: linear-gradient(to top, #2d2d2d 0%, transparent 100%);
}

/* Scrollable inner list */
.dob-col-inner {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
  transition: transform 0.18s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* Each item row */
.dob-item {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.38);
  width: 100%;
  transition: color 0.15s ease, font-size 0.15s ease, font-weight 0.15s ease;
  pointer-events: none;
}
.dob-item.selected {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
}
.dob-item.near {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
}

/* Column label */
.dob-col-label {
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 0.5rem 0 0.3rem;
}

/* Footer buttons */
.dob-footer {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.09);
}
.dob-btn {
  flex: 1;
  padding: 0.9rem;
  background: none;
  border: none;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  letter-spacing: 0.5px;
}
.dob-btn-cancel {
  color: rgba(255,255,255,0.5);
  border-right: 1px solid rgba(255,255,255,0.09);
}
.dob-btn-cancel:hover { background: rgba(255,255,255,0.05); }
.dob-btn-ok {
  color: rgba(100,160,255,0.9);
}
.dob-btn-ok:hover { background: rgba(100,160,255,0.08); }
