
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Dancing+Script:wght@500;600&display=swap');

:root {
  --maroon: #7D1B1B;
  --maroon-dark: #5C1414;
  --maroon-light: #F5E6E6;
  --accent: var(--maroon);
  --gold: var(--maroon);
  --heading: var(--maroon);

  --bg: #FFFFFF;
  --bg-secondary: #FAF7F7;
  --card: #FFFFFF;
  --card-hover: #FBF5F5;
  --text: #1A1A1A;
  --muted: #555555;
  --border: rgba(125, 27, 27, 0.2);
  --border-subtle: rgba(125, 27, 27, 0.1);
  --navbar-bg: rgba(255, 255, 255, 0.92);
  --navbar-border: rgba(125, 27, 27, 0.25);
  --btn-primary-text: #FFFFFF;
  --input-bg: rgba(125, 27, 27, 0.03);
  --shadow: rgba(125, 27, 27, 0.1);
  --fade-from: rgba(255, 255, 255, 0);
  --fade-to: rgba(255, 255, 255, 1);
  --watermark: rgba(245, 230, 230, 0.55);
  --logo-item-bg: rgba(245, 230, 230, 0.35);
  --footer-bg: var(--maroon-light);
  --nav-mobile-bg: rgba(255, 255, 255, 0.98);
  --hero-gradient-1: rgba(125, 27, 27, 0.06);
  --hero-gradient-2: rgba(245, 230, 230, 0.4);
  --accent-soft: rgba(125, 27, 27, 0.12);
  --accent-border: rgba(125, 27, 27, 0.35);
  --timeline-line: rgba(125, 27, 27, 0.25);
  --timeline-dot-shadow: rgba(125, 27, 27, 0.15);
  --nav-link-hover-bg: rgba(125, 27, 27, 0.06);
}

[data-theme="dark"] {
  --heading: #FFFFFF;
  --bg: #0A0A0A;
  --bg-secondary: #141414;
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.05);
  --text: #F0F0F0;
  --muted: #9AA4B2;
  --border: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --navbar-bg: rgba(10, 10, 10, 0.88);
  --navbar-border: rgba(125, 27, 27, 0.4);
  --input-bg: rgba(255, 255, 255, 0.04);
  --shadow: rgba(0, 0, 0, 0.45);
  --fade-from: rgba(10, 10, 10, 0);
  --fade-to: rgba(10, 10, 10, 1);
  --watermark: rgba(125, 27, 27, 0.07);
  --logo-item-bg: rgba(0, 0, 0, 0.25);
  --footer-bg: rgba(125, 27, 27, 0.12);
  --nav-mobile-bg: rgba(10, 10, 10, 0.97);
  --hero-gradient-1: rgba(125, 27, 27, 0.1);
  --hero-gradient-2: rgba(125, 27, 27, 0.04);
  --maroon-light: rgba(125, 27, 27, 0.18);
  --accent-soft: rgba(125, 27, 27, 0.2);
  --accent-border: rgba(125, 27, 27, 0.45);
  --timeline-line: rgba(125, 27, 27, 0.35);
  --timeline-dot-shadow: rgba(125, 27, 27, 0.2);
  --nav-link-hover-bg: rgba(255, 255, 255, 0.06);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(1200px 600px at 20% 0%, var(--hero-gradient-1), transparent 50%),
    radial-gradient(900px 500px at 90% 10%, var(--hero-gradient-2), transparent 50%),
    var(--bg);
  color:var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

.container{
  width:min(1100px, 92%);
  margin:0 auto;
}

a{color:inherit; text-decoration:none;}
.gold{color:var(--heading);}

.navbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: var(--navbar-bg);
  border-bottom:1px solid var(--navbar-border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:12px;
}

