@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans TC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0e1a;
  color: #ffffff;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

h1, h2, h3, h4, .section-header h2, .page-header h1 {
  font-family: 'Noto Serif TC', serif;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0e1a; }
::-webkit-scrollbar-thumb { background: #00d4ff33; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #00d4ff66; }

a { color: #00d4ff; text-decoration: none; transition: color 0.3s; }
a:hover { color: #7b2ffc; }

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

/* ===== SCAN LINE OVERLAY ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.015) 2px,
    rgba(0, 212, 255, 0.015) 4px
  );
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-grid-2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(123, 47, 252, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 47, 252, 0.015) 1px, transparent 1px);
  background-size: 100px 100px;
  transform: rotate(15deg) scale(1.5);
  opacity: 0.5;
}

.bg-ring {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.04);
  pointer-events: none;
  z-index: 0;
  animation: ringPulse 8s ease-in-out infinite;
}

.bg-ring-2 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  border: 1px solid rgba(123, 47, 252, 0.03);
  pointer-events: none;
  z-index: 0;
  animation: ringPulse 12s ease-in-out infinite reverse;
}

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.bg-glow {
  position: fixed;
  top: -30vh;
  right: -20vw;
  width: 80vw;
  height: 80vh;
  background: radial-gradient(circle, rgba(123, 47, 252, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: glowFloat 20s ease-in-out infinite;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bg-glow-2 {
  position: fixed;
  bottom: -20vh;
  left: -10vw;
  width: 60vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: glowFloat 25s ease-in-out infinite reverse;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== DATA FLOW PARTICLES ===== */
.particle {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  opacity: 0;
}
.particle.dot {
  width: 2px;
  height: 2px;
  background: #00d4ff;
  animation: particleDrift 10s linear infinite;
}
.particle.dot:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 12s; }
.particle.dot:nth-child(2) { left: 15%; animation-delay: 1.5s; animation-duration: 9s; }
.particle.dot:nth-child(3) { left: 25%; animation-delay: 3s; animation-duration: 14s; }
.particle.dot:nth-child(4) { left: 35%; animation-delay: 0.5s; animation-duration: 11s; }
.particle.dot:nth-child(5) { left: 45%; animation-delay: 2s; animation-duration: 8s; }
.particle.dot:nth-child(6) { left: 55%; animation-delay: 4s; animation-duration: 13s; }
.particle.dot:nth-child(7) { left: 65%; animation-delay: 1s; animation-duration: 10s; }
.particle.dot:nth-child(8) { left: 75%; animation-delay: 3.5s; animation-duration: 15s; }
.particle.dot:nth-child(9) { left: 85%; animation-delay: 2.5s; animation-duration: 9s; }
.particle.dot:nth-child(10) { left: 95%; animation-delay: 0.8s; animation-duration: 11s; }
.particle.dot:nth-child(11) { left: 10%; animation-delay: 5s; animation-duration: 12s; }
.particle.dot:nth-child(12) { left: 50%; animation-delay: 4.5s; animation-duration: 10s; }

.particle.glow {
  width: 4px;
  height: 4px;
  background: #7b2ffc;
  box-shadow: 0 0 6px #7b2ffc;
  animation: particleDrift 15s linear infinite;
}
.particle.glow:nth-child(13) { left: 20%; animation-delay: 2s; }
.particle.glow:nth-child(14) { left: 40%; animation-delay: 6s; }
.particle.glow:nth-child(15) { left: 60%; animation-delay: 3s; }
.particle.glow:nth-child(16) { left: 80%; animation-delay: 7s; }

@keyframes particleDrift {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: 14px;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.94);
  border-color: rgba(0, 212, 255, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #e8edf5;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo span {
  background: linear-gradient(135deg, #00d4ff, #7b2ffc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: all 0.3s;
  white-space: nowrap;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #7b2ffc);
  border-radius: 1px;
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(0, 212, 255, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #e8edf5;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 2rem 40px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #00d4ff 0%, #7b2ffc 50%, #00d4ff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.1));
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 3rem;
  font-weight: 300;
}

/* ===== GLITCH TEXT (for hero headings) ===== */
.glitch-text {
  position: relative;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.glitch-text:hover::before {
  opacity: 0.7;
  color: #00d4ff;
  clip-path: inset(20% 0 60% 0);
  animation: glitch1 0.4s ease-in-out;
}
.glitch-text:hover::after {
  opacity: 0.7;
  color: #7b2ffc;
  clip-path: inset(60% 0 10% 0);
  animation: glitch2 0.4s ease-in-out;
}
@keyframes glitch1 {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -1px); }
  60% { transform: translate(-2px, 1px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}
@keyframes glitch2 {
  0% { transform: translate(0); }
  20% { transform: translate(2px, -2px); }
  40% { transform: translate(-3px, 1px); }
  60% { transform: translate(3px, 2px); }
  80% { transform: translate(-2px, -1px); }
  100% { transform: translate(0); }
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header .accent {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff, #7b2ffc);
  border-radius: 2px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

.section-header .accent::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -2px;
  width: 8px;
  height: 8px;
  background: #00d4ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff;
  animation: accentPulse 2s ease-in-out infinite;
}

@keyframes accentPulse {
  0%, 100% { box-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff; }
  50% { box-shadow: 0 0 15px #00d4ff, 0 0 30px #00d4ff, 0 0 40px #00d4ff; }
}

.section-header p {
  color: rgba(255,255,255,0.85);
  max-width: 550px;
  margin: 1rem auto 0;
  font-size: 1rem;
}

/* ===== ABOUT SECTION (homepage) ===== */
.about-section {
  position: relative;
  z-index: 1;
  padding: 2rem 2rem 5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.about-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 212, 255, 0.06);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #7b2ffc);
  opacity: 0;
  transition: opacity 0.4s;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 212, 255, 0.04);
}

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

.about-card .about-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  display: block;
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.about-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

/* ===== ABOUT FULL (homepage long text) ===== */
.about-full {
  max-width: 1100px;
  margin: 0 auto;
}

.about-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.9;
  margin-bottom: 2rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.about-pillar {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 212, 255, 0.06);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.3s;
  cursor: pointer;
}

.about-pillar:hover {
  border-color: rgba(0, 212, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.about-pillar h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-icon {
  flex-shrink: 0;
}

.about-pillar p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

.about-closing {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 212, 255, 0.06);
}

.about-team {
  font-size: 0.85rem;
  color: #00d4ff;
  margin-top: 1.5rem;
  font-weight: 500;
}

/* ===== HERO BUTTONS ===== */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #00d4ff, #7b2ffc);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: rotate(45deg);
  transition: all 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.35);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(0, 212, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(123, 47, 252, 0.05));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-outline:hover::before {
  opacity: 1;
}

.btn-outline:hover {
  border-color: #00d4ff;
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: color 0.3s;
}

.btn-back:hover {
  color: #00d4ff;
}

/* ===== CATEGORY CARDS GRID ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cat-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #7b2ffc);
  opacity: 0;
  transition: opacity 0.4s;
}

.cat-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), transparent, rgba(123,47,252,0.1));
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}

.cat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.05);
}

.cat-card:hover::before { opacity: 1; }
.cat-card:hover::after { opacity: 1; }

.cat-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.cat-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #e8edf5;
}

.cat-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

.cat-card .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #00d4ff;
  font-weight: 500;
  transition: gap 0.3s;
}

.cat-card:hover .arrow-link { gap: 8px; }

/* ===== PAGE HEADER ===== */
.page-header {
  position: relative;
  z-index: 1;
  padding: 100px 2rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, #00d4ff, #7b2ffc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem;
}

.page-header p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ===== CONTENT SECTION ===== */
.content-section {
  position: relative;
  z-index: 1;
  padding: 0 2rem 4rem;
  max-width: 1300px;
  margin: 0 auto;
}

.content-section .intro-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.06);
}

/* ===== IMAGE GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid rgba(0, 212, 255, 0.06);
  transition: all 0.4s;
}

.gallery-item:hover {
  transform: scale(1.02);
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.06);
}

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

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

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .overlay { opacity: 1; }

/* ===== CAROUSEL ===== */
.carousel-section {
  position: relative;
  z-index: 1;
  padding: 0 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0 1rem;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 280px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s;
  position: relative;
}

.carousel-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.06);
}

