/* ============================================================
   cards.css — Cyber Matrix & Glowing Terminal Course Cards
   ============================================================ */

/* ── 1. SECTION & GRID LAYOUT ── */
.courses-section,
#tutorial {
  background: var(--clr-bg, #0a0e1a) !important;
  padding: 80px 0;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
}

/* ── 2. CARD CONTAINER & ELEVATION ── */
.course-card-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
  height: 100%;
}

.course-card {
  background: var(--clr-surface, rgba(17, 24, 39, 0.75)) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--clr-border, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 18px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  box-shadow: var(--card-shadow, 0 10px 30px rgba(0, 0, 0, 0.4));
}

.course-card-link:hover .course-card {
  transform: translateY(-10px) scale(1.015);
  border-color: var(--clr-border-blue, rgba(56, 189, 248, 0.45)) !important;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6),
    var(--glow-strong, 0 0 25px rgba(56, 189, 248, 0.25)) !important;
}

/* ── 3. BANNER CONTAINER & GLOW EFFECTS ── */
.course-card-banner {
  position: relative !important;
  height: 200px !important;
  aspect-ratio: 16/9;
  overflow: hidden !important;
  background: radial-gradient(circle at 50% 30%, var(--clr-surface2, #1a2235) 0%, var(--clr-surface3, #050811) 100%) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-bottom: 1px solid var(--clr-border, rgba(255, 255, 255, 0.08));
}

/* Cyber Matrix Perspective Grid Background */
.course-card-banner::before {
  content: "";
  position: absolute;
  inset: -10px;
  background-image: 
    linear-gradient(var(--clr-border, rgba(255, 255, 255, 0.1)) 1px, transparent 1px),
    linear-gradient(90deg, var(--clr-border, rgba(255, 255, 255, 0.1)) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.35;
  transform: perspective(300px) rotateX(45deg);
  z-index: 1;
}

/* Light Sheen Reflection Sweep */
.course-card-banner::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: rotate(25deg);
  transition: all 0.6s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.course-card-link:hover .course-card-banner::after {
  left: 130%;
  opacity: 1;
}

/* ── 4. SPECIFIC GRAPHIC ARTWORK DESIGNS ── */

/* A. SQL: 3D Layered Glowing Database Cylinder Array */
.graphic-sql-db {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  transition: transform 0.4s ease;
}

.course-card-link:hover .graphic-sql-db {
  transform: scale(1.08) translateY(-4px);
}

.db-disc {
  width: 90px;
  height: 28px;
  border-radius: 50% / 10px;
  background: linear-gradient(180deg, var(--clr-surface2, #1a2235), var(--clr-surface3, #050811));
  border: 2px solid var(--clr-accent, #38bdf8);
  box-shadow: 0 0 15px var(--glow-accent, rgba(56, 189, 248, 0.3));
  position: relative;
}

.db-disc::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 10px;
  border-radius: 50%;
  border-top: 2px solid var(--clr-accent-light, #7dd3fc);
  opacity: 0.8;
}

.db-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--glow-accent, rgba(56, 189, 248, 0.15));
  filter: blur(12px);
  z-index: 1;
}

/* B. Python: Realistic IDE Editor Window with Syntax Code */
.graphic-python-ide {
  position: relative;
  z-index: 2;
  width: 220px;
  background: var(--clr-surface3, #050811);
  border: 1px solid var(--clr-border-blue, rgba(56, 189, 248, 0.35));
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 15px var(--glow-accent, rgba(56, 189, 248, 0.2));
  font-family: 'JetBrains Mono', monospace;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.course-card-link:hover .graphic-python-ide {
  transform: scale(1.05) translateY(-4px);
  border-color: var(--clr-accent, #38bdf8);
}

.ide-dots {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}

.ide-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-r { background: #ef4444; }
.dot-y { background: #f59e0b; }
.dot-g { background: #10b981; }

.ide-code {
  font-size: 0.72rem;
  line-height: 1.5;
  color: #f8fafc;
}
.kw { color: #a78bfa; font-weight: bold; }
.fn { color: var(--clr-accent, #38bdf8); }
.str { color: #34d399; }

/* C. AWS: Multi-Node Glowing Cloud Network Topology */
.graphic-aws-network {
  position: relative;
  z-index: 2;
  width: 140px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.course-card-link:hover .graphic-aws-network {
  transform: scale(1.08) translateY(-4px);
}

.cloud-center-hub {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--clr-surface, #111827);
  border: 2px solid var(--clr-accent, #38bdf8);
  color: var(--clr-accent, #38bdf8);
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--glow-accent, rgba(56, 189, 248, 0.4));
  position: relative;
  z-index: 2;
}

.node-orbit {
  position: absolute;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--clr-surface2, #1a2235);
  border: 1px solid var(--clr-accent-light, #7dd3fc);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  z-index: 3;
}

.node-ec2 { top: 0; left: -10px; }
.node-s3 { bottom: 0; right: -10px; }
.node-iam { top: 0; right: -10px; }

/* D. Linux: Interactive Terminal Command Line */
.graphic-linux-cli {
  position: relative;
  z-index: 2;
  width: 210px;
  background: #02040a;
  border: 1px solid var(--clr-border, rgba(255,255,255,0.12));
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #34d399;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  transition: transform 0.4s ease;
}

.course-card-link:hover .graphic-linux-cli {
  transform: scale(1.05) translateY(-4px);
  border-color: var(--clr-accent, #38bdf8);
}

.cli-prompt { color: var(--clr-accent, #38bdf8); font-weight: bold; }
.cli-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: #34d399;
  margin-left: 2px;
  animation: cliBlink 1s infinite;
}

@keyframes cliBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* E. DevOps: CI/CD Pipeline Node Flow */
.graphic-devops-pipeline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.4s ease;
}

.course-card-link:hover .graphic-devops-pipeline {
  transform: scale(1.05) translateY(-4px);
}

.pipe-box {
  padding: 8px 12px;
  background: var(--clr-surface, #111827);
  border: 1.5px solid var(--clr-accent, #38bdf8);
  border-radius: 8px;
  color: var(--clr-accent, #38bdf8);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 0 12px var(--glow-accent, rgba(56, 189, 248, 0.25));
}

.pipe-arrow { color: var(--clr-text-muted, #94a3b8); font-weight: bold; }

/* F. Git: Version Control Branch Graph */
.graphic-git-branch {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 20px;
  transition: transform 0.4s ease;
}

.course-card-link:hover .graphic-git-branch {
  transform: scale(1.05) translateY(-4px);
}

.git-line-v {
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--clr-accent, #38bdf8);
}

.git-node {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.git-node::before {
  content: "";
  position: absolute;
  left: -18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clr-accent-light, #7dd3fc);
  box-shadow: 0 0 10px var(--clr-accent, #38bdf8);
}

.git-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #f8fafc;
  font-weight: 600;
}

/* ── 5. CATEGORY BADGE ── */
.course-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--clr-surface3, rgba(5, 8, 17, 0.85)) !important;
  backdrop-filter: blur(8px);
  border: 1px solid var(--clr-border-blue, rgba(56, 189, 248, 0.4)) !important;
  color: var(--clr-accent, #38bdf8) !important;
  font-size: 0.72rem !important;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-weight: 700 !important;
  padding: 4px 12px !important;
  border-radius: 50px !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 5;
  box-shadow: 0 0 12px var(--glow-accent, rgba(56, 189, 248, 0.2));
  transition: all 0.3s ease;
}

.course-card-link:hover .course-badge {
  background: var(--clr-accent, #38bdf8) !important;
  color: #000000 !important;
  box-shadow: 0 0 18px var(--glow-accent, rgba(56, 189, 248, 0.6));
}

/* ── 6. CARD BODY & TYPOGRAPHY ── */
.course-card .card-body {
  padding: 22px !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent !important;
  position: relative;
  z-index: 1;
}

.course-card .card-title {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: var(--clr-text, #ffffff) !important;
  margin-bottom: 8px !important;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.course-card-link:hover .card-title {
  color: var(--clr-accent, #38bdf8) !important;
}

.course-card .card-text {
  font-size: 0.85rem !important;
  color: var(--clr-text-muted, #94a3b8) !important;
  line-height: 1.6;
  margin-bottom: 16px !important;
}

/* Metadata Pills */
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px !important;
  padding: 0;
  list-style: none;
}

.course-meta li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem !important;
  color: var(--clr-text-muted, #cbd5e1) !important;
  background: var(--clr-surface2, rgba(255, 255, 255, 0.04)) !important;
  border: 1px solid var(--clr-border, rgba(255, 255, 255, 0.08)) !important;
  padding: 3px 9px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.course-card-link:hover .course-meta li {
  background: var(--glow-accent, rgba(56, 189, 248, 0.08)) !important;
  border-color: var(--clr-border-blue, rgba(56, 189, 248, 0.2)) !important;
  color: var(--clr-accent, #38bdf8) !important;
}

/* ── 7. FOOTER CTA ── */
.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px !important;
  margin-top: auto;
  border-top: 1px solid var(--clr-border, rgba(255, 255, 255, 0.08)) !important;
}

.course-duration {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem !important;
  color: var(--clr-text-dim, #64748b) !important;
  font-weight: 600;
}

.course-cta {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: var(--clr-accent, #38bdf8) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease !important;
}

.course-card-link:hover .course-cta {
  color: #ffffff !important;
  transform: translateX(4px);
}

/* ============================================================
   SQL Card — Redesigned 3D Server Tower + Mini SQL IDE
   ============================================================ */

.banner-sql-pro {
  position: relative !important;
  height: 200px !important;
  background: radial-gradient(ellipse at 30% 40%, var(--clr-surface2, #1a2235) 0%, var(--clr-surface3, #050811) 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-evenly !important;
  padding: 10px 16px;
  overflow: hidden;
  border-bottom: 1px solid var(--clr-border, rgba(255, 255, 255, 0.08));
}

/* 1. Background Analytics Chart Lines */
.sql-bg-chart {
  position: absolute;
  right: 15px;
  bottom: 25px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

.sql-bg-chart .bar {
  width: 12px;
  background: var(--clr-accent, #38bdf8);
  border-radius: 3px 3px 0 0;
}
.sql-bg-chart .b1 { height: 25px; }
.sql-bg-chart .b2 { height: 45px; }
.sql-bg-chart .b3 { height: 35px; }
.sql-bg-chart .b4 { height: 60px; }

/* 2. 3D Redesigned Server Node Tower */
.sql-server-tower {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.course-card-link:hover .sql-server-tower {
  transform: translateY(-5px) scale(1.06);
}

.server-node {
  width: 78px;
  height: 26px;
  background: linear-gradient(180deg, var(--clr-surface, #111827), #070b14);
  border: 1.5px solid var(--clr-accent, #38bdf8);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  position: relative;
}

.node-slot {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.3);
}

.node-leds {
  display: flex;
  gap: 4px;
}

.node-leds .led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.node-leds .green {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: ledBlink 1.5s infinite alternate;
}

.node-leds .blue {
  background: var(--clr-accent, #38bdf8);
  box-shadow: 0 0 6px var(--clr-accent, #38bdf8);
}

@keyframes ledBlink {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.server-base-glow {
  position: absolute;
  bottom: -10px;
  width: 90px;
  height: 16px;
  background: var(--glow-accent, rgba(56, 189, 248, 0.35));
  filter: blur(10px);
  border-radius: 50%;
  z-index: -1;
}

/* 3. Right: Mini SQL Query Editor Window */
.sql-mini-ide {
  position: relative;
  z-index: 2;
  width: 175px;
  background: rgba(5, 8, 17, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--clr-border-blue, rgba(56, 189, 248, 0.35));
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.course-card-link:hover .sql-mini-ide {
  transform: translateY(-3px);
  border-color: var(--clr-accent, #38bdf8);
}

.ide-top {
  background: #161b22;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ide-dots {
  display: flex;
  gap: 4px;
}

.ide-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.d-red { background: #ef4444; }
.d-yellow { background: #f59e0b; }
.d-green { background: #10b981; }

.ide-tab-title {
  font-size: 0.6rem;
  color: var(--clr-text-muted, #8b949e);
  font-weight: 600;
}

.ide-code-lines {
  padding: 8px;
  font-size: 0.65rem;
  line-height: 1.5;
  color: #f8fafc;
}

.sql-kw {
  color: var(--clr-accent, #38bdf8);
  font-weight: 700;
}

.sql-fn {
  color: #a78bfa;
  font-weight: 700;
}

.sql-cursor {
  display: inline-block;
  width: 5px;
  height: 10px;
  background: var(--clr-accent, #38bdf8);
  margin-left: 2px;
  vertical-align: middle;
  animation: sqlBlink 0.9s infinite;
}

@keyframes sqlBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================================
   Python Card — Prominent Logo Badge + Single IDE Window
   ============================================================ */

.banner-python-v2 {
  position: relative !important;
  height: 200px !important;
  background: radial-gradient(ellipse at 30% 40%, var(--clr-surface2, #1a2235) 0%, var(--clr-surface3, #050811) 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-evenly !important;
  padding: 10px 16px;
  overflow: hidden;
  border-bottom: 1px solid var(--clr-border, rgba(255, 255, 255, 0.08));
}

/* 1. Left: Prominent Glowing Python Logo Badge */
.python-logo-badge {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid #facc15;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(250, 204, 21, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.course-card-link:hover .python-logo-badge {
  transform: translateY(-5px) scale(1.1) rotate(4deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(250, 204, 21, 0.5);
}

.py-badge-svg {
  width: 40px;
  height: 40px;
}

.py-logo-glow {
  position: absolute;
  bottom: -10px;
  width: 80px;
  height: 16px;
  background: rgba(250, 204, 21, 0.3);
  filter: blur(10px);
  border-radius: 50%;
  z-index: -1;
}

/* 2. Right: Single Expanded Python IDE Window */
.python-solo-ide {
  position: relative;
  z-index: 2;
  width: 175px;
  background: rgba(5, 8, 17, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.course-card-link:hover .python-solo-ide {
  transform: translateY(-3px);
  border-color: var(--clr-accent, #38bdf8);
}

.py-ide-top {
  background: #111827;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.py-dots { display: flex; gap: 4px; }
.py-dots .p-dot { width: 6px; height: 6px; border-radius: 50%; }
.py-dots .r { background: #ef4444; }
.py-dots .y { background: #f59e0b; }
.py-dots .g { background: #10b981; }

.py-filename {
  font-size: 0.6rem;
  color: var(--clr-text-muted, #94a3b8);
  font-weight: 600;
}

.py-code-body {
  padding: 8px;
  font-size: 0.65rem;
  line-height: 1.5;
  color: #f8fafc;
}

.py-kw { color: #facc15; font-weight: 700; } /* Python Yellow */
.py-fn { color: var(--clr-accent, #38bdf8); font-weight: 700; } /* Python Blue */
.py-lib { color: #a78bfa; }
.py-str { color: #34d399; }

.py-cursor {
  display: inline-block;
  width: 5px;
  height: 10px;
  background: var(--clr-accent, #38bdf8);
  margin-left: 2px;
  vertical-align: middle;
  animation: pyBlink 0.9s infinite;
}

@keyframes pyBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================================
   AWS Card — Balanced Cloud Architecture Topology Banner
   ============================================================ */

.banner-aws-arch {
  position: relative !important;
  height: 200px !important;
  background: radial-gradient(circle at 50% 50%, var(--clr-surface2, #1a2235) 0%, var(--clr-surface3, #050811) 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
  border-bottom: 1px solid var(--clr-border, rgba(255, 255, 255, 0.08));
}

/* Connecting SVG Rays Canvas */
.aws-ray-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Central AWS Hub */
.aws-center-hub {
  position: relative;
  z-index: 3;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--clr-accent, #38bdf8);
  box-shadow: 0 0 20px var(--glow-accent, rgba(56, 189, 248, 0.4));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.course-card-link:hover .aws-center-hub {
  transform: scale(1.12);
  box-shadow: var(--glow-strong, 0 0 28px rgba(56, 189, 248, 0.6));
}

.aws-hub-cloud {
  width: 22px;
  height: 22px;
  color: var(--clr-accent, #38bdf8);
}

.aws-hub-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
}

/* Service Nodes — Fixed Pill Dimensions */
.aws-service-node {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  height: auto !important; /* Prevents vertical stretching */
  max-height: 28px;
  border-radius: 20px;
  background: rgba(5, 8, 17, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--clr-border-blue, rgba(56, 189, 248, 0.35));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  white-space: nowrap;
}

.aws-service-node span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1;
}

.node-svg {
  width: 12px;
  height: 12px;
  color: var(--clr-accent, #38bdf8);
  flex-shrink: 0;
}

.course-card-link:hover .aws-service-node {
  border-color: var(--clr-accent, #38bdf8);
  box-shadow: 0 0 12px var(--glow-accent, rgba(56, 189, 248, 0.3));
}

/* Absolute Positioning for 6 Balanced Satellite Nodes */
.node-ec2 { top: 22px; left: 30px; }
.node-iam { top: 22px; right: 30px; }
.node-vpc { top: 82px; left: 15px; }
.node-elb { top: 72px; right: 15px; }
.node-s3  { top: 114px; right: 15px; }
.node-rds { bottom: 18px; left: 50%; transform: translateX(-50%); }

/* Subtle Hover Elevations */
.course-card-link:hover .node-ec2 { transform: translateY(-3px) scale(1.05); }
.course-card-link:hover .node-iam { transform: translateY(-3px) scale(1.05); }
.course-card-link:hover .node-vpc { transform: translateX(-3px) scale(1.05); }
.course-card-link:hover .node-elb { transform: translateX(3px) scale(1.05); }
.course-card-link:hover .node-s3  { transform: translateX(3px) scale(1.05); }
.course-card-link:hover .node-rds { transform: translate(-50%, 3px) scale(1.05); }

/* ============================================================
   Linux Card — Red Hat/Tux Brand Badge + Terminal Window
   ============================================================ */

.banner-linux-v2 {
  position: relative !important;
  height: 200px !important;
  background: radial-gradient(ellipse at 30% 40%, var(--clr-surface2, #1a2235) 0%, var(--clr-surface3, #050811) 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-evenly !important;
  padding: 10px 16px;
  overflow: hidden;
  border-bottom: 1px solid var(--clr-border, rgba(255, 255, 255, 0.08));
}

/* 1. Left: Brand Emblem Badge */
.linux-brand-badge {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid #34d399;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(52, 211, 153, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.course-card-link:hover .linux-brand-badge {
  transform: translateY(-5px) scale(1.1) rotate(-4deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(52, 211, 153, 0.5);
}

.linux-brand-svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 8px rgba(52, 211, 153, 0.4));
}

.linux-brand-glow {
  position: absolute;
  bottom: -10px;
  width: 80px;
  height: 16px;
  background: rgba(52, 211, 153, 0.3);
  filter: blur(10px);
  border-radius: 50%;
  z-index: -1;
}

/* 2. Right: Terminal Window */
.linux-solo-terminal {
  position: relative;
  z-index: 2;
  width: 175px;
  background: rgba(2, 4, 10, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.course-card-link:hover .linux-solo-terminal {
  transform: translateY(-3px);
  border-color: #34d399;
}

.term-top-bar {
  background: #111827;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.term-dots { display: flex; gap: 4px; }
.term-dots span { width: 6px; height: 6px; border-radius: 50%; }
.dot-r { background: #ef4444; }
.dot-y { background: #f59e0b; }
.dot-g { background: #10b981; }

.term-libertine-title {
  font-family: Georgia, serif;
  font-size: 0.62rem;
  color: var(--clr-text-muted, #94a3b8);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.term-body-code {
  padding: 8px;
  font-size: 0.63rem;
  line-height: 1.55;
  color: #34d399;
}

.cli-host { color: var(--clr-accent, #38bdf8); font-weight: 700; }
.cli-path { color: #facc15; }
.cli-input { color: #f8fafc; }
.cli-status { color: #a78bfa; font-size: 0.58rem; }

.cli-blink-cursor {
  display: inline-block;
  width: 5px;
  height: 10px;
  background: #34d399;
  margin-left: 2px;
  vertical-align: middle;
  animation: linuxCursorBlink 0.9s infinite;
}

@keyframes linuxCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================================
   Responsive Scaling for Cyber Matrix Banners & Artworks
   ============================================================ */
@media (max-width: 576px) {
  .course-card-banner,
  .banner-sql-pro,
  .banner-python-v2,
  .banner-aws-arch,
  .banner-linux-v2 {
    height: 185px !important;
    padding: 8px 12px !important;
  }

  .sql-mini-ide,
  .python-solo-ide,
  .linux-solo-terminal {
    width: clamp(140px, 46vw, 175px) !important;
  }

  .python-logo-badge,
  .linux-brand-badge {
    width: clamp(56px, 16vw, 68px) !important;
    height: clamp(56px, 16vw, 68px) !important;
    border-radius: 16px !important;
  }

  .py-badge-svg,
  .linux-brand-svg {
    width: 34px !important;
    height: 34px !important;
  }

  .sql-server-tower .server-node {
    width: 68px !important;
    height: 24px !important;
  }

  .node-ec2 { top: 14px; left: 16px; }
  .node-iam { top: 14px; right: 16px; }
  .node-vpc { top: 76px; left: 10px; }
  .node-elb { top: 66px; right: 10px; }
  .node-s3  { top: 106px; right: 10px; }
  .node-rds { bottom: 12px; }

  .aws-service-node {
    padding: 3px 7px !important;
    font-size: 0.58rem !important;
  }
}