/* ═══════════════════════════════════════════════════════════
   Lahore ACM Chapter — main.css  (v2 – full UI overhaul)
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  --acm-blue:        #0055A4;
  --acm-blue-mid:    #0076CE;
  --acm-blue-light:  #2A9DF4;
  --acm-blue-pale:   #EAF3FB;
  --acm-accent:      #0076CE;
  --acm-accent-dk:   #005A9C;
  --acm-accent-pale: #E6F2FB;
  --acm-green:       #10B981;
  --acm-dark:        #032B58;
  --acm-dark-2:      #0A3E73;
  --gray-50:  #F9FAFB; --gray-100: #F3F4F6; --gray-200: #E5E7EB;
  --gray-400: #9CA3AF; --gray-500: #6B7280; --gray-700: #374151; --gray-900: #111827;
  --shadow-xs: 0 1px 4px rgba(0,0,0,.06);
  --shadow-sm: 0 2px 12px rgba(0,0,0,.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,.11);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.16);
  --shadow-xl: 0 32px 80px rgba(0,0,0,.22);
  --shadow-blue: 0 8px 32px rgba(0,85,164,.22);
  --r-sm: .5rem; --r-md: .875rem; --r-lg: 1.25rem; --r-xl: 1.75rem; --r-2xl: 2.5rem;
  --ease-out: cubic-bezier(.22,1,.36,1);
  --t-fast: all .18s var(--ease-out); --t-mid: all .28s var(--ease-out); --t-slow: all .45s var(--ease-out);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --section-py: 6rem;
  --nav-height: 88px;
  --page-gutter: clamp(1rem, 3.2vw, 2.4rem);
  --content-max: 1220px;
  /* Legacy compat */
  --acm-card-bg: #1C2333; --acm-text: #E6EDF3; --acm-muted: #8B949E;
  --radius-lg: 1rem; --radius-xl: 1.5rem;
  --transition: all .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-700);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

/* ── Global Tech Loader ───────────────────────────────── */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.15rem;
  background:
    radial-gradient(circle at 35% 25%, rgba(42, 157, 244, .18) 0%, transparent 42%),
    radial-gradient(circle at 75% 75%, rgba(0, 118, 206, .18) 0%, transparent 46%),
    linear-gradient(135deg, #031a38 0%, #072a57 45%, #0a3e73 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity .45s var(--ease-out), visibility .45s var(--ease-out);
}
.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255,255,255,.2) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 72%, rgba(42,157,244,.32) 0 2px, transparent 3px),
    repeating-linear-gradient(118deg, rgba(255,255,255,.08) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(28deg, rgba(0,118,206,.12) 0 1px, transparent 1px 64px);
  background-size: auto, auto, 280px 280px, 340px 340px;
  animation: loaderGridShift 8s linear infinite;
}
.loader-core {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
}
.loader-ring.ring-1 {
  border-top-color: rgba(255, 255, 255, .88);
  border-right-color: rgba(0, 118, 206, .72);
  animation: loaderSpin 1.2s linear infinite;
}
.loader-ring.ring-2 {
  inset: 18px;
  border-top-color: rgba(42, 157, 244, .88);
  border-left-color: rgba(255, 255, 255, .7);
  animation: loaderSpinReverse 1.6s linear infinite;
}
.loader-ring.ring-3 {
  inset: 36px;
  border-top-color: rgba(0, 118, 206, .95);
  border-right-color: rgba(255, 255, 255, .68);
  animation: loaderSpin 2s linear infinite;
}
.loader-scan {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  overflow: hidden;
}
.loader-scan::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -35%;
  height: 35%;
  background: linear-gradient(to bottom, rgba(42, 157, 244, .02), rgba(42, 157, 244, .35));
  animation: loaderScan 1.8s ease-in-out infinite;
}
.loader-node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .14), 0 0 14px rgba(255, 255, 255, .42);
  animation: loaderPulse 1.5s ease-in-out infinite;
}
.loader-node.node-1 { top: 14px; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.loader-node.node-2 { right: 14px; top: 50%; transform: translateY(-50%); animation-delay: .2s; }
.loader-node.node-3 { bottom: 14px; left: 50%; transform: translateX(-50%); animation-delay: .4s; }
.loader-node.node-4 { left: 14px; top: 50%; transform: translateY(-50%); animation-delay: .6s; }
.loader-chip {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, .08), 0 8px 26px rgba(0, 0, 0, .28);
}
.loader-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: .55rem;
}
.loader-text {
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}
@keyframes loaderSpinReverse {
  to { transform: rotate(-360deg); }
}
@keyframes loaderScan {
  0% { top: -35%; }
  50% { top: 100%; }
  100% { top: -35%; }
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: .65; }
  50% { transform: scale(1.18); opacity: 1; }
}
@keyframes loaderGridShift {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 0 0, 0 0, 120px 80px, -140px 90px; }
}
body.nav-over-hero { padding-top: 0; }
/* Global content gutters and readable max width */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  width: min(var(--content-max), calc(100% - (var(--page-gutter) * 2)));
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--acm-blue-mid); border-radius: 3px; }

/* ── Typography helpers ──────────────────────────────── */
.fw-400{font-weight:400} .fw-500{font-weight:500} .fw-600{font-weight:600}
.fw-700{font-weight:700} .fw-800{font-weight:800} .fw-900{font-weight:900}
.fs-xs{font-size:.7rem} .fs-sm{font-size:.85rem}
.font-display { font-family: var(--font-display); }
.font-space   { font-family: var(--font-display); }
.gradient-text {
  background: linear-gradient(135deg, var(--acm-blue-mid), var(--acm-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.text-acm-blue   { color: var(--acm-blue)   !important; }
.text-acm-accent { color: var(--acm-accent) !important; }
.text-white-75   { color: rgba(255,255,255,.75) !important; }

/* ── Background utilities ────────────────────────────── */
.bg-dots {
  background-image: radial-gradient(circle, rgba(11,61,145,.11) 1px, transparent 1px);
  background-size: 22px 22px;
}
.bg-grid {
  background-image:
    radial-gradient(circle at 18% 20%, rgba(11,61,145,.08) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 68%, rgba(0,118,206,.12) 0 2px, transparent 3px),
    repeating-linear-gradient(118deg, rgba(11,61,145,.06) 0 1px, transparent 1px 62px),
    repeating-linear-gradient(30deg, rgba(42,157,244,.08) 0 1px, transparent 1px 74px);
  background-size: auto, auto, 300px 300px, 360px 360px;
}
.bg-acm-section { background: var(--acm-blue-pale); }

/* ── Navbar ──────────────────────────────────────────── */
.acm-navbar {
  background: linear-gradient(135deg, var(--acm-dark) 0%, var(--acm-blue) 100%);
  padding: .95rem 0;
  min-height: var(--nav-height);
  transition: var(--t-mid);
  border-bottom: 1px solid rgba(255,255,255,.08);
  z-index: 1030;
}
.acm-navbar.nav-transparent {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.acm-navbar.nav-solid,
.acm-navbar.scrolled {
  background: rgba(3,43,88,.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
  border-bottom-color: rgba(255,255,255,.12);
}
.acm-navbar .navbar-brand {
  transition: transform .24s var(--ease-out), opacity .24s var(--ease-out);
}
.acm-navbar .navbar-brand:hover {
  transform: translateY(-1px);
  opacity: .95;
}
.acm-navbar .nav-link {
  font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.82) !important;
  padding: .4rem .75rem !important;
  border-radius: var(--r-2xl);
  transition: var(--t-fast);
  position: relative;
}
.acm-navbar .nav-link::after {
  content: ''; position: absolute; bottom: 3px; left: 50%; right: 50%;
  height: 2px; background: var(--acm-accent); border-radius: 1px; transition: var(--t-mid);
}
.acm-navbar .nav-link:hover::after, .acm-navbar .nav-link.active::after { left: .8rem; right: .8rem; }
.acm-navbar .nav-link:hover,
.acm-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.1);
}
.acm-navbar .navbar-toggler {
  border-radius: .6rem;
  background: rgba(255,255,255,.08);
}
.acm-logo-badge {
  background: var(--acm-accent); color: #fff; font-family: var(--font-display);
  font-weight: 800; font-size: .95rem; padding: .45rem .75rem; border-radius: .45rem;
  letter-spacing: .04em; line-height: 1;
}
.site-logo-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: .5rem;
  background: rgba(255,255,255,.95);
  padding: .2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.site-logo-mark--lg {
  width: 44px;
  height: 44px;
  padding: .25rem;
}
.acm-logo-badge--lg { font-size: 1rem; padding: .45rem .8rem; }
.acm-dropdown {
  border: 1px solid rgba(11,61,145,.12); box-shadow: var(--shadow-md);
  border-radius: var(--r-lg); padding: .4rem; min-width: 200px;
}
.acm-dropdown .dropdown-item {
  border-radius: var(--r-sm); font-size: .875rem; padding: .5rem .85rem;
  transition: var(--t-fast); color: var(--gray-700);
}
.acm-dropdown .dropdown-item:hover { background: var(--acm-blue-pale); color: var(--acm-blue); }

/* ── Buttons ──────────────────────────────────────────── */
.btn-acm-primary {
  background: linear-gradient(135deg, var(--acm-blue-mid) 0%, var(--acm-blue) 100%);
  color: #fff !important;
  border: none;
  border-radius: var(--r-2xl);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-blue);
  transition: var(--t-mid);
  padding: 0.7rem 2rem;
}

.btn-acm-primary:hover {
  background: linear-gradient(135deg, var(--acm-blue) 0%, #082d6e 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(11, 61, 145, 0.35);
}

.btn-acm-accent {
  background: linear-gradient(135deg, var(--acm-accent) 0%, var(--acm-accent-dk) 100%);
  color: #fff !important;
  border: none;
  border-radius: var(--r-2xl);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px rgba(0, 118, 206, 0.35);
  transition: var(--t-mid);
  padding: 0.8rem 2rem;
}

.btn-acm-accent:hover {
  background: linear-gradient(135deg, var(--acm-accent-dk) 0%, #00457A 100%);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 90, 156, 0.4);
}

.btn-outline-acm {
  border: 2px solid var(--acm-blue);
  color: var(--acm-blue) !important;
  border-radius: var(--r-2xl);
  font-weight: 600;
  font-size: 0.875rem;
  background: transparent;
  transition: var(--t-mid);
  padding: 0.6rem 1.5rem;
}

.btn-outline-acm:hover {
  background: var(--acm-blue);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn-outline-light {
  border-radius: var(--r-2xl) !important;
  font-weight: 600;
}

.btn-acm-ghost {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff !important;
  border-radius: var(--r-2xl);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--t-mid);
  backdrop-filter: blur(8px);
  padding: 0.8rem 2rem;
}

.btn-acm-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* ── Hero Section ─────────────────────────────────────── */
/* Hero Section with Slideshow Background */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  padding: 0;
}

/* Hero Video Background */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.015);
  pointer-events: none;
  filter: saturate(1.08) contrast(1.02);
}