.carousel-card .card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 1px solid rgba(0, 212, 255, 0.06);
  transition: transform 0.5s;
}

.carousel-card:hover .card-image { transform: scale(1.05); }

.carousel-card .card-body {
  padding: 1.2rem;
}

.carousel-card .card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.carousel-card .card-body .card-date {
  font-size: 0.8rem;
  color: #00d4ff;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.carousel-card .card-body p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.carousel-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #00d4ff;
  font-weight: 500;
  transition: gap 0.3s;
}

.carousel-card:hover .card-link { gap: 8px; }

/* ===== LIST CARDS (vertical card list with mini slider) ===== */
.list-section {
  position: relative;
  z-index: 1;
  padding: 0 2rem 4rem;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.list-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s;
  will-change: transform;
}

.list-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.05);
}

.list-card .card-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 21/9;
  flex-shrink: 0;
}

.list-card .card-slider .slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.list-card .card-slider .slider-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-card .card-slider .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  color: #00d4ff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s;
}

.list-card .card-slider:hover .slider-btn { opacity: 1; }

.list-card .card-slider .slider-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
}

.list-card .card-slider .slider-btn.prev { left: 0.5rem; }
.list-card .card-slider .slider-btn.next { right: 0.5rem; }

.list-card .card-slider .slider-dots {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.list-card .card-slider .slider-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}