.brand{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand-mark{
  font-weight:800;
  letter-spacing:2px;
  font-size:18px;
  color:var(--heading);
}
.brand-sub{
  font-family:'Dancing Script', cursive;
  font-size:15px;
  color:var(--heading);
  font-weight:600;
}

.nav-links{
  display:flex;
  gap:18px;
  align-items:center;
}

.nav-links a{
  color:var(--muted);
  font-size:14px;
  padding:8px 10px;
  border-radius:10px;
  transition:0.2s;
}
.nav-links a:hover{
  color:var(--text);
  background: var(--nav-link-hover-bg);
}

.nav-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  padding:0;
  border-radius:12px;
  border:1px solid var(--border);
  background: var(--card);
  color:var(--heading);
  cursor:pointer;
  flex-shrink:0;
  transition: color 250ms ease, background 250ms ease, transform 250ms ease, filter 250ms ease;
}
.theme-toggle:hover{
  background: var(--maroon-light);
  transform: scale(1.08);
  filter: brightness(1.12);
}
.theme-toggle:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}
.theme-toggle-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  font-size:19px;
  line-height:1;
  transition: transform 250ms ease, color 250ms ease, filter 250ms ease;
}
.theme-toggle.is-spinning .theme-toggle-icon{
  animation: themeToggleRotate 250ms ease;
}
@keyframes themeToggleRotate{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(180deg); }
}
.icon-light,
.icon-dark{
  display:none;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  line-height:1;
}
[data-theme="dark"] .theme-toggle .icon-dark{display:flex;}
[data-theme="dark"] .theme-toggle .icon-light{display:none;}
:root:not([data-theme="dark"]) .theme-toggle .icon-light,
[data-theme="light"] .theme-toggle .icon-light{display:flex;}
:root:not([data-theme="dark"]) .theme-toggle .icon-dark,
[data-theme="light"] .theme-toggle .icon-dark{display:none;}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  font-weight:600;
  font-size:14px;
  border:1px solid transparent;
  cursor:pointer;
  transition:0.2s;
}

.btn-gold{
  background: linear-gradient(180deg, var(--maroon), var(--maroon-dark));
  color:var(--btn-primary-text);
}
.btn-gold:hover{
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-outline{
  background: var(--card);
  border:1px solid var(--border);
  color:var(--text);
}
.btn-outline:hover{
  background: var(--card-hover);
  border-color: var(--accent);
  color:var(--heading);
  transform: translateY(-1px);
}

.full{width:100%;}

.burger{
  display:none;
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid var(--border);
  background: var(--card);
  cursor:pointer;
}
.burger span{
  display:block;
  width:18px;
  height:2px;
  margin:4px auto;
  background: var(--text);
  border-radius:10px;
}

.hero{
  position:relative;
  padding:60px 0 30px;
  overflow:hidden;
}

.hero::before{
  content:"ELS";
  position:absolute;
  right:-5%;
  top:50%;
  transform:translateY(-50%);
  font-size:clamp(180px, 28vw, 320px);
  font-weight:800;
  letter-spacing:-8px;
  color:var(--watermark);
  pointer-events:none;
  line-height:1;
  z-index:0;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap:24px;
  align-items:center;
  position:relative;
  z-index:1;
}

.pill{
  display:inline-flex;
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--border);
  background: var(--card);
  padding:8px 12px;
  border-radius:999px;
}

.hero h1{
  font-size:44px;
  margin:16px 0 12px;
  letter-spacing:-1px;
  color:var(--heading);
  text-transform:uppercase;
  font-weight:800;
}

.hero-text{
  color:var(--muted);
  max-width:520px;
  line-height:1.6;
}

.hero-buttons{
  display:flex;
  gap:12px;
  margin-top:18px;
}

