/* ═══════════════════════════════════════════════════════════
   sejarah-informatika.css
═══════════════════════════════════════════════════════════ */

.page-main {
  min-height: 0;
  background: #ffffff;
}

.sejarah {
  padding: 48px 60px 0;
}

.sejarah__title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 36px;
}

.sejarah__body {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 48px;
}

/* Left column — stacks images vertically */
.sejarah__image-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px; /* sticks in view as user scrolls through the text */
}

.sejarah__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: #d0d5e8;
}

.sejarah__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sejarah__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sejarah__text p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #222;
  line-height: 1.85;
  text-align: justify;
}



/* ── Tablet ── */
@media (max-width: 1024px) {
  .sejarah {
    padding: 40px 32px 0;
  }
  .sejarah__body {
    grid-template-columns: 300px 1fr;
    gap: 24px;
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .sejarah {
    padding: 32px 24px 0;
  }
  .sejarah__title {
    font-size: 1.3rem;
    margin-bottom: 24px;
  }
  .sejarah__body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sejarah__image-col {
    position: static; /* disable sticky on mobile */
    flex-direction: row; /* show images side by side on mobile */
    gap: 12px;
  }
  .sejarah__text p {
    text-align: left;
  }
}

/* ═══════════════════════════════════════
   KAPRODI TERDAHULU
═══════════════════════════════════════ */
.kaprodi {
  background: var(--orange);
  padding: 48px 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.kaprodi__heading {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--white);
  text-align: center;
  margin-bottom: 32px;
}

/* ── Stage / track ── */
.kaprodi__stage {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.kaprodi__track {
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.35s ease;
  width: max-content;
  padding: 0 600px; /* generous buffer so first/last slides can be centered */
}

/* ── Slide ── */
.kaprodi__slide {
  flex-shrink: 0;
  width: 300px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0.45;
  transform: scale(0.88);
  transition: opacity 0.3s, transform 0.3s;
  position: relative;
}

.kaprodi__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  opacity: 0.45;
  transition: opacity 0.3s;
}

.kaprodi__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.kaprodi__slide.is-active::after {
  opacity: 0;
}

.kaprodi__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Name / years ── */
.kaprodi__name {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  text-align: center;
  margin-top: 28px;
}

.kaprodi__years {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  text-align: center;
  margin-top: 4px;
}

/* ── Arrows ── */
.kaprodi__nav {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.kaprodi__arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--white);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.kaprodi__arrow:hover {
  background: rgba(255,255,255,0.3);
}

/* ── Tablet ── */
@media (max-width: 1024px) {
  .kaprodi__slide {
    width: 170px;
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .kaprodi {
    padding: 36px 0 44px;
  }
  .kaprodi__heading {
    font-size: 1.4rem;
    margin-bottom: 24px;
  }
  .kaprodi__slide {
    width: 140px;
  }
  .kaprodi__track {
    gap: 14px;
  }
}