/* ============================================================
   R.V.R. & J.C. COLLEGE OF ENGINEERING — Dept. of CSE
   Global Stylesheet
   ============================================================ */

:root {
  /* ---- Palette (drawn from the college identity) ---- */
  --navy: #0b1f4d;
  /* deep institutional blue — nav / hero panels */
  --navy-dark: #071433;
  --blue: #14509e;
  /* primary action blue */
  --blue-dark: #0d3a78;
  --blue-soft: #eaf1fb;
  /* pale blue tint for section backgrounds */
  --gold: #c8a13a;
  /* ceremonial gold accent */
  --crimson: #c8102e;
  /* college title red */
  --white: #ffffff;
  --ink: #1b2233;
  /* body text */
  --ink-soft: #5b6376;
  /* secondary text */
  --line: #e2e7f0;
  /* hairline borders */

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(11, 31, 77, .08);
  --shadow-md: 0 6px 24px rgba(11, 31, 77, .12);
  --shadow-lg: 0 16px 48px rgba(11, 31, 77, .18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* ---- Floating Connected Tech Nodes Canvas Backdrop ---- */
#tech-nodes-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0 0 .5em;
  color: var(--navy);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   TOP IDENTITY BANNER
   ============================================================ */
.top-banner {
  position: relative;
  z-index: 10;
  width: 100%;
  background: var(--white);
  border-bottom: 3px solid var(--navy);
}

.top-banner img {
  width: 100%;
  height: auto;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
  background: var(--navy);
  background-image: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  transition: transform 0.2s ease;
}

.nav-brand:hover {
  transform: translateY(-1px);
}

.nav-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: transparent;
}

.nav-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav-brand-title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .02em;
}

.nav-brand-subtitle {
  font-family: var(--font-body);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 3px;
}

.nav-brand-subtitle span {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 3px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  display: inline-block;
  padding: 10px 20px;
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  border-radius: var(--radius);
  transition: background .2s ease, color .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--blue);
  color: var(--white);
}

@media (max-width:900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .nav-links.open {
    max-height: 400px;
  }

  .nav-links a {
    padding: 16px 24px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
}

/* ============================================================
   PAGE HERO (used on interior pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 56px 0 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(200, 161, 58, .18), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(200, 161, 58, .14), transparent 45%);
  pointer-events: none;
}

.page-hero .crumb {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255, 255, 255, .88);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto;
}

/* ============================================================
   HERO / IMAGE SLIDER  (About page)
   ============================================================ */
.slider {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 32px auto 0;
  padding: 0 24px;
}

.slider-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.slide {
  display: none;
  position: relative;
  height: 400px;
  background: var(--navy);
}

.slide.active {
  display: block;
  animation: fadeIn .6s ease;
}

.slide.slide-banner {
  background: linear-gradient(135deg, #0b1f4d 0%, #1a3a8a 40%, #2563b0 70%, #0b1f4d 100%);
}

.slide.slide-banner.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}

.slide.slide-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  display: block;
}

/* Use on banner slides that should enlarge to fill (e.g. hero banner) */
.slide.slide-cover img {
  object-fit: cover;
}

/* Navy background to match hero-banner.png edges — gaps become invisible */
.slide.slide-navy {
  background: #0f1e7a;
}

@media (max-width:768px) {
  .slide {
    height: 280px;
  }
}

@media (max-width:480px) {
  .slide {
    height: 200px;
  }
}

.slide-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.slide-caption .eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.slide-caption h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 8px;
}

.slide-caption p {
  color: rgba(255, 255, 255, .85);
  max-width: 520px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11, 31, 77, .55);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10;
}

.slider-arrow:hover {
  background: var(--blue);
}

.slider-arrow.prev {
  left: 16px;
}

.slider-arrow.next {
  right: 16px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
}

.slider-dots button.active {
  background: var(--blue);
}

/* ============================================================
   GENERIC SECTION
   ============================================================ */
.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--blue-soft);
}

.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title .eyebrow {
  display: inline-block;
  color: var(--crimson);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .16em;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 2.2rem;
}

.section-title .rule {
  width: 96px;
  height: 4px;
  background: var(--gold);
  margin: 14px auto 0;
  border-radius: 2px;
}

.info-card p,
.info-card li {
  text-align: justify;
  text-justify: inter-word;
  margin-bottom: 12px;
  line-height: 1.65;
}

.info-card p:last-child,
.info-card li:last-child {
  margin-bottom: 0;
}

