/* ============================================
   TMC Website - Design System & Styles
   Technology Management Club | IU Kelley School of Business
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Brand Colors */
  --color-blue: #01679b;
  --color-blue-dark: #014f78;
  --color-blue-light: #e8f4fa;
  --color-blue-muted: #0180c2;
  --color-maroon: #8f0002;
  --color-maroon-dark: #6d0001;
  --color-maroon-light: #fdf0f0;

  /* Neutrals */
  --color-white: #ffffff;
  --color-off-white: #f8f9fb;
  --color-gray-50: #f1f3f5;
  --color-gray-100: #e9ecef;
  --color-gray-200: #dee2e6;
  --color-gray-300: #ced4da;
  --color-gray-400: #adb5bd;
  --color-gray-500: #868e96;
  --color-gray-600: #656d78;
  --color-gray-700: #495057;
  --color-gray-800: #343a40;
  --color-gray-900: #212529;
  --color-black: #111318;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes (fluid scale) */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.85rem, 1.5rem + 1.75vw, 2.75rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-5xl: clamp(2.75rem, 2rem + 3.75vw, 4.5rem);

  /* Spacing (8px grid) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.5rem;    /* 24px */
  --space-6: 2rem;      /* 32px */
  --space-7: 2.5rem;    /* 40px */
  --space-8: 3rem;      /* 48px */
  --space-9: 4rem;      /* 64px */
  --space-10: 5rem;     /* 80px */
  --space-11: 6rem;     /* 96px */
  --space-12: 8rem;     /* 128px */

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.05);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-base: 350ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --header-height: 80px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-gray-800);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-blue-dark);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-gray-900);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  margin-bottom: var(--space-4);
  color: var(--color-gray-700);
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: var(--space-3);
  display: block;
}

.section-title {
  margin-bottom: var(--space-5);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-gray-600);
  max-width: 600px;
  line-height: 1.6;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-11) 0;
}

.section--alt {
  background-color: var(--color-off-white);
}

/* Past Events: solid dark to continue the timeline's gradient end */
#past-events {
  background-color: #000608;
  padding-top: var(--space-8);
}

#past-events .section-title {
  color: #fff;
}

.section--blue {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.section--blue .section-label {
  color: rgba(255, 255, 255, 0.7);
}

.section--blue .section-title,
.section--blue h2,
.section--blue h3,
.section--blue h4 {
  color: var(--color-white);
}

.section--blue p {
  color: rgba(255, 255, 255, 0.85);
}

/* Preserve event-card text colors inside blue sections (cards have white bg) */
.section--blue .event-card__title {
  color: var(--color-gray-900);
}

.section--blue .event-card__details {
  color: var(--color-gray-500);
}

.section--blue .event-card__description {
  color: var(--color-gray-600);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

.flex {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

.btn--primary:hover {
  background: var(--color-blue-dark);
  border-color: var(--color-blue-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.btn--secondary:hover {
  background: var(--color-blue);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-blue);
  border-color: var(--color-white);
}

.btn--white:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn--maroon {
  background: var(--color-maroon);
  color: var(--color-white);
  border-color: var(--color-maroon);
}

.btn--maroon:hover {
  background: var(--color-maroon-dark);
  border-color: var(--color-maroon-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-gray-100);
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.header__logo img {
  height: 93px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: clamp(1.43rem, 1.3rem + 0.5vw, 1.625rem);
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: 1.1;
}

.header__logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.91rem, 0.85rem + 0.25vw, 1.04rem);
  font-weight: 500;
  color: var(--color-gray-500);
  letter-spacing: 0.05em;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav__link:hover {
  color: var(--color-blue);
  background: var(--color-blue-light);
}

.nav__link.active {
  color: var(--color-blue);
  font-weight: 600;
}

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-4);
  right: var(--space-4);
  height: 2px;
  background: var(--color-blue);
  border-radius: 1px;
}

.nav__cta {
  margin-left: var(--space-3);
}

.nav__link.nav__cta {
  color: var(--color-white);
}

.nav__link.nav__cta:hover {
  background: var(--color-blue-dark);
  border-color: var(--color-blue-dark);
  color: var(--color-white);
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gray-800);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

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

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

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

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: visible; /* Allow logo drop-shadow glow to extend; overflow-x on html prevents scroll */
  background: linear-gradient(135deg, var(--color-gray-900) 0%, #1a2a3a 50%, var(--color-blue-dark) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(1, 103, 155, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(143, 0, 2, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero__grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  width: 100%;
}

.hero__content {
  max-width: 700px;
  flex-shrink: 0;
}

.hero__logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__logo {
  width: 420px;
  height: auto;
  max-width: min(420px, 40vw);
  object-fit: contain;
  filter: drop-shadow(0 0 36px rgba(255, 255, 255, 1))
          drop-shadow(0 0 72px rgba(255, 255, 255, 1))
          drop-shadow(0 0 120px rgba(255, 255, 255, 0.5));
  transition: transform var(--transition-base);
}

.hero__logo-wrap:hover .hero__logo {
  transform: scale(1.0625);
}

/* Text bulge on hover (same effect as logo) */
.text-bulge {
  display: inline-block;
  transition: transform var(--transition-base);
  cursor: default;
}

.text-bulge:hover {
  transform: scale(1.0625);
}

.hero__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero__label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.hero__title {
  font-size: var(--text-5xl);
  color: var(--color-white);
  margin-bottom: var(--space-5);
  line-height: 1.1;
}

.hero__title em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
}

.hero__description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-7);
  max-width: 540px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: var(--space-9);
  margin-top: var(--space-10);
  padding-top: var(--space-7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
  text-align: left;
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Card Components --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--color-gray-100);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-gray-100);
}

