@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --primary: #2a5298;
  --accent: #ff4b5c;
  --dark: #0f172a;
}

/* ================= ARTICLE WRAPPER ================= */
.jurusan-article {
  max-width: 1200px;
  margin: 75px auto 0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
  color: #334155;
}

/* ================= HERO ================= */
.article-header {
  position: relative;
  height: 360px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-elektronika {
  background:
    linear-gradient(
      to bottom right,
      rgba(15, 23, 42, 0.75),
      rgba(42, 82, 152, 0.75)
    ),
    url('../img/LISTRIK.jpg');

  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 25%; /* X Y */
}

.hero-akutansi {
  background:
    linear-gradient(
      to bottom right,
      rgba(15, 23, 42, 0.75),
      rgba(42, 82, 152, 0.75)
    ),
    url('../img/AKUNTANSI.jpg');

  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 25%; /* X Y */
}

.hero-hotel {
  background:
    linear-gradient(
      to bottom right,
      rgba(15, 23, 42, 0.75),
      rgba(42, 82, 152, 0.75)
    ),
    url('../img/HOTEL.jpg');

  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 25%; /* X Y */
}

.hero-tbsm {
  background:
    linear-gradient(
      to bottom right,
      rgba(15, 23, 42, 0.75),
      rgba(42, 82, 152, 0.75)
    ),
    url('../img/TSM.jpg');

  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 25%; /* X Y */
}

.hero-kimia {
  background:
    linear-gradient(
      to bottom right,
      rgba(15, 23, 42, 0.75),
      rgba(42, 82, 152, 0.75)
    ),
    url('../img/TKI.jpg');

  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 25%; /* X Y */
}

.hero-tkro {
  background:
    linear-gradient(
      to bottom right,
      rgba(15, 23, 42, 0.75),
      rgba(42, 82, 152, 0.75)
    ),
    url('../img/TKR.jpg');

  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 25%; /* X Y */
}

.hero-tm {
  background:
    linear-gradient(
      to bottom right,
      rgba(15, 23, 42, 0.75),
      rgba(42, 82, 152, 0.75)
    ),
    url('../img/MESIN.jpg');

  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 25%; /* X Y */
}

.hero-tei {
  background:
    linear-gradient(
      to bottom right,
      rgba(15, 23, 42, 0.75),
      rgba(42, 82, 152, 0.75)
    ),
    url('../img/ELIND.jpg');

  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 25%; /* X Y */
}

.overlay {
  padding: 32px 40px;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  max-width: 720px;
}

.overlay h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.overlay p {
  font-size: 1.1rem;
  color: #e5e7eb;
}

/* ================= CONTENT ================= */
.article-content {
  background: #fff;
  padding: 50px 40px;
  margin-top: 30px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

.article-content h2 {
  position: relative;
  margin: 40px 0 16px;
  font-size: 1.5rem;
  color: var(--dark);
  padding-left: 16px;
}

.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 70%;
  background: linear-gradient(var(--primary), var(--accent));
  border-radius: 4px;
}

.article-content p {
  font-size: 1rem;
  color: #475569;
}

.article-content ul {
  margin-top: 16px;
  padding-left: 0;
  list-style: none;
}

.article-content li {
  background: #f8fafc;
  margin-bottom: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================= CTA ================= */
.article-footer {
  text-align: center;
  padding: 60px 20px;
}

.btn-ppdb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--accent), #01c8ff);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 20px 40px rgba(255, 75, 92, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-ppdb:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(255, 75, 92, 0.45);
}

/* ===============================
   JURUSAN GALLERY (EDITORIAL)
================================ */
.jurusan-gallery {
  margin: 64px auto;
  padding: 0 16px;
  max-width: 1200px;
}

.jurusan-gallery__header {
  text-align: center;
  margin-bottom: 32px;
}

.jurusan-gallery__header h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.jurusan-gallery__header p {
  font-size: 14px;
  color: #666;
}

/* ===== GRID DESKTOP ===== */
.jurusan-gallery__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

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

/* FOTO UTAMA */
.gallery-item--main {
  grid-row: span 2;
}

/* CAPTION */
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
}

/* ===============================
   MOBILE → SWIPE TANPA JS
================================ */
@media (max-width: 768px) {
  .jurusan-gallery__grid {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .gallery-item {
    flex: 0 0 80%;
    height: 220px;
    scroll-snap-align: center;
  }

  .gallery-item--main {
    flex: 0 0 90%;
  }
}


/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .overlay h1 {
    font-size: 2rem;
  }

  .article-content {
    padding: 32px 24px;
    border-radius: 18px;
  }
}
