/*
Theme Name: PCNU Lamongan
Theme URI: https://nulamongan.or.id
Author: Media Centre PCNU Lamongan
Author URI: https://nulamongan.or.id
Description: Theme resmi website PCNU Lamongan — modern, profesional, dan beridentitas NU.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nulamongan
Tags: news, blog, custom-colors, custom-logo, featured-images, full-width-template, rtl-language-support, sticky-post, translation-ready
*/

/* =========================================================
   RESET & BASE
========================================================= */
:root {
  --hijau:        #1a5c35;
  --hijau-muda:   #2d8653;
  --hijau-terang: #4caf7d;
  --emas:         #c8973a;
  --emas-muda:    #e8b857;
  --putih:        #faf9f6;
  --hitam:        #111510;
  --abu:          #6b7280;
  --bg-gelap:     #0f2d1a;
  --radius:       12px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.12);
  --transition:   all 0.25s ease;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--putih);
  color: var(--hitam);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration:none; color:inherit; }
img { max-width:100%; height:auto; display:block; }
ul { list-style:none; }

/* =========================================================
   TOPBAR
========================================================= */
.site-topbar {
  background: var(--bg-gelap);
  color: #a8c4b0;
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(200,151,58,0.25);
}
.topbar-inner {
  max-width: 1280px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-date { letter-spacing:.05em; }
.topbar-hijri { color: var(--emas-muda); font-weight:600; }
.topbar-social { display:flex; gap:14px; }
.topbar-social a {
  color: #a8c4b0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing:.06em;
  text-transform:uppercase;
  transition: color .2s;
}
.topbar-social a:hover { color: var(--emas-muda); }

/* =========================================================
   HEADER / NAVBAR
========================================================= */
.site-header {
  background: var(--hijau);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 1280px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 68px;
  gap: 24px;
}

/* Logo */
.site-logo-wrap {
  display:flex; align-items:center; gap:14px; flex-shrink:0;
}
.logo-circle {
  width:46px; height:46px; border-radius:50%;
  background: linear-gradient(135deg, var(--emas), var(--emas-muda));
  display:flex; align-items:center; justify-content:center;
  font-family:'Amiri',serif; font-size:22px; color:var(--bg-gelap); font-weight:700;
  box-shadow: 0 0 0 3px rgba(200,151,58,0.3);
  flex-shrink:0;
}
.logo-custom-img { width:46px; height:46px; object-fit:contain; border-radius:50%; }
.logo-text-org {
  font-size:13px; font-weight:800; letter-spacing:.14em;
  text-transform:uppercase; color:var(--emas-muda);
}
.logo-text-kab { font-size:11px; color:rgba(255,255,255,.65); }

/* Nav Menu */
.main-nav { margin-left:auto; }
.main-nav ul { display:flex; gap:2px; }
.main-nav ul li { position:relative; }
.main-nav ul li a {
  color:rgba(255,255,255,.85);
  font-size:13px; font-weight:500; padding:8px 13px;
  border-radius:6px; letter-spacing:.02em;
  display:block; transition: var(--transition);
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a {
  background:rgba(255,255,255,.12); color:var(--emas-muda);
}
/* Dropdown */
.main-nav ul li ul {
  display:none; position:absolute; top:100%; left:0;
  background:var(--bg-gelap); border:1px solid rgba(255,255,255,.08);
  border-radius:8px; min-width:220px; padding:8px 0;
  box-shadow: 0 12px 40px rgba(0,0,0,.4); z-index:100;
}
.main-nav ul li:hover > ul { display:block; }
.main-nav ul li ul li a {
  padding:9px 18px; border-radius:0; font-size:13px;
  color:rgba(255,255,255,.7);
}
.main-nav ul li ul li a:hover { color:var(--emas-muda); background:rgba(255,255,255,.05); }

/* Hamburger */
.menu-toggle {
  display:none; background:none; border:none; cursor:pointer;
  color:white; font-size:24px; margin-left:auto;
}

/* =========================================================
   HERO
========================================================= */
.site-hero {
  background: var(--bg-gelap);
  min-height: 520px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-bg-glow {
  position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(44,134,83,.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 15% 80%, rgba(200,151,58,.12) 0%, transparent 60%);
}
.hero-ring {
  position:absolute; border-radius:50%;
  border:1px solid rgba(200,151,58,.12); pointer-events:none;
}
.hero-ring-1 { width:500px; height:500px; top:-80px; right:-80px; }
.hero-ring-2 { width:360px; height:360px; top:0; right:0; }

.hero-left {
  padding: 72px 56px 72px 72px;
  position:relative; z-index:2;
  display:flex; flex-direction:column; justify-content:center;
  animation: fadeUp .7s ease both;
}
.hero-eyebrow {
  display:inline-flex; align-items:center; gap:10px;
  color:var(--emas-muda); font-size:11px; font-weight:800;
  letter-spacing:.2em; text-transform:uppercase; margin-bottom:18px;
}
.hero-eyebrow::before { content:''; width:28px; height:2px; background:var(--emas); display:block; }
.hero-title {
  font-family:'Playfair Display',serif;
  font-size:clamp(34px,4vw,56px); font-weight:900;
  color:white; line-height:1.1; margin-bottom:14px;
}
.hero-title span { color:var(--emas-muda); }
.hero-arabic {
  font-family:'Amiri',serif; font-size:20px;
  color:rgba(255,255,255,.5); margin-bottom:12px;
  letter-spacing:.05em;
}
.hero-desc {
  font-size:14px; color:rgba(255,255,255,.5); line-height:1.75;
  max-width:440px; margin-bottom:32px;
}
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; }
.btn-gold {
  background:linear-gradient(135deg,var(--emas),var(--emas-muda));
  color:var(--bg-gelap); padding:13px 30px; border-radius:8px;
  font-size:13px; font-weight:800; letter-spacing:.03em;
  box-shadow:0 4px 20px rgba(200,151,58,.35);
  transition: var(--transition);
}
.btn-gold:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(200,151,58,.5); }
.btn-outline {
  border:1px solid rgba(255,255,255,.22); color:rgba(255,255,255,.8);
  padding:13px 26px; border-radius:8px; font-size:13px; font-weight:500;
  transition: var(--transition);
}
.btn-outline:hover { border-color:var(--emas-muda); color:var(--emas-muda); }

.hero-right {
  position:relative; z-index:2; overflow:hidden;
}
.hero-featured-thumb {
  position:absolute; inset:0;
  background:linear-gradient(135deg, var(--hijau) 0%, var(--bg-gelap) 100%);
}
.hero-featured-thumb img {
  width:100%; height:100%; object-fit:cover; opacity:.55;
}
.hero-featured-caption {
  position:absolute; bottom:0; left:0; right:0;
  background:linear-gradient(to top,rgba(10,30,18,.97) 0%,rgba(10,30,18,.65) 55%,transparent 100%);
  padding:44px 44px 40px;
}
.featured-badge {
  display:inline-block; background:var(--emas); color:var(--bg-gelap);
  font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase;
  padding:3px 10px; border-radius:4px; margin-bottom:12px;
}
.featured-caption-title {
  font-family:'Playfair Display',serif; font-size:22px; font-weight:700;
  color:white; line-height:1.3; margin-bottom:10px;
}
.featured-caption-meta {
  font-size:12px; color:rgba(255,255,255,.45);
  display:flex; gap:14px;
}

/* =========================================================
   TICKER
========================================================= */
.news-ticker {
  background:var(--emas); display:flex; align-items:stretch; overflow:hidden;
}
.ticker-badge {
  background:var(--bg-gelap); color:var(--emas-muda);
  font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase;
  padding:10px 18px; display:flex; align-items:center; flex-shrink:0; gap:6px;
}
.ticker-track { overflow:hidden; flex:1; }
.ticker-list {
  display:inline-flex; white-space:nowrap;
  animation:ticker 35s linear infinite;
}
.ticker-list:hover { animation-play-state:paused; }
.ticker-item {
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:600; color:var(--bg-gelap);
  padding:10px 36px;
}
.ticker-item::after { content:'◆'; font-size:7px; opacity:.35; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* =========================================================
   STATS STRIP
========================================================= */
.stats-strip {
  background:var(--hijau); padding:24px 0;
}
.stats-inner {
  max-width:1280px; margin:auto; padding:0 24px;
  display:grid; grid-template-columns:repeat(4,1fr);
}
.stat-item {
  text-align:center; padding:8px 16px;
  border-right:1px solid rgba(255,255,255,.12);
}
.stat-item:last-child { border-right:none; }
.stat-num {
  font-family:'Playfair Display',serif; font-size:30px; font-weight:900;
  color:var(--emas-muda); line-height:1; margin-bottom:4px;
}
.stat-label {
  font-size:11px; color:rgba(255,255,255,.55);
  letter-spacing:.08em; text-transform:uppercase;
}

/* =========================================================
   LAYOUT UTAMA
========================================================= */
.site-main-wrap {
  max-width:1280px; margin:auto;
  padding:60px 24px;
  display:grid;
  grid-template-columns:1fr 340px;
  gap:52px;
}

/* Section Header */
.section-hd {
  display:flex; align-items:center; gap:14px; margin-bottom:28px;
}
.section-hd-label {
  font-size:11px; font-weight:800; letter-spacing:.18em;
  text-transform:uppercase; color:var(--hijau); flex-shrink:0;
}
.section-hd-line {
  flex:1; height:1px;
  background:linear-gradient(to right,#d1d5db,transparent);
}
.section-hd-more {
  font-size:12px; font-weight:600; color:var(--hijau-muda);
  border:1px solid var(--hijau-muda); padding:4px 14px; border-radius:20px;
  transition:var(--transition); flex-shrink:0;
}
.section-hd-more:hover { background:var(--hijau-muda); color:white; }

/* =========================================================
   CARD BERITA
========================================================= */
.news-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-bottom:44px;
}
.news-card {
  background:white; border-radius:var(--radius);
  border:1px solid rgba(0,0,0,.05);
  box-shadow:var(--shadow-sm);
  overflow:hidden; display:flex; flex-direction:column;
  transition:var(--transition);
}
.news-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); }
.news-card.card-featured {
  grid-column:span 2; flex-direction:row;
}

