/* ============================================================
   PORTAL PUBLIK — CSS
   ============================================================ */

:root {
    --brand-900: #2a1a4a;
    --brand-800: #3d2869;
    --brand-700: #4c3480;
    --brand-600: #5e42a0;
    --brand-500: #7c5ec7;
    --brand-400: #9d7fe0;
    --brand-300: #bda3ee;
    --brand-100: #f0e8fb;
    --gold-500: #d4a017;
    --gold-400: #e6b422;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--gray-700);
    line-height: 1.7;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; letter-spacing: -.02em; }

/* Entrance animation */
@keyframes pubFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.pub-reveal { opacity: 0; }
.pub-reveal.in { animation: pubFadeUp .7s cubic-bezier(.2,.7,.2,1) forwards; }

/* ============================================================
   NAVBAR
   ============================================================ */
.pub-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: all .3s;
    border-bottom: 1px solid transparent;
}
.pub-navbar.scrolled {
    background: rgba(255,255,255,.98);
    box-shadow: 0 4px 20px rgba(42,26,74,.08);
    border-bottom-color: var(--gray-200);
}
.pub-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 1.5rem;
}
.pub-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    text-decoration: none;
    flex-shrink: 0;
}
.pub-brand:hover { text-decoration: none; }
.pub-brand-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(76,52,128,.25);
}
.pub-brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.02em;
    line-height: 1.2;
}
.pub-brand-sub {
    font-size: .7rem;
    color: var(--gray-500);
    font-weight: 500;
}

.pub-nav-menu {
    display: flex;
    align-items: center;
    gap: .25rem;
    flex: 1;
    justify-content: center;
}
.pub-nav-link {
    padding: .5rem .85rem;
    border-radius: 8px;
    color: var(--gray-700);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.pub-nav-link:hover,
.pub-nav-link.active {
    background: var(--brand-100);
    color: var(--brand-700);
    text-decoration: none;
}
.pub-nav-dropdown { position: relative; }
.pub-nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(42,26,74,.15);
    padding: .5rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s;
    z-index: 100;
}
.pub-nav-dropdown:hover .pub-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}
.pub-nav-dropdown-menu a {
    display: block;
    padding: .55rem .85rem;
    border-radius: 8px;
    color: var(--gray-700);
    font-size: .85rem;
    text-decoration: none;
    transition: all .15s;
}
.pub-nav-dropdown-menu a:hover {
    background: var(--brand-100);
    color: var(--brand-700);
}

.pub-navbar-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}
.btn-pub-login {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.25rem;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    color: #fff;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(76,52,128,.2);
}
.btn-pub-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(76,52,128,.35);
    color: #fff;
    text-decoration: none;
}
.pub-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-700);
    padding: .5rem;
}

/* ============================================================
   HERO
   ============================================================ */
.pub-hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 60%, var(--brand-500) 100%);
    overflow: hidden;
}
.pub-hero::before {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(212,160,23,.15) 0%, transparent 70%);
    border-radius: 50%;
}
.pub-hero::after {
    content: '';
    position: absolute;
    bottom: -40%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124,94,199,.3) 0%, transparent 70%);
    border-radius: 50%;
}
.pub-hero-inner { position: relative; z-index: 1; }
.pub-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.25rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -.025em;
    line-height: 1.12;
    margin-bottom: 1.5rem;
}
.pub-hero h1 .accent {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}
.pub-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.82);
    max-width: 560px;
    line-height: 1.75;
    margin-bottom: 2rem;
}

/* Hero decoration (right side) */
.pub-hero-deco {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pub-hero-deco .deco-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
}
.pub-hero-deco .ring-1 { width: 320px; height: 320px; }
.pub-hero-deco .ring-2 { width: 240px; height: 240px; border-color: rgba(212,160,23,.25); }
.pub-hero-deco .ring-3 { width: 160px; height: 160px; border-color: rgba(255,255,255,.18); }
.pub-hero-deco .deco-center {
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(212,160,23,.35), rgba(124,94,199,.25));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: #fff;
    box-shadow: 0 0 80px rgba(212,160,23,.25);
    animation: pubFloat 6s ease-in-out infinite;
}
@keyframes pubFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
.pub-hero-deco .deco-badge {
    position: absolute;
    background: rgba(255,255,255,.95);
    border-radius: 14px;
    padding: .75rem 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    font-size: .78rem;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.pub-hero-deco .badge-mi  { top: 10%; left: 0; }
.pub-hero-deco .badge-mts { bottom: 15%; right: 5%; }
.pub-hero-deco .badge-mi i  { color: #f59e0b; }
.pub-hero-deco .badge-mts i { color: var(--brand-700); }
.pub-hero-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}
.btn-pub-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.75rem;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: var(--brand-900);
    border-radius: 12px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 8px 24px rgba(212,160,23,.35);
}
.btn-pub-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212,160,23,.45);
    color: var(--brand-900);
    text-decoration: none;
}
.btn-pub-outline {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.75rem;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 12px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: all .2s;
}
.btn-pub-outline:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
    text-decoration: none;
}