.info-card ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 10px;
  margin-bottom: 0;
}


/* ============================================================
   ABOUT ACM
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: start;
}

.about-grid .badge-row {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.about-grid .badge-row .badge {
  background: var(--navy);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 6px 12px;
  border-radius: 20px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.info-card h3 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card h3 .icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex: none;
}

@media (max-width:900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Gap between Vision and Mission cards inside the right column */
  .about-grid > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .about-grid > div:last-child .info-card {
    margin-bottom: 0;
  }

  .info-card {
    margin-bottom: 0;
    padding: 18px 20px;
  }
}

/* ============================================================
   TABLES  (membership / team)
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--white);
}

table.data-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  font-size: .9rem;
  letter-spacing: .02em;
  white-space: nowrap;
}

table.data-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: .94rem;
  color: var(--ink);
}

table.data-table tbody tr:nth-child(even) {
  background: var(--blue-soft);
}

table.data-table tbody tr:hover {
  background: #dfeaf9;
}

table.data-table td.placeholder {
  color: var(--ink-soft);
  font-style: italic;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white) !important;
  font-weight: 600;
  font-size: .85rem;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.btn.btn-sm {
  padding: 6px 12px;
  font-size: .78rem;
}

.btn.btn-outline {
  background: transparent;
  color: var(--blue) !important;
  border: 1.5px solid var(--blue);
}

.btn.btn-outline:hover {
  background: var(--blue);
  color: var(--white) !important;
}

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================
   MEMBERS LIST
   ============================================================ */
.members-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.member-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.member-card .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  flex: none;
}

.member-card .name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
}

.member-card .role {
  font-size: .92rem;
  color: var(--ink-soft);
}

/* ============================================================
   EVENTS
   ============================================================ */
.event-master-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
}

.event-master-grid .event-master-card-wrap {
  position: relative;
  width: min(960px, 90vw);
  aspect-ratio: 2 / 1;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Soft ambient radial gradient backdrop behind the card */
.card-ambient-backdrop {
  position: absolute;
  inset: -24px;
  border-radius: 30px;
  background: radial-gradient(circle at 35% 40%, rgba(0, 102, 204, 0.48) 0%, rgba(200, 161, 58, 0.38) 45%, rgba(20, 80, 158, 0.18) 70%, transparent 85%);
  filter: blur(40px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease, background 0.35s ease;
}

.event-master-card-wrap:hover .card-ambient-backdrop {
  opacity: 1;
  transform: scale(1.03);
  filter: blur(48px);
  background: radial-gradient(circle at 40% 45%, rgba(0, 102, 204, 0.65) 0%, rgba(200, 161, 58, 0.48) 50%, rgba(20, 80, 158, 0.28) 75%, transparent 90%);
}

.event-master-card {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  border-radius: 10px;
  overflow: hidden;
  min-height: 220px;
  cursor: pointer;
  box-shadow: 0px 20px 30px rgba(0, 102, 204, 0.25);
  filter: drop-shadow(0px 20px 30px rgba(0, 102, 204, 0.25));
  background: var(--navy);
  border: 2px solid transparent;
  transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
}

.event-master-card:not(.placeholder-slot):hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 24px 64px rgba(0, 102, 204, 0.35);
  filter: drop-shadow(0px 24px 36px rgba(0, 102, 204, 0.35));
}



.event-master-card.placeholder-slot {
  border: 2px dashed var(--line);
  background: var(--blue-soft);
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .9rem;
}

.event-master-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  transition: transform .5s ease, opacity .35s ease;
}

.event-master-card:not(.placeholder-slot):hover img {
  transform: scale(1.08);
  opacity: .7;
}

.event-master-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,31,77,.15) 0%, rgba(7,20,51,.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 22px;
  transition: opacity .3s ease, transform .3s ease;
}

.event-master-card:not(.placeholder-slot):hover .event-master-overlay {
  opacity: 0;
  transform: translateY(8px);
}

.event-master-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(20,80,158,.60) 0%, rgba(13,58,120,.70) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity .3s ease;
}

.event-master-hover-overlay .btn {
  transform: translateY(12px);
  transition: transform .3s ease .05s, background .2s ease;
}

.event-master-card:not(.placeholder-slot):hover .event-master-hover-overlay {
  opacity: 1;
}

.event-master-card:not(.placeholder-slot):hover .event-master-hover-overlay .btn {
  transform: translateY(0);
}

