/*
Theme Name: LPPM UMUS
Theme URI: https://lppm.umus.ac.id
Author: LPPM Universitas Muhadi Setiabudi
Description: Custom theme LPPM Universitas Muhadi Setiabudi Brebes
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: lppm-umus
*/

/* =========================================
   DESIGN TOKENS
   ========================================= */
:root {
  --navy:       #0D2E5C;
  --blue:       #1A56A4;
  --blue-light: #2E7DD1;
  --blue-pale:  #E8F0FB;
  --gold:       #C8922A;
  --gold-light: #FFE566;
  --white:      #FFFFFF;
  --gray-soft:  #F5F7FA;
  --gray-mid:   #8A96A8;
  --gray-dark:  #2C3545;
  --text:       #1E2A3A;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(13,46,92,0.10);
  --shadow-nav:  0 2px 16px rgba(13,46,92,0.12);
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--gray-mid);
  font-size: 1rem;
  max-width: 560px;
}

/* =========================================
   TOPBAR
   ========================================= */



.topbar a:hover { color: var(--gold); }

/* =========================================
   NAVIGATION
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-nav);
}

/* Fix: WP admin bar offset saat sticky */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 2rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-emblem { display: none; }

/* Nav logo */
.nav-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}

/* Footer logo */
.footer-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: transparent;
}
.logo-text .logo-main {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.logo-text .logo-sub {
  font-size: 0.68rem;
  color: var(--gray-mid);
  letter-spacing: 0.06em;
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-dark);
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav .current-menu-item a {
  background: var(--blue-pale);
  color: var(--blue);
}
.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
}
.nav-cta:hover { background: var(--navy) !important; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--navy);
  display: block;
  border-radius: 2px;
  transition: all 0.3s;
}

/* =========================================
   HERO CAROUSEL
   ========================================= */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background: var(--navy);
}

/* Background slide layers */
.hc-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  transition: opacity 1.2s ease;
  z-index: 1;
  /* Pastikan slide tidak tembus satu sama lain */
  will-change: opacity;
  backface-visibility: hidden;
}
/* Slide dengan opacity:0 tidak boleh menampilkan konten apapun */
.hc-bg-slide[style*="opacity:0"] {
  pointer-events: none;
  visibility: hidden;
}

.hc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(13,46,92,0.85) 0%, rgba(26,86,164,0.60) 50%, rgba(13,46,92,0.35) 100%);
}
.hc-overlay-blue {
  background: linear-gradient(110deg, rgba(8,28,68,0.92) 0%, rgba(20,70,140,0.70) 50%, rgba(13,46,92,0.45) 100%);
}

/* Content layer */
.hc-content-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hc-content-layer .container { pointer-events: all; }

/* Eyebrow static (slide 1) */
.hero-eyebrow-static {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero-eyebrow-line {
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--gold);
}

/* Dynamic eyebrow (slide 2 - KKN badge) */
#heroEyebrow {
  display: none;
  align-items: center;
  margin-bottom: 1rem;
}

/* Hero title */
.hc-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 700px;
}

/* Hero desc */
.hc-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Buttons */
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #d9a035; color: var(--navy); transform: translateY(-2px); }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* Progress bar */
.hc-progress-track {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 20;
}
.hc-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.1s linear;
}

/* Dots */
.hc-controls {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}
.hc-dot {
  height: 8px; width: 24px;
  border-radius: 4px;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
  padding: 0;
}
.hc-dot.active { width: 36px; background: var(--white); }

/* Arrows */
.hc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
}
.hc-arrow:hover { background: rgba(200,146,42,0.45); border-color: var(--gold); }
.hc-prev { left: 20px; }
.hc-next { right: 20px; }

/* Canvas partikel (injected by JS) */
.hero-carousel canvas {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  z-index: 5 !important;
  pointer-events: none !important;
  width: 100% !important;
  height: 100% !important;
}

/* =========================================
   3 PILLAR BOXES
   ========================================= */
.pillar-strip {
  background: var(--navy);
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.pillar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  text-align: center;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}
.pillar-box:last-child { border-right: none; }
.pillar-box:hover { background: rgba(255,255,255,0.05); }

.pillar-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.pillar-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: transparent;
  transition: transform 0.25s;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
}
.pillar-box:hover .pillar-icon img {
  transform: scale(1.12) translateY(-3px);
}
.pillar-stat { display: none; }
.pillar-label { display: none; }
.pillar-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 2px solid rgba(200,146,42,0.4);
  padding-top: 14px;
  width: 100%;
  transition: color 0.2s, border-color 0.2s;
}
.pillar-box:hover .pillar-name { color: var(--gold); border-top-color: var(--gold); }