.card__body {
  padding: var(--space-5);
}

.card__tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.card__tag--workshop {
  background: #e3f2fd;
  color: #1565c0;
}

.card__tag--networking {
  background: #e8f5e9;
  color: #2e7d32;
}

.card__tag--competition {
  background: #fff3e0;
  color: #e65100;
}

.card__tag--social {
  background: #fce4ec;
  color: #c62828;
}

.card__tag--speaker {
  background: #f3e5f5;
  color: #6a1b9a;
}

.card__tag--professional-development {
  background: #e3f2fd;
  color: #01679b;
}

.card__tag--technology-committee {
  background: #f3e5f5;
  color: #6a1b9a;
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  color: var(--color-gray-900);
}

.card__meta {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.card__meta-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.card__description {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-gray-100);
}

/* Event Card Variations */
.event-card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-100);
  transition: all var(--transition-base);
}

.event-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-blue-light);
}

.event-card__date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  padding: var(--space-3) 0;
}

/* Center icon in activity cards (event-card__date with SVG) */
.event-card__date:has(> svg) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card__date-month {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-blue);
}

.event-card__date-day {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: 1.2;
}

.event-card__content {
  flex: 1;
  min-width: 0;
}

.event-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-1);
}

.event-card__details {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--space-2);
}

.event-card__description {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.6;
}

.event-card__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Compact spacing for upcoming-event lists after description removal */
#homeUpcomingEvents .event-card,
#eventsList .event-card {
  padding: var(--space-4);
  gap: var(--space-4);
}

#homeUpcomingEvents .event-card__details,
#eventsList .event-card__details {
  margin-bottom: 0;
}

/* --- Testimonial Card --- */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  border: 1px solid var(--color-gray-100);
  position: relative;
  box-shadow: var(--shadow-md);
}

.testimonial-card__quote {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-gray-800);
  line-height: 1.6;
  margin-bottom: var(--space-5);
}

.testimonial-card__quote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--color-blue);
  opacity: 0.3;
  line-height: 0;
  display: block;
  margin-bottom: var(--space-3);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-gray-200);
}

.testimonial-card__name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-gray-900);
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
}

/* --- Testimonial Carousel --- */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-carousel__track {
  display: flex;
  transition: transform 600ms var(--ease-out);
}

.testimonial-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 var(--space-2);
}

.testimonial-carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.testimonial-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gray-300);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.testimonial-carousel__dot.active {
  background: var(--color-blue);
  transform: scale(1.3);
}

/* Dots on blue sections need lighter colors */
.section--blue .testimonial-carousel__dot {
  background: rgba(255, 255, 255, 0.35);
}

.section--blue .testimonial-carousel__dot.active {
  background: var(--color-white);
}

/* --- Exec Board --- */
.exec-board__presidents {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
}

.exec-board__vps {
  margin-top: var(--space-8);
  align-items: stretch;
}

/* --- Exec Board Cards --- */
a.exec-card {
  text-decoration: none;
  color: inherit;
}

.exec-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  padding: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-100);
  transition: all var(--transition-base);
}

.exec-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.exec-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-4);
  background: var(--color-gray-200);
  border: 3px solid var(--color-blue-light);
}

.exec-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-1);
}

.exec-card__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-blue);
  margin-bottom: var(--space-3);
}

.exec-card__info {
  flex: 1;
}

.exec-card__bio {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-1);
}

.exec-card__class {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* --- Committee / Student Leadership --- */
.committee-featured {
  display: flex;
  gap: var(--space-7);
  padding: var(--space-7);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-100);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.committee-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue) 0%, var(--color-maroon) 100%);
}

.committee-featured:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-blue-light);
}

.committee-featured__icon-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.committee-featured__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
}

.committee-featured:hover .committee-featured__icon {
  transform: scale(1.08);
}

.committee-featured__icon--tech {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
  color: var(--color-white);
}

.committee-featured__icon svg {
  width: 36px;
  height: 36px;
}

.committee-featured__badge {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-blue);
  background: var(--color-blue-light);
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.committee-featured__content {
  flex: 1;
  min-width: 0;
}

.committee-featured__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-3);
}

.committee-featured__description {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.committee-featured__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.committee-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-gray-600);
  background: var(--color-gray-50);
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
  border: 1px solid var(--color-gray-200);
}

/* Committee Grid */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.committee-card {
  position: relative;
  padding: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-100);
  transition: all var(--transition-base);
  overflow: hidden;
}

.committee-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.committee-card__icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  transition: transform var(--transition-base);
}

.committee-card:hover .committee-card__icon-wrap {
  transform: scale(1.1);
}