.card-thumb {
  background:linear-gradient(135deg,var(--hijau),var(--bg-gelap));
  position:relative; overflow:hidden; flex-shrink:0;
}
.card-thumb img { width:100%; height:100%; object-fit:cover; }
.news-card:not(.card-featured) .card-thumb { aspect-ratio:16/9; }
.news-card.card-featured .card-thumb { width:320px; }

.card-cat-badge {
  position:absolute; top:12px; left:12px;
  background:var(--emas); color:var(--bg-gelap);
  font-size:9px; font-weight:800; letter-spacing:.12em; text-transform:uppercase;
  padding:3px 9px; border-radius:4px;
}
.card-body { padding:20px; display:flex; flex-direction:column; flex:1; }
.card-title {
  font-family:'Playfair Display',serif; font-size:17px; font-weight:700;
  line-height:1.4; color:var(--hitam); margin-bottom:10px;
}
.card-featured .card-title { font-size:22px; }
.card-excerpt {
  font-size:13px; color:var(--abu); line-height:1.65;
  flex:1; margin-bottom:14px;
}
.card-foot {
  display:flex; justify-content:space-between; align-items:center;
  border-top:1px solid #f3f4f6; padding-top:12px;
  font-size:11px; color:#9ca3af;
}
.card-readmore { color:var(--hijau-muda); font-weight:600; font-size:11px; }