/* ============================================================
   ATTRACTIVE EVENT COUNTDOWN TIMER ("Choose an Event" Header)
   ============================================================ */
.event-header-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 38px;
  margin-bottom: 44px;
}

.event-header-wrap .section-title {
  margin-bottom: 0;
  text-align: center;
}

.event-countdown-container {
  background: linear-gradient(135deg, #071433 0%, #0b1f4d 60%, #14509e 100%);
  border: 1.5px solid rgba(200, 161, 58, 0.45);
  border-radius: 50px;
  padding: 6px 44px;
  box-shadow: 0 8px 24px rgba(11, 31, 77, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0 auto;
  min-width: min(640px, 92vw);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.event-countdown-container:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 161, 58, 0.7);
  box-shadow: 0 12px 30px rgba(11, 31, 77, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.countdown-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #eaf1fb;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-event-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(200, 161, 58, 0.7);
  animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(200, 161, 58, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(200, 161, 58, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(200, 161, 58, 0);
  }
}

.countdown-timer-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: auto;
  background: none;
  padding: 0;
  border-radius: 0;
  border: none;
  backdrop-filter: none;
}

.timer-number {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.timer-text {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
  letter-spacing: 0.06em;
}

.timer-colon {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: -6px;
}

.event-master-overlay .tag {
  background: var(--gold);
  color: var(--navy-dark);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.event-master-overlay h3 { color: var(--white); margin-bottom: 4px; }
.event-master-overlay p { color: rgba(255, 255, 255, .8); font-size: .85rem; margin: 0; }

/* Sub-event grid (inside TECHNIZEN) */
.subevent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width:900px) {
  .subevent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:768px) {
  /* 2 columns x 3 rows — tight gap */
  .subevent-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Height and aspect ratio tuned to match mobile image dimensions (1297x1213) */
  .subevent-card {
    height: auto !important;
    aspect-ratio: 1297 / 1213 !important;
    border-radius: 10px !important;
    border: 2.5px solid var(--blue) !important;
    box-shadow: 0 4px 16px rgba(11, 31, 77, 0.15) !important;
  }

  .subevent-card picture {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
  }

  .subevent-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .subevent-label,
  .subevent-card::after {
    display: none !important;
  }
}

.subevent-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 320px;
  box-shadow: 0 8px 24px rgba(11, 31, 77, 0.14);
  border: 3px solid var(--blue);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

/* Desktop bottom light blue gradient overlay for subevent cards */
.subevent-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 20%;
  background: linear-gradient(to top, rgba(20, 80, 158, 0.45) 0%, rgba(20, 80, 158, 0.12) 65%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.subevent-card:hover {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 16px 44px rgba(11, 31, 77, 0.25);
}

.subevent-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform .45s ease, opacity .3s ease;
}

.subevent-card:hover img {
  transform: scale(1.08);
  opacity: .85;
}

.subevent-card .img-placeholder {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, var(--navy) 0, var(--navy) 12px, var(--blue-dark) 12px, var(--blue-dark) 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .55);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.subevent-label,
.subevent-mobile-title {
  display: none !important;
}

.subevent-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(11, 31, 77, 0.45) 0%, rgba(7, 20, 51, 0.60) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity .3s ease;
}

/* Animated arrow icon inside overlay */
.subevent-overlay .btn {
  transform: translateY(10px);
  transition: transform .3s ease .05s, background .2s ease;
}

.subevent-card:hover .subevent-overlay {
  opacity: 1;
}

.subevent-card:hover .subevent-overlay .btn {
  transform: translateY(0);
}

.subevent-card:hover .subevent-label {
  opacity: 0;
  transform: translateY(6px);
}

.subevent-label {
  transition: opacity .25s ease, transform .25s ease;
}

/* Register CTA below sub-event grid */
.register-cta {
  text-align: center;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.btn-register {
  display: inline-block;
  background: var(--blue);
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  padding: 14px 44px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(20,80,158,.28);
  transition: background .2s ease, transform .18s ease, box-shadow .2s ease;
}
.btn-register:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(20,80,158,.38);
}

/* Modal (event details) */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 26, .72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--white);
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalIn .25s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background: linear-gradient(135deg, var(--navy), var(--blue-dark));
  color: var(--white);
  padding: 26px 32px;
  border-radius: 12px 12px 0 0;
}

.modal-header .tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.modal-header h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(255, 255, 255, .15);
  border: none;
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(255, 255, 255, .3);
}

