/* =========================
   ABOUT SCROLL STORY
========================= */
html {
  width: 100%;
  height: 100%;
  overflow: hidden; /* ⛔ html TIDAK BOLEH scroll */
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow-y: auto;   /* ✅ scroll cuma di body */
  overflow-x: hidden;
}
.about-story {
  position: relative;
  height: 682vh; /* 5 slide */
  background: radial-gradient(
    circle at top,
    #0b1025,
    #050814
  );
}

/* =========================
   NAVBAR PERIODE SELECT
========================= */

.nav-periode {
  position: relative;
  margin-right: 12px;
}

.nav-periode select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);

  color: #fff;
  font-size: 14px;
  font-weight: 500;

  padding: 8px 36px 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);

  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
}

/* hover & focus */
.nav-periode select:hover,
.nav-periode select:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(122, 162, 255, 0.8);
}

/* arrow custom */
.nav-periode::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;

  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* option (saat dropdown kebuka) */
.nav-periode option {
  color: #111;
  background: #fff;
}

/* ===============================
   NAV PERIODE - MOBILE
================================ */
@media (max-width: 768px) {

  .nav-periode {
    display: flex;
    align-items: center;
  }

  .nav-periode select {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;

    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);

    max-width: 120px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='white' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px;
    padding-right: 24px;
  }

  .nav-periode select option {
    color: #111;
  }
}

/* =========================
   HERO STORY (SLIDE 1)
========================= */
.story-hero {
  background-image: url("../../assets/img/bg/bg-hero1.webp"); /* ganti sesuai lokasi gambar */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* overlay biar teks kebaca */
.story-hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to top,
    rgba(5, 8, 20, 1) 0%,
    rgba(5, 8, 20, 0.85) 25%,
    rgba(5, 8, 20, 0.45) 45%,
    rgba(5, 8, 20, 0.15) 60%,
    rgba(5, 8, 20, 0) 72%
  );

  z-index: 0;
}


.story-hero {
  justify-content: flex-start;   /* ⬆️ dorong ke atas */
  padding-top: 18vh;             /* jarak dari atas */
}

/* pastikan teks di atas overlay */
.story-hero h2,
.story-hero p {
  position: relative;
  z-index: 1;
}


/* tiap slide */
.story-slide {
  position: sticky;
  top: 0;
  height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 0 24px;

  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;

  pointer-events: none; /* ⬅️ penting */
}

.story-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