.hero-stats{
  margin-top:22px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.stat{
  border:2px solid var(--accent);
  background: var(--card);
  border-radius:14px;
  padding:12px 14px;
  min-width:140px;
}
.stat-num{font-size:22px; font-weight:800; color:var(--heading);}
.stat-label{font-size:12px; color:var(--muted);}

.logo-card{
  border:3px solid var(--accent);
  background: var(--card);
  border-radius:18px;
  padding:16px;
  box-shadow: 0 20px 80px var(--shadow);
}
.logo-img{
  width:100%;
  border-radius:12px;
  display:block;
  border:2px solid var(--accent);
}
.logo-caption{
  font-family:'Dancing Script', cursive;
  color:var(--heading);
  font-size:16px;
  font-weight:600;
  margin-top:10px;
  text-align:center;
}

.hero-glow{
  position:absolute;
  inset:0;
  pointer-events:none;
  background: radial-gradient(500px 250px at 40% 10%, var(--hero-gradient-1), transparent 60%);
}

.section{
  padding:55px 0;
  position:relative;
}

.section-head{
  margin-bottom:18px;
}

.section-head h2{
  margin:0 0 4px;
  font-size:28px;
  color:var(--heading);
  text-transform:uppercase;
  font-weight:800;
  letter-spacing:0.5px;
}
.section-head p{
  margin:8px 0 0;
  color:var(--muted);
  max-width:650px;
  line-height:1.6;
}


.cards3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

.card{
  background: var(--card);
  border:2px solid var(--border);
  border-radius:16px;
  padding:18px;
  transition:0.2s;
}
.card:hover{
  transform: translateY(-2px);
  background: var(--card-hover);
  border-color: var(--accent);
}
.card h3{margin:0 0 8px; font-size:16px; color:var(--heading);}
.card p{margin:0; color:var(--muted); line-height:1.6;}

.big{
  padding:22px;
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.grid-events{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

.event-card{
  background: var(--card);
  border:2px solid var(--border);
  border-radius:16px;
  padding:16px;
  transition:0.2s;
}
.event-card:hover{
  transform: translateY(-2px);
  background: var(--card-hover);
  border-color: var(--accent);
}
.event-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.event-date{
  font-weight:800;
  color:var(--heading);
}
.event-tag{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--border);
  padding:6px 10px;
  border-radius:999px;
}
.event-meta{
  display:flex;
  gap:10px;
  color:var(--muted);
  font-size:12px;
  margin:10px 0 14px;
}

.team-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}

.member{
  background: var(--card);
  border:2px solid var(--border);
  border-radius:16px;
  padding:18px;
  transition:0.2s;
}
.member:hover{
  border-color: var(--accent);
}
.avatar{
  width:56px;
  height:56px;
  border-radius:16px;
  border:2px solid var(--accent);
  margin-bottom:12px;
  object-fit: cover;
  object-position: center;
  display:block;
}


.muted{color:var(--muted);}


.join-box{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  padding:22px;
  border-radius:18px;
  border:2px solid var(--accent);
  background: var(--card);
}

.join-box h2{
  color:var(--heading);
  text-transform:uppercase;
  font-weight:800;
}

.mini-points{
  margin-top:14px;
  display:grid;
  gap:8px;
  color:var(--muted);
  font-size:14px;
}

.form{
  display:grid;
  gap:10px;
}

.row2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}

input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: var(--input-bg);
  color:var(--text);
  outline:none;
}
textarea{
  min-height:100px;
  resize:vertical;
}
input::placeholder, textarea::placeholder{
  color: var(--muted);
  opacity:0.75;
}
.form-note{
  font-size:12px;
  color:var(--muted);
  min-height:16px;
}