.committee-card__icon-wrap svg {
  width: 26px;
  height: 26px;
}

.committee-card__icon-wrap--finance {
  background: #e8f5e9;
  color: #2e7d32;
}

.committee-card__icon-wrap--outreach {
  background: #fff3e0;
  color: #e65100;
}

.committee-card__icon-wrap--profdev {
  background: #e3f2fd;
  color: #1565c0;
}

.committee-card__icon-wrap--marketing {
  background: #fce4ec;
  color: #c62828;
}

.committee-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
}

.committee-card__description {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.7;
  margin-bottom: 0;
}

.committee-card__line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.committee-card:hover .committee-card__line {
  transform: scaleX(1);
}

.committee-card__line--finance { background: #2e7d32; }
.committee-card__line--outreach { background: #e65100; }
.committee-card__line--profdev { background: #1565c0; }
.committee-card__line--marketing { background: #c62828; }

/* Committee Callout */
.committee-callout {
  background: linear-gradient(135deg, var(--color-gray-900) 0%, #1a2a3a 60%, var(--color-blue-dark) 100%);
  padding: var(--space-10) 0;
  position: relative;
  overflow: hidden;
}

.committee-callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.committee-callout__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.committee-callout__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.committee-callout__text {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

/* Remove section bottom padding so committee-callout meets footer without white bar */
#student-leadership {
  padding-bottom: 0;
}

/* ============================================
   Reusable Section Header Style
   (Student Leadership style for white-bg sections)
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
  max-width: 36rem;
  margin-inline: auto;
}

.section-header .section-header__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-maroon);
  margin-bottom: var(--space-3);
}

.section-header .section-header__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-blue-dark);
  margin: 0 0 var(--space-4);
}

.section-header .section-header__subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  margin: 0;
  line-height: 1.5;
}

.section-header .section-header__accent {
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--color-maroon), var(--color-blue));
  margin: var(--space-5) auto 0;
  border-radius: 2px;
}

/* ============================================
   Student Leadership Section (sl-* design)
   ============================================ */
.student-leadership .sl-header {
  text-align: center;
  margin-bottom: var(--space-8);
  max-width: 36rem;
  margin-inline: auto;
}

.student-leadership .sl-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-maroon);
  margin-bottom: var(--space-3);
}

.student-leadership .sl-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-blue-dark);
  margin: 0 0 var(--space-4);
}

.student-leadership .sl-subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  margin: 0;
  line-height: 1.5;
}

.student-leadership .sl-accent-line {
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--color-maroon), var(--color-blue));
  margin: var(--space-5) auto 0;
  border-radius: 2px;
}

.student-leadership .sl-featured {
  margin-bottom: var(--space-9);
}

.student-leadership .sl-featured-card {
  position: relative;
  background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue) 100%);
  color: var(--color-white);
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 42rem;
  margin-inline: auto;
  box-shadow: 0 8px 32px rgba(1, 103, 155, 0.2);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.student-leadership .sl-featured-card:hover {
  box-shadow: 0 12px 40px rgba(1, 103, 155, 0.28);
  transform: translateY(-2px);
}

.student-leadership .sl-featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.06) 100%);
  pointer-events: none;
}

.student-leadership .sl-featured-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-3);
}

.student-leadership .sl-featured-icon svg {
  width: 100%;
  height: 100%;
  color: #fff;
}

.student-leadership .sl-featured-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(255, 255, 255, 0.25);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
}

.student-leadership .sl-featured-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: #fff;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.02em;
}

.student-leadership .sl-featured-tagline {
  font-size: var(--text-base);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 var(--space-4);
}

.student-leadership .sl-featured-desc {
  font-size: var(--text-base);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 var(--space-5);
}

.student-leadership .sl-featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.student-leadership .sl-featured-tags li {
  font-size: var(--text-xs);
  font-weight: 500;
  color: #fff;
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.student-leadership .sl-divider-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-600);
  margin: 0 0 var(--space-5);
  text-align: center;
  position: relative;
}

.student-leadership .sl-divider-label::before,
.student-leadership .sl-divider-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20%;
  max-width: 6rem;
  height: 1px;
  background: var(--color-gray-300);
}

.student-leadership .sl-divider-label::before {
  left: 0;
}

.student-leadership .sl-divider-label::after {
  right: 0;
}

.student-leadership .sl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-9);
}

.student-leadership .sl-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.student-leadership .sl-card:hover {
  border-color: var(--color-blue);
  box-shadow: 0 6px 24px rgba(1, 103, 155, 0.12);
  transform: translateY(-2px);
}

.student-leadership .sl-card:focus-within {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.student-leadership .sl-grid .sl-card:nth-child(1),
.student-leadership .sl-grid .sl-card:nth-child(3) {
  padding-top: var(--space-6);
}

.student-leadership .sl-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-blue-dark);
  margin: 0 0 var(--space-3);
}

