:root {
  --yellow: #d5ff3f;
  --accent: #777;
  --red: #ff0000;
  --bg: #000000;
  --white: #fff;
  --font-main: 'Raleway', sans-serif;
  --hero-pad-x: clamp(16px, 5vw, 40px);
  --hero-pad-top: clamp(60px, 10vw, 150px);
  --hero-pad-bottom: clamp(20px, 4vw, 60px);
  --max-width: 1600px; 
}

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

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-main);
   overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
  }

body.no-scroll {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}

main {
   flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
 
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--hero-pad-top) var(--hero-pad-x) var(--hero-pad-bottom);
  border-radius: 24px;
  overflow: hidden;
}

/* ===== HEADER ===== */
.hero-header {
  position: absolute;
  top: 20px;
  left: var(--hero-pad-x);
  right: var(--hero-pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
.hero-header::after {
  content: "";
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background-color: var(--accent);
}

/* ===== LOGO AREA ===== */
.logo-group {
  display: flex;
  gap:20px;
  align-items: center;
}
.logo-group a img { height: 50px; }

.school-container {
  display: flex;
  align-items: center;
  gap: 8px;
}
.school-name {
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  line-height: 1.2;
}
.school-dots {
  display: flex;
  gap: 6px;
  margin-left: -10px;
  margin-top: 50px;
}
.school-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
}

/* ===== HAMBURGER ===== */
.hamburger {
  width: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 10001; /* ensure visibility */
  position: relative;
}
.hamburger span {
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== NAVIGATION ===== */
.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
 width:100vw;
 height: 100vh;
  background: rgba(0, 0, 0, 0.6); /* ✅ visible transparent layer */
  z-index: 9997; /* ✅ just below the nav menu */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-backdrop.show {
  opacity: 1;
  pointer-events: all; /* ✅ enables click blocking */
}


.nav-menu {
  position: absolute;
  top: 80px;
  right: 0;
  background: rgba(17, 17, 17, 0.97);
  border: 1.5px solid var(--yellow);
  border-radius: 8px;
  padding: 15px 25px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}
.nav-menu.show { display: flex; }
.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.nav-menu a:hover {
  background: var(--yellow);
  color: #000;
}

/* ===== TITLE BLOCK ===== */
.title-block {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px;
  margin: 60px var(--hero-pad-x) 0;
  max-width: 100%;
  flex-wrap: nowrap;
  position: relative;
  z-index: 2;
  top:-60px ;
}

/* ===== Main Title ===== */
.title-block .title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  white-space: normal;  /* ✅ FIX: enables <br> */
  transition: all 0.3s ease;
}

/* ===== Highlight Text ===== */
.title-block .highlight {
  color: #2ecc71;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  white-space: nowrap;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: none;
  position: static;        /* ✅ remove relative offsets */
  transform: none;         /* ✅ reset any leftover transforms */
  top: 100px;
}

/* Larger first letter */
.title-block .highlight::first-letter {
  font-size: 4rem;
  font-weight: 900;
}


/* Prevent clipping inside parent sections */
.hero,
.hero-overlay,
.main-section {
  overflow: visible !important; /* ensure nothing clips text */
}

/* ===== EVENT SECTION ===== */
.upcoming {
  color: #2ecc71;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  margin: 30px 0 30px;
  text-align: center;

}
/* ===== COORDINATOR SECTION ===== */
.coordinator-section {
  text-align: center;
  border: 2px solid var(--yellow);
  border-radius: 12px;
  padding: 40px 20px;
  max-width: 800px;
  margin: 40px auto 80px auto; /* ✅ directly below highlight */
  position: relative;
  background: transparent;
  margin-bottom: 40px;  /* ✅ small controlled gap above footer */
  
}
.coordinator-names {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap; /* ✅ allows stacking on small screens */
  margin-bottom: 12px;
}

.coordinator {
  flex: 1 1 220px; /* ✅ flexible width for responsiveness */
  max-width: 260px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 14px 20px;
  text-align: left;
  color: #fff;
}

.coordinator .name,
.coordinator .phone {
  font-weight: 700;
  margin: 0 0 6px 0;
  font-size: 1.2rem;
  color: #fff;
}

.coordinator .email {
  margin: 4px 0;
  font-size: 0.95rem;
}
.event-contact{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap; /* ✅ allows stacking on small screens */
  margin-bottom: 12px;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;     /* part of normal page flow */
  bottom: 0;
  width: 100%;
  margin: 0;              /* ✅ removes bottom gap */
  padding: 25px 80px;
  background: var(--yellow);
  color: #000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

/* ===== POPUP ===== */
.popup {
  display: none;
  position: fixed;
  top: 90px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
   top: -20px;
   transform: scale(1.1);
}
.popup.active { display: flex !important; }
.popup-content {
  position: relative;
  background: #111;
  border: 2px solid var(--yellow);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  box-shadow: 0 0 25px rgba(213,255,63,0.4);
  max-width: 80vw;
  max-height: 90vh;
  animation: fadeIn 0.3s ease;
}
.popup-content img {
  max-width: 80vw;
  max-height: 60vh;
  border-radius: 10px;
  border: 2px solid var(--yellow);
  object-fit: contain;
}
.close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.8rem;
  color: var(--bg);
  background: var(--yellow);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
}
.rbutton a {
  display: inline-block;
  padding: 8px 28px;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  background: transparent;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3rem;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}
.rbutton a:hover {
  background: var(--yellow);
  color: var(--bg);
}
/* ===== FOOTER (Restored & Enhanced) ===== */
.footer {
             /* keeps it visible while scrolling */
  bottom: 0;                   /* stick to bottom of viewport */
  left: 0;
  width: 100%;                 /* full viewport width */
  background: var(--yellow);
  color: #000;
  padding: 18px 0;             /* only vertical padding */
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  z-index: 9999;               /* ensure it's above other sections */
}

/* ✅ content stays aligned with page width */
.footer-content {
  max-width: var(--max-width); /* aligns perfectly with hero section */
  margin: 0 auto;
  padding: 0 var(--hero-pad-x); /* same side spacing as hero */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* === LEFT SIDE: BUTTONS === */
.footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-buttons a {
  text-decoration: none;
}

.footer-buttons button {
  background: transparent;
  border: 2px solid #000;
  color: #000;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-buttons button:hover {
  background: #000;
  color: var(--yellow);
  border-color: #000;
}

/* === RIGHT SIDE: TEXT === */
.footer-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  max-width: 600px;
}

.footer-text {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: justify;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 2px solid var(--accent);
    padding: 12px 20px;
    z-index: 10000;
  }
  .hero-header::after { display: none; }

  .hero {
    margin-top: 100px;
  }
   .nav-menu{
    right: 60px;
    top:80px;
  }
  .title-block {
    margin-top: -30px;
    gap: 4px;             /* ✅ very tight on mobile */
    justify-content: flex-start;
    align-items: baseline;
    padding: 0 5px;
  }

  .title-block .title {
    font-size: clamp(1.6rem, 2vw, 1.8rem);
    margin-top: -50px;
  }

  .title-block .highlight {
    font-size: clamp(2rem, 2.2vw, 1.8rem);
    top: 150px;
    margin-left: 70px;
  }

  .title-block .highlight::first-letter {
    font-size: 2.4rem;
  }
 .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 0 20px;
  }

  .footer-text-block {
    align-items: center;
    text-align: center;
  }

  .footer-buttons {
    justify-content: center;
  }
}

  

