*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f7f6;
  background: #203530;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header with Hermon-style bands */

.top-bar {
  background: #94a6a2;
  color: #10201b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.top-strip {
  height: 10px;
  background: #94a6a2;
  border-bottom: 2px solid #e9f1ef;
}

.top-strip.thin {
  height: 6px;
  background: #94a6a2;
  border-top: 1px solid #e9f1ef;
  border-bottom: 2px solid #162824;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(to bottom, #94a6a2 0%, #6e827e 55%, #203530 100%);
}

.brand-main {
  display: block;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.brand-sub {
  display: block;
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.2rem;
  color: white;
}

/* Social icon */

.social {
  display: flex;
  gap: 0.5rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #203530;
  color: #f5f7f6;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.social-icon:hover,
.social-icon:focus {
  outline: none;
  box-shadow: 0 0 0 2px #e9f1ef;
}

/* Layout */

main {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 1.2rem 0.8rem 0.4rem;
}

.slides {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.slide {
  background: #283d37;
  border-radius: 10px;
  padding: 1.6rem 1.6rem 2.2rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  display: none;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

.slide.active {
  display: block;
}

.slide h1 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}

.slide h2 {
  margin-top: 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 1.0rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #dfe8e5;
}

.slide-content {
  font-size: 1.1rem;
  line-height: 1.6;
}

.slide-content ul {
  margin-top: 0.2rem;
  margin-bottom: 0.6rem;
  padding-left: 1.2rem;
}

.slide-content li + li {
  margin-top: 0.2rem;
}

.note {
  font-size: 0.86rem;
  opacity: 0.9;
  margin-top: 0.4rem;
  border-left: 3px solid #c7d4d0;
  padding-left: 0.6rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.2rem;
}

.image-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
}

figure {
  margin: 0;
  background: #32463f;
  border-radius: 8px;
  padding: 0.6rem;
}

figure img {
  max-width: 100%;
  border-radius: 6px;
  display: block;
}

figcaption {
  font-size: 0.78rem;
  margin-top: 0.35rem;
  color: #d5dfdb;
}

.wide-figure {
  margin-top: 1rem;
}

.resources {
  list-style: none;
  padding-left: 0;
}

.resources li {
  margin-bottom: 0.55rem;
}

.resources a {
  color: #e6f2ee;
}

.resources a:hover,
.resources a:focus {
  text-decoration: underline;
}

.resource-note {
  display: block;
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 0.15rem;
}

/* Controls */

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.5rem 0.8rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #162824;
  font-size: 0.9rem;
}

.controls button {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #f5f7f6;
  padding: 0.4rem 1.0rem;
  cursor: pointer;
}

.controls button:hover,
.controls button:focus {
  background: rgba(148, 166, 162, 0.2);
  outline: none;
}

#slideIndicator {
  min-width: 8rem;
  text-align: center;
}

/* Responsive tweaks */

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
  .slide {
    max-height: none;
  }
}

@media (max-width: 480px) {
  .brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}