/* judul */
.story-slide h2 {
  font-family: 'Resoft', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 2px;
  margin-bottom: 24px;

  /* TEXT GRADIENT */
  background: linear-gradient(
    90deg,
    #7aa2ff,
    #9bffd8,
    #ffffff
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  position: relative;
}



@font-face {
  font-family: 'Resoft';
  src: url('../../assets/fonts/Resoft.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* deskripsi */
.story-slide p {
  font-size: clamp(16px, 2.2vw, 22px);
  max-width: 760px;
  line-height: 1.8;
  color: #dbe1ff;
}

/* slide terakhir */
.story-slide.final h2 {
  background: linear-gradient(90deg, #ffce6a, #ffffff);
  -webkit-background-clip: text;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-story {
    height: 715vh;
  }

  .story-slide p {
    font-size: 16px;
  }
}

.story-slide {
  will-change: opacity, transform;
}

/* =========================
   FORCE WHITE TEXT
========================= */
.story-slide h2,
.story-slide p {
  color: #ffffff !important;

  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
}


/* =========================
   FINAL FIGUR BIRU SLIDE
========================= */

.story-slide.final {
  padding: 0;
  background: none;
  align-items: stretch;
  justify-content: stretch;
}

/* layout */
.final-layout {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* LEFT */


.final-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.final-brand img {
  width: 150px;
}

.final-brand h3 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}

.final-brand span {
  color: #1f5cff;
}

.final-left p {
  font-size: 16px;
  line-height: 1.8;
  color: #222;
  max-width: 420px;
}

/* LEFT */
.final-left {
  width: 35%;
  padding: 80px 60px;

  display: flex;
  flex-direction: column;

  justify-content: center;   /* default tengah */
  margin-top: 120px;         /* ⬅️ TURUNKAN KE BAWAH */
}

/* RIGHT */
.final-right {
  width: 65%; /* ⬅️ bikin biru lebih lebar */
  margin-left: auto; /* ⬅️ paksa nempel kanan */

  background: linear-gradient(135deg, #0a1cff, #070b8c);

  clip-path: polygon(
    18% 0,   /* ⬅️ makin ke kanan */
    100% 0,
    100% 100%,
    6% 100%
  );

  display: flex;
  align-items: center;
  padding-left: 120px; /* ⬅️ isi ikut ke kanan */
}


/* cards */
.final-cards {
  display: flex;
  gap: 20px;

  margin-left: 80px; /* ⬅️ geser ke kanan */
}


.final-card {
  width: 160px;
  background: #ffffff;
  overflow: hidden;
  border-radius: 6px;
}

.final-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.final-caption {
  background: #ffd400;
  color: #111;
  font-size: 12px;
  padding: 10px;
  line-height: 1.4;

  height: 56px;              /* ⬅️ kunci tinggi */
  display: flex;             /* ⬅️ biar rapi */
  align-items: center;       /* tengah vertikal */
  justify-content: center;   /* tengah horizontal */
  text-align: center;

  box-sizing: border-box;
}


/* =========================
   FINAL FIGUR BIRU - MOBILE
========================= */
@media (max-width: 768px) {

  .final-layout {
    flex-direction: column;
    height: auto;
  }

  /* LEFT (TEXT) */
  .final-left {
    width: 100%;
    padding: 40px 24px 24px;
    margin-top: 0;
    background: #00000000;
    z-index: 2;
  }

  .final-brand h3 {
    font-size: 24px;
  }

  .final-left p {
    font-size: 14px;
    line-height: 1.7;
  }

  /* RIGHT (BLUE AREA) */
  .final-right {
    width: 100%;
    margin-left: 0;
    padding: 32px 16px 40px;

    background: linear-gradient(135deg, #0a1cff, #070b8c);

    clip-path: none; /* ⬅️ di HP jangan miring */
  }

  /* CARDS */
  .final-cards {
    display: flex;
    gap: 14px;

    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 10px;

    scroll-snap-type: x mandatory;
  }

  .final-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
  }

  /* scrollbar halus (opsional) */
  .final-cards::-webkit-scrollbar {
    height: 6px;
  }

  .final-cards::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.4);
    border-radius: 99px;
  }
}

@media (max-width: 768px) {
  .story-slide.final {
    margin-top: 100px; /* ⬅️ INI YANG NGARUH */
  }
}

@media (max-width: 768px) {

  .final-right {
    margin-top: 100px;   /* ⬅️ TURUN KE BAWAH */
  }

}


/* ================= MISI ================= */

.misi-title {
  text-align: center;
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 40px;
}

/* WRAPPER */
.misi-wrapper {
  position: relative;
  width: 100%;
}

/* SLIDER */
.misi-slider {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 60px 30px;
}

.misi-slider::-webkit-scrollbar {
  display: none;
}

/* CARD */
.misi-card {
  flex: 0 0 calc(50% - 20px);
  position: relative;
  padding: 30px 32px;
  border-radius: 26px;
  border: 2px solid #2563eb;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
  scroll-snap-align: start;
  overflow: hidden;
}

.misi-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

/* ANGKA BESAR */
.misi-card {
  position: relative;
  overflow: hidden;
}

.misi-card::after {
  content: attr(data-number);
  position: absolute;

  /* POSISI */
  right: 24px;
  top: 50%;
  transform: translateY(-50%) skewX(-12deg); /* MIRING KE SAMPING */

  /* TEKS */
  font-size: 9rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(134, 117, 117, 0.15);

  /* KUNCI EFEK */
  transform-origin: center bottom;

  pointer-events: none;
}


/* PANAH */
.misi-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(137, 93, 93, 0.6);
  color: #fff;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .3s;
}

.misi-nav:hover {
  background: #d26ce900;
}

.misi-nav.left {
  left: 0;
}

.misi-nav.right {
  right: 0;
}

/* MOBILE */
@media (max-width: 900px) {
  .misi-card {
    flex: 0 0 85%;
  }

  .misi-title {
    font-size: 3rem;
  }

  .misi-slider {
    padding: 10px 20px 30px;
  }

  .misi-nav {
    display: none;
  }
}



/* ===== BACKGROUND GRID FINAL FIX ===== */

.story-slide.poster-team .team-bg-grid {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;

  display: grid !important;

  grid-template-columns: repeat(5, 1fr) !important;
  grid-auto-rows: 200px !important;

  gap: 14px !important;
  padding: 20px !important;

  z-index: 1 !important;

  height: 420px !important;      /* ⬅️ INI BATAS TINGGI */
  overflow: hidden !important;
}

.story-slide.poster-team .team-bg-grid img {
  width: 100% !important;
  height: 200px !important;      /* ⬅️ HARUS FIX 200px */

  object-fit: cover !important;
  object-position: center !important;

  border-radius: 16px !important;

  opacity: 0.28 !important;
  filter: grayscale(60%) !important;
}


/* OVERLAY GELAP */
.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(15,23,42,0.65),
    rgba(15,23,42,0.65)
  );
  z-index: 2;
}


