/* ═══════════════════════════════════════════════════════════════
   Global Innovation Labs Directory — makerspace.z2m.org
   UI/UX Upgrade · Light Theme · Premium Design
   ═══════════════════════════════════════════════════════════════ */



/* ───────────────── Design Tokens ───────────────── */
:root {
  /* Colors */
  --bg: #f5f7fa;
  --bg-alt: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-hover: #f0f4ff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Text */
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Brand / Accent */
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-light: #ede9fe;
  --accent-hover: #4338ca;
  --accent-glow: rgba(79, 70, 229, 0.18);

  /* Semantic */
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --info: #0ea5e9;
  --info-light: #e0f2fe;
  --purple: #7c3aed;
  --purple-light: #ede9fe;

  /* Gradients */
  --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --card-gradient: linear-gradient(145deg, #fff 0%, #f8fafc 100%);

  /* Spacing & Shape */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow: 0 4px 16px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .04);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, .1), 0 4px 12px rgba(0, 0, 0, .06);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .12), 0 8px 24px rgba(0, 0, 0, .07);
  --shadow-accent: 0 8px 30px rgba(79, 70, 229, 0.2);

  /* Typography */
  --font-main: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.4s ease;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-base);
}

a:hover {
  color: var(--accent-hover);
}

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

main {
  flex: 1;
}

/* ───────────────── Scroll Progress Bar ───────────────── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-gradient);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ───────────────── Buttons ───────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--t-base);
  box-shadow: var(--shadow-accent);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.3);
  color: #fff;
}

.btn:active {
  transform: translateY(0);
}

.btn-outline {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  box-shadow: var(--shadow);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--t-base);
  box-shadow: var(--shadow-accent);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(79, 70, 229, 0.35);
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* ───────────────── Header / Nav ───────────────── */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 1px 20px rgba(0, 0, 0, .06);
  transition: box-shadow var(--t-base);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, .1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 38px;
  width: auto;
  transition: transform var(--t-base);
}

.logo:hover .logo-img {
  transform: scale(1.04);
}

.logo-text {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent-gradient);
  color: #fff;
  padding: 0.15rem 0.55rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 0.25rem;
}

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

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-cta {
  background: var(--accent-gradient) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 50px !important;
  box-shadow: var(--shadow-accent);
  margin-left: 0.5rem;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3) !important;
  background: var(--accent-gradient) !important;
}

/* ───────────────── Hero Section ───────────────── */
.hero-section {
  position: relative;
  padding: 5.5rem 0 6rem;
  background: linear-gradient(160deg, #f0f4ff 0%, #fdf4ff 50%, #f5f7fa 100%);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Decorative blobs */
.hero-section::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, .12) 0%, transparent 70%);
  top: -250px;
  left: -200px;
  pointer-events: none;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .1) 0%, transparent 70%);
  bottom: -200px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(79, 70, 229, 0.2);
  animation: fadeInDown 0.6s ease forwards;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text);
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-title .highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.75rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-search-wrap {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-search-input {
  width: 100%;
  padding: 1.05rem 1.5rem 1.05rem 3.25rem;
  font-size: 1.05rem;
  font-family: var(--font-main);
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-md);
  transition: all var(--t-base);
}

.hero-search-input::placeholder {
  color: var(--text-muted);
}

.hero-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-glow), var(--shadow-md);
}

.hero-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: color var(--t-base);
}

.hero-search-wrap:focus-within .hero-search-icon {
  color: var(--accent);
}

.hero-stats-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: fadeInUp 0.7s ease 0.45s both;
}

.hero-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.hero-stat-pill i {
  color: var(--accent);
}

/* ───────────────── Stats Grid ───────────────── */
.stats-section {
  padding: 0 0 3rem;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: -3.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--t-base);
  z-index: 0;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.stat-card:hover::before {
  opacity: 0.04;
}

.stat-card:hover .stat-icon {
  background: var(--accent-gradient);
  color: #fff;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 1.35rem;
  margin: 0 auto 1rem;
  transition: all var(--t-base);
  position: relative;
  z-index: 1;
}

.stat-value {
  display: block;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* ───────────────── Region Tabs ───────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tab-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  margin-bottom: 2rem;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  margin-bottom: 2rem;
}

.region-tab {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-main);
  transition: all var(--t-base);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.region-tab i {
  font-size: 0.85rem;
}

.region-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
}

.region-tab.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}

