:root {
  --bg: #f5f8fb;
  --panel: #ffffff;
  --panel-2: #eef5fb;
  --ink: #24282e;
  --muted: #66707a;
  --accent: #1a6ba7;
  --accent-soft: #e0f0fe;
  --accent-2: #9ad4d8;
  --accent-3: #cdd87c;
  --accent-4: #98cb7c;
  --accent-5: #ecc069;
  --accent-6: #d27661;
  --line: #d9e6f0;
  --dark: #1c2430;
  --success: #20804d;
  --failed: #cf4d4d;
  --warning: #b88300;
  --running: #0e6c97;
  --shadow: 0 9px 24px rgba(24, 39, 57, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 26px;
  background: #f7fafc;
  color: var(--ink);
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  line-height: 1.35;
}

.deck {
  display: flex;
  gap: 18px;
  height: clamp(770px, 84vh, 760px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 12px;
  scroll-behavior: smooth;
}

.deck::-webkit-scrollbar {
  display: none;
}

.deck {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.slide {
  position: relative;
  min-height: 100%;
  height: 100%;
  min-width: 100%;
  padding: 34px 40px 62px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
  flex-shrink: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  pointer-events: none;
  display: none;
}

.slide > * { position: relative; z-index: 1; }

.slide.dark {
  background: #ffffff;
  color: var(--ink);
}

.slide.dark::before {
  background: linear-gradient(180deg, #71d7ea 0%, #1a6ba7 100%);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 10px;
}

.slide.dark .eyebrow { color: #8dd7e8; }

h1, h2, h3, h4 { margin: 0; }
strong { color: #1f2937; }
.slide.dark strong { color: #f6fbff; }

.s-title {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  column-gap: 34px;
  min-height: 100%;
}

.title-left {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.title-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.title-image-placeholder {
  width: min(620px, 100%);
  aspect-ratio: 4 / 3;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  background-image: url("../images/airflow-logo.png"), linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 100% auto, cover;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-airflow-logo {
  display: none;
}

.title-left h1 {
  font-size: 3.04rem;
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 700;
}

.slide-logo {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 20px;
  height: 28px;
  border-top: 1px solid rgba(26, 107, 167, 0.16);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #7a8a96;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.95;
}

.slide-logo::before {
  content: "";
  display: inline-block;
  width: 124px;
  height: 34px;
  margin-right: 10px;
  background: url("../images/nobleprog-logo.jpg") center / contain no-repeat;
}

.section-number {
  position: absolute;
  top: 34px;
  right: 40px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-heading {
  font-size: 2.53rem;
  margin-bottom: 16px;
}

.subtitle {
  font-size: 1.21rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.s-section {
  padding: 40px;
}

.split2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.split-left, .split-right {
  display: flex;
  flex-direction: column;
}

h3 {
  font-size: 1.65rem;
  margin-bottom: 16px;
}

.bullets {
  list-style: disc;
  padding-left: 28px;
  margin: 0;
}

.bullets li {
  font-size: 1.21rem;
  line-height: 1.65;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th {
  background: var(--accent-soft);
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  font-size: 1.1rem;
}

table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 1.12rem;
}

.s-deployment .section-heading {
  margin-bottom: 10px;
}

.s-deployment .subtitle {
  margin-bottom: 14px;
}

.deployment-table {
  margin: 12px 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.deployment-table th,
.deployment-table td {
  line-height: 1.4;
  padding: 7px 8px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  vertical-align: top;
}

.deployment-table th {
  background: #f2f7fc;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.s-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.s-intro h2 {
  font-size: 4rem;
  line-height: 1.2;
  color: var(--accent);
  font-weight: 700;
}

.deployment-table td {
  background: #ffffff;
}

.deployment-table .col-plus {
  background: #edf8f2;
}

.deployment-table .col-limits {
  background: #fff4ea;
}

.deployment-conclusion {
  font-size: 1.5rem;
  color: #334155;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.s-code {
  padding: 40px;
  background: #ffffff;
}

pre {
  background: #071117;
  color: #e8eef7;
  padding: 24px;
  border-radius: 8px;
  overflow-x: auto;
  max-width: 100%;
  font-size: 1.08rem;
  line-height: 1.6;
  font-family: "Courier New", monospace;
  margin: 16px 0;
}

pre code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#s24 .section-heading {
  margin-bottom: 10px;
}

#s24 .bullets {
  margin-bottom: 8px;
}

#s24 .bullets li {
  width: 95%;
  font-size: 1.14rem;
  line-height: 1.45;
  margin-bottom: 8px;
}

#s24 pre {
  width: 60%;
}

code {
  font-family: "Courier New", monospace;
}

.kw { color: #fbbf24; font-weight: 600; }
.fn { color: #60a5fa; font-weight: 600; }
.str { color: #34d399; }
.cm { color: #9ca3af; font-style: italic; }

.hibox {
  background: rgba(26, 107, 167, 0.08);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 4px;
  margin: 20px 0;
  font-size: 1.14rem;
  line-height: 1.6;
}

.hibox-red {
  background: rgba(207, 77, 77, 0.08);
  border-left-color: var(--failed);
}

.note {
  background: rgba(230, 126, 34, 0.08);
  border-left: 4px solid #e67e22;
  padding: 16px 20px;
  border-radius: 4px;
  margin: 16px 0;
  font-size: 1.14rem;
  color: #5a3d2a;
}

.s-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.center-quote {
  font-size: 2.14rem;
  line-height: 1.45;
  text-align: center;
  max-width: 820px;
  margin: auto;
  color: #1d2a33;
}

.small { font-size: 0.9rem; color: var(--muted); }

.controls {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(26, 107, 167, 0.15);
  border-radius: 24px;
  padding: 10px 20px;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(26, 107, 167, 0.12);
}

.ctr {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  min-width: 50px;
  text-align: center;
  letter-spacing: 0.05em;
}

.dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(26, 107, 167, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background: rgba(26, 107, 167, 0.5);
  transform: scale(1.2);
}

.dot.on {
  background: var(--accent);
  transform: scale(1.4);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 100;
}

.progress-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  width: 0%;
  transition: width 0.3s ease;
}

/* Instructor slide split layout */
.s-instructor {
  background: #ffffff !important;
  color: var(--ink) !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 48px !important;
  align-items: center;
  padding: 60px 50px !important;
}

.s-instructor::before {
  display: none;
}

.instructor-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.instructor-content .eyebrow {
  color: #f5a623;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 800;
}

.instructor-content h2 {
  font-size: 2.51rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--ink);
}

.instructor-content ul {
  list-style: disc;
  margin: 0;
  padding-left: 24px;
}

.instructor-content li {
  font-size: 1.4rem;
  line-height: 1.7;
  margin-bottom: 12px;
  color: var(--ink);
}

.instructor-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.photo-circle {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 3px solid #ddd;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-name {
  font-size: 2.09rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-bottom: 4px;
}

.instructor-title {
  font-size: 1.4rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.03em;
}

.diagram-shell {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  padding: 12px;
  margin-top: 14px;
}

.diagram-svg {
  width: 100%;
  height: auto;
  display: block;
}

#s2 .diagram-svg {
  transform: scaleX(0.9);
  transform-origin: center center;
}

.svg-text {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  fill: var(--ink);
}

.svg-title {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  fill: var(--accent);
}

.svg-tag {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  fill: var(--muted);
}

@media (max-width: 1200px) {
  .split2 {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
