/* =============================================
   PUSKOM STKIP - Main Stylesheet
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');
:root {
  --primary:     #1a3a6b;
  --primary-light: #2a52a0;
  --accent:      #e8a020;
  --accent-light:#fef3dc;
  --text:        #1e2433;
  --text-muted:  #6b7280;
  --bg:          #f8f9fc;
  --white:       #ffffff;
  --border:      #e5e7eb;
  --radius:      10px;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
  --font-sans:   'Plus Jakarta Sans', sans-serif;
  --font-serif:  'Lora', serif;
  --nav-h:       68px;
}
/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  height: var(--nav-h);
}
.navbar .inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.navbar .brand { display: flex; align-items: center; gap: 12px; }
.navbar .brand img { width: 42px; height: 42px; object-fit: contain; }
.navbar .brand-text { display: flex; flex-direction: column; }
.navbar .brand-name { font-size: 15px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.navbar .brand-sub  { font-size: 11px; color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: #eef2ff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }
/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white; padding: 72px 24px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.hero::after {
  content: ''; position: absolute; right: 80px; bottom: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.hero .inner { max-width: 1200px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: white; font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 18px;
  letter-spacing: .5px; text-transform: uppercase;
}
.hero h1 { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 46px); font-weight: 600; line-height: 1.2; margin-bottom: 16px; }
.hero p { font-size: 16px; opacity: .85; max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s;
  text-decoration: none;
}
.btn-white  { background: white; color: var(--primary); }
.btn-white:hover { background: #f0f4ff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: #d4901a; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
/* Stats bar */
.stats-bar { background: white; border-bottom: 1px solid var(--border); }
.stats-bar .inner { max-width: 1200px; margin: 0 auto; padding: 20px 24px; display: flex; gap: 40px; flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-num { font-size: 22px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-muted); }
/* =============================================
   LAYOUT HELPERS
   ============================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.section-title { font-family: var(--font-serif); font-size: 26px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.section-sub   { color: var(--text-muted); font-size: 14px; margin-bottom: 36px; }
.divider { width: 40px; height: 3px; background: var(--accent); border-radius: 2px; margin: 10px 0 28px; }
/* Grid sistem */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
/* =============================================
   CARD BERITA / ARTIKEL
   ============================================= */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-img { aspect-ratio: 16/9; overflow: hidden; background: #eef2ff; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--primary); opacity: .3;
}
.card-body { padding: 18px 20px 20px; }
.card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card-category {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  color: var(--primary); background: #eef2ff;
  padding: 3px 10px; border-radius: 20px;
}
.card-date { font-size: 12px; color: var(--text-muted); }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.card-footer { padding: 0 20px 16px; display: flex; justify-content: flex-end; }
.read-more { font-size: 13px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 4px; }
.read-more:hover { text-decoration: underline; }
/* =============================================
   QUICK LINKS / LAYANAN
   ============================================= */