/* Dark overlay for text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 18, 38, 0.72) 0%, rgba(10, 18, 38, 0.35) 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-atmosphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  z-index: 4;
  pointer-events: none;
  opacity: .55;
  animation: floatDrift 14s ease-in-out infinite;
}
.hero-atmosphere-1 {
  width: 28rem;
  height: 28rem;
  right: -8rem;
  top: -7rem;
  background: radial-gradient(circle at 30% 30%, rgba(59,130,246,.42), rgba(59,130,246,0));
}
.hero-atmosphere-2 {
  width: 24rem;
  height: 24rem;
  left: -6rem;
  bottom: -7rem;
  background: radial-gradient(circle at 60% 40%, rgba(245,158,11,.36), rgba(245,158,11,0));
  animation-delay: -4s;
}

/* Hero Content - sits above slideshow */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 100%;
  width: 100%;
  padding-inline: clamp(1rem, 3.5vw, 3rem);
  overflow: hidden;
}

.hero-content-row {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.hero-copy-col {
  padding-left: clamp(.2rem, 1.2vw, .9rem);
  padding-right: clamp(.2rem, 1.2vw, .9rem);
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-2xl);
  margin-bottom: 1rem;
}

/* Hero Typography */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero-title .highlight {
  color: var(--acm-accent);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--acm-accent), transparent);
  border-radius: 2px;
  opacity: 0.6;
}

.hero-subtitle {
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* ── Landing Section Motion System ───────────────────── */
.landing-section {
  position: relative;
  opacity: 1;
  transform: none;
  transition: none;
}
.landing-section.in-view {
  opacity: 1;
  transform: none;
}
.landing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11,61,145,.18), transparent);
  pointer-events: none;
}
.landing-section-light {
  background-image: radial-gradient(circle at 12% -10%, rgba(11,61,145,.035), transparent 38%);
}
.landing-section-muted {
  background-image: radial-gradient(circle at 80% 10%, rgba(26,86,196,.06), transparent 42%);
}
.landing-section-soft {
  background-image: radial-gradient(circle at 50% -20%, rgba(245,158,11,.06), transparent 48%);
}

.section-title,
.section-badge,
.section-divider {
  transition: transform .35s var(--ease-out), filter .35s var(--ease-out);
}
.landing-section.in-view .section-title { filter: none; }
.landing-section:hover .section-badge {
  transform: translateY(-1px);
}

/* ── Section Headings ─────────────────────────────────── */
.section-badge, .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--acm-blue-pale);
  color: var(--acm-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: var(--r-2xl);
  border: 1px solid rgba(11, 61, 145, 0.15);
  margin-bottom: 1rem;
  animation: fadeInUp 0.65s var(--ease-out) both;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 48px;
  height: 5px;
  background: linear-gradient(90deg, var(--acm-blue), var(--acm-accent));
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

.section-divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* ── Page Hero (inner pages) ──────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0a2558 0%, var(--acm-blue) 55%, var(--acm-blue-mid) 100%);
  padding: 5.5rem 0 8rem; position: relative; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 87%, 0 100%);
  margin-bottom: 3rem;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.22) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 72%, rgba(255,255,255,.18) 0 2px, transparent 3px),
    repeating-linear-gradient(122deg, rgba(255,255,255,.09) 0 1px, transparent 1px 68px),
    repeating-linear-gradient(30deg, rgba(255,255,255,.06) 0 1px, transparent 1px 84px);
  background-size: auto, auto, 300px 300px, 360px 360px;
  pointer-events: none;
}
.page-hero-dots {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(42,157,244,.16), transparent 34%),
    radial-gradient(circle at 78% 70%, rgba(255,255,255,.12), transparent 30%);
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute;
  top: -100px; right: -100px;
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 0 80px rgba(245,158,11,.07);
  pointer-events: none;
}
.page-hero h1 { font-family: var(--font-display); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.page-hero .lead { color: rgba(255,255,255,.75); }
.page-hero .section-badge { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.2); }
.breadcrumb-item a { color: rgba(255,255,255,.65); text-decoration: none; }
.breadcrumb-item.active { color: rgba(255,255,255,.4); }

/* ── acm-card base ──────────────────────────────────── */
.acm-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-xl);
  overflow: hidden; transition: var(--t-mid); position: relative;
}
.acm-card:hover { border-color: rgba(11,61,145,.18); box-shadow: var(--shadow-md); transform: translateY(-5px); }
.acm-card .card-img-top { width: 100%; height: 210px; object-fit: cover; }
.card-img-placeholder {
  width: 100%; height: 210px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,.4);
  background: linear-gradient(135deg, var(--acm-blue) 0%, var(--acm-blue-mid) 100%);
}

/* ── Global Card Polish ─────────────────────────────── */
:is(
  .acm-card,
  .sig-card-v2,
  .team-card,
  .blog-card-v2,
  .job-card,
  .framework-card,
  .resource-hub-card,
  .rss-feed-card,
  .impact-stat-card,
  .featured-blog
) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(10, 37, 88, .05);
  background-image: linear-gradient(165deg, rgba(255,255,255,.98), rgba(250,252,255,.98));
}