.list-card .card-slider .slider-dots span.active {
  background: #00d4ff;
  box-shadow: 0 0 8px #00d4ff;
  width: 18px;
  border-radius: 3px;
}

.list-card .card-body {
  padding: 1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.list-card .card-body .card-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 12px;
  font-size: 0.75rem;
  color: #00d4ff;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

.list-card .card-body .card-date {
  font-size: 0.8rem;
  color: #00d4ff;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.list-card .card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e8edf5;
  margin-bottom: 0.5rem;
}

.list-card .card-body p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

.list-card .card-body .card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: #00d4ff;
  font-weight: 500;
  transition: gap 0.3s;
  align-self: flex-start;
}

.list-card:hover .card-link { gap: 8px; }

.list-category {
  grid-column: 1 / -1;
  padding: 1rem 0 0.3rem;
  margin: 0.5rem 0 0.2rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.list-category h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #00d4ff;
  margin: 0;
}

.list-category:first-child {
  margin-top: 0;
  padding-top: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  color: #00d4ff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: #00d4ff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.carousel-btn.prev { left: -0.5rem; }
.carousel-btn.next { right: -0.5rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: #00d4ff;
  box-shadow: 0 0 10px #00d4ff;
  width: 24px;
  border-radius: 4px;
}

/* ===== INFO LIST ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 212, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s;
}

.info-card:hover {
  border-color: rgba(0, 212, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 212, 255, 0.04);
}

.info-card img {
  width: 100%;
  aspect-ratio: 21/10;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem;
}

.info-card .info-body { padding: 1.2rem; }

.info-card .info-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #e8edf5;
}

.info-card .info-body p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

/* ===== INFO SLIDER (info-lit carousel) ===== */
.info-slider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.08);
  background: rgba(255, 255, 255, 0.01);
  user-select: none;
  max-width: 960px;
  margin: 0 auto;
}

.info-slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.info-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.info-slide img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.02);
}

.info-slide-body {
  display: none;
}

.slide-number {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(0, 0, 0, 0.5);
  color: #00d4ff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  pointer-events: none;
}

.slide-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 1.2rem;
  background: linear-gradient(rgba(0, 0, 0, 0.8), transparent);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.info-slider .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 1.4rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s, background 0.3s;
}

.info-slider .slider-btn:hover {
  background: rgba(0, 212, 255, 0.15);
}

.info-slider .slider-btn.prev { left: 0.75rem; }
.info-slider .slider-btn.next { right: 0.75rem; }

.info-slider-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 5;
}