.quick-links { background: white; }
.ql-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.ql-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 12px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg);
  text-align: center; transition: all .2s; cursor: pointer;
}
.ql-item:hover { border-color: var(--primary); background: #eef2ff; transform: translateY(-2px); }
.ql-icon { font-size: 28px; }
.ql-label { font-size: 12px; font-weight: 600; color: var(--text); }
/* =============================================
   PENGUMUMAN TICKER
   ============================================= */
.ticker-wrap {
  background: var(--primary); color: white;
  padding: 10px 0; overflow: hidden;
}
.ticker-label {
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 4px 14px; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
}
.ticker-inner { display: flex; align-items: center; gap: 0; }
.ticker-track {
  display: flex; gap: 60px;
  animation: ticker 30s linear infinite; white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { font-size: 13px; opacity: .9; }
.ticker-item a:hover { text-decoration: underline; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* =============================================
   GALERI
   ============================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery-item { aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(26,58,107,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
  color: white; font-size: 28px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.85); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  color: white; font-size: 32px; cursor: pointer; line-height: 1;
  background: rgba(255,255,255,.1); border: none;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
/* =============================================
   TABLE DOWNLOAD
   ============================================= */
.download-table { width: 100%; border-collapse: collapse; }
.download-table th { background: var(--primary); color: white; padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 600; }
.download-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.download-table tr:hover td { background: var(--bg); }
.download-table .file-icon { font-size: 20px; }
.badge-file {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; text-transform: uppercase;
}
.badge-pdf  { background: #fee2e2; color: #dc2626; }
.badge-doc  { background: #dbeafe; color: #1d4ed8; }
.badge-xls  { background: #dcfce7; color: #16a34a; }
.badge-zip  { background: #fef9c3; color: #ca8a04; }
/* =============================================
   BREADCRUMB & HALAMAN DALAM
   ============================================= */
.page-header { background: var(--primary); color: white; padding: 36px 0; }
.page-header h1 { font-family: var(--font-serif); font-size: 28px; font-weight: 600; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: white; text-decoration: underline; }
.breadcrumb span { color: rgba(255,255,255,.65); }
/* =============================================
   ARTIKEL DETAIL
   ============================================= */
.post-content { max-width: 760px; }
.post-content h2,h3,h4 { font-family: var(--font-serif); color: var(--primary); margin: 28px 0 12px; }
.post-content p { margin-bottom: 16px; line-height: 1.8; }
.post-content img { border-radius: 8px; margin: 20px 0; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 16px; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
  border-left: 4px solid var(--accent); padding: 12px 20px;
  background: var(--accent-light); border-radius: 0 8px 8px 0;
  margin: 20px 0; font-style: italic; color: var(--text-muted);
}
/* =============================================
   SIDEBAR
   ============================================= */
.sidebar-widget { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; margin-bottom: 20px; }
.widget-title { font-weight: 700; font-size: 14px; color: var(--primary); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.widget-post { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.widget-post:last-child { border-bottom: none; }
.widget-post img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.widget-post-title { font-size: 13px; font-weight: 500; line-height: 1.4; margin-bottom: 4px; }
.widget-post-date  { font-size: 11px; color: var(--text-muted); }
/* =============================================
   PAGINATION
   ============================================= */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.page-btn {
  width: 36px; height: 36px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); background: white; color: var(--text-muted);
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
/* =============================================
   FOOTER
   ============================================= */
.footer { background: #0f2347; color: rgba(255,255,255,.8); padding: 48px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-size: 17px; font-weight: 700; color: white; margin-bottom: 10px; }
.footer-desc { font-size: 13px; line-height: 1.7; opacity: .7; margin-bottom: 16px; }
.footer h4 { color: white; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { font-size: 13px; opacity: .7; transition: opacity .2s; }
.footer ul li a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0; text-align: center;
  font-size: 12px; opacity: .5;
}
/* =============================================
   ALERT & FLASH
   ============================================= */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-danger   { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.alert-info     { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: white; padding: 12px 16px; flex-direction: column; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 48px 20px 56px; }
  .stats-bar .inner { gap: 24px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
/* =============================================
   PAGE BUILDER FRONTEND STYLES
   ============================================= */
.pb-section { width:100%; }
.pb-full    { width:100%; }
.pb-row {
  display:flex; flex-wrap:nowrap; gap:24px;
  align-items:flex-start; width:100%;
}
.pb-col { flex:1 1 0; min-width:0; box-sizing:border-box; }
.pb-heading { font-family:var(--font-serif); color:var(--primary); margin-bottom:16px; line-height:1.3; }
.pb-heading.text-center { text-align:center; }
.pb-heading.text-right  { text-align:right; }
.pb-text { line-height:1.8; }
.pb-text img { max-width:100%; border-radius:8px; }
.pb-text table { width:100%; border-collapse:collapse; }
.pb-text table td, .pb-text table th { padding:8px 12px; border:1px solid var(--border); }
.pb-widget-header { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:24px; }
.pb-ann-item { display:flex; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid var(--border); text-decoration:none; color:var(--text); transition:.15s; }
.pb-ann-item:hover { padding-left:8px; }
.pb-ann-icon  { width:34px;height:34px;background:#eef2ff;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:15px; }
.pb-ann-body  { flex:1; }
.pb-ann-title { font-size:14px;font-weight:500; }
.pb-ann-date  { font-size:12px;color:var(--text-muted);margin-top:2px; }
.pb-ann-arrow { color:var(--primary);font-size:20px; }
.pb-widget-stats { width:100%; }
@media(max-width:768px) {
  .pb-row { flex-direction:column; gap:16px; }
  .pb-col { flex:0 0 100% !important; max-width:100% !important; }
}
/* Slider Widget */
.pb-slider { user-select:none; }
.pb-slider-track { will-change:transform; }
.pb-slide { background:#f0f4ff; }
.pb-dot { transition:transform .2s, background .2s; }
.pb-dot:hover { transform:scale(1.3); }

/* =============================================
   ARTIKEL DETAIL - RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  /* Sembunyikan sidebar di mobile */
  article + aside,
  section .container > div > aside {
    display: none !important;
  }
  /* Artikel full width di mobile */
  section .container > div {
    flex-direction: column !important;
  }
  section .container > div > article {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Fix gambar di konten artikel agar tidak lonjong */
.post-content img,
.page-content-wrap img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
  margin: 16px auto;
  border-radius: 8px;
}