:is(
  .acm-card,
  .sig-card-v2,
  .team-card,
  .blog-card-v2,
  .job-card,
  .framework-card,
  .resource-hub-card,
  .rss-feed-card,
  .impact-stat-card,
  .featured-blog
)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0) 15%, rgba(255,255,255,.38) 52%, rgba(255,255,255,0) 85%);
  transform: translateX(-115%);
  transition: transform .6s var(--ease-out);
  z-index: 0;
}

:is(
  .acm-card,
  .sig-card-v2,
  .team-card,
  .blog-card-v2,
  .job-card,
  .framework-card,
  .resource-hub-card,
  .rss-feed-card,
  .impact-stat-card,
  .featured-blog
):hover::after {
  transform: translateX(115%);
}

:is(
  .acm-card,
  .sig-card-v2,
  .team-card,
  .blog-card-v2,
  .job-card,
  .framework-card,
  .resource-hub-card,
  .rss-feed-card,
  .impact-stat-card,
  .featured-blog
) > * {
  position: relative;
  z-index: 1;
}

/* Professional multi-tone accents across grid cards */
.row > div:nth-child(4n+1) .framework-card,
.row > div:nth-child(4n+1) .resource-hub-card,
.row > div:nth-child(4n+1) .impact-stat-card,
.row > div:nth-child(4n+1) .rss-feed-card,
.row > div:nth-child(4n+1) .blog-card-v2 {
  border-top: 3px solid #0B3D91;
}
.row > div:nth-child(4n+2) .framework-card,
.row > div:nth-child(4n+2) .resource-hub-card,
.row > div:nth-child(4n+2) .impact-stat-card,
.row > div:nth-child(4n+2) .rss-feed-card,
.row > div:nth-child(4n+2) .blog-card-v2 {
  border-top: 3px solid #005A9C;
}
.row > div:nth-child(4n+3) .framework-card,
.row > div:nth-child(4n+3) .resource-hub-card,
.row > div:nth-child(4n+3) .impact-stat-card,
.row > div:nth-child(4n+3) .rss-feed-card,
.row > div:nth-child(4n+3) .blog-card-v2 {
  border-top: 3px solid #26547C;
}
.row > div:nth-child(4n) .framework-card,
.row > div:nth-child(4n) .resource-hub-card,
.row > div:nth-child(4n) .impact-stat-card,
.row > div:nth-child(4n) .rss-feed-card,
.row > div:nth-child(4n) .blog-card-v2 {
  border-top: 3px solid #0F766E;
}