.info-slider-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}

.info-slider-dots span.active {
  background: #00d4ff;
  box-shadow: 0 0 8px #00d4ff;
  width: 24px;
  border-radius: 4px;
}

.info-slider-dots span.dot-unit-1.active { background: #00d4ff; box-shadow: 0 0 8px #00d4ff; }
.info-slider-dots span.dot-unit-2.active { background: #7b2ffc; box-shadow: 0 0 8px #7b2ffc; }
.info-slider-dots span.dot-unit-3.active { background: #0088ff; box-shadow: 0 0 8px #0088ff; }

/* ===== EVENT META ===== */
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.06);
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

.event-meta .label { color: #00d4ff; font-weight: 600; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.08);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
  background: none;
  border: none;
}
.lightbox-close:hover { opacity: 1; }

/* ===== PAGE INFO TAGS ===== */
.page-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.page-info .tag {
  padding: 0.3rem 0.8rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 20px;
  font-size: 0.8rem;
  color: #00d4ff;
}

.page-info .tag.purple {
  background: rgba(123, 47, 252, 0.08);
  border-color: rgba(123, 47, 252, 0.15);
  color: #7b2ffc;
}

/* ===== OBJECTIVES LIST ===== */
.objectives {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.06);
}

.objectives h3 {
  font-size: 1rem;
  color: #00d4ff;
  margin-bottom: 0.8rem;
}

.objectives ul { list-style: none; }

.objectives ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}

.objectives ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #00d4ff;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(0, 212, 255, 0.06);
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HOME EVENTS GRID ===== */
.carousel-track.home-events {
  overflow-x: visible;
  flex-wrap: wrap;
}
.carousel-track.home-events .carousel-card {
  flex: 0 0 calc(33.333% - 1rem);
  text-decoration: none;
  cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; left: 6px; right: 6px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.08);
    padding: 1rem;
    gap: 0.2rem;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 1rem; width: 100%; }
  .nav-toggle { display: flex; }

  .section { padding: 3rem 1rem; }
  .cat-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 80px 1rem 40px; }

  .carousel-card { flex: 0 0 calc(50% - 0.75rem); }
  .carousel-btn { width: 36px; height: 36px; font-size: 1rem; }
  .carousel-btn.prev { left: -0.2rem; }
  .carousel-btn.next { right: -0.2rem; }

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

  .list-card .card-slider { aspect-ratio: 16/9; }

  .list-card .card-slider .slider-btn { opacity: 1; width: 28px; height: 28px; font-size: 0.8rem; }

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

  .event-meta { flex-direction: column; gap: 0.6rem; }

  .carousel-track.home-events .carousel-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .carousel-card { flex: 0 0 85%; }
  .list-section { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }

  .carousel-track.home-events .carousel-card {
    flex: 0 0 100%;
  }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #7b2ffc);
  z-index: 9998;
  width: 0%;
  box-shadow: 0 0 8px #00d4ff, 0 0 20px #00d4ff;
  transition: width 0.1s linear;
}

/* Touch devices: restore native cursor */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  .cursor-dot, .cursor-trail { display: none !important; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body::after { display: none; } /* scan line */
  .particle { display: none; }
  .bg-ring, .bg-ring-2 { animation: none; }
  .bg-glow, .bg-glow-2 { animation: none; }
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.6);
  box-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff, 0 0 40px rgba(0, 212, 255, 0.3);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-dot.hover-card {
  width: 24px;
  height: 24px;
  background: rgba(123, 47, 252, 0.7);
  box-shadow: 0 0 15px #7b2ffc, 0 0 30px #7b2ffc, 0 0 50px rgba(123, 47, 252, 0.4);
}

.cursor-trail {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #00d4ff;
  pointer-events: none;
  z-index: 9996;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: trailFade 0.6s ease-out forwards;
}

@keyframes trailFade {
  0% { opacity: 0.7; width: 5px; height: 5px; }
  100% { opacity: 0; width: 2px; height: 2px; }
}

/* ===== 3D TILT + GLARE ===== */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.tilt-card .glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.3s;
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.08) 0%,
    transparent 60%
  );
}