/* =========================================================
   LIST BERITA
========================================================= */
.news-list { display:flex; flex-direction:column; margin-bottom:44px; }
.news-list-item {
  display:flex; gap:14px; padding:16px 0;
  border-bottom:1px solid #f3f4f6; align-items:flex-start;
  transition:var(--transition);
}
.news-list-item:hover .nli-title { color:var(--hijau-muda); }
.nli-num {
  font-family:'Playfair Display',serif; font-size:26px; font-weight:900;
  color:#e5e7eb; line-height:1; flex-shrink:0; width:30px;
}
.nli-content { flex:1; }
.nli-cat {
  font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color:var(--hijau-muda); margin-bottom:4px;
}
.nli-title {
  font-size:14px; font-weight:600; line-height:1.45; color:var(--hitam);
  margin-bottom:4px; transition:color .2s;
}
.nli-date { font-size:11px; color:#9ca3af; }
.nli-thumb {
  width:76px; height:57px; border-radius:6px; flex-shrink:0; overflow:hidden;
  background:linear-gradient(135deg,var(--hijau),var(--bg-gelap));
}
.nli-thumb img { width:100%; height:100%; object-fit:cover; }

/* =========================================================
   SIDEBAR
========================================================= */
.site-sidebar { display:flex; flex-direction:column; gap:28px; }

.widget-box {
  background:white; border-radius:var(--radius);
  border:1px solid #e5e7eb; overflow:hidden;
}
.widget-head {
  background:var(--hijau); padding:13px 18px;
  display:flex; align-items:center; gap:9px;
}
.widget-head h3 {
  font-size:11px; font-weight:800; letter-spacing:.12em;
  text-transform:uppercase; color:white;
}
.widget-icon { color:var(--emas-muda); font-size:14px; }
.widget-body { padding:16px; }

/* Pengumuman */
.pengumuman-list { display:flex; flex-direction:column; gap:10px; }
.pengumuman-link {
  display:flex; gap:12px; align-items:flex-start;
  padding:10px; border-radius:8px; transition:background .2s;
}
.pengumuman-link:hover { background:#f9fafb; }
.p-date-box {
  background:var(--hijau); color:white; text-align:center;
  border-radius:6px; padding:5px 9px; flex-shrink:0; min-width:42px;
}
.p-day { font-size:18px; font-weight:800; line-height:1; }
.p-mon { font-size:9px; text-transform:uppercase; letter-spacing:.1em; color:var(--emas-muda); }
.p-text { font-size:13px; font-weight:500; color:var(--hitam); line-height:1.45; }

/* Hadits */
.hadits-card {
  background:linear-gradient(135deg,var(--bg-gelap),#1a5c35);
  border-radius:10px; padding:18px; text-align:center; margin-bottom:12px;
}
.arabic-hadits {
  font-family:'Amiri',serif; font-size:24px; color:var(--emas-muda);
  direction:rtl; margin-bottom:8px; line-height:1.6;
}
.hadits-latin { font-size:12px; color:rgba(255,255,255,.65); line-height:1.6; font-style:italic; }
.hadits-src { font-size:10px; color:var(--emas-muda); font-weight:600; margin-top:8px; }
.widget-more-link {
  display:block; text-align:center; font-size:12px; font-weight:600;
  color:var(--hijau-muda); padding:4px 0;
}

/* Sosmed */
.sosmed-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.sosmed-btn {
  display:flex; align-items:center; justify-content:center; gap:6px;
  padding:10px 8px; border-radius:8px; font-size:12px; font-weight:700;
  transition:var(--transition);
}
.sosmed-btn:hover { transform:scale(1.04); filter:brightness(1.1); }
.s-fb  { background:#1877f2; color:white; }
.s-ig  { background:linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366); color:white; }
.s-yt  { background:#ff0000; color:white; }
.s-tw  { background:#1da1f2; color:white; }

/* =========================================================
   SECTION PROGRAM
========================================================= */
.section-program {
  background:linear-gradient(135deg,var(--bg-gelap) 0%,#1b3e24 100%);
  padding:72px 0; position:relative; overflow:hidden;
}
.section-program::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse 50% 70% at 80% 50%,rgba(200,151,58,.08) 0%,transparent 70%);
}
.program-inner { max-width:1280px; margin:auto; padding:0 24px; position:relative; z-index:2; }
.program-heading { text-align:center; margin-bottom:44px; }
.program-heading h2 {
  font-family:'Playfair Display',serif; font-size:34px; font-weight:900;
  color:white; margin-bottom:8px;
}
.program-heading p { color:rgba(255,255,255,.45); font-size:14px; }
.program-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:18px;
}
.program-card {
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08);
  border-radius:14px; padding:26px 20px; text-align:center;
  transition:var(--transition); cursor:default;
}
.program-card:hover {
  background:rgba(255,255,255,.09);
  border-color:rgba(200,151,58,.4);
  transform:translateY(-4px);
}
.program-icon {
  width:54px; height:54px;
  background:linear-gradient(135deg,rgba(200,151,58,.18),rgba(200,151,58,.04));
  border:1px solid rgba(200,151,58,.28); border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 14px; font-size:24px;
}
.program-name { font-size:15px; font-weight:700; color:white; margin-bottom:8px; }
.program-desc { font-size:12px; color:rgba(255,255,255,.4); line-height:1.6; }

/* =========================================================
   GALERI
========================================================= */
.section-galeri { max-width:1280px; margin:0 auto; padding:60px 24px; }
.galeri-grid {
  display:grid; grid-template-columns:repeat(4,1fr);
  grid-template-rows:auto auto; gap:12px;
}
.galeri-item {
  border-radius:10px; overflow:hidden; position:relative;
  background:linear-gradient(135deg,var(--hijau),var(--bg-gelap));
  cursor:pointer;
}
.galeri-item:first-child { grid-row:span 2; grid-column:span 2; }
.galeri-item img { width:100%; height:100%; object-fit:cover; display:block; }
.galeri-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to top,rgba(10,30,18,.85) 0%,transparent 55%);
  opacity:0; transition:opacity .25s;
  display:flex; align-items:flex-end; padding:14px;
}
.galeri-item:hover .galeri-overlay { opacity:1; }
.galeri-overlay-text { color:white; font-size:13px; font-weight:600; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background:var(--bg-gelap); color:rgba(255,255,255,.55);
  padding:56px 0 0;
}
.footer-grid {
  max-width:1280px; margin:auto; padding:0 24px 48px;
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:44px;
}
.footer-logo-wrap { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.footer-desc {
  font-size:13px; line-height:1.7; color:rgba(255,255,255,.38);
  max-width:280px; margin-bottom:18px;
}
.footer-social { display:flex; gap:9px; }
.footer-social a {
  width:32px; height:32px; border-radius:7px;
  background:rgba(255,255,255,.07); display:flex; align-items:center;
  justify-content:center; color:rgba(255,255,255,.45); font-size:13px;
  transition:var(--transition);
}
.footer-social a:hover { background:var(--emas); color:var(--bg-gelap); }
.footer-col h4 {
  font-size:11px; font-weight:800; letter-spacing:.14em; text-transform:uppercase;
  color:var(--emas-muda); margin-bottom:14px;
}
.footer-links { display:flex; flex-direction:column; gap:8px; }
.footer-links a {
  font-size:13px; color:rgba(255,255,255,.38); transition:color .2s;
  display:flex; align-items:center; gap:6px;
}
.footer-links a::before { content:'›'; color:var(--emas-muda); }
.footer-links a:hover { color:rgba(255,255,255,.8); }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.08); padding:18px 24px;
  max-width:1280px; margin:0 auto;
  display:flex; justify-content:space-between; align-items:center;
  font-size:12px; color:rgba(255,255,255,.28);
}
.footer-arabic { font-family:'Amiri',serif; font-size:14px; color:rgba(200,151,58,.5); }