/* ===== Responsive adjustments ===== */
@media (max-width: 992px) {
 .title-block {
    gap: 6px;
    justify-content: flex-start;
    align-items: baseline;
    margin: 40px var(--hero-pad-x) 0;
  }

  .title-block .title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
  }

  .title-block .highlight {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-left: 6px;
  }

  .title-block .highlight::first-letter {
    font-size: 3.2rem;
  }
}



@media (max-width: 480px) {
  .title-block {
    margin-top:-25px;
    gap: 3px;             /* ✅ minimum possible gap */
    padding: 0 16px;
  }

  .title-block .title {
    font-size: clamp(1rem, 2.8vw, 1.4rem);
  }

  .title-block .highlight {
    font-size: clamp(1.2rem, 2.8vw, 1.6rem);
    top: -1px;
  }
  .event-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 25px auto;
    padding: 18px;
    width: 80%;
    height: 70%;
  }
  .event-date {
    width: 40%;
    height: 180px;
  }
  .event-details {
    width: 35%;
  }

  .section-line {
    width: 85%;
    margin: 20px auto; /* tighter */
  }

  .popup {
    top: 80px;
  }
}
.hero-overlay,
.main-section {
  padding-bottom: 0 !important;  /* ✅ prevents empty space above footer */
  margin-bottom: 0 !important;
}
/* Make sure coordinator section stays above footer */
.coordinator-section {
  position: relative;
  z-index: 2;
  margin-bottom: 100px; /* ✅ adds clear gap before footer */
}

/* Footer stays at bottom but no overlap */
.footer {
  position: relative; /* ✅ ensure it’s part of the normal document flow */
  z-index: 1;
}


