/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #102e4a;
  --primary-light: #1a3d5f;
  --secondary: #fff7e6;
  --nav-height: 64px;
  --accent: #ff6b6b;
  --light: #f8f9fa;
  --dark: #0a1f2c;
  --gray: #6c757d;
  --technical: #4ecdc4;
  --non-technical: #ffd166;
  --workshop: #118ab2;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.5;
  color: var(--dark);
  background-color: var(--secondary);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Lock scroll while preloader visible */
body.preloader-active {
  overflow: hidden;
}

/* ===== PRELOADER ROOT ===== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  animation: fadeIn 500ms ease forwards;
  transition: opacity 450ms ease;
}

/* Mobile viewport stability fix */
#preloaderVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* Handle mobile dynamic viewport */
  min-height: 100dvh;
  min-width: 100vw;

  transform: translateZ(0);
}

/* Fade animations */
@keyframes fadeIn {
  to { opacity: 1; }
}

.preloader--hide {
  opacity: 0 !important;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 20px;
  top: 20px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--primary);
  color: var(--secondary);
  z-index: 2000;
  border-radius: 6px;
}

/* Utility: visually hidden (for accessible labels) */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* Prevent background scroll when modal open */
body.modal-open {
  overflow: hidden;
}

/* Toast */
#toast {
  position: fixed;
  right: 20px;
  bottom: 24px;
  background: rgba(16, 46, 74, 0.95);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}
#toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus outlines for keyboard users */
a:focus,
button:focus,
input:focus {
  outline: 3px solid rgba(16, 46, 74, 0.15);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--secondary);
  box-shadow: 0 4px 20px rgba(16, 46, 74, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(16, 46, 74, 0.4);
  background: linear-gradient(135deg, var(--primary-light), #1e4a6b);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid rgba(255, 247, 230, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 247, 230, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 247, 230, 0.2);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 247, 230, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 3px solid #f6efde;
  box-shadow: 0 2px 15px rgba(16, 46, 74, 0.1);
  padding: 4px 0; /* minimized header */
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem; /* smaller logo text */
  font-weight: 700;
  color: var(--primary);
}

.logo i {
  font-size: 1.8rem;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.register-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--secondary) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(16, 46, 74, 0.3);
}

