@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;

  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --border-subtle: #e2e8f0;
  --border-focus: #8b5cf6;
  
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --violet: #7c3aed;
  --rose: #e11d48;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 54px; /* Space for sticky bottom ticker */
  /* BPUT Clean Engineering Grid Background */
  background-image: 
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.font-space-grotesk {
  font-family: var(--font-display);
}

.font-jakarta {
  font-family: var(--font-heading);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================= STICKY BOTTOM ANNOUNCEMENT TICKER ================= */
.bottom-notice-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
  color: #f8fafc;
  padding: 0.55rem 0;
  font-size: 0.85rem;
  font-weight: 500;
}

.bottom-notice-banner .banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bottom-notice-banner .banner-badge {
  background: #6366f1;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.bottom-notice-banner .banner-marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.bottom-notice-banner .marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: noticeTickerScroll 30s linear infinite;
  will-change: transform;
}

.bottom-notice-banner:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes noticeTickerScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-item-link {
  color: #f8fafc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 3.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ticker-item-link:hover {
  color: #c7d2fe;
}

.ticker-item-link .ticker-tag {
  background: rgba(99, 102, 241, 0.45);
  color: #c7d2fe;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.ticker-item-link .ticker-title {
  border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
  transition: border-bottom-color 0.2s;
}

.ticker-item-link:hover .ticker-title {
  border-bottom-color: #c7d2fe;
}

.ticker-item-link .ticker-icon {
  font-size: 0.68rem;
  color: #a5b4fc;
  opacity: 0.85;
}

.ticker-separator {
  color: #818cf8;
  opacity: 0.65;
}

/* ================= CLEAN NAVBAR (BPUT STYLE) ================= */
.bput-navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.nav-logos-combo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.college-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 480px) {
  .college-logo-img, .brand-logo-img {
    height: 32px;
  }
}