/* Stats Cards */
.pub-stats {
    margin-top: -60px;
    position: relative;
    z-index: 2;
}
.pub-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(42,26,74,.1);
    transition: all .3s;
    border: 1px solid var(--gray-200);
    height: 100%;
}
.pub-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(42,26,74,.15);
}
.pub-stat-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.pub-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.03em;
    line-height: 1;
}
.pub-stat-label {
    font-size: .8rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: .35rem;
}

/* ============================================================
   SECTION
   ============================================================ */
.pub-section { padding: 5rem 0; }
.pub-section-alt { background: var(--gray-50); }
.pub-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.pub-section-label {
    display: inline-block;
    padding: .35rem 1rem;
    background: var(--brand-100);
    color: var(--brand-700);
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1rem;
}
.pub-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--gray-900);
    letter-spacing: -.025em;
    line-height: 1.2;
    margin-bottom: .75rem;
}
.pub-section-desc {
    color: var(--gray-500);
    font-size: 1rem;
}

/* ============================================================
   CARD BERITA
   ============================================================ */
.pub-berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}
.pub-berita-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(42,26,74,.06);
    transition: all .3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
}
.pub-berita-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(42,26,74,.15);
    text-decoration: none;
    color: inherit;
}
.pub-berita-image {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    position: relative;
    overflow: hidden;
}
.pub-berita-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.pub-berita-card:hover .pub-berita-image img { transform: scale(1.05); }
.pub-berita-image-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.4);
    font-size: 3rem;
}
.pub-berita-body {
    padding: 1.25rem 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pub-berita-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .75rem;
    color: var(--gray-500);
    margin-bottom: .65rem;
}
.pub-berita-kategori {
    padding: .25rem .65rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: .7rem;
    color: #fff;
}
.pub-berita-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.35;
    margin-bottom: .5rem;
    letter-spacing: -.02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pub-berita-ringkasan {
    font-size: .85rem;
    color: var(--gray-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    flex: 1;
}
.pub-berita-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .75rem;
    color: var(--gray-500);
}
.pub-berita-more {
    color: var(--brand-700);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

/* ============================================================
   AGENDA
   ============================================================ */
.pub-agenda-list { display: flex; flex-direction: column; gap: 1rem; }
.pub-agenda-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(42,26,74,.06);
    border: 1px solid var(--gray-200);
    transition: all .2s;
    align-items: center;
}
.pub-agenda-item:hover {
    box-shadow: 0 8px 24px rgba(42,26,74,.1);
    transform: translateX(4px);
}
.pub-agenda-date {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.pub-agenda-day { font-size: 1.5rem; font-weight: 800; }
.pub-agenda-month { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; opacity: .9; }
.pub-agenda-body { flex: 1; min-width: 0; }
.pub-agenda-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: .25rem;
}
.pub-agenda-meta {
    display: flex;
    gap: 1rem;
    font-size: .8rem;
    color: var(--gray-500);
    flex-wrap: wrap;
}
.pub-agenda-meta i { margin-right: .25rem; color: var(--brand-500); }

/* ============================================================
   SEKOLAH CARDS
   ============================================================ */