/* ───────────────── Country Grid ───────────────── */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.country-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--t-base);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: cardAppear 0.4s ease both;
}

.country-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform var(--t-base);
  transform-origin: left;
}

.country-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

.country-card:hover::after {
  transform: scaleX(1);
}

.country-card:hover .country-arrow {
  transform: translateX(3px);
  opacity: 1;
}

.country-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 0.75rem;
}

.country-flag {
  width: 44px;
  height: 33px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.country-name-wrap {
  flex: 1;
  min-width: 0;
}

.country-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.country-region-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

.country-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.country-count {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.country-count i {
  font-size: 0.75rem;
}

.country-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0.5;
  transition: all var(--t-base);
}

.no-results {
  text-align: center;
  grid-column: 1 / -1;
  padding: 5rem 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.no-results i {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--border-strong);
}

/* ───────────────── About Section ───────────────── */
.about-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 3rem 0 2rem;
}

@media(min-width: 800px) {
  .about-section {
    grid-template-columns: 1fr 1fr;
  }
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.about-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.about-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

/* ───────────────── Country Intro (SEO Landing Block) ───────────────── */
.country-intro-wrap {
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 2.25rem;
}

.country-intro {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.55s ease 0.05s both;
}

.country-intro-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.07);
  margin-top: 0.15rem;
}

.country-intro-body {
  flex: 1;
  min-width: 0;
}

.country-intro-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.country-intro-text {
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.country-intro-text strong {
  color: var(--text);
  font-weight: 700;
}

.country-intro-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.intro-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  letter-spacing: 0.01em;
  border: 1px solid rgba(79, 70, 229, 0.18);
}

.intro-stat i {
  font-size: 0.78rem;
}

/* Responsive: stack icon above text on very small screens */
@media (max-width: 540px) {
  .country-intro {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
  }
  .country-intro-icon {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }
  .country-intro-heading {
    font-size: 1.1rem;
  }
}

.home-authority .btn-cta {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
}

/* ───────────────── Explore by Region / SEO Links ───────────────── */
.home-section {
  max-width: 100%;
}

.home-region-links {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: visible;
  margin-left: 10px;
}

.home-region-links>h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.02em;
}

.home-region-links>h2 i {
  color: var(--accent);
}

.home-region-group {
  margin-bottom: 1.25rem;
}

.home-region-group:last-child {
  margin-bottom: 0;
}

.home-region-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.home-explore-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-explore-links a {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  transition: all var(--t-fast);
}

.home-explore-links a:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.home-explore-sep {
  display: none;
}

@media (max-width: 768px) {
  .home-region-links {
    padding: 1.25rem;
    margin-left: 0;
  }
}

/* ───────────────── Footer ───────────────── */
.site-footer {
  background: #0b1120; /* Deep, premium dark blue/black */
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  margin-top: 6rem;
  position: relative;
  border-top: 1px solid #1e293b;
  clear: both;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.4), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

@media(max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media(max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer-brand .logo-img {
  height: 38px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #64748b;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e2e8f0;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col h4 i {
  color: var(--accent);
  font-size: 0.85rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: #94a3b8;
  font-size: 0.95rem;
  transition: all var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.footer-col ul li a i {
  font-size: 0.8rem;
  color: #475569;
  transition: color var(--t-fast);
}

.footer-col ul li a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-col ul li a:hover i {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #64748b;
}

.footer-bottom p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom i {
  color: var(--accent);
}


/* ───────────────── Page Header (Country / Lab pages) ───────────────── */
.page-header {
  background: linear-gradient(160deg, #f0f4ff 0%, #fdf4ff 100%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, .1) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  pointer-events: none;
}

.page-header-inner {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--t-fast);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--border-strong);
}

.page-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
  line-height: 1.15;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

.page-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

/* ───────────────── Filters Bar ───────────────── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-end;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-group label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.filter-group label i {
  color: var(--accent);
}

.filters select,
.filters input[type="search"],
.filters input[type="text"] {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  min-width: 160px;
  outline: none;
  transition: all var(--t-base);
  appearance: none;
  -webkit-appearance: none;
}

.filters select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
}

.filters select:focus,
.filters input:focus {
  border-color: var(--accent);
  background-color: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.filters input::placeholder {
  color: var(--text-muted);
}

/* ───────────────── Lab Cards Grid ───────────────── */
.lab-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.lab-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--t-base);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
}

.lab-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--t-base);
}

.lab-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

.lab-card:hover::before {
  opacity: 1;
}