/* FOTO BACKGROUND */
.team-bg-grid img {
  width: 100%;
  height: 200px;

  object-fit: cover;
  object-position: center;

  border-radius: 16px;

  opacity: 0.28;
  filter: grayscale(60%);
}

/* KONTEN DEPAN */
.story-slide.poster-team .poster-content {
  position: relative !important;
  z-index: 3 !important;

  width: 100% !important;
  padding-top: 120px !important;
  padding-bottom: 60px !important;
}


/* TITLE */
.poster-eyebrow {
  color: #facc15;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.poster-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 10px 0 40px;
}

/* ===== WRAPPER LUAR ===== */
.team-slider-wrapper {
  position: relative;

  /* tambah lebar sedikit */
  max-width: 960px !important;

  margin: 0 auto !important;

  /* padding kanan diperbesar */
  padding: 0 100px 0 80px;

  box-sizing: border-box;
}


/* ===== VIEWPORT – INI KUNCI UTAMA ===== */
.team-slider-viewport {
  width: 100%;
  overflow: hidden !important;   /* ini yang bikin card luar hilang */
}

/* ===== SLIDER ===== */
.team-slider {
  display: flex;
  gap: 24px;

  transition: transform 0.4s ease-in-out;

  /* jangan pakai overflow di sini */
}

/* ===== CARD ===== */
.team-card {
  min-width: 240px;
  max-width: 240px;

  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);

  border-radius: 20px;
  padding: 14px;

  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}

.team-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 12px;
}

/* ===== NAV BUTTON ===== */
.team-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 40px;
  height: 40px;

  border-radius: 50%;
  border: none;

  background: #ffffff;
  color: #111;

  font-size: 22px;
  cursor: pointer;

  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: center;
}

.team-nav.prev {
  left: -20px;
}

.team-nav.next {
  right: -20px;
}


/* ============================
   RESPONSIVE TEAM – MOBILE
============================ */

/* Sembunyikan versi mobile di desktop */
.mobile-only {
  display: none;
}

/* Sembunyikan versi desktop di mobile */
.desktop-only {
  display: block;
}

/* ===== MOBILE VERSION ===== */
@media (max-width: 768px) {

  /* Toggle visibility */
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  /* Judul lebih kecil */
  .poster-title {
    font-size: 2rem;
  }

  /* Padding konten */
  .poster-content {
    padding: 60px 16px;
  }

  /* SEMBUNYIKAN NAV DI HP */
  .team-nav {
    display: none !important;
  }

  /* ===== SLIDER MODE SWIPE ===== */
  .team-slider {
    display: flex;
    overflow-x: auto !important;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    gap: 16px;
    padding: 0 5%;
  }

  /* ===== KUNCI UTAMA: TAMPIL 1 CARD SAJA ===== */
  .team-card {
    min-width: 90% !important;
    max-width: 90% !important;

    margin: 0 auto;
    padding: 12px;

    scroll-snap-align: center;
  }

  /* Tinggi foto di HP */
  .story-slide.poster-team .team-card img {
    height: 200px;
  }

  /* Scrollbar halus */
  .team-slider::-webkit-scrollbar {
    height: 6px;
  }

  .team-slider::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 99px;
  }

  /* ===== BACKGROUND TEAM MOBILE ===== */
  .team-bg-mobile {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
  }

  .bg-row {
    display: flex;
    gap: 10px;
    white-space: nowrap;
  }

  .bg-row img {
    width: 120px;
    height: 120px;

    object-fit: cover;
    border-radius: 14px;

    opacity: 0.35;
    filter: grayscale(40%);
  }

  /* ANIMASI KE KIRI */
  .row-left {
    animation: slideLeft 30s linear infinite;
  }

  /* ANIMASI KE KANAN */
  .row-right {
    animation: slideRight 30s linear infinite;
  }

  @keyframes slideLeft {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }

  @keyframes slideRight {
    from {
      transform: translateX(-50%);
    }
    to {
      transform: translateX(0);
    }
  }
}