/* =========================================
   PROGRAMS
   ========================================= */
.programs {
  padding: 5rem 0;
  background: var(--white);
}
.programs-header {
  text-align: center;
  margin-bottom: 3rem;
}
.programs-header .section-subtitle { margin: 0 auto; }
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.program-card {
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: box-shadow 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.program-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.program-card:hover::before { transform: scaleX(1); }
.program-icon {
  width: 56px; height: 56px;
  background: var(--blue-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.program-card p {
  font-size: 0.88rem;
  color: var(--gray-mid);
  line-height: 1.65;
  margin-bottom: 20px;
}
.program-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.program-link::after { content: '→'; transition: transform 0.2s; }
.program-card:hover .program-link::after { transform: translateX(4px); }

/* =========================================
   GREETING / SAMBUTAN
   ========================================= */
.greeting {
  padding: 5rem 0;
  background: var(--blue-pale);
}
.greeting-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: center;
}
.photo-frame {
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 300px;
  background: linear-gradient(145deg, var(--blue) 0%, var(--navy) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255,255,255,0.3);
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 40px rgba(13,46,92,0.22);
  border: 4px solid rgba(255,255,255,0.9);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.photo-badge {
  position: absolute;
  bottom: -12px; right: -12px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  line-height: 1.3;
}
.greeting-photo { position: relative; }
.greeting-content blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
  border-left: 4px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 1.5rem;
}
.greeting-content p {
  color: var(--gray-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.greeting-signature { margin-top: 1.5rem; }
.greeting-signature .name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}
.greeting-signature .title {
  font-size: 0.82rem;
  color: var(--gray-mid);
}

/* =========================================
   NEWS
   ========================================= */
.news {
  padding: 5rem 0;
  background: var(--white);
}
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}
.news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
}
.news-featured {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #E2E8F0;
  transition: box-shadow 0.25s;
}
.news-featured:hover { box-shadow: var(--shadow-card); }
.news-featured-img {
  width: 100%; height: 240px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
  overflow: hidden;
}
.news-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.news-featured-body { padding: 24px; }
.news-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}
.news-featured-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.news-featured-body p { font-size: 0.88rem; color: var(--gray-mid); line-height: 1.65; }
.news-date { font-size: 0.75rem; color: var(--gray-mid); margin-top: 12px; display: block; }
.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s;
}
.news-item:hover { box-shadow: 0 2px 12px rgba(13,46,92,0.08); }
.news-item-thumb {
  width: 72px; height: 72px;
  background: var(--blue-pale);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  overflow: hidden;
}
.news-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item h4 { font-size: 0.88rem; font-weight: 600; color: var(--navy); line-height: 1.4; margin-bottom: 6px; }
.see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}
.see-all::after { content: '→'; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-main { color: var(--white); }
.footer-brand .logo-sub { color: rgba(255,255,255,0.5); }

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 1rem;
  color: rgba(255,255,255,0.6);
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  gap: 10px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
  line-height: 1.5;
}
.footer-bottom {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  
  .hero-carousel { height: 480px; }
  .hc-title { font-size: 1.6rem; }
  .hc-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
  .hc-prev { left: 10px; }
  .hc-next { right: 10px; }
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
  .pillar-box { padding: 24px 12px; }
  .pillar-stat { font-size: 1.8rem; }
  .pillar-name { font-size: 0.78rem; }
  .programs-grid { grid-template-columns: 1fr; }
  .greeting-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-nav);
    padding: 1rem;
    z-index: 999;
  }
  .main-nav.open ul { flex-direction: column; }
  .hamburger { display: flex; }
  .site-header { position: relative; }
  .hero-actions { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero-carousel { height: 420px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-box { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* =========================================
   BERITA 3 KOLOM GRID
   ========================================= */
.news {
  padding: 5rem 0;
  background: var(--white);
}
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}
.news-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.news-card {
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.2s;
  background: var(--white);
}
.news-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.news-card-img {
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  flex-shrink: 0;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-img-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.4);
}
.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin: 8px 0 10px;
}
.news-card-body h3 a { color: var(--navy); }
.news-card-body h3 a:hover { color: var(--blue); }
.news-card-body p {
  font-size: 0.85rem;
  color: var(--gray-mid);
  line-height: 1.6;
  flex: 1;
}
.news-card-footer {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #F0F4F8;
}
.news-views {
  font-size: 0.75rem;
  color: var(--gray-mid);
}

.news-readmore {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.2s;
  margin-left: auto;
}
.news-readmore:hover { color: var(--gold); }