.register-btn::after {
  display: none;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  /* Make hero occupy full viewport and adapt to navbar height */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Use viewport-based top padding so content remains visible under the fixed navbar */
  padding: calc(6vh + 20px) 20px 5vh;
  position: relative;
  overflow: hidden;

  /* Use the site logo as a full-bleed background with a subtle dark gradient for contrast */
  background-image:
    linear-gradient(rgba(15, 52, 80, 0.55), rgba(9, 32, 51, 0.55)),
    url("images/sympo.jpeg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* subtle translucent overlay so particles remain visible but text stays legible */
  background: linear-gradient(
    135deg,
    rgba(167, 51, 175, 0.351) 0%,
    rgba(14, 53, 86, 0.32) 100%
  );
  z-index: 1;
}

/* Enable smooth scrolling for the entire document */
html {
  scroll-behavior: smooth;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}

/* College Logo Styles */
.college-logo-container {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.college-logo {
  /* responsive logo size using viewport units with a sensible cap */
  max-width: min(60vw, 760px);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

/* Enlarged variant for hero */
.college-logo.enlarged {
  max-width: min(80vw, 1100px);
}

.tagline {
  font-weight: 700;
  margin-top: 0.5rem;
  color: rgba(255, 247, 230, 0.95);
  font-family: "Libre Franklin", "Poppins", sans-serif;
  /* responsive tagline */
  font-size: clamp(1.1rem, 2.2vw, 2.2rem);
  letter-spacing: 0.2px;
}

.college-logo:hover {
  transform: scale(1.05);
}

.hero h4 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: rgba(255, 247, 230, 0.9);
}

.hero h1 {
  font-family: "Orbitron", sans-serif;
  /* responsive heading size */
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(
    120deg,
    #ffd166 0%,
    #ffb347 25%,
    #ff6b6b 50%,
    #4ecdc4 75%,
    #118ab2 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: gradient-text 8s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.3));
  letter-spacing: 2px;
}

@keyframes gradient-text {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero h1 span {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.event-date {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  margin-bottom: 2rem;
  color: rgba(255, 247, 230, 0.9);
}

.countdown-container {
  background: rgba(255, 247, 230, 0.08);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-radius: 24px;
  padding: 35px 10px;
  margin: 30px auto 10px;
  width: min(92%, 760px);
  border: 1px solid rgba(255, 247, 230, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.countdown-container h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 400;
  color: var(--secondary);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.countdown-item {
  background: rgba(255, 247, 230, 0.1);
  border-radius: 16px;
  padding: 24px 12px;
  min-width: 120px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 247, 230, 0.2);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 247, 230, 0.2);
  transition: all 0.3s ease;
}

.countdown-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 247, 230, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.countdown-item span {
  font-family: "Orbitron", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  display: block;
  color: var(--secondary);
  line-height: 1;
}

.countdown-item p {
  font-size: 0.9rem;
  color: rgba(255, 247, 230, 0.8);
  margin-top: 5px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: var(--secondary);
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  text-align: justify;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--dark);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(16, 46, 74, 0.05);
  transition: transform 0.3s ease;
  border: 2px solid transparent;
}

.stat:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.stat h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 5px;
  font-family: "Orbitron", sans-serif;
}

.stat p {
  font-size: 0.9rem;
  color: var(--gray);
}

.about-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(16, 46, 74, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Events Section */
.events {
  padding: 100px 0;
  background-color: white;
  position: relative;
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 30px;
  background: transparent;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-color: var(--primary);
}

.tab-btn:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

.events-grid {
  /* center-aligned layout similar to team grid: top row 3, second row wraps and centers */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Each event card: default to roughly one third width so three fit in a row */
.events-grid .event-card {
  flex: 0 1 calc(33.333% - 20px);
  max-width: 360px;
}

.event-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(16, 46, 74, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
  display: none;
  border: 2px solid transparent;
}

.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.event-card:hover::before {
  transform: scaleX(1);
}

.event-card.show {
  display: block;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(16, 46, 74, 0.12);
  border-color: var(--primary);
}

.event-card.technical {
  border-top-color: var(--technical);
}

.event-card.non-technical {
  border-top-color: var(--non-technical);
}

.event-card.workshops {
  border-top-color: var(--workshop);
}

.event-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: white;
}

.event-card.technical .event-icon {
  background: linear-gradient(135deg, var(--technical), #5b86e5);
}

.event-card.non-technical .event-icon {
  background: linear-gradient(135deg, var(--non-technical), #ff8e53);
}

.event-card.workshops .event-icon {
  background: linear-gradient(135deg, var(--workshop), #36d1dc);
}

.event-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.event-card > p {
  color: var(--gray);
  margin-bottom: 20px;
  min-height: 60px;
}

.event-details {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  color: var(--gray);
  font-size: 0.9rem;
}

.event-details i {
  margin-right: 5px;
  color: var(--primary);
}

.event-toggle-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.event-toggle-btn:hover {
  background-color: rgba(16, 46, 74, 0.05);
  border-color: var(--primary);
}

.event-full-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  margin-top: 0;
}

.event-full-details.active {
  max-height: 1000px;
  margin-top: 20px;
  padding-bottom: 10px;
}

.event-full-details h4 {
  margin: 15px 0 10px;
  color: var(--dark);
  font-size: 1.1rem;
}

.event-full-details ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.event-full-details li {
  margin-bottom: 5px;
  color: var(--gray);
}

.btn-register-event {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: white;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
  gap: 10px;
}

.btn-register-event:hover {
  background: linear-gradient(135deg, #3367d6, #2e8b57);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

/* Organizing Team Section */
.team {
  padding: 100px 0;
  background-color: var(--secondary);
  position: relative;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

/* Make each card take roughly one third so three fit on the first row */
.team-grid .team-card {
  /* default card sizing (used for bottom row) */
  flex: 0 1 calc(33.333% - 20px);
  max-width: 360px;
}

/* Top row cards (two boxes) */
.team-card.top {
  flex: 0 1 45%;
  max-width: 480px;
}

/* Bottom row cards (three boxes) */
.team-card.bottom {
  flex: 0 1 calc(33.333% - 20px);
  max-width: 360px;
}

.team-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(16, 46, 74, 0.08);
  transition: all 0.3s ease;
  border-top: 5px solid var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid transparent;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(16, 46, 74, 0.12);
  border-color: var(--primary);
}

.team-card.principal {
  border-top-color: #ffd700;
}

.team-card.hod {
  border-top-color: var(--primary);
}

.team-card.committee {
  border-top-color: var(--accent);
}

.team-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 2rem;
  color: white;
}

.team-card.principal .team-icon {
  background: linear-gradient(135deg, #ffd700, #ffa500);
}

.team-card.hod .team-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.team-card.committee .team-icon {
  background: linear-gradient(135deg, var(--accent), #ff8e53);
}

.team-card h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.team-card h4 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 5px;
  font-weight: 600;
}

.team-card p {
  color: var(--gray);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.committee-list {
  width: 100%;
  margin-top: 15px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.committee-member {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.committee-member:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.committee-member h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 5px;
}

.committee-member p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}

/* Schedule Section */

.timeline-item {
  display: flex;
  margin-bottom: 30px;
  position: relative;
  /* vertically center time with the content diamond marker */
  align-items: center;
}

.timeline-time {
  width: 140px;
  padding-right: 24px;
  text-align: right;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
  white-space: nowrap; /* Prevent text wrapping */

  /* set the computed left position for the timeline line (width + padding) */
  --timeline-line-left: 164px; /* 140px width + 24px padding = 164 */

  /* nudge the time label slightly down to sit closer to the diamond marker */
  transform: translateY(6px);
}

.timeline-content {
  flex-grow: 1;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(16, 46, 74, 0.05);
  margin-left: 32px; /* give extra breathing room from the vertical line */
  position: relative;
  border: 2px solid transparent;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* hide old pointer; we'll position a unified marker on the timeline for each item */
.timeline-content::before {
  display: none;
}

/* Diamond marker aligned with the vertical line for each timeline item */
.timeline-item::after {
  content: "";
  position: absolute;
  left: calc(var(--timeline-line-left, 164px) - 10px);
  top: 50%;
  width: 20px;
  height: 20px;
  background: white;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: -3px 3px 10px rgba(16, 46, 74, 0.06);
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* small circular accent on the vertical line to add visual rhythm */
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-line-left, 164px) - 6px);
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 4px 10px rgba(16, 46, 74, 0.08);
  transform: translateY(-50%);
}

.timeline-content h4 {
  margin-bottom: 5px;
  color: var(--dark);
}

.timeline-content p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.timeline-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.technical-tag {
  background: var(--technical);
}

.workshop-tag {
  background: var(--workshop);
}

/* Registration Section */
.registration {
  padding: 100px 0;
  background-color: var(--secondary);
  position: relative;
}

.registration-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: start;
}

.registration-form-centered {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(16, 46, 74, 0.08);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  border: 2px solid transparent;
}

.registration-form-centered:hover {
  border-color: var(--primary);
}

.registration-form-centered h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--dark);
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.registration-form-centered > p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Registration Steps */
.registration-steps-container {
  background: linear-gradient(
    135deg,
    rgba(16, 46, 74, 0.05),
    rgba(16, 46, 74, 0.02)
  );
  border-radius: 15px;
  padding: 25px;
  margin: 30px 0;
  text-align: left;
  border-left: 4px solid var(--primary);
}

.registration-steps-container h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--dark);
  font-size: 1.2rem;
}

.registration-steps-container h4 i {
  color: var(--primary);
}

.registration-steps {
  margin: 0;
  padding-left: 20px;
}

.registration-steps li {
  margin-bottom: 12px;
  padding-left: 10px;
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.5;
}

.registration-steps li:last-child {
  margin-bottom: 0;
}

/* Google Form Button */
.google-form-button {
  background: white;
  border: 2px dashed #e0e0e0;
  border-radius: 15px;
  padding: 30px;
  margin: 30px 0;
  transition: all 0.3s ease;
}

.google-form-button:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(16, 46, 74, 0.1);
}

.google-form-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 35px;
  font-size: 1.2rem;
  font-weight: 600;
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 15px;
  box-shadow: 0 5px 20px rgba(66, 133, 244, 0.3);
}

.google-form-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
  background: linear-gradient(135deg, #3367d6, #2e8b57);
}

.google-form-link i {
  font-size: 1.4rem;
  margin-right: 12px;
}

.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 15px;
}

.form-note i {
  color: var(--primary);
}

/* Registration Notes */
.registration-notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.note {
  background: white;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid transparent;
  text-align: left;
  transition: all 0.3s ease;
}

.note:hover {
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(16, 46, 74, 0.05);
}

.note i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.note h5 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.note p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}