.student-leadership .sl-card-desc {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .student-leadership .sl-header {
    margin-bottom: var(--space-6);
  }

  .student-leadership .sl-featured-card {
    padding: var(--space-6) var(--space-5);
  }

  .student-leadership .sl-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
  }

  .student-leadership .sl-grid .sl-card:nth-child(1),
  .student-leadership .sl-grid .sl-card:nth-child(3) {
    padding-top: var(--space-5);
  }

  .student-leadership .sl-divider-label::before,
  .student-leadership .sl-divider-label::after {
    width: 15%;
  }
}

/* Committee responsive */
@media (max-width: 768px) {
  /* Keep committee-featured horizontal — just reduce padding */
  .committee-featured {
    gap: var(--space-4);
    padding: var(--space-5);
  }

  /* Committee grid: 2 columns instead of 1 to mirror desktop */
  .committee-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

/* --- Event Filter Tabs --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
}

.filter-btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-600);
  border: 1px solid var(--color-gray-200);
  border-radius: 100px;
  background: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.filter-btn.active {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

/* --- Image Gallery / Carousel --- */
.gallery {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.gallery__track {
  display: flex;
  transition: transform 500ms var(--ease-out);
}

.gallery__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.gallery__slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  z-index: 5;
}

.gallery__nav:hover {
  background: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

.gallery__nav--prev { left: var(--space-4); }
.gallery__nav--next { right: var(--space-4); }

.gallery__dots {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
}

.gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.gallery__dot.active {
  background: var(--color-white);
  transform: scale(1.3);
}

/* --- Instagram Feed --- */
.instagram-feed-wrapper {
  position: relative;
}

/* Mask the Elfsight free-plan watermark area without hiding posts */
.instagram-feed-wrapper::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px;
  width: 240px;
  height: 33px;
  background: var(--color-white);
  border-radius: 999px;
  z-index: 20;
  pointer-events: none;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.instagram-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.instagram-item:hover img {
  transform: scale(1.05);
}

.instagram-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.instagram-item:hover .instagram-item__overlay {
  opacity: 1;
}

.instagram-item__overlay svg {
  width: 32px;
  height: 32px;
  color: white;
}

/* --- Contact Form --- */
.form {
  max-width: 600px;
}

.form__group {
  margin-bottom: var(--space-5);
}

.form__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: var(--space-2);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-gray-800);
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px var(--color-blue-light);
}

.form__input.error,
.form__textarea.error,
.form__select.error {
  border-color: var(--color-maroon);
  box-shadow: 0 0 0 3px var(--color-maroon-light);
}

.form__error {
  font-size: var(--text-xs);
  color: var(--color-maroon);
  margin-top: var(--space-1);
  display: none;
}

.form__error.visible {
  display: block;
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__success {
  padding: var(--space-5);
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius-md);
  color: #2e7d32;
  text-align: center;
  display: none;
}

.form__success.visible {
  display: block;
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--color-gray-200);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-gray-800);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--color-blue);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.open .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer p {
  padding-bottom: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--color-gray-900);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-6) 0 var(--space-4);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
  max-width: 720px;
  margin: 0 auto;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer__contact-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__brand {
  max-width: 100%;
}

.footer__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer__logo img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
  line-height: 1.2;
}

.footer__description {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

.footer__social a svg {
  width: 20px;
  height: 20px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer__links li {
  margin-bottom: var(--space-2);
}

.footer__links li:last-child {
  margin-bottom: 0;
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

.footer__contact-icon svg {
  width: 18px;
  height: 18px;
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }

/* Hero animations */
.hero__content > * {
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.hero__content > *:nth-child(1) { animation-delay: 0.2s; }
.hero__content > *:nth-child(2) { animation-delay: 0.35s; }
.hero__content > *:nth-child(3) { animation-delay: 0.5s; }
.hero__content > *:nth-child(4) { animation-delay: 0.65s; }

.hero__logo-wrap {
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero__stats {
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.9s forwards;
}

/* Page banner animations */
.page-banner__content > * {
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.page-banner__content > *:nth-child(1) { animation-delay: 0.2s; }
.page-banner__content > *:nth-child(2) { animation-delay: 0.35s; }
.page-banner__content > *:nth-child(3) { animation-delay: 0.5s; }

/* --- Past Event Cards --- */
.past-event {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.past-event__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.past-event--logo-placeholder {
  background-color: #e8f0f5;
}

.past-event--logo-placeholder .past-event__image {
  object-fit: cover;
  object-position: center;
}

.past-event:hover .past-event__image {
  transform: scale(1.05);
}

.past-event__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-5);
}

.past-event__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-white);
  margin-bottom: var(--space-1);
}

.past-event__date {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
}

/* --- Value Proposition / Features Grid --- */
.value-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  transition: all var(--transition-base);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-blue-light);
}

.value-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-blue-light);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.value-card__icon svg {
  width: 24px;
  height: 24px;
}

.value-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
}

.value-card__description {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* ============================================
   WHO WE ARE - CONNECTING FLOW DESIGN
   ============================================ */

.cards-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.cards-wrapper::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-blue-light) 15%,
    var(--color-blue-light) 85%,
    transparent 100%);
  z-index: 0;
  opacity: 0.8;
}

.value-card--connected {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  transition: all var(--transition-base);
}

.value-card--connected:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-blue-light);
  transform: translateY(-4px);
}