.lab-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.75rem 0 0.5rem;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lab-card .meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lab-card .meta i {
  color: var(--border-strong);
  font-size: 0.8rem;
}

.lab-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ───────────────── Badges ───────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge.atl {
  background: var(--info-light);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, .25);
}

.badge.makerspace {
  background: var(--purple-light);
  color: var(--purple);
  border: 1px solid rgba(124, 58, 237, .25);
}

/* ───────────────── Lab Detail Page ───────────────── */
.lab-detail-container {
  padding: 2.5rem 0 4rem;
}

.lab-detail-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.lab-detail-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  margin: 0.75rem 0 0.75rem;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}

.location-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.location-line i {
  color: var(--accent);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media(min-width: 900px) {
  .detail-grid {
    grid-template-columns: 340px 1fr;
    align-items: start;
  }
}

.detail-sidebar {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 88px;
}

.sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.detail-list {
  list-style: none;
}

.detail-list dt {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.detail-list dt i {
  color: var(--accent);
  width: 14px;
}

.detail-list dt:first-child {
  margin-top: 0;
}

.detail-list dd {
  font-size: 0.97rem;
  margin: 0.3rem 0 0;
  word-break: break-word;
  color: var(--text);
  font-weight: 500;
  padding-left: 1.4rem;
}

.detail-main h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-main h2 i {
  color: var(--accent);
  font-size: 1.1rem;
}

.description {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

/* ───────────────── Map ───────────────── */
.map-container {
  width: 100%;
  height: 380px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ───────────────── Pagination ───────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 2rem 0 1rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination .current,
.pagination .disabled,
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--t-fast);
}

.pagination a:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.pagination .current {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pagination-ellipsis {
  border: none;
  background: none;
  color: var(--text-muted);
}

/* ───────────────── Utilities ───────────────── */
.hidden {
  display: none !important;
}

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

.mt-auto {
  margin-top: auto;
}

.section-gap {
  padding: 4rem 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ───────────────── 404 & Error Pages ───────────────── */
.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-code {
  font-size: 7rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.error-message {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 1rem 0 0.75rem;
}

.error-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ───────────────── Animations ───────────────── */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Stagger for country cards */
.country-card:nth-child(1) {
  animation-delay: 0.02s;
}

.country-card:nth-child(2) {
  animation-delay: 0.04s;
}

.country-card:nth-child(3) {
  animation-delay: 0.06s;
}

.country-card:nth-child(4) {
  animation-delay: 0.08s;
}

.country-card:nth-child(5) {
  animation-delay: 0.10s;
}

.country-card:nth-child(6) {
  animation-delay: 0.12s;
}

.country-card:nth-child(7) {
  animation-delay: 0.14s;
}

.country-card:nth-child(8) {
  animation-delay: 0.16s;
}

.country-card:nth-child(n+9) {
  animation-delay: 0.18s;
}

/* ───────────────── Responsive ───────────────── */
@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 0 5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem 1rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .country-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .lab-cards {
    grid-template-columns: 1fr;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filters select,
  .filters input {
    width: 100%;
    min-width: unset;
  }

  .site-header .container {
    height: 60px;
  }

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .country-grid {
    grid-template-columns: 1fr 1fr;
  }

  .region-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ───────────────── Focus Visible ───────────────── */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ───────────────── Selection ───────────────── */
::selection {
  background: var(--accent-light);
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Lab Detail — SEO Content Sections
   (Section 1: Offers · Section 2: Key Features · Section 3: Who Can Benefit)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Shared section wrapper */
.lab-seo-section {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.5s ease both;
}

/* ───────────────── Lab Detail Header ───────────────── */
.lab-detail-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.header-main-info {
  flex: 1;
}

.header-badge-row {
  margin-bottom: 1rem;
}

.lab-main-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.75rem;
}

.location-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.location-line i {
  color: var(--accent);
}

.lab-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lab-last-updated i {
  font-size: 0.8rem;
  color: var(--accent);
}

.header-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.back-btn {
  font-weight: 600;
  padding: 0.75rem 1.25rem;
}

@media (max-width: 768px) {
  .lab-detail-header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }
}

/* Section header row: icon + title */
.lab-seo-section-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.lab-seo-section-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.lab-seo-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0;
}

/* ── Section 1: Offers list ─────────────────────────────────────────────── */
.lab-offers-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.5rem;
}

.lab-offers-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.lab-offers-list li i {
  color: var(--success);
  font-size: 0.88rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ── Section 2: Features list ───────────────────────────────────────────── */
.lab-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lab-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}

/* ── Section 3: Who Can Benefit cards ───────────────────────────────────── */
.lab-benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.lab-benefit-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all var(--t-base);
}

.lab-benefit-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.benefit-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.benefit-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ── Responsive: collapse to single column on mobile ────────────────────── */
@media (max-width: 640px) {
  .lab-offers-list {
    grid-template-columns: 1fr;
  }
  .lab-benefit-grid {
    grid-template-columns: 1fr;
  }
  .lab-seo-section {
    padding: 1.25rem 1rem;
  }
}

/* ───────────────── Lab Last Updated Pill ───────────────── */
.lab-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.3rem 0.85rem;
  letter-spacing: 0.01em;
}

.lab-last-updated i {
  font-size: 0.75rem;
  color: var(--accent);
}

.lab-last-updated time {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ───────────────── Lab About Section ───────────────── */
.lab-about-section {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.5s ease both;
}

.lab-about-text {
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.85;
  margin: 0.5rem 0 0;
}

.lab-about-text strong {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 640px) {
  .lab-about-section {
    padding: 1.25rem 1rem;
  }
}

/* ───────────────── Explore More Section (Redesigned) ───────────────── */
.explore-more-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 2px dashed var(--border);
}

.explore-more-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.explore-more-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.4rem;
  box-shadow: var(--shadow-accent);
}

