/* ============================================================
   IPM PURWOKERTO — PUBLIC WEBSITE STYLE
   Modern Youth Organization Style (Navy - Gold)
   ============================================================ */

:root {
  --navy: #10375c;
  --gold: #d5ab53;
  --bg: #f4f6f9;
  --text-dark: #333;
  --text-muted: #666;
}

/* ======= GLOBAL ======= */
body {
  background: var(--bg);
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text-dark);
  margin: 0;
}

.section-title {
  font-weight: 800;
  color: var(--navy);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav-ipm {
  background: var(--navy);
  padding: 12px 0;
}

.nav-logo {
  width: 42px;
}

.nav-ipm .nav-link {
  color: #fff !important;
  font-weight: 500;
  margin-left: 18px;
  transition: .3s;
}

.nav-ipm .nav-link:hover {
  color: var(--gold) !important;
}



/* ================= HERO FIX (Kecil & Proporsional) ================= */
.hero-home {
  position: relative;
  background:
    linear-gradient(
      rgba(16, 55, 92, 0.70),
      rgba(16, 55, 92, 0.70)
    ),
    url("../img/hero-ipm.jpg") center/cover no-repeat;  

  padding: 110px 20px 100px 20px; /* ↓ ini yang mengecilkan tinggi */
  border-radius: 0 0 40px 40px;
}

/* shadow lembut bawah */
.hero-home::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.18), transparent);
  filter: blur(7px);
}

/* LOGO HERO */
.hero-logo {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.4));
}