.row > div:nth-child(4n+1) .framework-card-icon,
.row > div:nth-child(4n+1) .resource-hub-icon,
.row > div:nth-child(4n+1) .impact-stat-icon {
  background: linear-gradient(135deg, #EAF2FF, #fff);
  color: #0B3D91;
}
.row > div:nth-child(4n+2) .framework-card-icon,
.row > div:nth-child(4n+2) .resource-hub-icon,
.row > div:nth-child(4n+2) .impact-stat-icon {
  background: linear-gradient(135deg, #EAF3FB, #fff);
  color: #005A9C;
}
.row > div:nth-child(4n+3) .framework-card-icon,
.row > div:nth-child(4n+3) .resource-hub-icon,
.row > div:nth-child(4n+3) .impact-stat-icon {
  background: linear-gradient(135deg, #ECF4FA, #fff);
  color: #26547C;
}
.row > div:nth-child(4n) .framework-card-icon,
.row > div:nth-child(4n) .resource-hub-icon,
.row > div:nth-child(4n) .impact-stat-icon {
  background: linear-gradient(135deg, #EAF7F5, #fff);
  color: #0F766E;
}

/* ── Overlay Card ─────────────────────────────────────── */
.overlay-card {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: var(--gray-900); aspect-ratio: 4/3; cursor: pointer;
  transition: var(--t-mid); display: block; text-decoration: none !important;
  will-change: transform;
}
.overlay-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); opacity: .85; }
.overlay-card:hover img { transform: scale(1.06); opacity: 1; }
.overlay-card .oc-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,18,38,.95) 0%, rgba(10,18,38,.5) 45%, transparent 100%);
  transition: var(--t-mid);
}
.overlay-card:hover .oc-gradient { background: linear-gradient(to top, rgba(10,18,38,.98) 0%, rgba(10,18,38,.65) 55%, transparent 100%); }
.overlay-card .oc-body   { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; }
.overlay-card .oc-top    { position: absolute; top: 1rem; left: 1rem; right: 1rem; display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.overlay-card .oc-title  { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: #fff; margin: 0 0 .4rem; line-height: 1.3; }
.overlay-card .oc-meta   { font-size: .78rem; color: rgba(255,255,255,.65); display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.overlay-card .oc-tagline{ font-size: .82rem; color: rgba(255,255,255,.7); margin: .25rem 0 .75rem; line-height: 1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.overlay-card:hover .oc-tagline { -webkit-line-clamp: 3; }
.overlay-card .oc-placeholder { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.75rem; }
.overlay-card .oc-placeholder i { font-size:3rem; color:rgba(255,255,255,.3); }

/* ── Badges & Chips ──────────────────────────────────── */
.ev-chip, .event-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .68rem; font-weight: 700; padding: .22rem .65rem;
  border-radius: var(--r-2xl); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.ev-chip-Workshop,.event-badge.Workshop     { background:#dbeafe; color:#1d4ed8; }
.ev-chip-Talk,.event-badge.Talk             { background:#d1fae5; color:#065f46; }
.ev-chip-Hackathon,.event-badge.Hackathon   { background:#fce7f3; color:#9d174d; }
.ev-chip-Competition,.event-badge.Competition { background:#E6F2FB; color:#005A9C; }
.ev-chip-Networking,.event-badge.Networking { background:#ede9fe; color:#4c1d95; }
.ev-chip-Social,.event-badge.Social         { background:#fee2e2; color:#991b1b; }
.ev-chip-Webinar,.event-badge.Webinar       { background:#cffafe; color:#155e75; }
.ev-chip-Conference,.event-badge.Conference { background:#f3e8ff; color:#581c87; }
.ev-chip-dark { background:rgba(255,255,255,.14); color:rgba(255,255,255,.9); border:1px solid rgba(255,255,255,.22); backdrop-filter:blur(4px); }
.event-badge-Published   { background:#d1fae5; color:#065f46; }
.event-badge-Upcoming    { background:#dbeafe; color:#1e40af; }
.event-badge-Completed   { background:#f3f4f6; color:#6b7280; }
.event-badge-Cancelled   { background:#fee2e2; color:#991b1b; }
.event-badge-Workshop    { background:#dbeafe; color:#1d4ed8; }
.event-badge-Talk        { background:#d1fae5; color:#065f46; }
.event-badge-Hackathon   { background:#fce7f3; color:#9d174d; }

/* ── Filter Chips ────────────────────────────────────── */
.filter-chips { display:flex; gap:.5rem; flex-wrap:wrap; align-items:center; }
.filter-chip {
  display:inline-block; padding:.35rem 1rem; border-radius:var(--r-2xl);
  font-size:.8rem; font-weight:600; border:1.5px solid var(--gray-200);
  color:var(--gray-500); background:#fff; cursor:pointer; text-decoration:none;
  transition:var(--t-fast); white-space:nowrap;
}
.filter-chip:hover { border-color:var(--acm-blue); color:var(--acm-blue); }
.filter-chip.active { background:var(--acm-blue); border-color:var(--acm-blue); color:#fff; box-shadow:var(--shadow-blue); }

/* ── Calendar UI Enhancements ───────────────────────── */
.calendar-actions .btn { min-width: 92px; display:inline-flex; align-items:center; gap:.5rem; font-weight:700 }
.calendar-actions .btn i { font-size:1rem }
.calendar-wrapper {
  background: #fff; border: 1px solid var(--gray-200); border-radius: .75rem; padding: .75rem; box-shadow: var(--shadow-sm);
  max-width: 1100px; margin-left: auto; margin-right: auto;
}
.calendar-controls { align-items: center; }
.calendar-controls .btn { border-radius: .5rem; }
.calendar-controls .btn:focus { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.calendar-controls .btn.active, .calendar-controls .btn.active:focus { background: var(--acm-blue); color: #fff; border-color: var(--acm-blue); }

/* fullcalendar tweaks */
.calendar-wrapper .fc { font-size: .95rem; }
.calendar-wrapper .fc-theme-bootstrap .fc-toolbar { display:none; }

/* Mobile adjustments */
@media (max-width: 768px) {
  .calendar-actions .btn { min-width: 72px; padding-left: .6rem; padding-right: .6rem }
  .calendar-controls { width:100%; flex-wrap:wrap; justify-content:space-between }
  .calendar-controls .btn { margin-bottom: .4rem }
  .calendar-wrapper { padding: .5rem; }
}

@media (max-width: 576px) {
  .calendar-wrapper { max-height: 60vh; overflow:auto; padding: .5rem; }
  .calendar-actions { width:100%; }
  .calendar-actions .btn { width:48%; }
}

/* ── Team card share UI ─────────────────────────────── */
.team-card { position: relative; }
.team-card .socials { display:flex; gap:.5rem; justify-content:center; padding: .6rem 0 1rem; position: relative; overflow: visible; }
.share-wrap { position: static; display:inline-block; }
.share-btn { border-radius: .5rem; padding: .28rem .5rem; display:inline-flex; align-items:center; justify-content:center }
.share-menu {
  position: absolute; left: .1rem; right: .1rem; bottom: calc(100% + .5rem);
  background: #fff; border: 1px solid var(--gray-200); border-radius: .75rem; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; width: auto; padding: .4rem; gap: .25rem; z-index: 120;
  opacity: 0; transform: translateY(.6rem); pointer-events: none; transition: var(--t-fast);
  overflow: hidden;
}
.share-menu a, .share-menu button.share-item { text-align: left; padding: .45rem .6rem; font-size: .9rem; color:var(--gray-700); background:transparent; border:none; border-radius:.5rem; cursor:pointer }
.share-menu a:hover, .share-menu button.share-item:hover { background: var(--gray-100); }
.share-wrap.open .share-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }

@media (max-width: 576px) {
  .share-menu { left: .15rem; right: .15rem; }
}

/* Share item layout and logo colors */

.share-menu a, .share-menu button.share-item { display:flex; align-items:center; gap:.6rem; padding:.6rem .75rem; }
.share-menu i { font-size:1.15rem; width:28px; text-align:center; flex:0 0 28px; }
.share-menu span { flex:1; font-weight:700; color:var(--gray-800); }
.share-item { color:var(--gray-700); }
.share-item:hover { color:var(--gray-900); background:var(--gray-50); }
.share-item .bi-linkedin { color:#0A66C2; }
.share-item .bi-whatsapp { color:#25D366; }
.share-item .bi-twitter-x { color:#1DA1F2; }
.share-item .bi-telegram { color:#0088cc; }
.share-item .bi-clipboard { color:var(--gray-500); }



.filter-select {
  border:1.5px solid var(--gray-200); border-radius:var(--r-2xl); padding:.35rem 1.25rem .35rem .85rem;
  font-size:.82rem; font-weight:500; color:var(--gray-700); background:#fff; appearance:none; cursor:pointer; transition:var(--t-fast);
}
.filter-select:focus { border-color:var(--acm-blue); outline:none; box-shadow:0 0 0 3px rgba(11,61,145,.1); }

/* ── SIG Cards ───────────────────────────────────────── */
.sig-card-v2 {
  background:#fff; border:1px solid var(--gray-200); border-radius:var(--r-xl);
  padding:2rem 1.75rem; transition:var(--t-mid); position:relative; overflow:hidden;
  height:100%; display:flex; flex-direction:column;
  will-change: transform;
}
.sig-card-v2::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:var(--sig-color,linear-gradient(90deg,var(--acm-blue),var(--acm-accent))); transition:height var(--t-mid); }
.sig-card-v2:hover { box-shadow:var(--shadow-md); transform:translateY(-5px); }
.sig-card-v2:hover::before { height:6px; }
.sig-icon-circle { width:60px; height:60px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.5rem; margin-bottom:1.25rem; flex-shrink:0; }
.sig-c-blue   { --sig-color:linear-gradient(90deg,#0B3D91,#3B82F6); background:#EFF6FF; color:#1d4ed8; }
.sig-c-purple { --sig-color:linear-gradient(90deg,#7c3aed,#a78bfa); background:#f5f3ff; color:#6d28d9; }
.sig-c-green  { --sig-color:linear-gradient(90deg,#059669,#34d399); background:#ecfdf5; color:#047857; }
.sig-c-orange { --sig-color:linear-gradient(90deg,#005A9C,#2A9DF4); background:#EAF3FB; color:#005A9C; }
.sig-c-rose   { --sig-color:linear-gradient(90deg,#be185d,#f472b6); background:#fff1f2; color:#9d174d; }
.sig-c-cyan   { --sig-color:linear-gradient(90deg,#0e7490,#22d3ee); background:#ecfeff; color:#155e75; }
/* legacy */
.sig-card { background:#fff; border:1px solid var(--gray-200); border-radius:var(--r-xl); padding:1.75rem; transition:var(--t-mid); position:relative; overflow:hidden; }
.sig-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:linear-gradient(90deg,var(--acm-blue),var(--acm-accent)); }
.sig-card:hover { box-shadow:var(--shadow-md); transform:translateY(-4px); }
.sig-icon { font-size:2.25rem; color:var(--acm-blue); margin-bottom:1rem; }

/* ── Team Cards ──────────────────────────────────────── */
.team-card {
  background:#fff; border:1px solid var(--gray-200); border-radius:var(--r-xl);
  padding:2rem 1.5rem 1.5rem; text-align:center; overflow-x:hidden; overflow-y:visible; position:relative;
  z-index: 1;
  transform: translateY(0);
  box-shadow: 0 8px 22px rgba(10,37,88,.06);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .28s var(--ease-out);
  will-change: transform, box-shadow;
}
.team-card::after { content:''; position:absolute; top:0; left:0; right:0; height:80px; background:linear-gradient(135deg,var(--acm-blue-pale),rgba(255,255,255,0)); pointer-events:none; }
.team-card:hover { box-shadow:0 20px 42px rgba(10,37,88,.16); transform:translateY(-7px); border-color:rgba(11,61,145,.22); z-index: 4; }
.team-card:focus-within { box-shadow:0 20px 42px rgba(10,37,88,.16); border-color:rgba(11,61,145,.22); z-index: 4; }
.team-card-img {
  width:88px; height:88px; border-radius:50%; object-fit:cover;
  border:3px solid #fff; box-shadow:0 0 0 3px var(--acm-accent),var(--shadow-sm);
  margin:0 auto .75rem; display:block; position:relative; z-index:1;
}
.team-card .photo { width:88px; height:88px; border-radius:50%; object-fit:cover; border:3px solid var(--acm-accent); margin:0 auto 1rem; display:block; }
.team-card .photo-placeholder { width:88px; height:88px; border-radius:50%; background:linear-gradient(135deg,var(--acm-blue),var(--acm-blue-mid)); display:flex; align-items:center; justify-content:center; font-size:2rem; color:rgba(255,255,255,.7); margin:0 auto 1rem; border:3px solid var(--acm-accent); position:relative; z-index:1; }
.team-card .name { font-weight:700; font-size:1rem; color:var(--gray-900); margin:.2rem 0; }
.team-card .role { font-size:.74rem; color:var(--acm-blue); font-weight:700; text-transform:uppercase; letter-spacing:.07em; }
.team-card .socials { display:flex; justify-content:center; gap:.4rem; margin-top:.75rem; }
.team-card .socials > a { width:30px; height:30px; border-radius:50%; border:1px solid var(--gray-200); display:flex; align-items:center; justify-content:center; color:var(--gray-500); font-size:.82rem; transition:var(--t-fast); }
.team-card .socials > a:hover { background:var(--acm-blue); border-color:var(--acm-blue); color:#fff; }

/* Category badge */
.team-category-badge { display:inline-block; background:rgba(11,61,145,.08); color:var(--acm-blue); font-weight:700; padding:.18rem .45rem; border-radius:999px; font-size:.72rem; letter-spacing:.04em }

/* Category-specific tweaks */
.team-card-executives { padding-top:3rem; }
.team-card-leads { border-left:4px solid rgba(59,130,246,.12); }
.team-card-officers { border-left:4px solid rgba(16,185,129,.08); }
.team-card-members { opacity:.98; }

/* Larger avatar for executives */
.team-card-executives .team-card-img, .team-card-executives .photo-placeholder { width:104px; height:104px; margin-bottom:1rem }

@media (max-width:768px) {
  .team-card-executives .team-card-img, .team-card-executives .photo-placeholder { width:88px; height:88px }
}

@media (hover: none) {
  .team-card:hover { transform: translateY(0); box-shadow: 0 10px 24px rgba(10,37,88,.1); }
}

/* Student category styling */
.team-card-students { border-left:4px solid rgba(99,102,241,.08); }
.team-card-students .team-category-badge { background:rgba(99,102,241,.08); color:var(--acm-blue-mid); }
.team-card-students .team-card-img, .team-card-students .photo-placeholder { box-shadow:0 6px 20px rgba(99,102,241,.06); }

/* ── Blog Cards ──────────────────────────────────────── */
.blog-card-v2 { background:#fff; border:1px solid var(--gray-200); border-radius:var(--r-xl); overflow:hidden; transition:var(--t-mid); height:100%; display:flex; flex-direction:column; }
.blog-card-v2:hover { box-shadow:var(--shadow-md); transform:translateY(-4px); border-color:rgba(11,61,145,.15); }
.blog-card-v2 .blog-cover { height:200px; overflow:hidden; position:relative; background:linear-gradient(135deg,var(--acm-blue),var(--acm-blue-mid)); }
.blog-card-v2 .blog-cover img { width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease-out); }
.blog-card-v2:hover .blog-cover img { transform:scale(1.06); }
.blog-card-v2 .blog-cover-placeholder { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.5rem; color:rgba(255,255,255,.4); }
.blog-card-v2 .blog-cover-placeholder i { font-size:2.5rem; }
.blog-card-v2 .blog-body { padding:1.5rem; flex:1; display:flex; flex-direction:column; }
.blog-card-v2 .blog-title { font-family:var(--font-display); font-size:1.05rem; font-weight:700; color:var(--gray-900); line-height:1.3; margin:.5rem 0 .5rem; }
.blog-card-v2 .blog-title a { color:inherit; text-decoration:none; }
.blog-card-v2 .blog-title a:hover { color:var(--acm-blue); }
.blog-card-v2 .blog-excerpt { font-size:.85rem; color:var(--gray-500); line-height:1.6; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; flex:1; }
.blog-card-v2 .blog-footer { margin-top:1rem; padding-top:.85rem; border-top:1px solid var(--gray-100); display:flex; align-items:center; justify-content:space-between; }
.blog-card .cover { height:210px; object-fit:cover; border-radius:var(--r-lg) var(--r-lg) 0 0; }
.featured-blog { border-radius:var(--r-xl); overflow:hidden; background:#fff; border:1px solid var(--gray-200); box-shadow:var(--shadow-sm); transition:var(--t-mid); }
.featured-blog:hover { box-shadow:var(--shadow-md); }
.featured-blog .fb-cover { height:100%; min-height:280px; background:linear-gradient(135deg,var(--acm-blue),var(--acm-blue-mid)); position:relative; overflow:hidden; }
.featured-blog .fb-cover img { width:100%; height:100%; object-fit:cover; }

/* ── Home News Slideshow ─────────────────────────────── */
.news-slider {
  position: relative;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.news-slider-track {
  position: relative;
  min-height: 430px;
}
.news-slide {
  --tone-primary: var(--acm-blue);
  --tone-rgb: 11, 61, 145;
  --tone-soft: #eaf2ff;
  --tone-ink: #0a2558;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s var(--ease-out), visibility .45s var(--ease-out);
}
.news-slide-tone-1 { --tone-primary:#0B3D91; --tone-rgb:11,61,145; --tone-soft:#EAF2FF; --tone-ink:#0a2558; }
.news-slide-tone-2 { --tone-primary:#005A9C; --tone-rgb:0,90,156; --tone-soft:#EAF3FB; --tone-ink:#0a2f4d; }
.news-slide-tone-3 { --tone-primary:#26547C; --tone-rgb:38,84,124; --tone-soft:#ECF4FA; --tone-ink:#18324d; }
.news-slide-tone-4 { --tone-primary:#2C5282; --tone-rgb:44,82,130; --tone-soft:#EDF3FA; --tone-ink:#1e3654; }
.news-slide-tone-5 { --tone-primary:#0F766E; --tone-rgb:15,118,110; --tone-soft:#EAF7F5; --tone-ink:#0f4e4a; }
.news-slide-tone-6 { --tone-primary:#7C5A22; --tone-rgb:124,90,34; --tone-soft:#FBF6EA; --tone-ink:#4f3a16; }
.news-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.news-slide-media {
  height: 100%;
  min-height: 430px;
  background: linear-gradient(130deg, var(--acm-blue), var(--acm-blue-mid));
  overflow: hidden;
  position: relative;
}
.news-slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.2), transparent 48%),
    linear-gradient(140deg, rgba(255,255,255,.05), rgba(0,0,0,.18));
  pointer-events: none;
}
.news-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .7s var(--ease-out), filter .7s var(--ease-out);
  filter: saturate(1.06) contrast(1.04);
}
.news-slide.is-active .news-slide-media img {
  transform: scale(1.06);
}
.news-slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .6rem;
  color: rgba(255, 255, 255, .75);
}
.news-feed-grad-1 { background: linear-gradient(140deg, #0a2558, #1A56C4); }
.news-feed-grad-2 { background: linear-gradient(140deg, #4c1d95, #7c3aed); }
.news-feed-grad-3 { background: linear-gradient(140deg, #065f46, #059669); }
.news-feed-grad-4 { background: linear-gradient(140deg, #92400e, #d97706); }
.news-slide-placeholder i {
  font-size: 3rem;
  color: rgba(255, 255, 255, .6);
}
.news-slide-placeholder span {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.news-slide-media-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  background: rgba(10, 18, 38, .6);
  border: 1px solid rgba(255, 255, 255, .26);
  color: rgba(255,255,255,.95);
  border-radius: 999px;
  padding: .28rem .75rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.news-slide-body {
  height: 100%;
  min-height: 430px;
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(165deg, var(--tone-soft) 0%, rgba(255,255,255,.95) 38%, #fff 100%);
  border-left: 1px solid rgba(var(--tone-rgb), .12);
  position: relative;
}
.news-slide-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--tone-primary), rgba(var(--tone-rgb), .42));
}
.news-slide-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.news-chip {
  background: rgba(var(--tone-rgb), .11) !important;
  color: var(--tone-ink) !important;
  border: 1px solid rgba(var(--tone-rgb), .2);
}
.news-slide-date {
  font-size: .78rem;
  color: var(--tone-ink);
  font-weight: 600;
  letter-spacing: .03em;
  background: rgba(var(--tone-rgb), .08);
  border: 1px solid rgba(var(--tone-rgb), .16);
  border-radius: 999px;
  padding: .28rem .65rem;
}
.news-slide-title {
  margin: .85rem 0 .75rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--gray-900);
  font-family: var(--font-display);
}
.news-slide-title a {
  color: inherit;
  text-decoration: none;
}
.news-slide-title a:hover {
  color: var(--tone-primary);
}
.news-slide-excerpt {
  color: var(--gray-600);
  font-size: .98rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}
.news-slide-details {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}
.news-detail-item {
  border: 1px solid rgba(var(--tone-rgb), .16);
  background: linear-gradient(165deg, rgba(var(--tone-rgb), .07), rgba(255,255,255,.98));
  border-radius: .8rem;
  padding: .72rem .8rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .76rem;
  color: var(--tone-ink);
  box-shadow: 0 6px 14px rgba(10, 37, 88, .05);
}
.news-detail-item:nth-child(2) {
  background: linear-gradient(165deg, rgba(var(--tone-rgb), .1), rgba(255,255,255,.98));
}
.news-detail-item:nth-child(3) {
  background: linear-gradient(165deg, rgba(var(--tone-rgb), .13), rgba(255,255,255,.98));
}
.news-detail-item i {
  color: var(--tone-primary);
  font-size: .9rem;
}
.news-detail-item a {
  color: var(--tone-primary);
  text-decoration: none;
  font-weight: 600;
}
.news-detail-item a:hover {
  text-decoration: underline;
}
.news-slider-nav {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--acm-blue);
  box-shadow: var(--shadow-sm);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--t-fast);
}
.news-slider-nav:hover {
  background: #fff;
  color: var(--acm-accent);
  box-shadow: var(--shadow-md);
}
.news-slider-nav.is-prev {
  left: 1rem;
}
.news-slider-nav.is-next {
  right: 1rem;
}
.news-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: .45rem;
  padding: .4rem .55rem;
  border-radius: 999px;
  background: rgba(10, 18, 38, .36);
  backdrop-filter: blur(4px);
}
.news-slider-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  transition: var(--t-fast);
}
.news-slider-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: #fff;
}

/* ── Job Cards ───────────────────────────────────────── */
.job-card { background:#fff; border:1px solid var(--gray-200); border-radius:var(--r-lg); padding:1.5rem; transition:var(--t-mid); position:relative; }
.job-card::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:transparent; border-radius:var(--r-lg) 0 0 var(--r-lg); transition:background var(--t-fast); }
.job-card:hover { box-shadow:var(--shadow-sm); border-color:rgba(11,61,145,.2); transform:translateX(3px); }
.job-card:hover::before { background:linear-gradient(to bottom,var(--acm-blue),var(--acm-accent)); }
.job-badge { font-size:.72rem; font-weight:700; padding:.22rem .7rem; border-radius:var(--r-2xl); letter-spacing:.04em; }
.job-badge-fulltime   { background:#d1fae5; color:#065f46; }
.job-badge-parttime   { background:#dbeafe; color:#1d4ed8; }
.job-badge-internship { background:#E6F2FB; color:#005A9C; }
.job-badge-contract   { background:#ede9fe; color:#5b21b6; }
.job-badge-remote     { background:#d1fae5; color:#065f46; }
.job-badge-freelance  { background:#fce7f3; color:#9d174d; }

/* ── Gallery ─────────────────────────────────────────── */
.album-card { border-radius:var(--r-xl); overflow:hidden; background:var(--gray-900); position:relative; cursor:pointer; transition:var(--t-mid); }
.album-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); }
.album-card img { width:100%; height:240px; object-fit:cover; transition:transform .5s var(--ease-out); opacity:.85; }
.album-card:hover img { transform:scale(1.05); opacity:1; }
.album-card .album-overlay { position:absolute; inset:0; background:linear-gradient(to top,rgba(10,18,38,.9) 0%,rgba(10,18,38,.3) 55%,transparent 100%); }
.album-card .album-body { position:absolute; bottom:0; left:0; right:0; padding:1.25rem; }
.album-card .album-cover { height:220px; object-fit:cover; border-radius:var(--r-lg); }
.album-card .cover { height:220px; object-fit:cover; border-radius:var(--r-lg); }

/* ── Certificate Verify ──────────────────────────────── */
.cert-result-valid   { border:2px solid #10b981; background:#f0fdf4; border-radius:var(--r-xl); }
.cert-result-invalid { border:2px solid #ef4444; background:#fef2f2; border-radius:var(--r-xl); }
.cert-result-revoked { border:2px solid #0076CE; background:#E6F2FB; border-radius:var(--r-xl); }

/* ── Sponsors ────────────────────────────────────────── */
.sponsor-marquee-wrap { position:relative; }
.sponsor-marquee {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:1.75rem 2.25rem;
  align-items:center;
  width:100%;
}
.sponsor-logo-img { height:44px; width:auto; max-width:160px; object-fit:contain; filter:grayscale(1); opacity:.55; transition:var(--t-mid); flex-shrink:0; }
.sponsor-logo-img:hover { filter:grayscale(0); opacity:1; transform:scale(1.05); }
.sponsor-logo,.sponsor-strip { height:48px; object-fit:contain; filter:grayscale(1); opacity:.6; transition:var(--t-mid); }
.sponsor-strip { height:auto; background:#fff; padding:2rem 0; border-top:1px solid var(--gray-200); border-bottom:1px solid var(--gray-200); }
.sponsor-strip .sponsor-logo:hover { filter:grayscale(0); opacity:1; }

/* ── Forms ───────────────────────────────────────────── */
.form-control,.form-select { border:1.5px solid var(--gray-200); border-radius:var(--r-md); padding:.6rem .9rem; font-size:.9rem; color:var(--gray-700); transition:var(--t-fast); }
.form-control:focus,.form-select:focus { border-color:var(--acm-blue); box-shadow:0 0 0 3px rgba(11,61,145,.1); outline:none; }
.form-label { font-size:.85rem; font-weight:600; color:var(--gray-700); margin-bottom:.35rem; }
.membership-card { background:#fff; border-radius:var(--r-xl); box-shadow:var(--shadow-lg); overflow:hidden; }

/* ── Pagination ──────────────────────────────────────── */
.pagination .page-link { border-radius:var(--r-sm)!important; border:1.5px solid var(--gray-200); color:var(--acm-blue); font-weight:600; font-size:.875rem; transition:var(--t-fast); margin:0 .15rem; }
.pagination .page-item.active .page-link { background:var(--acm-blue); border-color:var(--acm-blue); box-shadow:var(--shadow-blue); }
.pagination .page-link:hover { background:var(--acm-blue-pale); }

/* ── CTA Section ──────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #0a2558 0%, var(--acm-blue) 55%, var(--acm-blue-mid) 100%);
  position: relative; overflow: hidden;
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  margin: -1px 0;
  padding: 3rem 0;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}
.cta-section::after {
  content: ''; position: absolute;
  bottom: -100px; left: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
}
/* Remove blob classes but keep for markup compatibility */
.cta-blob,.cta-blob-1,.cta-blob-2 { display:none; }

/* ── Value Strip ──────────────────────────────────────── */
.value-strip {
  background: linear-gradient(135deg, #f7f9fc 0%, #eef2f8 100%);
  border-bottom: 1px solid rgba(10, 37, 88, .08);
  padding: var(--section-py) 0;
}

.value-strip .row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.value-strip .row > [class*="col-"] {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
}

.value-item {
  text-align: center;
  padding: 2.1rem 1.3rem;
  position: relative;
  transition: var(--t-mid);
  border: 1px solid rgba(10, 37, 88, .1) !important;
  border-radius: 1.2rem;
  background: linear-gradient(170deg, rgba(255,255,255,.98), rgba(247,250,255,.98));
  box-shadow: 0 8px 20px rgba(10, 37, 88, .06);
  overflow: hidden;
}

.value-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0B3D91, #2A9DF4);
}

.value-item:nth-child(2)::before {
  background: linear-gradient(90deg, #005A9C, #3BA4E9);
}

.value-item:nth-child(3)::before {
  background: linear-gradient(90deg, #26547C, #4D82B8);
}

.value-item:nth-child(4)::before {
  background: linear-gradient(90deg, #0F766E, #2DB9A8);
}

.value-item:hover {
  transform: translateY(-6px);
  border-color: rgba(10, 37, 88, .2) !important;
  box-shadow: 0 16px 34px rgba(10, 37, 88, .12);
}

.value-item-icon {
  font-size: 1.55rem;
  color: #0B3D91;
  margin-bottom: 1.05rem;
  transition: var(--t-mid);
  display: inline-flex;
  width: 62px;
  height: 62px;
  border-radius: 1rem;
  background: linear-gradient(135deg, #EAF2FF, #fff);
  border: 1px solid rgba(11, 61, 145, .18);
  align-items: center;
  justify-content: center;
}

.value-item:nth-child(2) .value-item-icon {
  color: #005A9C;
  background: linear-gradient(135deg, #EAF3FB, #fff);
  border-color: rgba(0, 90, 156, .2);
}

.value-item:nth-child(3) .value-item-icon {
  color: #26547C;
  background: linear-gradient(135deg, #ECF4FA, #fff);
  border-color: rgba(38, 84, 124, .2);
}

.value-item:nth-child(4) .value-item-icon {
  color: #0F766E;
  background: linear-gradient(135deg, #EAF7F5, #fff);
  border-color: rgba(15, 118, 110, .2);
}

.value-item:hover .value-item-icon {
  transform: translateY(-2px) scale(1.06);
}

.sponsor-strip-section .sponsor-marquee-wrap {
  mask-image: none;
  -webkit-mask-image: none;
}

.value-item-title {
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--gray-900);
  margin-bottom: 0.45rem;
}

.value-item-desc {
  font-size: 0.95rem;
  color: #5d6778;
  line-height: 1.6;
}

/* ── Framework Cards ─────────────────────────────────── */
.framework-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 1.4rem 1.3rem;
  transition: var(--t-mid);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.framework-card:hover {
  transform: translateY(-5px);
  border-color: rgba(11,61,145,.2);
  box-shadow: var(--shadow-md);
}
.framework-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--acm-blue-pale), #fff);
  color: var(--acm-blue);
  font-size: 1.25rem;
  margin-bottom: .9rem;
}
.framework-card-title {
  margin: 0 0 .45rem;
  color: var(--gray-900);
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 700;
}
.framework-card-desc {
  margin: 0;
  color: var(--gray-500);
  font-size: .88rem;
  line-height: 1.6;
  flex-grow: 1;
}
.framework-card-link {
  margin-top: .85rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--acm-blue);
}

/* ── ACM Global Resources ───────────────────────────── */
.resource-hub-card {
  background: #fff;
  border: 2px solid #d1d6de;
  border-radius: 2rem;
  padding: 1.8rem 1.7rem;
  transition: var(--t-mid);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 10px 26px rgba(10, 37, 88, .08);
}
.resource-hub-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 38px rgba(10, 37, 88, .16);
}
.resource-hub-icon {
  width: 4.1rem;
  height: 4.1rem;
  border-radius: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.18);
  color: #0B3D91;
  font-size: 1.45rem;
  margin-bottom: 1rem;
}
.resource-hub-title {
  margin: 0 0 .55rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--gray-900);
}
.resource-hub-desc {
  margin: 0;
  color: #4f5d72;
  font-size: .93rem;
  line-height: 1.6;
  flex-grow: 1;
}
.resource-hub-link {
  margin-top: 1rem;
  color: #0b1d3a;
  font-size: .86rem;
  font-weight: 800;
}

/* ACM global resources card pattern (blue / neutral / magenta) */
.row > div:nth-child(3n+1) .resource-hub-card,
.row > div:nth-child(3n+3) .resource-hub-card {
  border: 0;
  color: #fff;
}

.row > div:nth-child(3n+1) .resource-hub-card {
  background: linear-gradient(135deg, #2f63db 0%, #2f5fce 100%);
}

.row > div:nth-child(3n+3) .resource-hub-card {
  background: linear-gradient(135deg, #8f36d6 0%, #db2b84 100%);
}

.row > div:nth-child(3n+2) .resource-hub-card {
  background: #f7f8fa;
  border: 2px solid #cfd4db;
}

.row > div:nth-child(3n+1) .resource-hub-card .resource-hub-icon,
.row > div:nth-child(3n+3) .resource-hub-card .resource-hub-icon {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.row > div:nth-child(3n+2) .resource-hub-card .resource-hub-icon {
  background: #eef1f5;
  color: #111827;
}

.row > div:nth-child(3n+1) .resource-hub-card .resource-hub-title,
.row > div:nth-child(3n+3) .resource-hub-card .resource-hub-title,
.row > div:nth-child(3n+1) .resource-hub-card .resource-hub-desc,
.row > div:nth-child(3n+3) .resource-hub-card .resource-hub-desc,
.row > div:nth-child(3n+1) .resource-hub-card .resource-hub-link,
.row > div:nth-child(3n+3) .resource-hub-card .resource-hub-link {
  color: #fff;
}

.row > div:nth-child(3n+2) .resource-hub-card .resource-hub-link {
  color: #101828;
}

/* ── ACM RSS Cards ───────────────────────────────────── */
.rss-feed-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 1.1rem 1.05rem;
}
.rss-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
}
.rss-feed-header h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}
.rss-source-link {
  font-size: .75rem;
  font-weight: 700;
  color: var(--acm-blue);
  text-decoration: none;
}
.rss-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}
.rss-feed-list li {
  padding-bottom: .7rem;
  border-bottom: 1px dashed var(--gray-200);
}
.rss-feed-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.rss-feed-list a {
  display: block;
  color: var(--gray-900);
  text-decoration: none;
  font-size: .86rem;
  line-height: 1.45;
  font-weight: 600;
}
.rss-feed-list a:hover {
  color: var(--acm-blue);
}
.rss-feed-list span {
  display: block;
  margin-top: .2rem;
  color: var(--gray-500);
  font-size: .72rem;
}

/* ── Impact Stats ───────────────────────────────────── */
.impact-stat-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 1.4rem 1rem;
  text-align: center;
  transition: var(--t-mid);
}
.impact-stat-card:hover {
  border-color: rgba(11,61,145,.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.impact-stat-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto .65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acm-blue-pale), #fff);
  color: var(--acm-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.impact-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.1;
}
.impact-stat-label {
  margin-top: .35rem;
  color: var(--gray-500);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Back-to-top ──────────────────────────────────────── */
#back-to-top { position:fixed; bottom:2rem; right:2rem; width:46px; height:46px; border-radius:50%; display:none; align-items:center; justify-content:center; z-index:1000; background:var(--acm-blue); color:#fff; border:none; box-shadow:var(--shadow-blue); transition:var(--t-mid); cursor:pointer; }
#back-to-top.visible { display:flex; }
#back-to-top:hover { background:var(--acm-accent); transform:translateY(-3px); }

/* ── Footer ──────────────────────────────────────────── */
.acm-footer { background:linear-gradient(140deg,var(--acm-dark) 0%,#0a1628 100%); position:relative; }
.acm-footer::before { content:''; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent); }
.footer-links { margin:0; padding:0; list-style:none; }
.footer-links li { margin-bottom:.5rem; }
.footer-links a { color:rgba(255,255,255,.55); text-decoration:none; font-size:.875rem; transition:var(--t-fast); display:inline-flex; align-items:center; gap:.35rem; }
.footer-links a:hover { color:var(--acm-accent); padding-left:4px; }
.footer-links span { color:rgba(255,255,255,.55); font-size:.875rem; }
.footer-social a { width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,.12); display:inline-flex; align-items:center; justify-content:center; color:rgba(255,255,255,.6); font-size:.95rem; transition:var(--t-fast); }
.footer-social a:hover { background:var(--acm-accent); border-color:var(--acm-accent); color:#fff; transform:translateY(-2px); }
.footer-divider { border-color:rgba(255,255,255,.08)!important; }

/* ── Hero Landmark Image ──────────────────────────────── */
.hero-landmark {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
}
.hero-landmark::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 55%,
    rgba(10, 18, 38, .72) 100%
  );
  z-index: 1;
  border-radius: var(--r-xl);
}
.hero-landmark-img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 32px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .6s var(--ease-out);
}
.hero-landmark:hover .hero-landmark-img { transform: scale(1.03); }
.hero-landmark-label {
  position: absolute; bottom: 1.25rem; left: 1.25rem;
  z-index: 2;
  background: rgba(10,18,38,.65);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.85);
  font-size: .78rem; font-weight: 600;
  padding: .3rem .85rem;
  border-radius: var(--r-2xl);
  border: 1px solid rgba(255,255,255,.14);
  letter-spacing: .04em;
}
/* Fallback when image not yet uploaded */
.hero-landmark--fallback {
  height: 480px;
  background: linear-gradient(140deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: var(--r-xl);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .75rem;
  color: rgba(255,255,255,.35); font-size: .85rem;
}
.hero-landmark--fallback::after {
  content: '\F3E0\A0 Place minar-e-pakistan.jpg in static/uploads/misc/';
  font-family: var(--font-body);
  font-size: .78rem; text-align: center; padding: 0 2rem;
}
.hover-lift { transition:var(--t-mid); }
.hover-lift:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); }
.rounded-acm { border-radius:var(--r-xl)!important; }
.border-acm { border:1.5px solid rgba(11,61,145,.15)!important; }
.filter-bar { background:#fff; border:1px solid var(--gray-200); border-radius:var(--r-xl); padding:1rem 1.5rem; box-shadow:var(--shadow-xs); }
.sticky-filters { position:sticky; top:62px; z-index:90; background:rgba(255,255,255,.95); backdrop-filter:blur(12px); border-bottom:1px solid var(--gray-200); }
.sticky-top-filters { position:sticky; top:64px; z-index:90; }

/* Prevent nested scrolling in div containers across pages. */
div[style*="overflow:auto"],
div[style*="overflow: auto"],
div[style*="overflow-y:auto"],
div[style*="overflow-y: auto"],
div[style*="overflow-x:auto"],
div[style*="overflow-x: auto"],
div[class*="overflow-auto"],
div[class*="overflow-scroll"],
div[class*="overflow-y-auto"],
div[class*="overflow-x-auto"] {
  overflow: visible !important;
}

/* ── Partner Chapters ─────────────────────────────────── */
.chapter-card,
.chapter-profile-card,
.chapter-empty {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xs);
  overflow: visible;
}
.chapter-card {
  padding: 1.25rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--t-mid);
}
.chapter-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(11,61,145,.2);
}
.chapter-logo {
  width: 58px;
  height: 58px;
  border-radius: .8rem;
  border: 1px solid var(--gray-200);
  background: #fff;
  object-fit: contain;
  padding: .35rem;
}
.chapter-logo.chapter-logo-lg {
  width: 90px;
  height: 90px;
  padding: .5rem;
}
.chapter-logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--acm-blue);
  background: var(--acm-blue-pale);
  font-size: 1.2rem;
}
.chapter-profile-card {
  padding: 1.4rem;
}
.chapter-empty {
  padding: 2.25rem 1.2rem;
}

/* ── Animations ───────────────────────────────────────── */
@keyframes fadeInUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }
@keyframes slideInLeft  { from{opacity:0;transform:translateX(-28px)} to{opacity:1;transform:translateX(0)} }
@keyframes slideInRight { from{opacity:0;transform:translateX(28px)} to{opacity:1;transform:translateX(0)} }
@keyframes floatDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 14px, 0); }
}
.fade-up         { animation:fadeInUp .65s var(--ease-out) both; }
.fade-up-delay-1 { animation-delay:.1s; }
.fade-up-delay-2 { animation-delay:.2s; }
.fade-up-delay-3 { animation-delay:.32s; }
.fade-up-delay-4 { animation-delay:.45s; }
.fade-in         { animation:fadeIn .7s var(--ease-out) both; }
.slide-left      { animation:slideInLeft .65s var(--ease-out) both; }
.slide-right     { animation:slideInRight .65s var(--ease-out) both; }
.counter-val     { display:inline-block; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 991.98px) {
  .hero-section {
    height: 100vh;
    margin-top: 0;
    clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
  }
  .hero-content {
    width: 100%;
    padding-inline: 1rem;
    overflow: hidden;
  }
  .acm-navbar .navbar-collapse {
    margin-top: .75rem;
    border-radius: var(--r-lg);
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(10,18,38,.85);
    padding: .7rem;
    backdrop-filter: blur(10px);
  }
  body {
    padding-top: 78px;
  }
  :root {
    --page-gutter: 1rem;
  }
  .hero-atmosphere-1,
  .hero-atmosphere-2 {
    opacity: .35;
    transform: scale(.85);
  }
  .page-hero {
    padding: 4rem 0 7rem;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 2rem;
  }
  :root {
    --section-py: 4rem;
  }
  .value-strip {
    padding: 3rem 0;
  }
  .value-item {
    padding: 1.35rem .95rem;
  }
  .value-strip .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .landing-section .row.align-items-end > .col-auto,
  .landing-section .row.align-items-end > [class*="col-auto"] {
    width: 100%;
    margin-top: .75rem;
  }
  .landing-section .row.align-items-end > .col-auto .btn,
  .landing-section .row.align-items-end > [class*="col-auto"] .btn {
    width: 100%;
    justify-content: center;
  }
  .news-slider-track,
  .news-slide-media,
  .news-slide-body {
    min-height: 380px;
  }
  .news-slide-body {
    padding: 1.6rem;
  }
  .news-slide-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    height: 100vh;
    margin-top: 0;
  }
  .hero-content {
    width: 100%;
    padding-inline: .85rem;
    overflow: hidden;
  }
  body {
    padding-top: 72px;
  }
  :root {
    --page-gutter: .85rem;
  }
  .landing-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-atmosphere {
    display: none;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .overlay-card {
    aspect-ratio: 3/2;
  }
  .value-item {
    border: 1px solid rgba(10, 37, 88, .1) !important;
    padding: 1.2rem .9rem;
  }
  .value-strip .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
  .value-item-title {
    font-size: .92rem;
  }
  .value-item-desc {
    font-size: .8rem;
  }
  .framework-card {
    border-radius: 1.2rem;
    padding: 1.15rem 1rem;
  }
  .framework-card-title {
    font-size: .98rem;
  }
  .framework-card-desc {
    font-size: .84rem;
  }
  .resource-hub-card {
    border-radius: 1.35rem;
    padding: 1.25rem 1.05rem;
  }
  .resource-hub-icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: .95rem;
    font-size: 1.12rem;
  }
  .resource-hub-title {
    font-size: 1.18rem;
  }
  .resource-hub-desc {
    font-size: .84rem;
  }
  .news-slider-track,
  .news-slide-media,
  .news-slide-body {
    min-height: auto;
  }
  .news-slide-media {
    min-height: 220px;
  }
  .news-slide-body {
    padding: 1.15rem 1rem 1.25rem;
  }
  .news-slide-details {
    grid-template-columns: 1fr;
  }
  .news-slider-nav {
    width: 36px;
    height: 36px;
    top: 200px;
  }
  .news-slider-nav.is-prev {
    left: .55rem;
  }
  .news-slider-nav.is-next {
    right: .55rem;
  }
  .news-slider-dots {
    bottom: .7rem;
  }
  .row.align-items-end > .col-auto,
  .row.align-items-end > [class*="col-auto"] {
    width: 100%;
    margin-top: .75rem;
  }
  .row.align-items-end > .col-auto .btn,
  .row.align-items-end > [class*="col-auto"] .btn {
    width: 100%;
    justify-content: center;
  }
  .ev-chip,
  .event-badge,
  .filter-chip,
  .news-slide-date {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
  .overlay-card .oc-top {
    flex-wrap: wrap;
    gap: .4rem;
  }
  .overlay-card .oc-body {
    padding: 1.1rem;
  }
  .sponsor-marquee {
    gap: .95rem 1.1rem;
  }
  .sponsor-logo-img {
    height: 34px;
    max-width: 120px;
  }
  .cta-section .btn-lg {
    width: 100%;
    max-width: 340px;
  }
}

@media (max-width: 420px) {
  .value-strip .row {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader,
  .loader-grid,
  .loader-ring,
  .loader-scan::after,
  .loader-node {
    animation: none !important;
  }
  .hero-atmosphere,
  .fade-up,
  .fade-in,
  .slide-left,
  .slide-right {
    animation: none !important;
  }
  .landing-section,
  .overlay-card,
  .sig-card-v2,
  .blog-card-v2,
  .value-item,
  .acm-navbar,
  .acm-navbar .nav-link {
    transition: none !important;
  }
}