.pub-sekolah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.pub-sekolah-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 16px rgba(42,26,74,.06);
    transition: all .3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pub-sekolah-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(42,26,74,.15);
    text-decoration: none;
    color: inherit;
}
.pub-sekolah-icon {
    width: 72px; height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.pub-sekolah-icon.mi  { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.pub-sekolah-icon.mts { background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); }
.pub-sekolah-icon.ma  { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.pub-sekolah-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: .25rem;
}
.pub-sekolah-tag {
    display: inline-block;
    padding: .2rem .65rem;
    background: var(--brand-100);
    color: var(--brand-700);
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1rem;
}

/* ============================================================
   GALERI GRID
   ============================================================ */
.pub-galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.pub-galeri-item {
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    cursor: pointer;
    transition: all .3s;
}
.pub-galeri-item:hover { transform: scale(1.03); }
.pub-galeri-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.pub-galeri-item:hover img { transform: scale(1.1); }
.pub-galeri-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(42,26,74,.85));
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity .3s;
}
.pub-galeri-item:hover .pub-galeri-overlay { opacity: 1; }
.pub-galeri-overlay-title {
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.pub-footer {
    background: linear-gradient(180deg, var(--brand-900) 0%, #1f1238 100%);
    color: rgba(255,255,255,.8);
    padding: 4rem 0 1.5rem;
    margin-top: 5rem;
}
.pub-footer h4, .pub-footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}
.pub-footer p { font-size: .85rem; line-height: 1.7; }
.pub-footer-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}
.pub-footer-brand h4 { margin-bottom: 0; }
.pub-footer-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}
.pub-footer-links, .pub-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pub-footer-links li { margin-bottom: .5rem; }
.pub-footer-links a {
    color: rgba(255,255,255,.7);
    font-size: .85rem;
    text-decoration: none;
    transition: all .2s;
}
.pub-footer-links a:hover { color: var(--gold-400); }
.pub-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .75rem;
    font-size: .85rem;
}
.pub-footer-contact i {
    color: var(--gold-400);
    margin-top: 4px;
    font-size: .85rem;
}
.pub-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.pub-footer-bottom a {
    color: rgba(255,255,255,.7);
    transition: color .2s;
}
.pub-footer-bottom a:hover { color: var(--gold-400); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.pub-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    color: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(76,52,128,.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .3s;
    z-index: 999;
}
.pub-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.pub-back-to-top:hover { transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .pub-hero h1 { font-size: 2.25rem; }
    .pub-section-title { font-size: 1.75rem; }
}
@media (max-width: 768px) {
    .pub-nav-menu {
        position: fixed;
        top: 76px;
        left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        box-shadow: 0 8px 24px rgba(42,26,74,.1);
        transform: translateY(-120%);
        transition: transform .3s;
        z-index: 999;
    }
    .pub-nav-menu.show { transform: translateY(0); }
    .pub-nav-link { padding: .75rem 1rem; }
    .pub-mobile-toggle { display: block; }
    .pub-hero { padding: 120px 0 80px; }
    .pub-hero h1 { font-size: 1.75rem; }
    .pub-hero p { font-size: .95rem; }
    .pub-stats { margin-top: -40px; }
    .pub-section { padding: 3rem 0; }
    .pub-section-title { font-size: 1.5rem; }
    .pub-agenda-item { flex-direction: column; align-items: flex-start; }
    .pub-footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   BERITA CONTENT
   ============================================================ */
.berita-content h1 { font-size: 1.85rem; font-weight: 800; margin: 1.5rem 0 1rem; color: #111827; }
.berita-content h2 { font-size: 1.5rem; font-weight: 700; margin: 1.5rem 0 .75rem; color: #111827; letter-spacing: -.02em; }
.berita-content h3 { font-size: 1.25rem; font-weight: 700; margin: 1.25rem 0 .5rem; color: #111827; }
.berita-content p { margin-bottom: 1rem; }
.berita-content ul, .berita-content ol { padding-left: 1.75rem; margin-bottom: 1rem; }
.berita-content li { margin-bottom: .35rem; }
.berita-content blockquote {
    border-left: 4px solid var(--brand-500);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--brand-100);
    border-radius: 0 12px 12px 0;
    color: var(--gray-700);
    font-style: italic;
}
.berita-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1rem 0;
}
.berita-content a { color: var(--brand-700); text-decoration: underline; }
.berita-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}
.berita-content table th,
.berita-content table td {
    border: 1px solid var(--gray-200);
    padding: .75rem 1rem;
    text-align: left;
}
.berita-content table th {
    background: var(--gray-50);
    font-weight: 700;
    color: var(--gray-700);
}
.berita-content code {
    background: var(--gray-100);
    padding: .15rem .4rem;
    border-radius: 4px;
    font-size: .9em;
    color: #be185d;
}
.berita-content pre {
    background: var(--gray-900);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1rem 0;
}
.berita-content pre code { background: none; color: inherit; padding: 0; }
.berita-content hr { border: none; border-top: 1px solid var(--gray-200); margin: 2rem 0; }

/* ============================================================
   PAGE HEADER (inner pages banner)
   ============================================================ */
.pub-page-header {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-800) 55%, var(--brand-700) 100%);
    overflow: hidden;
    text-align: center;
}
.pub-page-header::before {
    content: '';
    position: absolute;
    top: -40%; right: -15%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(212,160,23,.18) 0%, transparent 65%);
    border-radius: 50%;
}
.pub-page-header::after {
    content: '';
    position: absolute;
    bottom: -35%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(124,94,199,.3) 0%, transparent 65%);
    border-radius: 50%;
}
.pub-page-header-inner { position: relative; z-index: 1; }
.pub-page-header .pub-section-label {
    background: rgba(212,160,23,.2);
    color: var(--gold-400);
}
.pub-page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -.025em;
    line-height: 1.2;
    margin: .75rem 0 .5rem;
}
.pub-page-header p {
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}
/* Breadcrumb */
.pub-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: .82rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.pub-breadcrumb a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: color .2s;
}
.pub-breadcrumb a:hover { color: var(--gold-400); }
.pub-breadcrumb i { font-size: .65rem; color: rgba(255,255,255,.4); }
.pub-breadcrumb .current { color: var(--gold-400); font-weight: 600; }