.explore-more-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin: 0;
}

.explore-group {
  margin-bottom: 2.5rem;
}

.explore-group-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.explore-group-label i {
  color: var(--accent);
  font-size: 1rem;
}

.explore-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.explore-lab-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--t-base);
  box-shadow: var(--shadow-sm);
}

.explore-lab-pill i {
  font-size: 1rem;
  color: var(--accent);
  opacity: 0.7;
}

.explore-lab-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.explore-lab-pill:hover i {
  opacity: 1;
}

.explore-dir-links {
  margin-top: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.explore-dir-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.explore-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.75rem;
  background: var(--accent);
  color: white;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--t-base);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
}

.explore-pill-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.explore-pill-btn i {
  font-size: 0.9rem;
}

.explore-pill-btn-muted {
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  box-shadow: none;
}

.explore-pill-btn-muted:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .explore-pills-grid {
    grid-template-columns: 1fr;
  }
  .explore-pill-btn {
    width: 100%;
    justify-content: center;
  }
}
229, 0.2);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t-base);
}

.explore-pill:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.explore-pill i {
  font-size: 0.78rem;
}

.explore-pill-muted {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-secondary);
}

.explore-pill-muted:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* Responsive */
@media (max-width: 640px) {
/* ───────────────── Explore More Section ───────────────── */
.explore-more-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px dashed var(--border);
}

.explore-more-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.explore-more-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.25rem;
}

.explore-more-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.explore-group {
  margin-bottom: 3rem;
}

.explore-group-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.explore-group-label i {
  color: var(--accent);
}

.explore-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.explore-lab-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--t-base);
}

.explore-lab-pill i {
  font-size: 0.9rem;
  color: var(--accent);
  opacity: 0.6;
}

.explore-lab-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.explore-lab-pill:hover i {
  opacity: 1;
}

.explore-dir-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.explore-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: white;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--t-base);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.explore-pill-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);
}

.explore-pill-btn-muted {
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  box-shadow: none;
}

.explore-pill-btn-muted:hover {
  background: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Long-form Article Page (/what-is-a-makerspace and future articles)
   ═══════════════════════════════════════════════════════════════════════════ */

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Article header */
.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(79, 70, 229, 0.2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.article-read-time {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.article-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.article-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.article-byline {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-byline span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Article body typography */
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.article-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--border);
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content strong {
  color: var(--text);
  font-weight: 700;
}

.article-content em {
  font-style: italic;
  color: var(--text);
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.article-content a:hover {
  color: var(--accent-dark, #4338ca);
}

/* Article list */
.article-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.article-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.975rem;
  line-height: 1.55;
}

.article-list li::before {
  content: "✦";
  color: var(--accent);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* CTA row */
.article-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

/* Article footer: related links */
.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.article-footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.article-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.article-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--t-base);
}

.article-footer-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* Responsive */
@media (max-width: 640px) {
  .article-container {
    padding: 1.25rem 1rem 3rem;
  }
  .article-cta-row {
    flex-direction: column;
  }
  .article-cta-btn {
    justify-content: center;
  }
}