.tilt-card:hover .glare {
  opacity: 1;
}

/* ===== NEON SCAN BORDER ===== */
.scan-border {
  position: relative;
}

.scan-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    transparent 0%,
    transparent 40%,
    #00d4ff 50%,
    #7b2ffc 60%,
    transparent 70%,
    transparent 100%
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: x-or;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 1;
}

.scan-border:hover::after {
  opacity: 1;
  animation: borderSpin 3s linear infinite;
}

@keyframes borderSpin {
  to { --border-angle: 360deg; }
}

@media (hover: none) and (pointer: coarse) {
  .cursor-dot, .cursor-trail { display: none; }
  body { cursor: auto; }
  .scroll-progress { height: 3px; }
}

@media (max-width: 768px) {
  .cursor-dot, .cursor-trail { display: none; }
  body { cursor: auto; }
}

/* ===== TAB SYSTEM (e-learning page) ===== */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.08);
  padding-bottom: 0.5rem;
}

.tab-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.06);
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.tab-btn:hover {
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.15);
}

.tab-btn.active {
  color: #ffffff;
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.05);
}

.tab-content {
  display: none;
  animation: tabFade 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes tabFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== E-LEARNING SECTIONS ===== */
.e-section {
  margin-bottom: 2.5rem;
}

.e-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #00d4ff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.08);
}

.e-feature-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.e-feature-list li {
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 212, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  transition: all 0.3s;
}

.e-feature-list li:hover {
  border-color: rgba(0, 212, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.e-feature-list li strong {
  color: #ffffff;
  font-size: 0.95rem;
}

.e-feature-list li p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.e-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.15);
  background: rgba(0, 212, 255, 0.04);
  transition: all 0.3s;
  margin: 0.3rem 0.5rem 0.3rem 0;
}

.e-download:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: #00d4ff;
}

.e-link-card {
  display: block;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 212, 255, 0.06);
  border-radius: 12px;
  transition: all 0.3s;
  margin-bottom: 0.6rem;
}

.e-link-card:hover {
  border-color: rgba(0, 212, 255, 0.15);
  transform: translateY(-2px);
}

.e-link-card strong {
  color: #ffffff;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.e-link-card .ai-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.e-link-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.e-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .e-resource-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .e-resource-grid { grid-template-columns: 1fr; }
}

.e-resource-grid .e-link-card {
  margin-bottom: 0;
}

/* ===== INFO CARD MODAL (ai-lit, info-lit) ===== */
.card-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.card-modal.active {
  display: flex;
}

.card-modal-content {
  width: 90vw;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(10, 14, 26, 0.95);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.08);
  animation: modalPop 0.3s ease;
}

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

.card-modal-content img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px 16px 0 0;
}

.card-modal-body {
  padding: 1.5rem 2rem;
}

.card-modal-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.card-modal-body p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.card-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
  background: none;
  border: none;
  z-index: 2001;
}

.card-modal-close:hover { opacity: 1; }

.info-card {
  cursor: pointer;
}

.e-subsection {
  margin-bottom: 2rem;
}

.e-subsection h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.8rem;
}

.e-faq {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 212, 255, 0.06);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.6rem;
}

.e-faq summary {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
}

.e-faq p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.5rem;
  line-height: 1.6;
}

.e-faq-static {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 212, 255, 0.06);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.6rem;
}

.e-faq-static p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.e-faq-static p strong {
  color: #ffffff;
  font-size: 0.92rem;
}

/* Simple bullet list (not card blocks) */
.e-bullet-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.e-bullet-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  line-height: 1.7;
}

.e-bullet-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #00d4ff;
}

.e-bullet-list li strong {
  color: #ffffff;
}

.e-bullet-list li.e-app-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-left: 0;
}

.e-bullet-list li.e-app-item::before {
  display: none;
}

.e-app-icon-sm {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 4px;
}

.e-app-item a {
  color: #ffffff;
  font-weight: 600;
}

.e-app-item a:hover {
  color: #00d4ff;
}

.e-app-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.e-app-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0, 212, 255, 0.08);
}

.e-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
}