@media (max-width: 768px) {

  /* ===== KHUSUS VIEWPORT SLIDER INI ===== */
  .team-slider-viewport {
    width: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  /* ===== OVERRIDE WRAPPER AGAR LEBAR ===== */
  .team-slider-wrapper {
    padding: 0 12px !important;
    max-width: 100% !important;
  }

  /* ===== SLIDER SWIPE KHUSUS ===== */
  .team-slider {
    display: flex !important;
    gap: 12px !important;

    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;

    padding: 0 8px !important;
  }

  /* ===== INI KUNCI UTAMA BIAR BESAR ===== */
  .team-slider-viewport .team-card {
    min-width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;

    margin: 0 auto !important;

    aspect-ratio: 3 / 4 !important;

    scroll-snap-align: center !important;

    display: flex !important;
    flex-direction: column !important;

    padding: 14px !important;
  }

  /* ===== FOTO BIAR PROPORSIONAL ===== */
  .team-slider-viewport .team-card img {
    width: 100% !important;
    height: 68% !important;

    object-fit: cover !important;
    border-radius: 14px !important;
  }

  /* ===== TEKS LEBIH RAPI ===== */
  .team-slider-viewport .team-card h4 {
    margin-top: 10px !important;
    font-size: 17px !important;
  }

  .team-slider-viewport .team-card span {
    font-size: 14px !important;
    opacity: .85 !important;
  }

  /* ===== HILANGKAN SCROLLBAR ===== */
  .team-slider::-webkit-scrollbar {
    display: none !important;
  }
}

@media (max-width: 768px) {

  /* Paksa hilang background grid desktop di HP */
  .team-bg-grid.desktop-only {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
  }

}









/* ================= SLIDE DEPARTEMEN ================= */
.departemen-slide {
  background: linear-gradient(180deg, #005fd6 0%, #003b8f 100%);
  justify-content: center;
}

/* FOTO ATAS */
.departemen-gallery {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 60px;
  z-index: 2;
}

.departemen-gallery img {
  width: 220px;
  height: 140px;
  object-fit: cover;
  border: 4px solid #fff;
  filter: grayscale(100%);
}

/* KONTEN */
.departemen-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  max-width: 1400px;
  margin: auto;
  z-index: 2;
}

/* TAHUN */
.departemen-content .tahun {
  font-size: 56px;
  font-weight: 900;
  line-height: 0.95;
  opacity: 0.85;
}

/* JUDUL */
.departemen-content .judul {
  text-align: center;
}

.departemen-content h2 {
  font-size: clamp(64px, 8vw, 110px);
  font-weight: 900;
  letter-spacing: 6px;
  margin-bottom: 24px;
}

.departemen-content p {
  max-width: 720px;
  margin: auto;
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.9;
}
/* ===========================
   DEPARTEMEN CARD STYLE
=========================== */

.departemen-gallery {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;

  margin-bottom: 60px;
  z-index: 2;
}

/* CARD UTAMA */
.dept-card {
  width: 240px;
  height: 140px;

  background: linear-gradient(145deg, #1a2036, #0f1322);

  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: rotate(-5deg);

  border: 3px solid rgba(255,255,255,0.12);

  box-shadow:
    0 15px 40px rgba(0,0,0,.3),
    inset 0 0 30px rgba(255,255,255,.05);

  transition: all 0.4s ease;

  cursor: default;
}

/* DALAM CARD */
.dept-inner {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 14px;

  background: rgba(0,0,0,0.25);

  border-radius: 16px;
}

/* TEKS */
.dept-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;

  color: #fff;

  text-align: center;
  text-transform: uppercase;

  opacity: 0.9;
}

/* EFEK HOVER */
.dept-card:hover {
  transform: rotate(0deg) translateY(-8px);

  border-color: rgba(255,255,255,0.3);

  box-shadow:
    0 20px 60px rgba(0,0,0,.5),
    inset 0 0 30px rgba(255,255,255,.1);
}

/* PESAN KOSONG */
.dept-empty {
  opacity: .7;
  font-size: 16px;
}

/* ============================
   MOBILE SWIPE DEPARTEMEN
============================ */

@media (max-width: 768px) {

  .departemen-gallery {
    display: flex !important;

    flex-wrap: nowrap !important;      /* 🔥 jangan turun baris */
    overflow-x: auto !important;       /* 🔥 bisa digeser */

    gap: 14px !important;

    padding: 10px 16px !important;

    scroll-snap-type: x mandatory;     /* efek snap */

    -webkit-overflow-scrolling: touch;

    justify-content: flex-start !important;
  }

  /* HILANGKAN SCROLLBAR */
  .departemen-gallery::-webkit-scrollbar {
    display: none;
  }

  .dept-card {
    flex: 0 0 auto !important;         /* 🔥 supaya menyamping */

    width: 180px !important;
    height: 120px !important;

    transform: rotate(0deg) !important;

    scroll-snap-align: center;         /* 🔥 efek snap rapi */
  }

  .dept-text {
    font-size: 15px !important;
    letter-spacing: 1px !important;
  }

}

/* RESPONSIVE */
@media (max-width: 992px) {
.departemen-content {
  display: grid;
  grid-template-columns: auto 1fr auto; /* ⬅️ JANGAN DIUBAH */
  align-items: center;
  gap: 40px;
  max-width: 1400px;
  margin: auto;
  padding: 0 24px;
  z-index: 2;
}

  .departemen-content .tahun {
    font-size: 40px;
    text-align: center;
  }

  .departemen-gallery {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 60px;
    z-index: 2;
    overflow-x: auto;           /* ⬅️ kunci */
    padding: 0 24px;
  }

  .departemen-gallery img {
    flex: 0 0 auto;
    width: 220px;
    height: 140px;
    object-fit: cover;
    border: 4px solid #fff;
    filter: grayscale(100%);
  }
}

.departemen-slide {
  position: relative;
  min-height: 100vh;

  background:
    radial-gradient(
      ellipse at bottom,
      rgba(255,255,255,0.18) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      #050814 0%,
      #0b1025 35%,
      #091b34 70%,
      #0c0824 100%
    );

  background-size: 8px 8px, cover;
  background-position: bottom, center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.departemen-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}







/* ================================
   NILAI ORGANISASI - FINAL STYLE
================================ */

.nilai-slide {
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #fff6c3, #ffed9f);

  min-height: 100vh;
  padding: 40px 0;
}

/* GRID UTAMA */
.nilai-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;

  max-width: 1200px;
  margin: auto;

  padding: 40px;
}