/* =========================================
   PENGUMUMAN SECTION
   ========================================= */
.pengumuman {
  padding: 4rem 0 5rem;
  background: var(--gray-soft);
}
.pengumuman-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}
.pengumuman-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 18px 24px;
  border-bottom: 1px solid #F0F4F8;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
  cursor: pointer;
}
.pengumuman-item:last-child { border-bottom: none; }
.pengumuman-item:hover { background: var(--blue-pale); }

.pengumuman-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  min-width: 52px;
  flex-shrink: 0;
  text-align: center;
}
.pdate-day {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}
.pdate-mon {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}
.pengumuman-badge {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.pengumuman-content { flex: 1; min-width: 0; }
.pengumuman-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pengumuman-item:hover .pengumuman-content h4 { color: var(--blue); }
.pengumuman-content p {
  font-size: 0.8rem;
  color: var(--gray-mid);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pengumuman-arrow {
  font-size: 1.1rem;
  color: var(--gray-mid);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}
.pengumuman-item:hover .pengumuman-arrow {
  color: var(--blue);
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
  .news-grid-3 { grid-template-columns: 1fr; }
  .news-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .pengumuman-content h4 { white-space: normal; }
  .pengumuman-content p { display: none; }
  .pengumuman-item { padding: 14px 16px; gap: 1rem; }
}
@media (max-width: 640px) {
  .news-grid-3 { grid-template-columns: 1fr; }
}


/* =========================================
   SINGLE ARTICLE PAGE
   ========================================= */
.single-main { padding: 3rem 0 5rem; }

.single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

/* Article */
.single-article { min-width: 0; }

.article-header { margin-bottom: 1.5rem; }

.article-cats { margin-bottom: 10px; }
.article-cats a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 3px 12px;
  border-radius: 20px;
  margin-right: 6px;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--gray-mid);
  padding: 12px 0;
  border-top: 1px solid #F0F4F8;
  border-bottom: 1px solid #F0F4F8;
}
.meta-item { display: flex; align-items: center; gap: 4px; }

.article-thumb {
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.article-thumb img { width: 100%; height: auto; }

/* Article content typography */
.article-content {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
}
.article-content p { margin-bottom: 1.4rem; }
.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin: 2rem 0 1rem;
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin: 1.5rem 0 0.8rem;
}
.article-content ul, .article-content ol {
  margin: 0 0 1.4rem 1.5rem;
}
.article-content li { margin-bottom: 0.4rem; }
.article-content blockquote {
  border-left: 4px solid var(--gold);
  background: var(--blue-pale);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--navy);
}
.article-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}

/* Baca Juga box */
.baca-juga {
  background: #EEF4FF;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.baca-juga-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.baca-juga-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #C0392B;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: rgba(192,57,43,0.3);
}
.baca-juga-link:hover { color: var(--navy); text-decoration-color: var(--navy); }

/* Share & footer */
.article-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #F0F4F8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.article-tags { font-size: 0.85rem; color: var(--gray-mid); }
.article-tags a { color: var(--blue); }

.article-share { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--gray-mid); }
.share-btn {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; color: var(--white); }
.share-wa { background: #25D366; color: var(--white); }
.share-fb { background: #1877F2; color: var(--white); }
.share-tw { background: #1DA1F2; color: var(--white); }

.article-back {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.article-back a { color: var(--blue); }
.article-back a:hover { color: var(--navy); }

/* ── SIDEBAR ── */
.single-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  padding: 12px 16px;
  margin: 0;
  border-bottom: 3px solid var(--gold);
}

.sidebar-post {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #F5F7FA;
  text-decoration: none;
  transition: background 0.2s;
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post:hover { background: var(--blue-pale); }

.sidebar-post-thumb {
  width: 62px; height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--blue-pale);
}
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-thumb-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.sidebar-post-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.sidebar-post-info h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-post:hover .sidebar-post-info h4 { color: var(--blue); }
.sidebar-post-info span { font-size: 0.72rem; color: var(--gray-mid); }

.sidebar-empty { padding: 12px 14px; font-size: 0.85rem; color: var(--gray-mid); }

/* Sidebar stats */
.sidebar-stat-box .sidebar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #E2E8F0;
}
.sstat {
  background: var(--white);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sstat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}
.sstat-lbl {
  font-size: 0.72rem;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Responsive single */
@media (max-width: 1024px) {
  .single-layout { grid-template-columns: 1fr 280px; gap: 2rem; }
}
@media (max-width: 768px) {
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
  .article-footer { flex-direction: column; align-items: flex-start; }
}