/* Registration Info Cards */
.registration-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-card {
  background: linear-gradient(
    135deg,
    rgba(16, 46, 74, 0.05),
    rgba(16, 46, 74, 0.02)
  );
  padding: 25px;
  border-radius: 15px;
  border-left: 5px solid var(--primary);
  transition: transform 0.3s ease;
  border: 2px solid transparent;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.info-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--dark);
  font-size: 1.2rem;
}

.info-card h4 i {
  color: var(--primary);
}

.info-card ul {
  padding-left: 20px;
  margin: 0;
}

.info-card li {
  margin-bottom: 10px;
  color: var(--dark);
  line-height: 1.5;
  font-size: 0.95rem;
}

.info-card li:last-child {
  margin-bottom: 0;
}

.info-card li strong {
  color: var(--primary);
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background-color: white;
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(16, 46, 74, 0.05);
  border: 2px solid transparent;
}

.contact-card:hover {
  border-color: var(--primary);
}

.contact-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--dark);
  font-size: 1.3rem;
}

.contact-card i {
  color: var(--primary);
}

.contact-person {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.contact-person:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-person h4 {
  margin-bottom: 5px;
  color: var(--dark);
}

.contact-person p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.contact-map {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(16, 46, 74, 0.1);
  border: 2px solid transparent;
}

.map-container:hover {
  border-color: var(--primary);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.directions-btn {
  text-align: center;
  margin: 20px 0 30px;
}

.directions-btn .btn-primary {
  background: linear-gradient(135deg, #34a853, #0f9d58);
  padding: 12px 25px;
  font-size: 1rem;
}

.directions-btn .btn-primary:hover {
  background: linear-gradient(135deg, #2e8b57, #0c8040);
}

.social-links {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(16, 46, 74, 0.05);
  text-align: center;
  border: 2px solid transparent;
}

.social-links:hover {
  border-color: var(--primary);
}

.social-links h3 {
  margin-bottom: 20px;
  color: var(--dark);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 1.8rem;
}

.social-icons a {
  color: var(--gray);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary);
  transform: translateY(-5px);
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 35px 0 15px;
  position: relative;
  z-index: 1001; /* sit above particles and most page content */
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
}

.footer-logo i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.footer-logo span {
  font-family: "Orbitron", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.footer-logo p {
  color: rgba(255, 247, 230, 0.7);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--secondary);
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
}

.footer-links a {
  color: rgba(255, 247, 230, 0.7);
  text-decoration: none;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-newsletter h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--secondary);
}

.footer-newsletter p {
  color: rgba(255, 247, 230, 0.7);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  background: rgba(255, 247, 230, 0.1);
  border-radius: 50px;
  overflow: hidden;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: var(--secondary);
  font-family: "Poppins", sans-serif;
}

.newsletter-form input::placeholder {
  color: rgba(255, 247, 230, 0.5);
}

.newsletter-form button {
  padding: 12px 25px;
  background: var(--accent);
  color: var(--secondary);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #ff5252;
}

.footer-bottom {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 247, 230, 0.1);
  color: rgba(255, 247, 230, 0.7);
  font-size: 0.9rem;
  line-height: 1.3;
}

.footer-bottom p {
  margin: 4px 0;
}

.footer-bottom i {
  color: var(--accent);
  margin: 0 5px;
}

.presents {
  color: var(--light);
  font-weight: bold;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero h4 {
    font-size: 1.1rem;
  }

  .event-date {
    font-size: 1.2rem;
  }

  .countdown-item {
    min-width: 110px;
    padding: 18px 10px;
  }

  .countdown-item span {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .events-grid {
    gap: 20px;
  }

  .events-grid .event-card {
    flex: 0 1 100%;
    max-width: 100%;
  }

  /* adjust timeline line position for small screens */
  .timeline-time {
    --timeline-line-left: 90px;
  }

  .events-grid .event-card {
    flex: 0 1 calc(33.333% - 20px);
    max-width: 360px;
  }

  .registration-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .navbar {
    padding: 12px 0;
  }

  /* Off-canvas right drawer for mobile nav */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    left: auto;
    width: 82%;
    max-width: 360px;
    height: calc(100vh - var(--nav-height));
    background: var(--secondary);
    padding: 18px 16px;
    box-shadow: 0 10px 30px rgba(16, 46, 74, 0.12);
    gap: 12px;
    transition:
      right 300ms ease,
      transform 300ms ease;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: transparent;
    position: relative;
    z-index: 2001; /* ensure it's above other content */
  }

  .mobile-menu-btn i {
    font-size: 1.4rem;
    color: var(--primary);
    line-height: 1;
  }

  .logo {
    font-size: 1.3rem;
  }

  .logo i {
    font-size: 1.5rem;
  }

  .hero {
    min-height: 600px;
    padding-top: 80px;
  }

  .hero h4 {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
  }

  .event-date {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .college-logo {
    max-width: 200px;
  }

  .countdown-container {
    padding: 25px 20px;
    margin: 30px auto;
  }

  .countdown-container h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .countdown {
    flex-wrap: wrap;
    gap: 15px;
  }

  .countdown-item {
    min-width: 90px;
    padding: 15px 8px;
  }

  .countdown-item span {
    font-size: 2rem;
  }

  .countdown-item p {
    font-size: 0.8rem;
  }

  .hero-buttons {
    gap: 15px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 24px;
    font-size: 0.95rem;
  }

  .about {
    padding: 70px 0;
  }

  .about-text p {
    font-size: 1rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
  }

  .stat {
    padding: 15px;
  }

  .stat h3 {
    font-size: 2rem;
  }

  .events {
    padding: 70px 0;
  }

  .category-tabs {
    gap: 8px;
    margin-bottom: 40px;
  }

  .tab-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
  }

  .events-grid {
    gap: 25px;
  }

  .events-grid .event-card {
    flex: 0 1 calc(50% - 15px);
    max-width: 460px;
  }

  .event-card {
    padding: 25px;
  }

  .event-card h3 {
    font-size: 1.3rem;
  }

  .event-details {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .team {
    padding: 70px 0;
  }

  /* Medium screens: two-per-row layout */
  .team-grid {
    gap: 20px;
  }

  .team-grid .team-card {
    flex: 0 1 calc(50% - 15px);
    max-width: 420px;
  }

  .team-card {
    padding: 25px;
  }

  /* schedule removed */

  .timeline-item {
    margin-bottom: 25px;
  }

  .timeline-time {
    font-size: 0.9rem;
  }

  .timeline-content {
    padding: 18px;
  }

  .timeline-content h4 {
    font-size: 1.1rem;
  }

  .registration {
    padding: 70px 0;
  }

  .registration-form-centered {
    padding: 25px;
  }

  .registration-form-centered h3 {
    font-size: 1.6rem;
  }

  .registration-form-centered > p {
    font-size: 1rem;
  }

  .registration-notes {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .google-form-link {
    padding: 14px 25px;
    font-size: 1.1rem;
  }

  .contact {
    padding: 70px 0;
  }

  .contact-card {
    padding: 25px;
  }

  .contact-card h3 {
    font-size: 1.2rem;
  }

  .footer {
    padding: 25px 0 12px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 30px;
  }

  .footer-logo span {
    font-size: 1.5rem;
  }

  .presents {
    color: var(--light);
    font-weight: bold;
  }
}

/* Mobile Devices (576px and below) */
@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 0.8rem;
  }

  .section-title::after {
    width: 60px;
    height: 3px;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .navbar {
    padding: 10px 0;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo i {
    font-size: 1.3rem;
  }

  .hero {
    min-height: 550px;
    padding-top: 70px;
  }

  .hero-content {
    padding: 0 15px;
  }

  .hero h4 {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 0.4rem;
  }

  .event-date {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .college-logo {
    max-width: 180px;
  }

  .countdown-container {
    padding: 20px 15px;
    margin: 25px auto;
  }

  .countdown-container h3 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .countdown {
    gap: 10px;
    justify-content: space-around;
  }

  .countdown-item {
    min-width: 70px;
    padding: 12px 6px;
  }

  .countdown-item span {
    font-size: 1.6rem;
  }

  .countdown-item p {
    font-size: 0.7rem;
    margin-top: 3px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 30px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .about {
    padding: 50px 0;
  }

  .about-text p {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 25px;
  }

  .stat {
    padding: 18px;
  }

  .stat h3 {
    font-size: 2.2rem;
  }

  .stat p {
    font-size: 0.85rem;
  }

  .events {
    padding: 50px 0;
  }

  .category-tabs {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 30px;
  }

  .tab-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .events-grid {
    gap: 20px;
  }

  .event-card {
    padding: 20px;
  }

  .event-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .event-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .event-card > p {
    font-size: 0.9rem;
    min-height: auto;
    margin-bottom: 15px;
  }

  .event-details {
    font-size: 0.85rem;
    gap: 8px;
    margin-bottom: 15px;
  }

  .event-toggle-btn {
    padding: 10px;
    font-size: 0.9rem;
  }

  .event-full-details h4 {
    font-size: 1rem;
    margin: 12px 0 8px;
  }

  .event-full-details p,
  .event-full-details li {
    font-size: 0.9rem;
  }

  .btn-register-event {
    padding: 12px 18px;
    font-size: 0.95rem;
    margin-top: 15px;
  }

  .team {
    padding: 50px 0;
  }

  .team-grid {
    gap: 20px;
  }

  .team-grid .team-card {
    flex: 0 1 100%;
    max-width: 100%;
  }

  .team-card {
    padding: 20px;
  }

  .team-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .team-card h3 {
    font-size: 1.1rem;
  }

  .team-card h4 {
    font-size: 1.3rem;
  }

  .committee-member h4 {
    font-size: 1rem;
  }

  .committee-member p {
    font-size: 0.85rem;
  }

  /* schedule removed (responsive rules) */

  .registration {
    padding: 50px 0;
  }

  .registration-form-centered {
    padding: 20px;
  }

  .registration-form-centered h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .registration-form-centered > p {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .registration-steps-container {
    padding: 20px;
    margin: 25px 0;
  }

  .registration-steps-container h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .registration-steps li {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .google-form-button {
    padding: 20px;
    margin: 25px 0;
  }

  .google-form-link {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
  }

  .google-form-link i {
    font-size: 1.2rem;
  }

  .form-note {
    font-size: 0.85rem;
  }

  .registration-notes {
    margin-top: 30px;
  }

  .note {
    padding: 18px;
  }

  .note i {
    font-size: 1.3rem;
  }

  .note h5 {
    font-size: 0.95rem;
  }

  .note p {
    font-size: 0.85rem;
  }

  .info-card {
    padding: 20px;
  }

  .info-card h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .info-card li {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .contact {
    padding: 50px 0;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .contact-person {
    margin-bottom: 15px;
    padding-bottom: 15px;
  }

  .contact-person h4 {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .contact-person p {
    font-size: 0.85rem;
  }

  .social-links {
    padding: 25px;
  }

  .social-links h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .social-icons {
    gap: 15px;
    font-size: 1.5rem;
    flex-wrap: wrap;
  }

  .footer {
    padding: 20px 0 10px;
  }

  .footer-logo i {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .footer-logo span {
    font-size: 1.3rem;
  }

  .footer-logo p {
    font-size: 0.85rem;
  }

  .footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .footer-links a {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .footer-newsletter h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .footer-newsletter p {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }

  .newsletter-form input {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .newsletter-form button {
    padding: 10px 20px;
  }

  .footer-bottom {
    padding-top: 8px;
    font-size: 0.7rem;
    line-height: 1.2;
  }
}

/* Extra Small Devices (480px and below) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .countdown {
    gap: 8px;
  }

  .countdown-item {
    min-width: 65px;
    padding: 10px 5px;
  }

  .countdown-item span {
    font-size: 1.4rem;
  }

  .countdown-item p {
    font-size: 0.65rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .event-card {
    padding: 18px;
  }
}

/* Landscape Mobile Devices */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 500px;
  }

  .countdown-container {
    padding: 20px;
  }

  .countdown-item {
    min-width: 80px;
  }
}

/* Modal for event details */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: white;
  max-width: 900px;
  width: 100%;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 80vh;
  overflow: auto;
}

.modal-content h2 {
  margin-top: 0;
}
.modal-close {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .college-logo.enlarged {
    max-width: 520px;
  }
  .logo {
    font-size: 1rem;
  }
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
  /* Make mobile navigation a full-screen accessible overlay when active */
  .nav-links.active {
    right: 0; /* slide in drawer */
    display: flex;
    z-index: 2000;
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 10px 6px;
    display: block;
    color: var(--primary);
  }

  /* Ensure Register button inside the drawer is compact */
  .nav-links .register-btn {
    padding: 8px 14px;
    font-size: 0.95rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Events: stack cards full width for easier reading */
  .events-grid {
    justify-content: center;
    gap: 18px;
  }

  .events-grid .event-card {
    flex: 0 1 100%;
    max-width: 100%;
  }

  /* Team cards: ensure comfortable spacing and touch targets */
  .team-grid .team-card {
    flex: 0 1 100%;
    max-width: 100%;
  }

  /* Modal adjustments */
  .modal-content {
    max-width: 95%;
    padding: 16px;
  }

  .modal-close {
    width: 100%;
    justify-content: center;
  }

  /* Improve tab and button touch targets */
  .tab-btn {
    padding: 12px 18px;
  }
  .event-toggle-btn {
    padding: 14px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  /* Tighten timeline for very small screens */
  .timeline-time {
    width: 110px;
    padding-right: 12px;
    --timeline-line-left: 122px;
    transform: translateY(6px);
  }

  /* schedule removed (small-screen tweaks) */

  .college-logo.enlarged {
    max-width: 360px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .nav-container {
    padding: 0 12px;
  }
}

@media (max-width: 900px) {
  .team-card.top {
    flex: 0 1 60%;
    max-width: 600px;
  }
  .team-card.bottom {
    flex: 0 1 calc(50% - 20px);
    max-width: 320px;
  }
}

@media (max-width: 576px) {
  .team-card,
  .team-card.top,
  .team-card.bottom {
    flex: 0 1 100%;
    max-width: 100%;
  }
}

/* Ensure anchored sections account for fixed navbar height */
section {
  scroll-margin-top: calc(var(--nav-height) + 8px);
}
