/*
Theme Name:        Paroki Sta. Sesilia
Theme URI:         https://parokistasesilia.or.id
Author:            Paroki Santa Sesilia
Author URI:        https://parokistasesilia.or.id
Description:       Tema resmi website Paroki Santa Sesilia - Keuskupan Agung Semarang. Desain modern, elegan, dan responsif.
Version:           2.0.0
Requires at least: 5.8
Tested up to:      6.5
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       paroki-sesilia
Tags:              church, catholic, parish, custom-menu, featured-images, footer-widgets, responsive-layout
*/

/* ── VARIABLES ─────────────────────────────── */
:root {
  --gold:       #b8922a;
  --gold-light: #d4a843;
  --gold-pale:  #f5ecd4;
  --navy:       #1a2744;
  --navy-deep:  #0f1a2e;
  --cream:      #faf8f3;
  --white:      #ffffff;
  --gray:       #555555;
  --gray-light: #f0eeea;
  --border:     #e0d8c8;
  --shadow:     0 4px 24px rgba(26,39,68,0.10);
  --shadow-sm:  0 2px 10px rgba(26,39,68,0.08);
  --fd:         'Playfair Display', Georgia, serif;
  --fb:         'Source Sans 3', sans-serif;
  --wrap:       1180px;
  --radius:     8px;
}

/* ── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--fb); background: var(--cream); color: #333; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* ── TYPOGRAPHY ─────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--fd); color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(26px,4vw,46px); }
h2 { font-size: clamp(22px,3vw,34px); }
h3 { font-size: clamp(18px,2vw,22px); }
h4 { font-size: 18px; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.entry-content p { font-size: 16px; line-height: 1.85; margin-bottom: 1.25rem; }
.entry-content h2,.entry-content h3 { margin: 2rem 0 .75rem; }
.entry-content ul,.entry-content ol { padding-left:1.5rem; margin-bottom:1.25rem; }
.entry-content ul li { list-style:disc; margin-bottom:.4rem; }
.entry-content ol li { list-style:decimal; margin-bottom:.4rem; }
.entry-content blockquote { border-left:4px solid var(--gold); padding:14px 22px; margin:1.5rem 0; background:var(--gold-pale); border-radius:0 6px 6px 0; font-style:italic; }
.entry-content img { border-radius:var(--radius); margin:1.5rem 0; }
.entry-content a { color:var(--gold); text-decoration:underline; }

/* ── LAYOUT ─────────────────────────────────── */
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.container-fluid { max-width:100%; padding: 0 24px; }
.site-main { min-height: 60vh; }

/* has-sidebar = 2-col layout for inner pages */
.has-sidebar .page-wrap { display:grid; grid-template-columns:1fr 320px; gap:48px; align-items:start; }