/* =========================================================
   UTILITIES & ANIMATIONS
========================================================= */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.fade-up { animation:fadeUp .6s ease both; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
  .site-hero { grid-template-columns:1fr; min-height:auto; }
  .hero-right { display:none; }
  .site-main-wrap { grid-template-columns:1fr; }
  .site-sidebar { display:grid; grid-template-columns:1fr 1fr; }
  .program-grid { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar-date { display:none; }
  .main-nav { display:none; }
  .menu-toggle { display:block; }
  .main-nav.open { display:block; position:absolute; top:68px; left:0; right:0;
    background:var(--bg-gelap); padding:12px 0; border-top:1px solid rgba(255,255,255,.08); }
  .main-nav.open ul { flex-direction:column; gap:0; }
  .main-nav.open ul li a { border-radius:0; padding:12px 24px; }
  .hero-left { padding:48px 28px; }
  .hero-title { font-size:32px; }
  .news-grid { grid-template-columns:1fr; }
  .news-card.card-featured { flex-direction:column; }
  .news-card.card-featured { grid-column:span 1; }
  .news-card.card-featured .card-thumb { width:100%; aspect-ratio:16/9; }
  .stats-inner { grid-template-columns:repeat(2,1fr); }
  .site-sidebar { grid-template-columns:1fr; }
  .program-grid { grid-template-columns:1fr 1fr; }
  .galeri-grid { grid-template-columns:repeat(2,1fr); }
  .galeri-item:first-child { grid-row:span 1; grid-column:span 2; }
  .footer-grid { grid-template-columns:1fr; gap:24px; }
  .footer-bottom { flex-direction:column; gap:8px; text-align:center; }
}

@media (max-width:480px) {
  .program-grid { grid-template-columns:1fr; }
  .sosmed-grid { grid-template-columns:1fr; }
}

/* =========================================================
   WP CORE ALIGNMENTS
========================================================= */
.alignnone   { margin:0; }
.alignleft   { float:left; margin:0 1.5em 1em 0; }
.alignright  { float:right; margin:0 0 1em 1.5em; }
.aligncenter { display:block; margin:0 auto 1em; }
.wp-caption  { max-width:100%; }
.wp-caption-text { font-size:12px; color:var(--abu); margin-top:6px; }