/* ============================================================
   SIDEBAR (berita kategori)
   ============================================================ */
.pub-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 16px rgba(42,26,74,.05);
    position: sticky;
    top: 100px;
}
.pub-sidebar-card h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--gray-200);
}
.pub-sidebar-list { list-style: none; padding: 0; margin: 0; }
.pub-sidebar-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem .75rem;
    border-radius: 10px;
    color: var(--gray-700);
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
    margin-bottom: .15rem;
}
.pub-sidebar-list li a:hover {
    background: var(--gray-50);
    color: var(--brand-700);
}
.pub-sidebar-list li a.active {
    background: var(--brand-100);
    color: var(--brand-700);
    font-weight: 600;
}
.pub-sidebar-list li a .count {
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: .72rem;
    font-weight: 600;
    padding: .15rem .55rem;
    border-radius: 20px;
}
.pub-sidebar-list li a.active .count {
    background: var(--brand-700);
    color: #fff;
}

/* ============================================================
   ARTICLE (berita-detail & halaman)
   ============================================================ */
.pub-article-meta {
    display: flex;
    gap: 1.25rem;
    color: var(--gray-500);
    font-size: .85rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    flex-wrap: wrap;
}
.pub-article-meta i { margin-right: .35rem; color: var(--brand-500); }
.pub-article-content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--gray-700);
}
.pub-article-content p { margin-bottom: 1.1rem; }
.pub-article-content h2,
.pub-article-content h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--gray-900);
    margin: 2rem 0 1rem;
    letter-spacing: -.02em;
}
.pub-article-content blockquote {
    border-left: 4px solid var(--gold-500);
    padding: 1rem 1.25rem;
    margin: 1.75rem 0;
    background: var(--gray-50);
    border-radius: 0 12px 12px 0;
    color: var(--gray-700);
    font-style: italic;
}
.pub-article-tags {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}
.pub-article-tags strong {
    font-size: .85rem;
    color: var(--gray-500);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
}
.pub-tag {
    display: inline-block;
    padding: .3rem .75rem;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: .75rem;
    margin: .25rem .2rem 0 0;
    color: var(--gray-700);
    transition: all .2s;
}
.pub-tag:hover { background: var(--brand-100); color: var(--brand-700); }

/* ============================================================
   KONTAK
   ============================================================ */
.pub-kontak-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(42,26,74,.08);
    border: 1px solid var(--gray-200);
}
.pub-kontak-card label {
    font-weight: 600;
    font-size: .85rem;
    color: var(--gray-700);
    margin-bottom: .4rem;
    display: block;
}
.pub-kontak-card .form-control {
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    padding: .65rem .85rem;
    font-size: .9rem;
    transition: all .2s;
}
.pub-kontak-card .form-control:focus {
    border-color: var(--brand-700);
    box-shadow: 0 0 0 3px rgba(76,52,128,.12);
}

/* ============================================================
   GALERI ALBUM HEADER
   ============================================================ */
.pub-album-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
}
.pub-album-header i { color: var(--gold-500); }
.pub-album-count {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .72rem;
    background: var(--gray-100);
    color: var(--gray-500);
    padding: .2rem .6rem;
    border-radius: 20px;
    font-weight: 600;
    margin-left: .25rem;
}

/* ============================================================
   LIGHTBOX (galeri)
   ============================================================ */
.pub-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17,12,32,.92);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.pub-lightbox.show { display: flex; }
.pub-lightbox-inner {
    max-width: 900px;
    text-align: center;
    animation: pubFadeUp .3s ease;
}
.pub-lightbox-inner img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.pub-lightbox-caption {
    color: #fff;
    margin-top: 1.25rem;
    font-weight: 600;
    font-size: 1rem;
}
.pub-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all .2s;
}
.pub-lightbox-close:hover { background: rgba(212,160,23,.25); transform: rotate(90deg); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.pub-cta {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%);
    overflow: hidden;
    text-align: center;
}
.pub-cta::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(212,160,23,.2) 0%, transparent 65%);
    border-radius: 50%;
}
.pub-cta-inner { position: relative; z-index: 1; }
.pub-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}
.pub-cta p {
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}

/* Responsive tweaks for new components */
@media (max-width: 768px) {
    .pub-page-header { padding: 110px 0 60px; }
    .pub-page-header h1 { font-size: 1.85rem; }
    .pub-kontak-card { padding: 1.5rem; }
    .pub-hero-deco { display: none; }
}