.value-card__step {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--color-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-body);
  box-shadow: 0 2px 8px rgba(1, 103, 155, 0.3);
  z-index: 2;
}

.value-card__icon--circular {
  margin: 0 auto var(--space-4);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--color-blue-light);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.value-card__icon--circular svg {
  width: 28px;
  height: 28px;
  color: var(--color-blue);
  transition: all var(--transition-base);
}

.value-card--connected:hover .value-card__icon--circular {
  border-color: var(--color-blue);
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(1, 103, 155, 0.3);
}

.value-card--connected:hover .value-card__icon--circular svg {
  transform: scale(1.1);
}

.value-card--connected .value-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
}

.value-card--connected .value-card__description {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .cards-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .cards-wrapper::before {
    display: none;
  }

  .value-card__step {
    top: -14px;
  }
}

/* --- Page Banner (for inner pages) --- */
.page-banner {
  background: linear-gradient(135deg, var(--color-gray-900) 0%, #1a2a3a 60%, var(--color-blue-dark) 100%);
  padding: var(--space-12) 0 var(--space-10);
  padding-top: calc(var(--header-height) + var(--space-10));
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-banner__content {
  position: relative;
  z-index: 2;
}

.page-banner__label {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.page-banner__label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.page-banner__title {
  font-size: var(--text-4xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.page-banner__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .hero__stats {
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--color-white);
    padding: calc(var(--header-height) + var(--space-6)) var(--space-6) var(--space-6);
    transition: right var(--transition-base);
    box-shadow: var(--shadow-xl);
    z-index: 999;
  }

  .nav.open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
  }

  .nav__link {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
  }

  .nav__link.active::after {
    display: none;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: var(--space-4);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
  }

  .nav-overlay.active {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-8);
  }

  .hero__layout {
    /* Stack vertically on mobile: logo on top, text + buttons below */
    flex-direction: column;
    gap: var(--space-5);
    align-items: center;
    text-align: center;
  }

  .hero__logo-wrap {
    order: -1; /* pull logo above the text content */
  }

  .hero__logo {
    /* ~3× the old 110 px mobile size */
    width: min(300px, 78vw);
    max-width: min(300px, 78vw);
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.95))
            drop-shadow(0 0 40px rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 70px rgba(255, 255, 255, 0.45));
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-5);
  }

  .hero__stat {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }

  .section {
    padding: var(--space-9) 0;
  }

  .container {
    padding: 0 var(--space-4);
  }

  /* Keep multi-column grids — mirror the desktop, just smaller */
  /* .grid--2 intentionally omitted: stays repeat(2, 1fr) */
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 { grid-template-columns: repeat(3, 1fr); }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer__contact {
    align-items: flex-start;
  }

  .footer__logo-text {
    white-space: normal;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  /* Event cards: keep horizontal (date | info | action) — don't stack */
  .event-card__date {
    width: 52px;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-2);
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .page-banner {
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-8);
  }

  /* --- Header: shrink logo to fit 64px mobile header --- */
  .header__logo img {
    height: 50px;
  }
  .header__logo {
    min-width: 0;
    flex-shrink: 1;
    max-width: calc(100% - 56px);
  }

  /* --- Hero: centered text below big logo --- */
  .hero__content {
    width: 100%;
    text-align: center;
  }
  .hero__title {
    font-size: clamp(1.4rem, 5vw + 0.3rem, 2.2rem);
    margin-bottom: var(--space-3);
  }
  .hero__description {
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
  }
  .hero__actions {
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero__actions .btn {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
  }

  /* --- Exec cards: compact so they fit in smaller grid cells --- */
  .exec-card {
    padding: var(--space-3);
  }
  .exec-card__photo {
    width: 72px;
    height: 72px;
  }
  .exec-card__name {
    font-size: var(--text-sm);
  }
  .exec-card__bio,
  .exec-card__class {
    font-size: var(--text-xs);
  }

  /* --- Value / feature cards: compact padding for 3-up layout --- */
  .cards-wrapper {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-top: var(--space-7);
  }
  .value-card--connected {
    padding: var(--space-5) var(--space-3);
  }
  .value-card__icon--circular {
    width: 48px;
    height: 48px;
  }
  .value-card--connected .value-card__title {
    font-size: var(--text-base);
  }
  .value-card--connected .value-card__description {
    font-size: var(--text-xs);
  }

  /* --- Past events: keep 3-column to mirror desktop --- */
  #pastEventsGrid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--space-3);
  }

  /* --- Inline-style grids (about/join pages): stack to single column ---
     Our Mission: group photo moves below the text
     Join page:   Spring 2026 Applications moves below Getting Started  */
  .section .grid[style] {
    grid-template-columns: 1fr !important;
    gap: var(--space-6) !important;
  }

  /* Exec board grids have inline margin styles too — keep them multi-column.
     Must use .section .exec-board__*[style] to match the specificity (0,3,0)
     of the .section .grid[style] rule above so !important tie goes to the
     later (this) declaration. */
  .section .exec-board__presidents[style] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .section .exec-board__vps[style] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* --- What We Do (about page): fix card overflow in 2-col grid ---
     An 88px icon + 24px padding + 24px gap exceeds each ~155px cell.
     Switch cards to column layout (icon above text) and scale down.  */
  .section--blue .grid--2 {
    gap: var(--space-3);
  }
  .section--blue .grid--2 .event-card {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-3);
    gap: var(--space-2);
  }
  .section--blue .grid--2 .event-card__icon-box {
    width: 48px;
    height: 48px;
  }
  .section--blue .grid--2 .event-card__icon-box svg {
    width: 36px !important;
    height: 36px !important;
  }
  .section--blue .grid--2 .event-card__title {
    font-size: var(--text-base);
  }
  .section--blue .grid--2 .event-card__description {
    font-size: var(--text-xs);
    line-height: 1.5;
  }

  /* --- Instagram widget: prevent horizontal overflow --- */
  .instagram-feed-wrapper {
    overflow: hidden;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  /* Hero actions: keep buttons side-by-side on very small screens */
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Hide "Technology Management Club" subtitle on very small screens
     to stop the header logo from pushing the hamburger off-screen */
  .header__logo-text span {
    display: none;
  }

  /* Slightly smaller logo on very small screens */
  .header__logo img {
    height: 40px;
  }

  /* Past events: drop to 2-col on very small screens (3 is too tiny) */
  #pastEventsGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-2);
  }

  /* Exec-board VPs: drop to 2-col on very small screens */
  .exec-board__vps {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Skip to Content Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: var(--radius-md);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
  color: var(--color-white);
}