/* ── BUTTONS ─────────────────────────────────── */
.btn { display:inline-block; padding:12px 28px; border-radius:4px; font-size:14px; font-weight:600; letter-spacing:.02em; transition:all .2s; cursor:pointer; border:none; line-height:1.4; }
.btn-primary { background:var(--gold); color:#fff; border:2px solid var(--gold); }
.btn-primary:hover { background:var(--gold-light); border-color:var(--gold-light); color:#fff; }
.btn-outline { background:transparent; color:#fff; border:2px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color:#fff; background:rgba(255,255,255,.1); color:#fff; }
.btn-outline-dark { background:transparent; color:var(--navy); border:2px solid var(--navy); }
.btn-outline-dark:hover { background:var(--navy); color:#fff; }
.btn-sm { padding:8px 18px; font-size:13px; }

/* ── TOP BAR ─────────────────────────────────── */
.topbar { background:var(--navy-deep); color:#ccc; font-size:13px; padding:6px 0; }
.topbar .container { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.topbar a { color:var(--gold-light); }
.topbar a:hover { text-decoration:underline; }

/* ── SITE HEADER ─────────────────────────────── */
.site-header { background:var(--white); border-bottom:3px solid var(--gold); position:sticky; top:0; z-index:500; box-shadow:var(--shadow-sm); transition:box-shadow .3s; }
.site-header.scrolled { box-shadow:0 4px 24px rgba(26,39,68,.15); }

.header-inner { display:flex; align-items:center; justify-content:space-between; height:76px; gap:20px; }

/* Logo */
.site-branding { display:flex; align-items:center; gap:12px; flex-shrink:0; text-decoration:none; }
.site-logo-img { width:58px; height:58px; border-radius:50%; object-fit:cover; flex-shrink:0; display:block; }
.site-logo-fallback { width:58px; height:58px; background:var(--navy); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:28px; color:#fff; flex-shrink:0; font-family:Georgia,serif; }
.branding-text { display:flex; flex-direction:column; }
.site-title { font-family:var(--fd); font-size:16px; font-weight:700; color:var(--navy); line-height:1.2; margin:0; }
.site-title a { color:var(--navy); }
.site-tagline { font-size:10.5px; color:var(--gold); letter-spacing:.05em; text-transform:uppercase; font-weight:600; margin-top:1px; }

/* ── PRIMARY NAV ─────────────────────────────── */
.main-navigation { display:flex; align-items:center; }
.main-navigation ul { display:flex; gap:2px; list-style:none; margin:0; padding:0; }
.main-navigation > div > ul > li > a { display:block; padding:8px 13px; font-size:13.5px; font-weight:500; color:var(--navy); border-radius:4px; transition:background .2s,color .2s; white-space:nowrap; letter-spacing:.01em; }
.main-navigation > div > ul > li > a:hover,
.main-navigation > div > ul > li.current-menu-item > a,
.main-navigation > div > ul > li.current-menu-parent > a { background:var(--gold-pale); color:var(--gold); }

.main-navigation li.menu-item-has-children { position:relative; }
.main-navigation li.menu-item-has-children > a::after { content:' ▾'; font-size:9px; opacity:.7; }
.main-navigation .sub-menu { display:none; position:absolute; top:100%; left:0; background:var(--white); min-width:210px; border:1px solid var(--border); border-top:3px solid var(--gold); border-radius:0 0 8px 8px; box-shadow:var(--shadow); z-index:600; padding:4px 0; }
.main-navigation .sub-menu li a { display:block; padding:10px 18px; font-size:13.5px; color:var(--navy); border-bottom:1px solid var(--gray-light); transition:background .15s,color .15s; }
.main-navigation .sub-menu li:last-child a { border-bottom:none; }
.main-navigation .sub-menu li a:hover { background:var(--gold-pale); color:var(--gold); }
.main-navigation li.menu-item-has-children:hover > .sub-menu { display:block; }

.menu-toggle { display:none; background:transparent; border:1px solid var(--border); border-radius:4px; padding:8px 10px; cursor:pointer; font-size:20px; color:var(--navy); }

/* ── HERO ────────────────────────────────────── */
.hero-banner { position:relative; background:var(--navy-deep); min-height:560px; display:flex; align-items:center; overflow:hidden; }
.hero-bg-image { position:absolute; inset:0; background-size:cover; background-position:center; }
.hero-overlay { position:absolute; inset:0; background:linear-gradient(135deg,rgba(15,26,46,.95) 0%,rgba(26,39,68,.78) 55%,rgba(15,26,46,.88) 100%); }
.hero-pattern { position:absolute; inset:0; background:repeating-linear-gradient(45deg,transparent,transparent 40px,rgba(184,146,42,.025) 40px,rgba(184,146,42,.025) 80px); }
.hero-cross-deco { position:absolute; right:6%; top:50%; transform:translateY(-50%); opacity:.05; font-size:260px; color:var(--gold); font-family:Georgia,serif; line-height:1; pointer-events:none; user-select:none; }
.hero-content { position:relative; z-index:2; width:100%; padding:80px 0; }
.hero-eyebrow { display:inline-block; background:var(--gold); color:#fff; font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; padding:5px 14px; border-radius:2px; margin-bottom:18px; }
.hero-title { font-family:var(--fd); font-size:clamp(30px,5vw,56px); font-weight:700; color:#fff; line-height:1.13; max-width:680px; margin-bottom:16px; }
.hero-title em { font-style:italic; color:var(--gold-light); }
.hero-lead { color:rgba(255,255,255,.76); font-size:17px; max-width:520px; margin-bottom:32px; }
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; }

/* ── JADWAL MISA BAR ─────────────────────────── */
.jadwal-bar { background:var(--gold); }
.jadwal-bar-inner { display:flex; align-items:stretch; }
.jadwal-bar-label { background:var(--navy-deep); color:#fff; padding:14px 22px; font-size:11.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; display:flex; align-items:center; gap:8px; flex-shrink:0; }
.jadwal-bar-items { display:flex; flex-wrap:wrap; }
.jadwal-bar-item { padding:12px 20px; color:#fff; font-size:13px; display:flex; flex-direction:column; border-right:1px solid rgba(255,255,255,.25); gap:2px; }
.jadwal-bar-item strong { font-weight:700; font-size:12px; }
.jadwal-bar-item span { font-size:11.5px; opacity:.9; }

/* ── SECTION COMMONS ─────────────────────────── */
.section { padding:72px 0; }
.section-white { background:var(--white); }
.section-cream { background:var(--cream); }
.section-navy { background:var(--navy); }
.section-sm { padding:48px 0; }

.section-header { text-align:center; margin-bottom:48px; }
.section-header.left { text-align:left; }
.section-eyebrow { display:inline-block; color:var(--gold); font-size:11px; font-weight:700; letter-spacing:.15em; text-transform:uppercase; margin-bottom:10px; }
.section-header h2 { margin-bottom:0; }
.section-header p { color:var(--gray); font-size:15.5px; max-width:520px; margin:12px auto 0; }
.gold-divider { width:54px; height:3px; background:var(--gold); margin:14px auto 0; border-radius:2px; }
.section-header.left .gold-divider { margin-left:0; }

/* ── 2-COL CARD GRID (Kegiatan + Pengumuman) ─── */
.info-two-col { display:grid; grid-template-columns:1fr 1fr; gap:28px; }

/* ── KEGIATAN CARDS ──────────────────────────── */
.event-card { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:box-shadow .2s,transform .2s; display:flex; flex-direction:column; }
.event-card:hover { box-shadow:var(--shadow); transform:translateY(-2px); }
.event-card-header { background:var(--navy); padding:14px 18px; display:flex; align-items:center; gap:14px; }
.event-date-badge { background:var(--gold); color:#fff; border-radius:6px; width:52px; height:54px; flex-shrink:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.event-date-badge .day { font-size:20px; font-weight:700; line-height:1; }
.event-date-badge .mon { font-size:10px; text-transform:uppercase; letter-spacing:.05em; opacity:.9; }
.event-card-title { font-family:var(--fd); font-size:15px; color:#fff; line-height:1.3; margin:0; }
.event-card-body { padding:14px 18px; flex:1; }
.event-card-body p { font-size:13.5px; color:var(--gray); }
.event-tag { display:inline-block; background:var(--gold-pale); color:var(--gold); font-size:11px; font-weight:600; padding:2px 10px; border-radius:20px; margin-top:8px; }

/* ── PENGUMUMAN CARDS ────────────────────────── */
.announce-card { background:var(--white); border:1px solid var(--border); border-left:4px solid var(--gold); border-radius:0 var(--radius) var(--radius) 0; padding:16px 18px; display:flex; gap:14px; align-items:flex-start; transition:box-shadow .2s; }
.announce-card:hover { box-shadow:var(--shadow-sm); }
.announce-icon { width:40px; height:40px; background:var(--gold-pale); border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:18px; }
.announce-body h4 { font-size:14.5px; font-weight:600; color:var(--navy); margin-bottom:4px; line-height:1.3; }
.announce-body h4 a { color:var(--navy); }
.announce-body h4 a:hover { color:var(--gold); }
.announce-body p { font-size:13px; color:var(--gray); }
.announce-date { font-size:11.5px; color:#aaa; margin-top:4px; }

/* ── SECTION PANELS (2-col wrapper) ─────────── */
.two-panels { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.panel-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.panel-header h3 { font-size:20px; color:var(--navy); }
.panel-items { display:flex; flex-direction:column; gap:12px; }

/* ── NEWS CARDS ──────────────────────────────── */
.news-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:28px; }
.news-card { background:var(--white); border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); transition:box-shadow .25s,transform .25s; display:flex; flex-direction:column; }
.news-card:hover { box-shadow:var(--shadow); transform:translateY(-3px); }
.news-card-thumb { height:200px; overflow:hidden; background:var(--navy); position:relative; }
.news-card-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.news-card:hover .news-card-thumb img { transform:scale(1.04); }
.news-card-thumb .no-thumb { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:48px; }
.cat-badge { position:absolute; top:12px; left:12px; background:var(--gold); color:#fff; font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:3px 10px; border-radius:2px; }
.news-card-body { padding:18px 20px 22px; flex:1; display:flex; flex-direction:column; }
.post-meta { display:flex; gap:12px; flex-wrap:wrap; font-size:12px; color:#888; margin-bottom:10px; }
.news-card-body h3 { font-size:17px; color:var(--navy); line-height:1.35; margin-bottom:10px; }
.news-card-body h3 a { color:var(--navy); }
.news-card-body h3 a:hover { color:var(--gold); }
.news-card-body p { font-size:14px; color:var(--gray); flex:1; }
.read-more { display:inline-block; margin-top:12px; color:var(--gold); font-size:13px; font-weight:700; }
.read-more:hover { text-decoration:underline; color:var(--gold); }

/* ── STATS BAR ───────────────────────────────── */
.stats-bar { background:var(--gold); padding:44px 0; }
.stats-grid { display:grid; grid-template-columns:repeat(6,1fr); text-align:center; gap:0; }
.stat-item { padding:16px 12px; border-right:1px solid rgba(255,255,255,.3); }
.stat-item:last-child { border-right:none; }
.stat-number { font-family:var(--fd); font-size:36px; font-weight:700; color:#fff; line-height:1; }
.stat-label { font-size:11px; color:rgba(255,255,255,.85); text-transform:uppercase; letter-spacing:.07em; margin-top:5px; }

/* ── PASTOR SECTION ──────────────────────────── */
.pastor-section { background:var(--navy); padding:72px 0; }
.pastor-grid { display:grid; grid-template-columns:1fr 2fr; gap:60px; align-items:center; }
.pastor-photo-wrap { width:100%; aspect-ratio:3/4; border-radius:var(--radius); overflow:hidden; border:3px solid var(--gold); background:rgba(255,255,255,.06); display:flex; align-items:center; justify-content:center; font-size:80px; position:relative; }
.pastor-photo-wrap img { width:100%; height:100%; object-fit:cover; }
.pastor-content .section-eyebrow { color:var(--gold-light); }
.pastor-content h2 { color:#fff; font-size:30px; margin-bottom:4px; }
.pastor-title-label { color:var(--gold-light); font-size:15px; margin-bottom:20px; }
.pastor-content p { color:rgba(255,255,255,.78); font-size:15px; margin-bottom:14px; }

/* ── GALLERY — Album Grid ────────────────────── */
.album-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:20px; }
.album-card { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:box-shadow .2s,transform .2s; }
.album-card:hover { box-shadow:var(--shadow); transform:translateY(-3px); }
.album-thumb { height:180px; overflow:hidden; background:var(--navy); position:relative; display:flex; align-items:center; justify-content:center; font-size:44px; }
.album-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.album-card:hover .album-thumb img { transform:scale(1.05); }
.album-thumb-overlay { position:absolute; inset:0; background:rgba(15,26,46,0); transition:background .2s; display:flex; align-items:center; justify-content:center; }
.album-card:hover .album-thumb-overlay { background:rgba(15,26,46,.45); }
.album-thumb-overlay span { color:#fff; font-size:13px; font-weight:600; opacity:0; transition:opacity .2s; }
.album-card:hover .album-thumb-overlay span { opacity:1; }
.album-info { padding:14px 16px; }
.album-info h4 { font-size:15px; color:var(--navy); margin-bottom:4px; line-height:1.35; }
.album-info h4 a { color:var(--navy); }
.album-info h4 a:hover { color:var(--gold); }
.album-meta { font-size:12px; color:#888; display:flex; gap:10px; }
.album-year-tag { display:inline-block; background:var(--gold-pale); color:var(--gold); font-size:11px; font-weight:700; padding:2px 10px; border-radius:20px; margin-bottom:8px; }

/* ── SIDEBAR WIDGETS ─────────────────────────── */
.widget-area { display:flex; flex-direction:column; gap:24px; }
.widget { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); padding:22px; }
.widget-title { font-family:var(--fd); font-size:17px; color:var(--navy); border-bottom:2px solid var(--gold); padding-bottom:10px; margin-bottom:16px; }
.widget ul { list-style:none; }
.widget ul li { border-bottom:1px solid var(--gray-light); padding:8px 0; font-size:14px; }
.widget ul li:last-child { border-bottom:none; }
.widget ul li a { color:var(--navy); }
.widget ul li a:hover { color:var(--gold); }
.widget-contact p { font-size:14px; color:var(--gray); margin-bottom:10px; padding-left:26px; position:relative; }
.widget-contact p .icon { position:absolute; left:0; top:2px; }
.widget-contact strong { color:var(--navy); }
.social-btns { display:flex; gap:8px; flex-wrap:wrap; }
.social-btn { padding:7px 13px; background:var(--navy); color:#fff; border-radius:4px; font-size:12.5px; font-weight:500; transition:background .2s; display:inline-block; }
.social-btn:hover { background:var(--gold); color:#fff; }
.widget-verse { font-family:var(--fd); font-style:italic; color:#555; font-size:15px; line-height:1.75; }
.widget-verse-ref { font-size:13px; color:#aaa; margin-top:10px; font-style:normal; font-family:var(--fb); }

/* ── SINGLE / PAGE ───────────────────────────── */
.page-hero { background:var(--navy); padding:52px 0 44px; position:relative; overflow:hidden; }
.page-hero::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg,rgba(15,26,46,.82) 0%,rgba(26,39,68,.92) 100%); }
.page-hero .container { position:relative; z-index:2; text-align:center; }
.page-hero h1 { color:#fff; margin-bottom:12px; }
.breadcrumb { display:flex; justify-content:center; gap:8px; font-size:13px; color:rgba(255,255,255,.6); flex-wrap:wrap; }
.breadcrumb a { color:var(--gold-light); }
.breadcrumb span { color:rgba(255,255,255,.5); }
.breadcrumb span::before { content:'/ '; margin-right:4px; }

.post-content-wrap { padding:56px 0; }
.entry-header { margin-bottom:28px; padding-bottom:20px; border-bottom:1px solid var(--border); }
.entry-title { font-size:clamp(22px,3vw,34px); margin-bottom:12px; }
.entry-meta { display:flex; gap:16px; flex-wrap:wrap; font-size:13px; color:#888; }

/* ── PAGINATION ──────────────────────────────── */
.pagination { display:flex; justify-content:center; gap:8px; margin-top:48px; flex-wrap:wrap; }
.pagination .page-numbers { display:flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:6px; font-size:14px; font-weight:500; color:var(--navy); border:1px solid var(--border); transition:all .2s; }
.pagination .page-numbers:hover, .pagination .current { background:var(--gold); color:#fff; border-color:var(--gold); }

/* ── FORMS ───────────────────────────────────── */
.paroki-form input[type="text"],
.paroki-form input[type="email"],
.paroki-form input[type="tel"],
.paroki-form textarea,
.paroki-form select { width:100%; padding:12px 16px; border:1px solid var(--border); border-radius:6px; font-size:15px; color:#333; background:#fff; transition:border-color .2s; }
.paroki-form input:focus, .paroki-form textarea:focus, .paroki-form select:focus { outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(184,146,42,.12); }
.paroki-form label { display:block; font-size:14px; font-weight:600; margin-bottom:6px; color:var(--navy); }
.paroki-form .form-group { margin-bottom:20px; }
.paroki-form textarea { resize:vertical; min-height:140px; }

/* ── FOOTER ──────────────────────────────────── */
.site-footer { background:var(--navy-deep); color:rgba(255,255,255,.72); padding:60px 0 0; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1.5fr; gap:48px; padding-bottom:48px; }
.footer-brand .footer-name { font-family:var(--fd); font-size:20px; color:#fff; margin-bottom:8px; display:block; }
.footer-brand p { font-size:14px; line-height:1.75; margin-bottom:8px; }
.footer-diocese { font-size:12px; color:rgba(255,255,255,.4); }
.footer-social { display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
.footer-col h4 { color:var(--gold-light); font-size:11.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; margin-bottom:16px; font-family:var(--fb); }
.footer-col ul li { margin-bottom:8px; }
.footer-col ul li a { font-size:13.5px; color:rgba(255,255,255,.65); transition:color .2s; }
.footer-col ul li a:hover { color:var(--gold-light); }
.footer-jadwal p { font-size:13.5px; margin-bottom:8px; color:rgba(255,255,255,.72); }
.footer-jadwal strong { color:var(--gold-light); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); padding:18px 0; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; font-size:12.5px; color:rgba(255,255,255,.38); }
.footer-bottom a { color:var(--gold); }

/* Back to top */
.back-to-top { position:fixed; bottom:24px; right:24px; background:var(--gold); color:#fff; width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px; box-shadow:var(--shadow); cursor:pointer; z-index:999; transition:background .2s,opacity .3s; opacity:0; pointer-events:none; text-decoration:none; border:none; }
.back-to-top.visible { opacity:1; pointer-events:auto; }
.back-to-top:hover { background:var(--gold-light); color:#fff; }

/* ── VIEW ALL LINK ───────────────────────────── */
.view-all { font-size:13px; color:var(--gold); font-weight:700; }
.view-all:hover { text-decoration:underline; color:var(--gold); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width:1024px) {
  .footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
  .stats-grid { grid-template-columns:repeat(3,1fr); }
  .pastor-grid { grid-template-columns:1fr; gap:32px; }
  .has-sidebar .page-wrap { grid-template-columns:1fr; }
}
@media (max-width:768px) {
  .topbar .container { flex-direction:column; gap:4px; font-size:12px; }
  .menu-toggle { display:flex; align-items:center; }
  .main-navigation { display:none; width:100%; }
  .main-navigation.toggled { display:block; position:absolute; top:76px; left:0; right:0; background:var(--white); border-top:3px solid var(--gold); box-shadow:var(--shadow); z-index:400; padding:8px 0 16px; }
  .main-navigation.toggled ul { flex-direction:column; gap:0; }
  .main-navigation.toggled > div > ul > li > a { padding:12px 20px; border-radius:0; }
  .main-navigation .sub-menu { position:static; box-shadow:none; border:none; border-left:3px solid var(--gold-pale); margin-left:20px; display:none; border-radius:0; padding:0; }
  .main-navigation li.menu-item-has-children.open > .sub-menu { display:block; }
  .header-inner { position:relative; }
  .info-two-col { grid-template-columns:1fr; }
  .two-panels { grid-template-columns:1fr; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .jadwal-bar-items { flex-direction:column; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .footer-bottom { flex-direction:column; text-align:center; }
}
@media (max-width:480px) {
  .hero-actions { flex-direction:column; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .news-grid { grid-template-columns:1fr; }
  .album-grid { grid-template-columns:1fr 1fr; }
  section { padding:44px 0; }
}

/* ── GALERI VIDEO / YOUTUBE FEED ─────────────── */
.paroki-video-section { background: var(--cream); }

/* Smash Balloon override — clean & pro look */
.paroki-yt-wrap { margin: 0 -4px; }
.paroki-yt-wrap .ctf-feed-will-display { border-radius: var(--radius); overflow: hidden; }
.paroki-yt-wrap .yt-feed-video-container { border-radius: 8px !important; overflow: hidden !important; }

/* Custom YouTube Grid — fallback & styling layer */
.yt-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.yt-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow .25s, transform .25s;
  cursor: pointer;
}
.yt-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.yt-thumb {
  position: relative;
  height: 190px;
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.yt-thumb-icon {
  font-size: 52px;
  opacity: .55;
  transition: opacity .2s;
}
.yt-card:hover .yt-thumb-icon { opacity: .35; }

/* Red YouTube Play Button */
.yt-play-btn {
  position: absolute;
  width: 58px; height: 40px;
  background: #ff0000;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(255,0,0,.45);
  transition: transform .2s, background .2s;
}
.yt-card:hover .yt-play-btn { transform: scale(1.12); background: #cc0000; }

.yt-card-body { padding: 14px 16px 18px; }
.yt-title {
  font-size: 14px; font-weight: 600;
  color: var(--navy); line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yt-meta {
  display: flex; gap: 12px;
  font-size: 12px; color: #888;
  flex-wrap: wrap;
}

/* Plugin not installed notice */
.yt-plugin-notice {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid #ff0000;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px;
  margin-bottom: 32px;
}
.yt-notice-inner {
  display: flex; gap: 20px; align-items: flex-start;
}
.yt-notice-icon {
  width: 52px; height: 36px;
  background: #ff0000; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  flex-shrink: 0;
}
.yt-notice-inner h4 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.yt-notice-inner p  { font-size: 14px; color: var(--gray); }

/* Smash Balloon Pro-like overrides */
.paroki-yt-wrap .ctf-header {
  background: var(--navy) !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  padding: 16px 20px !important;
}
.paroki-yt-wrap .ctf-header-text h3 { color: #fff !important; font-family: var(--fd) !important; font-size: 18px !important; }
.paroki-yt-wrap .ctf-header-subscribe a {
  background: #ff0000 !important; color: #fff !important;
  border-radius: 4px !important; font-weight: 600 !important;
  padding: 8px 16px !important; font-size: 13px !important;
}
.paroki-yt-wrap .ctf-item { border-radius: var(--radius) !important; overflow: hidden !important; border: 1px solid var(--border) !important; transition: box-shadow .25s, transform .25s !important; }
.paroki-yt-wrap .ctf-item:hover { box-shadow: var(--shadow) !important; transform: translateY(-3px) !important; }
.paroki-yt-wrap .ctf-item-content { padding: 14px 16px !important; }
.paroki-yt-wrap .ctf-item-title { font-family: var(--fd) !important; font-size: 15px !important; color: var(--navy) !important; font-weight: 600 !important; }
.paroki-yt-wrap .ctf-play-btn-icon { background: #ff0000 !important; border-radius: 8px !important; }
.paroki-yt-wrap .ctf-more { background: var(--gold) !important; color: #fff !important; border-radius: 4px !important; border: none !important; font-weight: 600 !important; padding: 12px 28px !important; margin-top: 28px !important; }
.paroki-yt-wrap .ctf-more:hover { background: var(--gold-light) !important; }

/* Stats bar dynamic column count */
.stats-grid { grid-template-columns: repeat(var(--stat-cols, 5), 1fr); }

@media (max-width: 768px) {
  .yt-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .yt-notice-inner { flex-direction: column; gap: 12px; }
}
@media (max-width: 480px) {
  .yt-preview-grid { grid-template-columns: 1fr; }
}

/* ── YOUTUBE FEED ─────────────────────────────── */
.paroki-video-section { background: var(--cream); }
.yt-feed-wrap { background: var(--white); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 2px 16px rgba(26,39,68,.07); }

/* Channel Header */
.yt-channel-header { background: var(--navy); padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.yt-channel-left { display: flex; align-items: center; gap: 14px; }
.yt-channel-avatar { width: 52px; height: 52px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; flex-shrink: 0; font-family: Georgia, serif; overflow: hidden; }
.yt-channel-info h3 { font-family: var(--fd); font-size: 17px; color: #fff; margin-bottom: 2px; }
.yt-channel-info p { font-size: 12.5px; color: rgba(255,255,255,.6); }
.yt-subscribe-btn { background: #ff0000; color: #fff; padding: 10px 22px; border-radius: 24px; font-size: 13.5px; font-weight: 700; transition: background .2s, transform .15s; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.yt-subscribe-btn:hover { background: #cc0000; transform: scale(1.04); color: #fff; }

/* Dummy Video Grid */
.yt-dummy-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); }
.yt-card { background: var(--white); cursor: pointer; overflow: hidden; display: flex; flex-direction: column; transition: background .15s; }
.yt-card:hover { background: var(--cream); }
.yt-thumb { position: relative; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.yt-thumb-icon { font-size: 44px; opacity: .45; transition: opacity .2s, transform .3s; position: relative; z-index: 1; }
.yt-card:hover .yt-thumb-icon { opacity: .3; transform: scale(1.07); }
.yt-play-btn { position: absolute; z-index: 3; width: 56px; height: 40px; background: rgba(255,0,0,.88); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; transition: transform .2s, background .2s; box-shadow: 0 4px 18px rgba(255,0,0,.45); }
.yt-card:hover .yt-play-btn { transform: scale(1.12); background: #ff0000; }
.yt-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.82); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 3px; z-index: 3; }
.yt-card-body { padding: 12px 16px 16px; flex: 1; }
.yt-title { font-size: 13.5px; font-weight: 600; color: var(--navy); line-height: 1.45; margin-bottom: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-meta { display: flex; gap: 10px; font-size: 11.5px; color: #999; flex-wrap: wrap; }

/* Plugin tip bar */
.yt-plugin-tip { background: #fffbe6; border-top: 1px solid #ffe58f; padding: 13px 22px; display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: #7d6608; }
.yt-plugin-tip code { background: rgba(0,0,0,.07); padding: 1px 6px; border-radius: 3px; font-size: 12px; }

/* Plugin not installed notice */
.yt-placeholder-notice { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px 0; margin-bottom: 24px; }
.yt-notice-yt-icon { width: 52px; height: 36px; background: #ff0000; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; flex-shrink: 0; }
.yt-placeholder-notice h4 { font-size: 16px; color: var(--navy); margin-bottom: 5px; }
.yt-placeholder-notice p  { font-size: 14px; color: var(--gray); }

/* Smash Balloon plugin style overrides */
.yt-shortcode-wrap .ctf-header { background: transparent !important; padding: 0 0 16px !important; border-bottom: 1px solid var(--border) !important; margin-bottom: 20px !important; }
.yt-shortcode-wrap .ctf-header-subscribe a { background: #ff0000 !important; color: #fff !important; border-radius: 24px !important; font-weight: 700 !important; padding: 9px 20px !important; font-size: 13px !important; }
.yt-shortcode-wrap .ctf-item { border-radius: var(--radius) !important; overflow: hidden !important; border: 1px solid var(--border) !important; transition: box-shadow .25s, transform .25s !important; }
.yt-shortcode-wrap .ctf-item:hover { box-shadow: var(--shadow) !important; transform: translateY(-3px) !important; }
.yt-shortcode-wrap .ctf-item-title { font-family: var(--fd) !important; font-size: 14px !important; color: var(--navy) !important; }
.yt-shortcode-wrap .ctf-play-btn-icon { background: #ff0000 !important; border-radius: 8px !important; box-shadow: 0 4px 16px rgba(255,0,0,.4) !important; }
.yt-shortcode-wrap .ctf-more { background: var(--gold) !important; color: #fff !important; border-radius: 4px !important; border: none !important; font-weight: 600 !important; padding: 12px 28px !important; margin-top: 28px !important; transition: background .2s !important; }
.yt-shortcode-wrap .ctf-more:hover { background: var(--gold-light) !important; }

/* Visitor stat smaller font */
.stat-label { font-size: 10px !important; }

@media (max-width: 768px) {
  .yt-dummy-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .yt-dummy-grid { grid-template-columns: 1fr; }
  .yt-channel-header { flex-direction: column; align-items: flex-start; }
}

/* ════════════════════════════════════════════
   POP-UP NOTIFIKASI
   ════════════════════════════════════════════ */
#paroki-popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,16,32,.72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
  animation: popupFadeIn .35s ease;
}
#paroki-popup-overlay.hidden { display: none; }

@keyframes popupFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popupSlideUp {
  from { transform: translateY(28px) scale(.96); opacity: 0; }
  to   { transform: translateY(0) scale(1);      opacity: 1; }
}

.paroki-popup {
  position: relative;
  background: var(--white);
  border-radius: 14px;
  max-width: 520px; width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(10,16,32,.42);
  animation: popupSlideUp .4s cubic-bezier(.22,1,.36,1);
}

/* Top accent bar by theme */
.paroki-popup::before {
  content: '';
  display: block; height: 5px;
  background: var(--popup-accent, var(--gold));
}
.paroki-popup--gold  { --popup-accent: var(--gold); }
.paroki-popup--red   { --popup-accent: #c0392b; }
.paroki-popup--navy  { --popup-accent: var(--navy); }

/* Close button */
.popup-close {
  position: absolute; top: 14px; right: 16px;
  background: var(--gray-light); border: none;
  width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; font-size: 14px; color: #666;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s; z-index: 2;
  line-height: 1;
}
.popup-close:hover { background: #e0e0e0; color: #333; }

/* Badge */
.popup-badge {
  display: inline-flex; align-items: center;
  background: var(--popup-accent, var(--gold));
  color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 0 0 8px 8px;
  margin: 0 0 0 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

/* Cross deco */
.popup-cross-deco {
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 120px; color: var(--popup-accent, var(--gold));
  opacity: .05; font-family: Georgia, serif;
  pointer-events: none; user-select: none; line-height: 1;
}

/* Body */
.popup-body { padding: 22px 28px 18px; position: relative; z-index: 1; }
.popup-title {
  font-family: var(--fd); font-size: 22px; color: var(--navy);
  margin-bottom: 12px; line-height: 1.3;
  padding-right: 24px; /* avoid close btn overlap */
}
.popup-desc { font-size: 15px; color: var(--gray); line-height: 1.75; }
.popup-desc p { margin-bottom: .6rem; }
.popup-desc p:last-child { margin-bottom: 0; }

/* Actions */
.popup-actions {
  padding: 16px 28px 24px;
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  border-top: 1px solid var(--border);
}
.popup-btn-primary {
  display: inline-block;
  background: var(--popup-accent, var(--gold));
  color: #fff; padding: 11px 24px;
  border-radius: 4px; font-size: 14px; font-weight: 600;
  transition: opacity .2s, transform .15s;
  border: none; cursor: pointer;
  white-space: nowrap;
}
.popup-btn-primary:hover { opacity: .88; transform: scale(1.02); color: #fff; }
.popup-btn-dismiss {
  background: none; border: none;
  font-size: 13px; color: #999; cursor: pointer;
  padding: 0; transition: color .2s;
  text-align: left; line-height: 1.45;
}
.popup-btn-dismiss:hover { color: #555; }

/* Mobile popup */
@media (max-width: 540px) {
  .paroki-popup { border-radius: 10px; }
  .popup-body   { padding: 18px 20px 14px; }
  .popup-actions{ padding: 14px 20px 20px; flex-direction: column; align-items: stretch; }
  .popup-btn-primary { text-align: center; }
  .popup-cross-deco  { display: none; }
}


/* ════════════════════════════════════════════
   YOUTUBE EMBED LAYOUT
   ════════════════════════════════════════════ */
.yt-section { background: var(--cream); }

.yt-embed-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* Main embed */
.yt-featured-wrap { display: flex; flex-direction: column; gap: 10px; }
.yt-embed-container {
  position: relative;
  width: 100%; padding-bottom: 56.25%; /* 16:9 */
  height: 0; overflow: hidden;
  border-radius: 10px;
  background: var(--navy-deep);
  box-shadow: 0 8px 32px rgba(15,26,46,.22);
}
.yt-embed-container iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 10px;
}
.yt-embed-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: rgba(255,255,255,.6);
  font-size: 14px; padding: 24px; text-align: center;
}
.yt-play-circle {
  width: 72px; height: 72px;
  background: rgba(255,0,0,.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  box-shadow: 0 4px 20px rgba(255,0,0,.5);
}
.yt-featured-label {
  font-size: 13px; color: var(--gray);
  padding: 0 4px;
}

/* Playlist sidebar */
.yt-playlist {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,39,68,.06);
}

.yt-playlist-item {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-light);
  transition: background .15s;
}
.yt-playlist-item:last-of-type { border-bottom: none; }
.yt-playlist-item:hover   { background: var(--gold-pale); }
.yt-playlist-item.active  { background: var(--gold-pale); border-left: 3px solid var(--gold); }

.yt-pl-thumb {
  position: relative;
  width: 100px; height: 56px;
  flex-shrink: 0; border-radius: 6px;
  overflow: hidden; background: var(--navy);
}
.yt-pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-pl-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35);
  color: #fff; font-size: 14px;
  opacity: 0; transition: opacity .2s;
}
.yt-playlist-item:hover .yt-pl-play { opacity: 1; }

.yt-pl-info  { flex: 1; min-width: 0; }
.yt-pl-title {
  font-size: 13px; font-weight: 600; color: var(--navy);
  line-height: 1.4; margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.yt-pl-sub { font-size: 11.5px; color: #999; }

/* Subscribe button */
.yt-subscribe-full {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; background: #ff0000; color: #fff;
  padding: 14px 20px; font-size: 14px; font-weight: 700;
  transition: background .2s;
  text-decoration: none;
}
.yt-subscribe-full:hover { background: #cc0000; color: #fff; }
.yt-sub-icon { font-size: 16px; }

/* Responsive */
@media (max-width: 860px) {
  .yt-embed-layout { grid-template-columns: 1fr; }
  .yt-playlist { flex-direction: row; overflow-x: auto; }
  .yt-playlist-item { flex-direction: column; align-items: flex-start; min-width: 160px; }
  .yt-pl-thumb { width: 100%; height: 90px; }
  .yt-subscribe-full { border-radius: 0 0 10px 10px; }
}


/* ════════════════════════════════════════════
   VISITOR STATS BAR (di atas footer)
   ════════════════════════════════════════════ */
.visitor-stats-bar {
  background: var(--navy);
  padding: 28px 0;
  border-top: 3px solid var(--gold);
}
.visitor-stats-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.visitor-stats-title {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.7);
  font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}
.visitor-stats-icon { font-size: 18px; }
.visitor-stats-grid {
  display: flex; align-items: center; gap: 0;
  flex: 1; flex-wrap: wrap;
}
.visitor-stat-item {
  padding: 8px 28px; text-align: center; flex: 1;
}
.visitor-stat-number {
  font-family: var(--fd);
  font-size: 28px; font-weight: 700;
  color: var(--gold-light); line-height: 1;
}
.visitor-stat-label {
  font-size: 11px; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .07em;
  margin-top: 4px;
}
.visitor-stat-divider {
  width: 1px; height: 44px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .visitor-stats-inner   { flex-direction: column; gap: 16px; align-items: flex-start; }
  .visitor-stats-grid    { width: 100%; justify-content: space-around; }
  .visitor-stat-item     { padding: 6px 12px; }
  .visitor-stat-number   { font-size: 22px; }
}
@media (max-width: 480px) {
  .visitor-stat-divider  { display: none; }
  .visitor-stats-grid    { grid-template-columns: repeat(2,1fr); display: grid; gap: 12px; }
  .visitor-stat-item     { text-align: center; }
}
