/* ============================================================
   custom-home.css
   Stylesheet khusus halaman Home – SMART STPN
   Dimuat setelah Bootstrap & Bootstrap Icons
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --hijau:      #1B4332;
  --hijau-mid:  #2D6A4F;
  --hijau-muda: #40916C;
  --emas:       #C9A84C;
  --emas-muda:  #F0C96E;
  --krem:       #FAF7F0;
  --putih:      #FFFFFF;
  --teks-gelap: #1A1A1A;
  --teks-abu:   #5A5A5A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', sans-serif; background: var(--krem); color: var(--teks-gelap); }

/* ══════════════════════════════════════════
   SECTION 1 · HERO
══════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--hijau) 0%, var(--hijau-mid) 60%, var(--hijau-muda) 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-ornament {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.15);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-ornament::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.1);
  top: 75px;
  left: 75px;
}

.hero-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--emas-muda);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

/* Logo + Judul sejajar */
.hero-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.hero-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 14px;
  background: var(--putih);
  padding: 8px;
  border: 2px solid rgba(201, 168, 76, 0.4);
  flex-shrink: 0;
}

.hero-identity-text h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--putih);
  line-height: 1.1;
  margin: 0 0 4px;
}

.hero-identity-text h1 span { color: var(--emas); }

.hero-akronim {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
  font-style: italic;
  margin: 0;
}

.hero-divider {
  width: 48px;
  height: 3px;
  background: var(--emas);
  border-radius: 2px;
  margin: 20px 0;
}

.hero p.hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 28px;
}

/* Poin-poin fungsi */
.fungsi-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fungsi-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.fungsi-list li .dot {
  width: 7px;
  height: 7px;
  background: var(--emas);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-stat .angka {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--emas);
  display: block;
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-preview {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 20px;
  padding: 32px;
  max-width: 380px;
  width: 100%;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.feature-item:last-child { margin-bottom: 0; }

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(201, 168, 76, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.feature-text h6 {
  color: var(--emas-muda);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.feature-text p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0;
}

/* ══════════════════════════════════════════
   SHARED · SECTION LABEL & TITLE
══════════════════════════════════════════ */
.section-label {
  display: inline-block;
  background: rgba(27, 67, 50, 0.08);
  border: 1px solid rgba(27, 67, 50, 0.15);
  color: var(--hijau-mid);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--hijau);
  margin-bottom: 8px;
}

.section-title span { color: var(--emas); }

.section-line {
  width: 40px;
  height: 3px;
  background: var(--emas);
  border-radius: 2px;
  margin: 0 auto 40px;
}
/* ══════════════════════════════════════════
   CAROUSEL STRIP — versi kecil, prioritas rendah
   Tempel bagian ini ke dist/css/custom-home.css
═══════════════════════════════════════════ */

.carousel-strip {
  padding: 16px 0 32px;
  background: #f8f9fa;
}

.carousel-strip-el {
  max-width: 720px;      /* jauh lebih kecil dari full-width banner lama */
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.carousel-strip-el .carousel-item img {
  max-height: 220px;      /* dulu full-width tanpa batas tinggi, sekarang dibatasi */
  width: 100%;
  object-fit: cover;
}

.carousel-strip-el .carousel-caption {
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
}

.carousel-strip-el .carousel-caption h5 {
  font-size: 0.9rem;
  margin: 0;
}

.carousel-strip-el .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 3px;
}

.carousel-strip-el .carousel-control-prev-icon,
.carousel-strip-el .carousel-control-next-icon {
  width: 1.4rem;
  height: 1.4rem;
  filter: invert(1) grayscale(1) opacity(0.6);
}
/* ══════════════════════════════════════════
   SECTION 2 · BERITA TERBARU
══════════════════════════════════════════ */
.berita-section {
  padding: 80px 0;
  background: var(--krem);
}

.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.berita-card {
  background: var(--putih);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(27, 67, 50, 0.07);
  border: 1px solid rgba(27, 67, 50, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.berita-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(27, 67, 50, 0.13);
}

.berita-img-wrap {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.berita-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.berita-card:hover .berita-img-wrap img { transform: scale(1.05); }

.berita-badge-img {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--emas);
  color: var(--hijau);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.berita-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.berita-meta {
  font-size: 0.75rem;
  color: var(--teks-abu);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.berita-meta i { color: var(--emas); }

.berita-judul {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hijau);
  line-height: 1.4;
  margin-bottom: 16px;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
  flex: 1;
}

.berita-judul:hover { color: var(--hijau-muda); }

.btn-baca {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: var(--hijau);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 100px;
  text-decoration: none;
  border: 1.5px solid var(--hijau);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  width: fit-content;
  margin-top: auto;
}

.btn-baca:hover {
  background: var(--hijau);
  color: var(--putih);
  transform: translateX(2px);
}

.btn-baca i { font-size: 0.75rem; }

/* ══════════════════════════════════════════
   SECTION 3 · GALLERY
══════════════════════════════════════════ */
.gallery-section {
  padding: 80px 0;
  background: var(--putih);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}

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

.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 67, 50, 0.65) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay i {
  color: var(--emas);
  font-size: 1.2rem;
}

/* ══════════════════════════════════════════
   SECTION 4 · KONTAK
══════════════════════════════════════════ */
.kontak-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--hijau) 0%, var(--hijau-mid) 100%);
  position: relative;
  overflow: hidden;
}