/* ============================================
   INTERACTIVE EVENT ICONS (WHAT WE DO)
   ============================================ */

.event-card__icon-box {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue-light);
  border-radius: var(--radius-md);
}

/* Generic icon styling */
.icon-speaker,
.icon-network,
.icon-workshop,
.icon-growth {
  overflow: visible;
  transition: transform var(--transition-base);
}

.event-card:hover .icon-speaker,
.event-card:hover .icon-network,
.event-card:hover .icon-workshop,
.event-card:hover .icon-growth {
  transform: scale(1.05);
}

/* 1. Guest Speakers Icon */
.icon-speaker .soundwave {
  opacity: 0;
  transform: scale(0.8);
  transform-origin: center;
  transition: all var(--transition-base);
}

.event-card:hover .icon-speaker .soundwave {
  animation: pulse-wave 1.5s infinite var(--ease-out);
}

.event-card:hover .icon-speaker .sw-outer-left,
.event-card:hover .icon-speaker .sw-outer-right {
  animation-delay: 0.3s;
}

@keyframes pulse-wave {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.05); filter: drop-shadow(0 0 2px var(--color-blue-muted)); }
  100% { opacity: 0; transform: scale(1.2); }
}

/* 2. Networking Icon */
.icon-network .net-line {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.4s var(--ease-out);
}

.event-card:hover .icon-network .net-line {
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 2px var(--color-blue-muted));
}

.icon-network .outer-node {
  transition: fill 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  transform-origin: center;
}

.event-card:hover .icon-network .outer-node {
  fill: var(--color-blue-dark);
  transform: scale(1.2);
}

/* Stagger networking lines and nodes */
.event-card:hover .icon-network .nl-1 { transition-delay: 0s; }
.event-card:hover .icon-network .on-1 { transition-delay: 0.15s; }

.event-card:hover .icon-network .nl-2 { transition-delay: 0.15s; }
.event-card:hover .icon-network .on-2 { transition-delay: 0.3s; }

.event-card:hover .icon-network .nl-3 { transition-delay: 0.3s; }
.event-card:hover .icon-network .on-3 { transition-delay: 0.45s; }

.event-card:hover .icon-network .nl-4 { transition-delay: 0.45s; }
.event-card:hover .icon-network .on-4 { transition-delay: 0.6s; }

.event-card:hover .icon-network .nl-5 { transition-delay: 0.6s; }
.event-card:hover .icon-network .nl-6 { transition-delay: 0.75s; }

/* 3. Workshops Icon */
.icon-workshop .bar-chart {
  transform: scaleY(0);
  transform-origin: center 34px;
  transition: transform 0.6s var(--ease-out);
}

.event-card:hover .icon-workshop .bar-chart {
  filter: drop-shadow(0 -2px 3px rgba(1, 103, 155, 0.4));
  transform: scaleY(1);
}

.event-card:hover .icon-workshop .bc-1 { transition-delay: 0s; }
.event-card:hover .icon-workshop .bc-2 { transition-delay: 0.1s; }
.event-card:hover .icon-workshop .bc-3 { transition-delay: 0.2s; }

/* 4. Professional Growth Icon */
.icon-growth .growth-leaf {
  transition: all 0.5s var(--ease-out);
}

.icon-growth .gl-base-left { transform-origin: 24px 28px; transform: scale(0.8); }
.icon-growth .gl-base-right { transform-origin: 24px 22px; transform: scale(0.8); }
.icon-growth .gl-new-left { transform-origin: 24px 16px; transform: scale(0); opacity: 0; }
.icon-growth .gl-new-right { transform-origin: 24px 10px; transform: scale(0); opacity: 0; }

.event-card:hover .icon-growth .gl-base-left,
.event-card:hover .icon-growth .gl-base-right {
  transform: scale(1);
}