.modal-body {
  padding: 28px 32px 32px;
}

.modal-body h4 {
  font-size: 1rem;
  color: var(--blue-dark);
  margin: 22px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body h4::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.modal-body p {
  color: #000000;
  font-size: .94rem;
}

.coord-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.coord-col b {
  display: block;
  color: var(--navy);
  font-size: .85rem;
  margin-bottom: 4px;
}

.apply-cta {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

/* ============================================================
   PHOTO GALLERY — dual marquee rows
   ============================================================ */
.gallery-marquee-wrap {
  overflow: hidden;
  padding: 20px 0;
}

.marquee-row {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
}

.marquee-row.row-a {
  animation: scrollLeft 40s linear infinite;
  margin-bottom: 22px;
}

.marquee-row.row-b {
  animation: scrollRight 40s linear infinite;
}

.gallery-marquee-wrap:hover .marquee-row {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.gallery-tile {
  flex: none;
  width: 260px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-tile.img-placeholder {
  background: #e7ecf5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: .85rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-row {
    animation: none !important;
  }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width:900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.contact-item .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 1.5rem;
}

.contact-item h4 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 700;
}

.contact-item p {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.6;
}

.map-frame {
  width: 100%;
  min-height: 340px;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .94rem;
  background: #fbfcfe;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 80, 158, .15);
}

.form-note {
  font-size: .78rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 10;
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .75);
  padding: 44px 0 20px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (max-width:992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width:576px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  /* College info block spans full width on top */
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid rgba(255,255,255,.15);
    padding-bottom: 12px;
    margin-bottom: 4px;
    text-align: center;
  }

  .site-footer h4 {
    font-size: 0.78rem;
    margin-bottom: 6px;
  }

  .site-footer a {
    font-size: 0.72rem;
    padding: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-footer p {
    font-size: 0.72rem;
  }
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  margin-bottom: 14px;
  letter-spacing: .03em;
}

.site-footer a {
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
  display: block;
  margin-bottom: 8px;
  transition: color .2s;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 18px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
}

/* ============================================================
   MISC
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 18px;
}

.back-link:hover {
  text-decoration: underline;
}

.note-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-soft);
  font-style: italic;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--blue-soft);
}

/* ============================================================
   MOBILE RESPONSIVE OVERRIDES  (≤ 768 px)
   All changes are mobile-only — zero impact on desktop.
   ============================================================ */
@media (max-width: 768px) {

  /* ---- SLIDER: compact size, professional proportions ---- */
  .slider {
    margin: 12px auto 0;
    padding: 0 10px;
  }

  .slide {
    height: 160px !important;
    min-height: unset;
  }

  .slide-caption h2 {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }

  .slide-caption .eyebrow {
    font-size: 0.75rem;
    letter-spacing: .10em;
    margin-bottom: 6px;
  }

  .slide-caption p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  /* ---- PAGE HERO: compact blue bar on mobile ---- */
  .page-hero {
    padding: 28px 0 22px;
  }

  .page-hero .crumb {
    font-size: 0.72rem;
    letter-spacing: .12em;
    margin-bottom: 6px;
  }

  .page-hero h1 {
    font-size: 1.75rem;
    margin-bottom: 6px;
  }

  .page-hero p {
    font-size: 0.88rem;
  }

  /* ---- ABOUT PAGE: reduce heading & eyebrow font sizes ---- */
  .section-title h2 {
    font-size: 1.45rem;
    line-height: 1.3;
  }

  .section-title .eyebrow {
    font-size: 0.78rem;
    letter-spacing: .12em;
  }

  .section {
    padding: 40px 0;
  }

  /* ---- MEMBERSHIP TABLE: fixed width, no horizontal scroll ---- */
  .table-wrap {
    overflow-x: hidden;
  }

  table.data-table {
    min-width: unset;
    width: 100%;
    table-layout: fixed;
  }

  table.data-table thead th {
    padding: 7px 3px;
    font-size: 0.62rem;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }

  table.data-table thead th:first-child {
    text-align: left;
  }

  table.data-table td {
    padding: 7px 4px;
    font-size: 0.72rem;
    text-align: center;
  }

  table.data-table td:first-child {
    text-align: left;
    font-size: 0.72rem;
  }

  /* Master card mobile view aspect ratio to fit full portrait poster */
  .event-master-grid .event-master-card-wrap {
    width: 100%;
    aspect-ratio: 1023 / 1537;
    min-height: auto;
  }

  /* Mobile capsule countdown timer - Ultra-compact height & capsule pill shape */
  .event-countdown-container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    padding: 4px 16px;
    gap: 8px;
    width: auto;
    max-width: 96vw;
    min-width: auto;
  }

  .event-countdown-container .countdown-label {
    font-size: 0.65rem;
    gap: 5px;
    letter-spacing: 0.05em;
  }

  .event-countdown-container .pulse-dot {
    width: 6px;
    height: 6px;
  }

  .event-countdown-container .countdown-timer-box {
    gap: 4px;
  }

  .event-countdown-container .timer-unit {
    min-width: auto;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
  }

  .event-countdown-container .timer-number {
    font-size: 0.95rem;
  }

  .event-countdown-container .timer-text {
    font-size: 0.48rem;
    margin-top: 0px;
  }

  .event-countdown-container .timer-colon {
    font-size: 0.85rem;
    margin-top: -3px;
  }
  .event-master-card {
    width: 100%;
    height: 100%;
    min-height: auto;
  }

  .event-master-card img {
    object-fit: cover !important;
    opacity: 1 !important;
  }

  .event-master-card:not(.placeholder-slot):hover {
    transform: none !important;
    box-shadow: var(--shadow-md) !important;
  }

  .event-master-card:not(.placeholder-slot):hover img {
    transform: none !important;
    opacity: .85 !important;
  }

  .event-master-card:not(.placeholder-slot):hover .event-master-overlay {
    opacity: 1 !important;
    transform: none !important;
  }

  .event-master-card:not(.placeholder-slot):hover .event-master-hover-overlay {
    opacity: 0 !important;
  }

  /* Sub-event cards */
  .subevent-card:hover {
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
  }

  .subevent-card:hover img {
    transform: none !important;
    opacity: 1 !important;
  }

  .subevent-card:hover .subevent-overlay {
    opacity: 0 !important;
  }

  .subevent-card:hover .subevent-label {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Mobile-only gradient bottom title overlay for the 6 event cards */
  .subevent-mobile-title {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    position: absolute !important;
    inset: auto 0 0 0 !important;
    padding: 16px 6px 4px 6px !important;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.35) 55%, rgba(255, 255, 255, 0) 100%) !important;
    color: #000000 !important;
    font-family: var(--font-body) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    line-height: 1.15 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4) !important;
    pointer-events: none !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    box-sizing: border-box !important;
    z-index: 3 !important;
  }

  /* DSA Clash image size adjustment */
  .dsa-clash-card img {
    transform: scale(0.82) !important;
  }

  /* ---- GALLERY: smaller tile placeholders ---- */
  .gallery-tile {
    width: 150px;
    height: 100px;
  }

  .marquee-row {
    gap: 10px;
  }

  .marquee-row.row-a {
    margin-bottom: 14px;
  }

  /* ---- CONTACT: compact address on mobile (3 lines max) ---- */
  .contact-item {
    gap: 12px;
    margin-bottom: 18px;
  }

  .contact-item .icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    flex: none;
  }

  .contact-item h4 {
    font-size: 1rem;
    margin-bottom: 3px;
  }

  .contact-item p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* ---- Fix: remove text-justify on mobile (about page info cards) ---- */
  .info-card p,
  .info-card li {
    text-align: left !important;
  }

  /* ---- Hide 2nd and 3rd paragraphs in About ACM section on mobile ---- */
  .about-grid > div:first-child .info-card p:not(:first-of-type) {
    display: none;
  }

  /* ---- Hide 3rd paragraph in Our Mission section on mobile ---- */
  .about-grid > div:last-child .info-card:nth-of-type(2) p:nth-of-type(3) {
    display: none;
  }
}

/* ---- Marquee Notice Banner ---- */
.marquee-notice {
  background: var(--blue-soft);
  color: var(--navy);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-top: -15px;
  margin-bottom: 28px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.marquee-notice .notice-badge {
  background: var(--crimson);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  font-weight: 700;
}

.marquee-notice marquee {
  vertical-align: middle;
  font-size: 0.95rem;
}

.acc-details p {
  font-size: 1.15rem;
  line-height: 1.5;
}

/* Capsule Button */
.capsule-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 22px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(7, 20, 51, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
  vertical-align: middle;
  margin: 0 6px;
}

.capsule-btn:hover {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11, 31, 77, 0.5);
  color: var(--white) !important;
}