.footer{
  border-top:2px solid var(--accent);
  padding:22px 0;
  background: var(--footer-bg);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.footer-title{font-weight:800; color:var(--heading);}
.footer-muted{color:var(--muted); font-size:12px;}
.footer-links{
  display:flex;
  gap:14px;
  color:var(--muted);
  font-size:14px;
}
.footer-links a:hover{
  color:var(--heading);
}

@media (max-width: 900px){
  .hero-grid{grid-template-columns: 1fr; }
  .cards3{grid-template-columns: 1fr;}
  .grid-events{grid-template-columns: 1fr;}
  .split{grid-template-columns: 1fr;}
  .team-grid{grid-template-columns: 1fr 1fr;}
  .join-box{grid-template-columns: 1fr;}
  .nav-links{display:none;}
  .burger{display:inline-block;}
}

.nav-open .nav-links{
  display:flex;
  flex-direction:column;
  position:absolute;
  top:70px;
  right:4%;
  width:92%;
  padding:14px;
  border-radius:16px;
  border:2px solid var(--accent);
  background: var(--nav-mobile-bg);
}
.logo-marquee{
  overflow:hidden;
  border:2px solid var(--border);
  background: var(--card);
  border-radius:18px;
  padding:18px 0;
}

.logo-track{
  display:flex;
  gap:28px;
  width:max-content;
  align-items:center;
  animation: marqueeLeft 18s linear infinite;
}

.logo-item{
  min-width:140px;
  height:70px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:16px;
  border:1px solid var(--border);
  background: var(--logo-item-bg);
}

.logo-item img{
  max-height:45px;
  max-width:110px;
  width:auto;
  opacity:0.9;
  filter: grayscale(100%);
  transition:0.2s;
}

.logo-item img:hover{
  filter: grayscale(0%);
  opacity:1;
  transform: scale(1.04);
}

@keyframes marqueeLeft{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logo-marquee:hover .logo-track{
  animation-play-state: paused;
}

.events-timeline{
  position:relative;
  display:grid;
  gap:18px;
  padding-left:24px;
}

.events-timeline::before{
  content:"";
  position:absolute;
  left:8px;
  top:0;
  bottom:0;
  width:2px;
  background: var(--timeline-line);
}

.timeline-item{
  position:relative;
  display:grid;
  grid-template-columns: 20px 1fr;
  gap:14px;
  align-items:flex-start;
}

.timeline-dot{
  width:14px;
  height:14px;
  border-radius:50%;
  background: var(--accent);
  margin-top:10px;
  box-shadow: 0 0 0 6px var(--timeline-dot-shadow);
}

.timeline-card{
  background: var(--card);
  border:2px solid var(--border);
  border-radius:16px;
  padding:18px;
  transition:0.2s;
}

.timeline-card:hover{
  transform: translateY(-2px);
  background: var(--card-hover);
  border-color: var(--accent);
}

.timeline-meta{
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}

.timeline-tags{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.tag{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--border);
  padding:6px 10px;
  border-radius:999px;
}
.team-wrapper{
  position:relative;
  overflow:hidden;
  border-radius:16px;
  max-height: 420px;
  transition: max-height 0.45s ease;
}

.team-wrapper.open{
  max-height: 2000px;
}

.team-fade{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:90px;
  pointer-events:none;
  background: linear-gradient(to bottom, var(--fade-from), var(--fade-to));
  opacity:1;
  transition: opacity 0.3s ease;
}

.team-wrapper.open .team-fade{
  opacity:0;
}

.team-actions{
  margin-top:14px;
  display:flex;
  justify-content:center;
}
.event-photos{
  display:none;
  margin-top:14px;
}

.timeline-card.open .event-photos{
  display:block;
}

.gallery-grid.mini{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
  margin-top:12px;
}

.gallery-grid.mini img{
  width:100%;
  height:120px;
  object-fit:cover;
  display:block;
  border-radius:14px;
  border:2px solid var(--accent);
}

@media (max-width: 900px){
  .gallery-grid.mini{
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid.mini img{
    height:140px;
  }
}

.gallery-video{
  width:100%;
  height:140px;
  object-fit:cover;
  display:block;
  border-radius:14px;
  border:2px solid var(--accent);
}
.past-events-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:22px;
  border-radius:18px;
  border:2px solid var(--accent);
  background: var(--card);
  transition:0.2s;
  position:relative;
  overflow:hidden;
}

.past-events-card:hover{
  transform: translateY(-2px);
  background: var(--card-hover);
  box-shadow: 0 8px 32px var(--shadow);
}

.past-events-card::before{
  content:"";
  position:absolute;
  inset:-80px;
  background: radial-gradient(420px 220px at 20% 20%, var(--accent-soft), transparent 60%);
  pointer-events:none;
}

.past-events-left{
  position:relative;
  z-index:1;
  max-width:600px;
}

.past-events-pill{
  display:inline-flex;
  font-size:12px;
  color:var(--heading);
  border:1px solid var(--accent-border);
  background: var(--accent-soft);
  padding:8px 12px;
  border-radius:999px;
  margin-bottom:10px;
}

.past-events-left h2{
  margin:0 0 8px;
  font-size:28px;
  color:var(--heading);
  text-transform:uppercase;
  font-weight:800;
}

.past-events-left p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.past-events-btn{
  margin-top:14px;
  display:inline-flex;
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
  background: var(--accent-soft);
  border:1px solid var(--accent-border);
  color: var(--heading);
}

.past-events-right{
  position:relative;
  z-index:1;
  display:grid;
  gap:10px;
  min-width:220px;
}

.past-events-stat{
  border:2px solid var(--accent);
  background: var(--card);
  border-radius:14px;
  padding:12px 14px;
}

@media (max-width: 900px){
  .past-events-card{
    flex-direction:column;
    align-items:flex-start;
  }
  .past-events-right{
    width:100%;
    grid-template-columns: 1fr 1fr;
  }
}