.event-card:hover .icon-growth .gl-base-right {
  transition-delay: 0.1s;
}

.event-card:hover .icon-growth .gl-new-left {
  transform: scale(1);
  opacity: 1;
  transition-delay: 0.2s;
}

.event-card:hover .icon-growth .gl-new-right {
  transform: scale(1);
  opacity: 1;
  transition-delay: 0.3s;
  filter: drop-shadow(0 0 3px rgba(1, 103, 155, 0.3));
}

/* ============================================
   TIMELINE EVENTS SECTION
   Dark-themed animated timeline for Upcoming Events
   ============================================ */

/* Section base */
.timeline-section {
  /* Extend blue further before fading to near-black */
  background: linear-gradient(180deg,
    var(--color-blue-dark) 0%,
    #02446a 15%,
    #032030 35%,
    #021018 60%,
    #010810 85%,
    #000608 100%
  );
  /* Offset for fixed header since the banner is gone */
  padding-top: calc(var(--header-height) + var(--space-9));
  position: relative;
}

.timeline-section .section-label {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-1);
}

.timeline-section .section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.timeline-section .section-title {
  color: #fff;
  font-size: var(--text-4xl);
  margin-bottom: var(--space-3);
}

.timeline-section .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 560px;
}

/* Dark filter bar overrides */
.timeline-section .filter-bar {
  background: transparent;
  border: none;
  padding: 0;
  gap: var(--space-3);
  margin-top: var(--space-7);
}

.timeline-section .filter-btn {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 9px 22px;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-section .filter-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 14px rgba(160, 200, 230, 0.15), 0 0 6px rgba(160, 200, 230, 0.08);
}

.timeline-section .filter-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 18px rgba(180, 210, 240, 0.2), 0 0 8px rgba(180, 210, 240, 0.1);
}

/* Download all button (dark variant) */
.timeline__download-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 9px 20px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline__download-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 14px rgba(160, 200, 230, 0.15), 0 0 6px rgba(160, 200, 230, 0.08);
}

/* ---- Reset legacy .event-card styles on timeline items ---- */
.timeline-section .event-card,
.timeline-section #eventsList .event-card {
  display: grid;
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  gap: 0;
}

.timeline-section .event-card:hover {
  box-shadow: none;
  border-color: transparent;
}

/* ---- Timeline container ---- */
.timeline {
  position: relative;
}

/* Static background line */
.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
  pointer-events: none;
}

/* Scroll-driven progress line */
.timeline__progress {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.2) 100%);
  transform: translateX(-50%);
  pointer-events: none;
  will-change: height;
}

/* ---- Timeline items ---- */
.timeline__item {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: start;
  margin-bottom: var(--space-9);
  /* Slide-in animation state (activated by .visible class) */
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

/* Even items slide from right */
.timeline__item:nth-child(even) {
  transform: translateX(40px);
}

.timeline__item.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered entry delays */
/* Base 0.25s delay before each card animates in, plus a small stagger */
.timeline__item:nth-child(1) { transition-delay: 0.25s; }
.timeline__item:nth-child(2) { transition-delay: 0.33s; }
.timeline__item:nth-child(3) { transition-delay: 0.41s; }
.timeline__item:nth-child(4) { transition-delay: 0.49s; }
.timeline__item:nth-child(5) { transition-delay: 0.57s; }
.timeline__item:nth-child(6) { transition-delay: 0.65s; }

/* ---- Timeline node (center dot column) ---- */
.timeline__node {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
  padding-top: var(--space-5);
  z-index: 2;
}

.timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #000;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
  position: relative;
  flex-shrink: 0;
  z-index: 2;
}

.timeline__dot-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: tl-dot-pulse 2.8s ease-in-out infinite;
}

/* ---- Card wrapper positioning (alternating) ---- */
.timeline__card-wrapper {
  min-width: 0; /* prevent grid overflow */
}

/* Odd items: card on LEFT */
.timeline__item:nth-child(odd) .timeline__card-wrapper {
  grid-column: 1;
  grid-row: 1;
  padding-right: var(--space-6);
}

/* Even items: card on RIGHT */
.timeline__item:nth-child(even) .timeline__card-wrapper {
  grid-column: 3;
  grid-row: 1;
  padding-left: var(--space-6);
}

/* ---- Card ---- */
.timeline__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  /* Gray/white glow so cards stand out from the dark blue background */
  box-shadow:
    0 4px 28px rgba(180, 200, 220, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
  transition: transform var(--transition-base), border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.timeline__card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 8px 40px rgba(180, 210, 235, 0.18),
    0 0 32px rgba(180, 210, 235, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

/* Subtle radial glow on hover */
.timeline__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.timeline__card:hover::after {
  opacity: 1;
}

/* ---- Card header ---- */
.timeline__card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.timeline__date-box {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.timeline__date-month {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
}

.timeline__date-day {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.timeline__card-info {
  flex: 1;
  min-width: 0;
}

.timeline__tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 9999px;
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--space-2);
}

.timeline__tag--professional-development {
  background: rgba(1, 128, 194, 0.22);
  color: #62c0f0;
}

.timeline__tag--technology-committee {
  background: rgba(143, 0, 2, 0.28);
  color: #f07090;
}

.timeline__card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  transition: color var(--transition-fast);
}

.timeline__card:hover .timeline__card-title {
  color: rgba(255, 255, 255, 0.88);
}

/* ---- Card meta ---- */
.timeline__card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: var(--space-5);
}