/* WRAPPER CARD */
.nilai-card {
  perspective: 1400px;
  height: 260px;
  cursor: pointer;
}

/* INNER */
.nilai-inner {
  position: relative;
  width: 100%;
  height: 100%;

  transform-style: preserve-3d;
  transition: transform 0.7s ease-in-out;
}

/* FLIP DESKTOP (HOVER) */
@media (min-width: 769px) {
  .nilai-card:hover .nilai-inner {
    transform: rotateY(180deg);
  }
}

/* FRONT & BACK */
.nilai-front,
.nilai-back {
  position: absolute;
  width: 100%;
  height: 100%;

  border-radius: 24px;

  backface-visibility: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 24px;

  text-align: center;

  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}

/* FRONT */
.nilai-front {
  background: linear-gradient(180deg, #2e415e, #1a2438);
}

/* BACK */
.nilai-back {
  background: linear-gradient(180deg, #1a2438, #2e415e);
  transform: rotateY(180deg);
}

/* ICON */
.nilai-icon {
  width: 76px;
  height: 76px;

  background: #fff39d;

  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 18px;
}

.nilai-icon i {
  font-size: 30px;
  color: #1b273d;
}

/* TEXT */
.nilai-front h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.nilai-back p {
  color: #fff;
  font-size: 16px;
  line-height: 1.7;
}

/* ============ RESPONSIVE ============ */

/* TABLET */
@media (max-width: 992px) {
  .nilai-container {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .nilai-card {
    height: 240px;
  }
}

/* ===== MOBILE FIX UTAMA ===== */
@media (max-width: 768px) {

  .nilai-container {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 12px;
  }

  .nilai-card {
    height: 200px;
    perspective: 1200px;
  }

  .nilai-front h3 {
    font-size: 18px;
  }

  .nilai-back p {
    font-size: 14px;
  }

  .nilai-icon {
    width: 60px;
    height: 60px;
  }

  .nilai-icon i {
    font-size: 24px;
  }

  /* FLIP VIA CLICK (bukan hover) */
  .nilai-card.active .nilai-inner {
    transform: rotateY(180deg);
  }

}

/* LAYAR SANGAT KECIL */
@media (max-width: 420px) {

  .nilai-card {
    height: 190px;
  }

  .nilai-front h3 {
    font-size: 16px;
  }

  .nilai-back p {
    font-size: 13px;
  }

}

/* ===============================
   MOTTO / SALAM TEKNIK
================================ */

.nilai-motto {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 600;
  color: #3a7184;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  padding: 6px 18px;
}

/* garis kiri */
.nilai-motto::before,
.nilai-motto::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35px;
  height: 1px;
  background: linear-gradient(to right, transparent, #3a7184);
}

.nilai-motto::before {
  left: -40px;
}

/* garis kanan */
.nilai-motto::after {
  right: -40px;
  background: linear-gradient(to left, transparent, #3a7184);
}

/* efek hover halus */
.nilai-card:hover .nilai-motto {
  color: #1f4f5f;
  letter-spacing: 5px;
  transition: 0.3s ease;
}