/* TITLE */
.hero-title {
  font-size: 36px;   /* lebih kecil */
  font-weight: 800;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

/* SUBTITLE */
.hero-subtitle {
  font-size: 20px;   /* lebih kecil */
  font-weight: 600;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

/* DESKRIPSI */
.hero-desc {
  max-width: 620px;
  font-size: 15.5px; /* lebih kecil */
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

/* RESPONSIVE HERO */
@media (max-width: 768px) {
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 18px; }
  .hero-logo { width: 80px; }
}


/* ======= BUTTON IPM ======= */
.btn-ipm {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  border-radius: 8px;
  padding: 7px 16px;
  border: none;
  transition: .25s;
}

.btn-ipm:hover {
  background: #c39845;
  color: #fff;
}

.btn-ipm-light {
  background: #ffffff;
  color: var(--navy);
  font-weight: 600;
  border-radius: 8px;
  padding: 7px 16px;
  border: none;
  transition: .25s;
}

.btn-ipm-light:hover {
  background: #d5d5d5;
}

/* ======= CARD GLOBAL ======= */
.card {
  border: none;
  border-radius: 14px;
}

/* ============================================================
   STATISTIK
   ============================================================ */
.stats-card {
  border-radius: 14px;
  transition: .25s;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ============================================================
   BERITA LIST
   ============================================================ */
.card-berita {
  transition: .25s;
  border-radius: 14px;
  overflow: hidden;
}

.card-berita:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.berita-img-wrapper {
  height: 200px;
  overflow: hidden;
}

.berita-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .4s;
}

.card-berita:hover .berita-img {
  transform: scale(1.08);
}

.berita-title {
  font-size: 18px;
  color: var(--navy);
  line-height: 1.3;
}

/* ============================================================
   BERITA DETAIL
   ============================================================ */
.berita-detail-title {
  font-size: 32px;
  color: var(--navy);
  line-height: 1.3;
}

.berita-detail-img-wrapper {
  height: 380px;
  border-radius: 14px;
  overflow: hidden;
}

.berita-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.berita-detail-isi {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
}

/* ============================================================
   GALERI PUBLIC
   ============================================================ */
.gallery-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  transition: .25s;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-img-wrapper {
  height: 200px;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .3s linear;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-title {
  font-size: 15px;
  color: var(--navy);
}

/* ============================================================
   RANTING LIST
   ============================================================ */
.ranting-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 16px;
  height: 100%;
  transition: .25s;
  display: flex;
  flex-direction: column;
}

.ranting-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.ranting-title {
  color: var(--navy);
  font-size: 18px;
}

/* ============================================================
   RANTING DETAIL
   ============================================================ */
.ranting-desc {
  border-left: 6px solid var(--gold);
  border-radius: 10px;
}

.struktur-ranting-card {
  border-radius: 14px;
  transition: .25s;
  padding-bottom: 15px;
}

.struktur-ranting-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.struktur-ranting-foto {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 4px solid var(--gold);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.stat-card {
  border-radius: 14px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: .25s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.ranting-about-card {
  border-radius: 14px;
  transition: .25s;
}

.ranting-about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.struktur-pc-card {
  border-radius: 14px;
  transition: .25s;
}

.struktur-pc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.struktur-pc-foto {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 4px solid var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-ipm {
  background: var(--navy);
  padding: 45px 0 25px 0;
}

.footer-logo {
  width: 55px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li a {
  color: #ffffffb7;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  transition: .3s;
}

.footer-links li a:hover {
  color: var(--gold);
}

.footer-line {
  border-color: rgba(255,255,255,0.25);
}



/* ============================================================
   FIX FOOTER SELALU DI BAWAH (PUBLIC PAGES)
   ============================================================ */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.public-content {
  flex: 1 0 auto;
  min-height: calc(100vh - 280px); /* otomatis menyesuaikan tinggi footer */
}

footer {
  flex-shrink: 0;
}


/* Spacer otomatis sesuai tinggi navbar */
#header-spacer {
  height: 95px;  /* default */
}

@media (max-width: 768px) {
  #header-spacer {
     height: 120px;
  }
}

/* ===== Fix konten ketutup navbar pada halaman tanpa hero ===== */
.page-top-fix {
  padding-top: 40px; /* aman untuk navbar fixed-top */
}

@media (max-width: 768px) {
  .page-top-fix {
    padding-top: 70px; /* untuk mobile navbar lebih tinggi */
  }
}


/* ===================== STRUKTUR PAGE FIX ===================== */
.struktur-card {
  border-radius: 14px;
  background: #fff;
  padding-bottom: 20px;
  transition: .25s;
}

.struktur-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.struktur-foto {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--gold);
}

/* Divider */
.struktur-divider {
  width: 100%;
  height: 2px;
  background: rgba(0,0,0,0.08);
  margin: 40px 0;
}



/* ==================== FIX STRUKTUR RANTING TANPA FOTO ==================== */
.struktur-ranting-card {
    background: #fff;
    border-radius: 14px;
    padding: 25px 15px;
    min-height: 130px; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s;
}

.struktur-ranting-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.pengurus-info h6 {
    font-size: 1rem;
    color: #10375c;
    margin-bottom: 4px;
}

.pengurus-info small {
    font-size: 0.85rem;
    color: #6c757d;
}




/* Struktur Per Bidang — rapi & modern */
h4.section-title {
    font-weight: 800;
}

.struktur-bidang-title {
    font-size: 20px;
    font-weight: 700;
    color: #10375c;
}

.struktur-card {
    border-radius: 14px;
    padding-bottom: 15px;
    transition: .25s;
    background: #fff;
}

.struktur-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}



/* ===================== BERITA HOMEPAGE ===================== */
.card-berita {
  border-radius: 14px;
  overflow: hidden;
  transition: .25s;
}

.card-berita:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.berita-img-wrapper {
  height: 210px;
  overflow: hidden;
}

.berita-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .4s;
}

.card-berita:hover .berita-img {
  transform: scale(1.08);
}

.berita-title {
  font-size: 18px;
  color: var(--navy);
  line-height: 1.3;
}

/* ===================== BERITA DETAIL ===================== */
.berita-content p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.berita-content h2,
.berita-content h3 {
  margin-top: 1.5rem;
  font-weight: 700;
}

.berita-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 1rem 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .berita-title {
    font-size: 16px;
  }
}