.timeline__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.timeline__meta-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ---- Card actions ---- */
.timeline__card-actions {
  display: flex;
}

.timeline__add-cal-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.timeline__add-cal-btn:hover {
  transform: translateY(-1px);
}

.timeline__add-cal-btn--professional-development {
  background: rgba(1, 128, 194, 0.15);
  color: #62c0f0;
  border-color: rgba(1, 128, 194, 0.28);
}

.timeline__add-cal-btn--professional-development:hover {
  background: rgba(1, 128, 194, 0.28);
}

.timeline__add-cal-btn--technology-committee {
  background: rgba(143, 0, 2, 0.18);
  color: #f07090;
  border-color: rgba(143, 0, 2, 0.3);
}

.timeline__add-cal-btn--technology-committee:hover {
  background: rgba(143, 0, 2, 0.32);
}

/* ---- Dot pulse animation ---- */
@keyframes tl-dot-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0;
    transform: scale(2);
  }
}

/* ---- Pulse glow for custom scrollbar ---- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.4); }
  50% { box-shadow: 0 0 22px rgba(255, 255, 255, 0.75); }
}

/* Custom scrollbar (dark theme) */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.28); }

/* ---- Responsive ---- */

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .timeline__item {
    grid-template-columns: 1fr 52px 1fr;
  }

  .timeline__item:nth-child(odd) .timeline__card-wrapper {
    padding-right: var(--space-5);
  }

  .timeline__item:nth-child(even) .timeline__card-wrapper {
    padding-left: var(--space-5);
  }
}

/* Mobile: single column with left-side line */
@media (max-width: 767px) {
  .timeline__line,
  .timeline__progress {
    left: 20px;
    transform: none;
  }

  .timeline__item {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto;
    /* Override directional slide for mobile */
    transform: translateY(24px);
    margin-bottom: var(--space-7);
  }

  .timeline__item:nth-child(even) {
    transform: translateY(24px);
  }

  .timeline__item.visible {
    transform: translateY(0);
  }

  .timeline__node {
    grid-column: 1;
    grid-row: 1;
  }

  /* Both odd and even: card takes the right column on mobile */
  .timeline__item:nth-child(odd) .timeline__card-wrapper,
  .timeline__item:nth-child(even) .timeline__card-wrapper {
    grid-column: 2;
    grid-row: 1;
    padding-right: 0;
    padding-left: var(--space-3);
  }

  .timeline__card {
    padding: var(--space-5);
  }

  .timeline__card-header {
    gap: var(--space-3);
  }

  .timeline__date-box {
    width: 50px;
    height: 50px;
  }

  .timeline__date-day {
    font-size: var(--text-xl);
  }

  .timeline-section .filter-bar {
    flex-wrap: wrap;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .timeline__item,
  .timeline__item:nth-child(even) {
    transform: none;
    opacity: 1;
    transition: none;
  }

  .timeline__dot-ring {
    animation: none;
  }

  .timeline__progress {
    height: 100% !important;
  }
}

/* ======================================================
   Join Page — Getting Started steps (vertical line + progress)
   Vertical blue gradient line through step circles; scroll-driven fill.
   ====================================================== */
.steps-timeline {
  position: relative;
}

/* Static track: line from step 1 to step 3 circle centers (height set by JS) */
.steps-timeline__line {
  position: absolute;
  left: 20px; /* center of 40px circle */
  top: 0;
  width: 2px;
  height: 0; /* set by JS to match step 1 → step 3 */
  background: linear-gradient(to bottom, rgba(1, 103, 155, 0.25) 0%, rgba(1, 103, 155, 0.15) 100%);
  transform: translateX(-50%);
  pointer-events: none;
}

/* Scroll-driven progress: solid blue fill (no gradient fade so it reaches step 3 clearly) */
.steps-timeline__progress {
  position: absolute;
  left: 20px;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--color-blue);
  transform: translateX(-50%);
  pointer-events: none;
  will-change: height;
}

.steps-timeline__item {
  position: relative;
  z-index: 1;
}

/* Progress height is set by JS to match line (step 1 → step 3); reduced-motion handled in JS */

/* ======================================================
   Join Page — Info Cards (light-mode timeline-style)
   Mirrors the shape, border, and glow of .timeline__card
   but adapted for a white / light-blue-tinted background.
   ====================================================== */
.join-info-card {
  background: var(--color-blue-light);
  border: 1px solid rgba(1, 103, 155, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(1, 103, 155, 0.09),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.join-info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(1, 103, 155, 0.35);
  box-shadow:
    0 10px 40px rgba(1, 103, 155, 0.15),
    0 0 28px rgba(1, 103, 155, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.join-info-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% 0%, rgba(1, 103, 155, 0.07) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.join-info-card:hover::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .join-info-card {
    transition: none;
  }
  .join-info-card::after {
    transition: none;
  }
}