.kontak-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.12);
  bottom: -150px;
  left: -100px;
}

.kontak-section::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.1);
  top: -80px;
  right: -60px;
}

.kontak-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* Override warna section-label di dalam kontak (latar gelap) */
.kontak-inner .section-label {
  background: rgba(201, 168, 76, 0.15);
  border-color: rgba(201, 168, 76, 0.3);
  color: var(--emas-muda);
}

.kontak-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--putih);
  margin-bottom: 14px;
}

.kontak-inner h2 span { color: var(--emas); }

.kontak-inner p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--emas);
  color: var(--hijau);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}

.btn-wa:hover {
  background: var(--emas-muda);
  color: var(--hijau);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.5);
}

/* ── TOMBOL LOGIN ── */
.hero-login-wrap {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--emas);
  color: var(--hijau);
  font-size: 1rem;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.5);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: 2px solid var(--emas);
  white-space: nowrap;
}

.btn-login i {
  font-size: 1.1rem;
}

.btn-login:hover {
  background: var(--emas-muda);
  border-color: var(--emas-muda);
  color: var(--hijau);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.65);
}

.hero-login-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  line-height: 1.4;
  max-width: 180px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0 50px;
    min-height: auto;
  }

  .hero-card-preview { display: none; }

  .hero-identity { gap: 14px; }

  .hero-logo {
    width: 60px;
    height: 60px;
  }

  .berita-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════
   SECTION 5 · SISTEM AKADEMIK STPN
══════════════════════════════════════════ */
.siakad-section {
  padding: 80px 0;
  background: var(--krem);
}

.siakad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
}

.siakad-card {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  background: var(--putih);
  border: 1px solid rgba(27, 67, 50, 0.08);
  border-radius: 20px;
  padding: 28px 26px;
  text-decoration: none;
  box-shadow: 0 2px 16px rgba(27, 67, 50, 0.06);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.siakad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(27, 67, 50, 0.13);
  border-color: rgba(201, 168, 76, 0.4);
}

.siakad-icon-wrap {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--krem);
  border: 1.5px solid rgba(27, 67, 50, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.siakad-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.siakad-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.siakad-body h5 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--hijau);
  margin-bottom: 8px;
  line-height: 1.3;
}

.siakad-body p {
  font-size: 0.83rem;
  color: var(--teks-abu);
  line-height: 1.6;
  margin-bottom: 14px;
}

.siakad-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hijau-muda);
  letter-spacing: 0.02em;
  transition: gap 0.2s, color 0.2s;
}

.siakad-card:hover .siakad-link {
  gap: 8px;
  color: var(--emas);
}

.siakad-link i { font-size: 0.7rem; }

/* ══════════════════════════════════════════
   OVERRIDE · DAFTAR BERITA (halaman artikel)
══════════════════════════════════════════ */
.berita-grid.berita-grid--full {
  max-width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ══════════════════════════════════════════
   SECTION · BACA BERITA
══════════════════════════════════════════ */
.baca-section {
  padding: 60px 0 80px;
  background: var(--krem);
}

.baca-breadcrumb {
  margin-bottom: 28px;
}

.baca-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hijau-mid);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}

.baca-breadcrumb a:hover {
  gap: 12px;
  color: var(--hijau);
}

.baca-wrapper {
  background: var(--putih);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 2px 24px rgba(27, 67, 50, 0.08);
  border: 1px solid rgba(27, 67, 50, 0.07);
  max-width: 860px;
  margin: 0 auto;
}

.baca-header {
  margin-bottom: 32px;
}

.berita-badge-top {
  display: inline-block;
  background: var(--emas);
  color: var(--hijau);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.baca-judul {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--hijau);
  line-height: 1.3;
  margin-bottom: 16px;
}

.baca-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.baca-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--teks-abu);
}

.baca-meta i {
  color: var(--emas);
}

.baca-divider {
  width: 48px;
  height: 3px;
  background: var(--emas);
  border-radius: 2px;
  margin-top: 24px;
}

.baca-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 36px;
  max-height: 460px;
}

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

.baca-isi {
  font-size: 1rem;
  color: var(--teks-gelap);
  line-height: 1.9;
  margin-bottom: 40px;
}

.baca-isi p {
  margin-bottom: 16px;
}

.baca-isi img {
  max-width: 100%;
  border-radius: 12px;
  margin: 16px 0;
}

.baca-footer {
  padding-top: 24px;
  border-top: 1px solid rgba(27, 67, 50, 0.08);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .baca-wrapper {
    padding: 28px 20px;
  }

  .baca-meta {
    gap: 12px;
  }
}