.brand-text-block h1 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-text-block p {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link-item {
  color: #475569;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link-item:hover, .nav-link-item.active {
  color: #6366f1;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ================= BUTTONS ================= */
.btn-clean {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 0.6rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-gradient {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-outline-clean {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-outline-clean:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* ================= HERO SECTION (BPUT CLEAN AESTHETIC) ================= */
.bput-hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-halo {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, rgba(236, 72, 153, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-pill-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6d28d9;
  margin-bottom: 1.5rem;
}

.hero-headline {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

.gradient-text-bput {
  background: linear-gradient(135deg, #6366f1 10%, #ec4899 50%, #8b5cf6 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead-text {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Countdown Grid */
.bput-countdown-card {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 1.25rem;
  background: #ffffff;
  padding: 1.25rem 2.25rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  margin-bottom: 2.5rem;
}

.countdown-digit {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.countdown-subtext {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 0.35rem;
}

/* ================= QUICK ACCESS GRADIENT CARDS ================= */
.quick-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 3rem 0;
}

.quick-gradient-card {
  padding: 1.25rem;
  border-radius: 1rem;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 130px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.quick-gradient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.quick-gradient-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.quick-gradient-card p {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

/* Gradients */
.grad-rose { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.grad-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.grad-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.grad-emerald { background: linear-gradient(135deg, #10b981, #059669); }
.grad-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.grad-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }

/* ================= MACBOOK WINDOW CHASSIS EFFECT ================= */
.macbook-window-frame {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 1.25rem;
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin: 3rem auto;
  max-width: 1050px;
  transition: all 0.3s ease;
}

.macbook-titlebar {
  background: #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.macbook-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.2s;
}

.mac-dot:hover {
  opacity: 0.8;
}

.dot-close { background: #ff5f56; border: 1px solid #e0443e; }
.dot-min { background: #ffbd2e; border: 1px solid #dea123; }
.dot-max { background: #27c93f; border: 1px solid #1aab29; }

.macbook-title-text {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.macbook-body {
  padding: 2rem;
  background: #ffffff;
}

/* ================= SPONSORS & PARTNERS REPRESENTATION (BPUT STYLE) ================= */
.sponsors-section {
  padding: 5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.partners-category-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin: 2.5rem 0 1.5rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.partner-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 0.85rem;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s ease;
  min-height: 120px;
}

.partner-card:hover {
  border-color: #a78bfa;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.12);
}

.partner-logo-box {
  height: 52px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.partner-logo-box img {
  height: 42px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain;
  display: inline-block;
  transition: all 0.25s ease;
}

.partner-card:hover .partner-logo-box img {
  transform: scale(1.06);
}

.partner-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e293b;
}

.partner-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ================= CLEAN EVENT CARDS & GRID ================= */
.event-clean-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.5rem;
}

.event-clean-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.event-clean-card:hover {
  border-color: #c4b5fd;
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(99, 102, 241, 0.15);
}

.event-card-banner {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
}

.event-card-body-clean {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-tag-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.tag-tech { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.tag-cult { background: #fdf2f8; color: #be185d; border: 1px solid #fbcfe8; }
.tag-esport { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.tag-sport { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.tag-nontech { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* Filter Tabs (BPUT Style) */
.filter-tabs-clean {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: #475569;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.filter-tab-btn.active, .filter-tab-btn:hover {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* ================= MODALS & MACBOOK POPUP EFFECT ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.macbook-modal-dialog {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 1.25rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modal-enter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-body-scrollable {
  padding: 1.75rem;
  overflow-y: auto;
  background: #ffffff;
  flex: 1;
}

/* Forms */
.form-group-clean {
  margin-bottom: 1.25rem;
}

.form-group-clean label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.35rem;
}

.form-input-clean {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 0.6rem;
  color: #0f172a;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.form-input-clean:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Footer (BPUT Clean Style) */
.bput-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  color: var(--text-muted);
}

/* Simple, Clean Creator Attribution (Persistent & Tamper-Resistant) */
#creatorCreditContainer,
.footer-creator-line {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#sureshSethiCreditLink {
  color: #475569 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  font-weight: 600 !important;
  transition: color 0.15s ease !important;
}

#sureshSethiCreditLink:hover {
  color: #0f172a !important;
}

.fallback-fixed-creator {
  position: fixed !important;
  bottom: 0 !important;
  right: 0 !important;
  z-index: 999999 !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  border-left: 1px solid #e2e8f0 !important;
  padding: 0.4rem 1rem !important;
  font-size: 0.78rem !important;
  color: #64748b !important;
}

@media (max-width: 768px) {
  .hero-headline { font-size: 2.5rem; }
  .bput-countdown-card { flex-wrap: wrap; gap: 0.75rem; padding: 1rem; }
  .nav-links-list { display: none; }
}


/* ================= SUBPAGE HERO BANNER ================= */
.subpage-hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, rgba(245, 243, 255, 0.6) 0%, rgba(248, 250, 252, 0) 100%);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
}

.subpage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.subpage-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.subpage-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ================= FRESH TIMELINE DESIGN ================= */
.timeline-modern-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.timeline-track-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 3px;
  background: linear-gradient(180deg, #6366f1, #a855f7, #ec4899);
  border-radius: 9999px;
}

.timeline-node-card {
  position: relative;
  margin-left: 68px;
  margin-bottom: 2rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 1.15rem;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.timeline-node-card:hover {
  border-color: #c4b5fd;
  transform: translateX(4px);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.12);
}

.timeline-node-dot {
  position: absolute;
  top: 24px;
  left: -53px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.timeline-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  color: #334155;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.timeline-venue-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ================= GALLERY STYLES ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  group: true;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.18);
  border-color: #a78bfa;
}

.gallery-card-img-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-img {
  transform: scale(1.08);
}

.gallery-card-info {
  padding: 1.25rem;
  background: #ffffff;
}

.gallery-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.gallery-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.gallery-year-badge {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* Lightbox Modal */
.lightbox-modal-content {
  background: #0f172a;
  border-radius: 1.25rem;
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-img-box {
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020617;
}

.lightbox-img-box img {
  max-height: 70vh;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-caption-bar {
  padding: 1rem 1.5rem;
  background: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

/* ================= COMMITTEE & PATRONS STYLES ================= */
.patron-prestige-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.patron-prestige-card:hover {
  transform: translateY(-4px);
  border-color: #a78bfa;
  box-shadow: 0 16px 36px -8px rgba(99, 102, 241, 0.15);
}

.patron-avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.patron-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 3px solid #ede9fe;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.22);
  display: block;
}

.committee-member-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  border: 2px solid #e0e7ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: block;
}

.committee-avatar-circle-sm {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.student-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #ddd6fe;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  display: block;
}

.student-avatar-circle-sm {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* ================= MULTI-DAY / MONTH TIMELINE EXPLORER ================= */
.timeline-day-scroller {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.25rem;
  margin-bottom: 2rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.timeline-day-scroller::-webkit-scrollbar {
  height: 6px;
}

.timeline-day-scroller::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.timeline-day-pill {
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-day-pill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.timeline-day-pill.active {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.timeline-day-pill .count-badge {
  background: rgba(0, 0, 0, 0.08);
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.72rem;
}

.timeline-day-pill.active .count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.timeline-day-group-header {
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeline-day-group-header:first-child {
  margin-top: 0.5rem;
}

.patron-role-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.student-leader-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.student-leader-card:hover {
  transform: translateY(-3px);
  border-color: #c4b5fd;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.12);
}

.student-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

/* Active Nav State */
.bput-navbar .nav-link-item.active-page {
  color: #6366f1;
  font-weight: 700;
  position: relative;
}

.bput-navbar .nav-link-item.active-page::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: #6366f1;
  border-radius: 2px;
}


/* ================= VIDEO GALLERY OVERLAY ================= */
.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.gallery-card:hover .video-play-overlay {
  transform: translate(-50%, -50%) scale(1.18);
  background: #e11d48;
}

/* User Badges in Admin Panel */
.badge-admin { background: #ede9fe; color: #6d28d9; }
.badge-student { background: #e0f2fe; color: #0369a1; }
.badge-active { background: #d1fae5; color: #047857; }
.badge-inactive { background: #fee2e2; color: #b91c1c; }

/* ================= LIVE UPDATES & BULLETINS STYLING ================= */
.update-bulletin-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 1.15rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.update-bulletin-card:hover {
  border-color: #c4b5fd;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(99, 102, 241, 0.12);
}

.update-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.update-date-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.update-title-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.update-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}


/* ================= GLOBAL TOP UTILITY ACTION BAR & HEADER ================= */
.global-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
}

.top-action-bar {
  background: #0f172a;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  line-height: 1;
}

.top-action-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: 1rem;
}

.top-action-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.live-event-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: #34d399;
}

.blink-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: dotRadar 1.8s infinite ease-in-out;
}

.top-action-date {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.top-action-items {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.top-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.top-action-btn:hover {
  transform: translateY(-1px);
}

.top-action-btn .action-tag {
  font-size: 0.62rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Register Now - Amber Glow Blink */
.action-register {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff !important;
  border: 1px solid rgba(245, 158, 11, 0.8);
  animation: amberGlowPulse 2.4s infinite ease-in-out;
}
.action-register .action-tag {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

/* Hackathon - Neon Purple Blink */
.action-hackathon {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #ffffff !important;
  border: 1px solid rgba(168, 85, 247, 0.8);
  animation: neonGlowPulse 2.4s infinite ease-in-out;
}
.action-hackathon .action-tag {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

/* Blinking Dots inside action buttons */
.blink-dot-amber {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
  animation: blinkPulse 1.2s infinite ease-in-out;
}

.blink-dot-purple {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
  animation: blinkPulse 1.2s infinite ease-in-out;
}

/* Blinking and Pulsing Keyframes */
@keyframes blinkPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(0.85);
  }
}

@keyframes amberGlowPulse {
  0%, 100% {
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
    border-color: rgba(245, 158, 11, 0.6);
  }
  50% {
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.95);
    border-color: rgba(251, 146, 60, 1);
  }
}

@keyframes neonGlowPulse {
  0%, 100% {
    box-shadow: 0 0 6px rgba(124, 58, 237, 0.5);
    border-color: rgba(124, 58, 237, 0.6);
  }
  50% {
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.95);
    border-color: rgba(192, 132, 252, 1);
  }
}

@keyframes dotRadar {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Mobile responsive drawer for topbar */
@media (max-width: 768px) {
  .top-action-wrap {
    height: auto;
    padding: 0.4rem 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .top-action-date {
    display: none;
  }
}

/* Mobile Nav Toggle */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid #cbd5e1;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  color: #0f172a;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 868px) {
  .nav-mobile-toggle {
    display: block;
  }
  .bput-navbar .nav-links-list {
    display: none;
  }
}

.nav-mobile-drawer {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.nav-mobile-drawer.open {
  display: block;
}
.nav-mobile-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.nav-mobile-drawer .nav-link-item {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
}
.nav-mobile-drawer .nav-link-item.active-page {
  background: #ede9fe;
  color: #6366f1;
}

/* ================= HOMEPAGE MULTI-MODAL FLYER POPUP ================= */
.flyer-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.flyer-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.flyer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.flyer-modal-dialog {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 580px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.flyer-modal-overlay.open .flyer-modal-dialog {
  transform: scale(1) translateY(0);
}

.flyer-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(30, 41, 59, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flyer-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseFlyerDot 1.5s infinite;
}

@keyframes pulseFlyerDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.flyer-header-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.02em;
}

.flyer-counter-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.flyer-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.flyer-close-btn:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  transform: rotate(90deg);
}

.flyer-slide-viewport {
  position: relative;
  width: 100%;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  max-height: 72vh;
  overflow: hidden;
}

.flyer-image-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.flyer-image-content {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: block;
  user-select: none;
  transition: transform 0.25s ease;
}

.flyer-image-link:hover .flyer-image-content {
  transform: scale(1.015);
}

.flyer-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.flyer-nav-prev { left: 0.75rem; }
.flyer-nav-next { right: 0.75rem; }

.flyer-nav-btn:hover {
  background: #6366f1;
  border-color: #818cf8;
  transform: translateY(-50%) scale(1.1);
}

.flyer-modal-footer {
  padding: 0.85rem 1.25rem;
  background: rgba(30, 41, 59, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.flyer-dots-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.flyer-dot-pill {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}

.flyer-dot-pill.active {
  width: 22px;
  background: #38bdf8;
}

.flyer-dismiss-action {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0.25rem 0.5rem;
}

.flyer-dismiss-action:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ================= REUSABLE ADMIN TABLE PAGINATION BAR ================= */
.table-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  font-size: 0.82rem;
  color: #475569;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.table-pagination-info {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  color: #64748b;
}

.table-pagination-info strong {
  color: #0f172a;
  font-weight: 700;
}

.table-pagination-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.table-page-size-selector {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #64748b;
}

.table-page-size-selector select {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.table-page-size-selector select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.table-pagination-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.table-pag-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 0.45rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 0.375rem;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.table-pag-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.table-pag-btn.active {
  background: #6366f1;
  border-color: #6366f1;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}

.table-pag-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* ================= CLOUDFLARE TURNSTILE VISITOR GATE OVERLAY ================= */
#cfVisitorGateOverlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cf-gate-card {
  background: #ffffff;
  border-radius: 1.25rem;
  max-width: 460px;
  width: 100%;
  padding: 2.25rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid rgba(226, 232, 240, 0.9);
  animation: cfGateCardIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cfGateCardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cf-gate-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.cf-gate-logo-row img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.cf-gate-logo-divider {
  width: 1px;
  height: 28px;
  background: #cbd5e1;
}

.cf-gate-title {
  font-family: var(--font-display, inherit);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.cf-gate-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.cf-gate-widget-box {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 65px;
  margin-bottom: 1rem;
}

.cf-gate-status {
  font-size: 0.84rem;
  color: #64748b;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.cf-gate-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ================= COMPREHENSIVE RESPONSIVE DESIGN SUITE ================= */

/* Small & Standard Mobile (max-width: 640px) */
@media (max-width: 640px) {
  /* Container padding */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Top Action Utility Bar */
  .top-action-bar {
    font-size: 0.72rem;
  }
  .top-action-wrap {
    height: auto;
    padding: 0.4rem 0.5rem;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
  }
  .top-action-left {
    justify-content: center;
    width: 100%;
  }
  .top-action-items {
    width: 100%;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
  }
  .top-action-btn {
    padding: 0.22rem 0.55rem;
    font-size: 0.68rem;
  }
  .top-action-btn .action-tag {
    display: none; /* Hide secondary tag on tight mobile screens */
  }

  /* Navbar */
  .nav-wrap {
    height: 62px;
  }
  .brand-text-block h1 {
    font-size: 1.05rem;
  }
  .brand-text-block p {
    font-size: 0.65rem;
  }
  .college-logo-img, .brand-logo-img {
    height: 32px !important;
  }

  /* Hero Section */
  .bput-hero {
    padding: 2.75rem 0 2rem;
  }
  .hero-pill-badge {
    font-size: 0.74rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1rem;
    max-width: 95%;
  }
  .hero-headline {
    font-size: clamp(1.75rem, 7vw, 2.35rem) !important;
    line-height: 1.18;
    margin-bottom: 1rem;
  }
  .hero-lead-text {
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  /* Countdown Card - completely fluid 4-column layout */
  .bput-countdown-card {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.5rem !important;
    padding: 0.85rem 0.65rem !important;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 2rem;
  }
  .bput-countdown-card > div:nth-child(even) {
    display: none !important; /* Hide the colon dividers on small mobile screens */
  }
  .bput-countdown-card > div[style*="min-width"] {
    min-width: 0 !important;
  }
  .countdown-digit {
    font-size: clamp(1.4rem, 5vw, 1.85rem) !important;
  }
  .countdown-subtext {
    font-size: 0.62rem !important;
    letter-spacing: 0.05em;
  }

  /* Hero CTA buttons full-width touch friendly */
  .bput-hero div[style*="justify-content: center"][style*="flex-wrap: wrap"] {
    flex-direction: column !important;
    width: 100%;
    align-items: stretch;
  }
  .bput-hero div[style*="justify-content: center"][style*="flex-wrap: wrap"] .btn-clean {
    width: 100%;
    justify-content: center;
  }

  /* Quick Cards Grid: 2 columns on mobile */
  .quick-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
    margin: 2rem 0;
  }
  .quick-gradient-card {
    padding: 0.85rem 0.75rem;
    min-height: 110px;
  }
  .quick-gradient-card h4 {
    font-size: 0.9rem;
  }
  .quick-gradient-card p {
    font-size: 0.72rem;
  }

  /* Live Telemetry / Stats Box: 2x2 grid */
  .bput-hero div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    padding: 1.25rem 0.75rem !important;
  }

  /* Subpage Hero */
  .subpage-hero {
    padding: 2.25rem 0 1.75rem;
    margin-bottom: 2rem;
  }
  .subpage-title {
    font-size: clamp(1.65rem, 6vw, 2.2rem) !important;
  }
  .subpage-desc {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  /* Filter Tabs: Horizontal scrollable with touch momentum */
  .filter-tabs-clean {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 0.35rem;
    gap: 0.5rem;
    scrollbar-width: none;
  }
  .filter-tabs-clean::-webkit-scrollbar {
    display: none;
  }
  .filter-tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Timeline */
  .timeline-modern-wrap {
    padding: 0.5rem 0 1.5rem;
  }
  .timeline-track-line {
    left: 14px;
    width: 2px;
  }
  .timeline-node-card {
    margin-left: 36px;
    padding: 1rem 0.85rem;
    margin-bottom: 1.25rem;
  }
  .timeline-node-dot {
    left: -29px;
    width: 18px;
    height: 18px;
    top: 18px;
    border-width: 3px;
  }

  /* Footer */
  .bput-footer {
    padding: 2.5rem 0 1.5rem;
    margin-top: 3.5rem;
  }
  .bput-footer .container:last-child {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.75rem !important;
  }
  .bput-footer .container:last-child > div:last-child {
    align-items: center !important;
    text-align: center !important;
  }
  #creatorCreditContainer, .footer-creator-line {
    text-align: center !important;
  }

  /* Sticky Bottom Notice Ticker */
  .bottom-notice-banner {
    padding: 0.4rem 0;
    font-size: 0.75rem;
  }
  .bottom-notice-banner .banner-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
  }
  .bottom-notice-banner .btn-clean {
    display: none; /* Hide ticker action button on very narrow screens */
  }

  /* Modals */
  .macbook-modal-dialog {
    max-width: 95vw !important;
    margin: 0.5rem auto !important;
    max-height: 90vh !important;
  }
  .modal-body-scrollable {
    padding: 1.15rem 0.9rem !important;
  }
}

/* Extra Small Phones (max-width: 380px) */
@media (max-width: 380px) {
  .brand-text-block p {
    display: none; /* Truncate subtext to save space for toggle */
  }
  .quick-cards-grid {
    grid-template-columns: 1fr !important;
  }
  .top-action-btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.64rem;
  }
}

/* Medium Tablets & iPads (641px to 868px) */
@media (min-width: 641px) and (max-width: 868px) {
  .hero-headline {
    font-size: 2.85rem;
  }
  .quick-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .event-clean-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Data Tables Responsive Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.75rem;
}

.table-responsive table.data-table-clean {
  min-width: 620px;
}
