/*
Theme Name: St. Jude Catholic Church Masindi Catholic V3
Theme URI: https://example.com/
Author: OpenAI
Description: Editor-friendly Catholic WordPress theme for St. Jude Catholic Church Masindi. Built for block editing, responsive layouts, Mass times, donation button, live service, and church demo content.
Version: 3.0.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: stjude
*/

:root{
  --stjude-yellow:#f2c230;
  --stjude-red:#b92626;
  --stjude-deep-red:#8f1e1e;
  --stjude-white:#ffffff;
  --stjude-text:#2b2b2b;
  --stjude-muted:#6b6b6b;
  --stjude-soft:#fff9ea;
  --stjude-border:#e7dfc9;
  --stjude-shadow:0 10px 30px rgba(0,0,0,.08);
  --stjude-radius:18px;
  --stjude-container:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--stjude-text);background:#fff;line-height:1.65}
a{color:var(--stjude-red);text-decoration:none}
a:hover{color:var(--stjude-deep-red)}
img{max-width:100%;height:auto;display:block}
.container,.wp-block-group.alignwide,.wp-block-cover.alignwide,.wp-block-columns.alignwide{max-width:var(--stjude-container);margin-left:auto!important;margin-right:auto!important}
.site-header{position:sticky;top:0;z-index:50;background:#fff;box-shadow:0 2px 18px rgba(0,0,0,.06)}
.topbar{background:var(--stjude-yellow);color:#4b3200;font-size:14px}
.topbar .container{display:flex;gap:18px;justify-content:space-between;align-items:center;padding:10px 20px;flex-wrap:wrap}
.topbar-left,.topbar-right{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.topbar span,.topbar a{display:inline-flex;align-items:center;gap:8px;color:#4b3200}
.site-branding-row{padding:16px 20px}
.site-branding-row .container{display:flex;align-items:center;justify-content:space-between;gap:20px}
.site-branding{display:flex;align-items:center;gap:14px}
.site-logo img{max-height:72px;width:auto}
.site-title-wrap h1,.site-title-wrap p{margin:0}
.site-title{font-size:clamp(24px,3vw,34px);font-weight:700;color:#7b1717}
.site-tagline{font-size:14px;color:var(--stjude-muted)}
.primary-nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.primary-nav ul{display:flex;list-style:none;padding:0;margin:0;gap:18px;align-items:center;flex-wrap:wrap}
.primary-nav li{margin:0}
.primary-nav a{font-weight:600;color:#3c3c3c}
.primary-nav a:hover,.primary-nav .current-menu-item>a{color:var(--stjude-red)}
.cta-button, .wp-block-button__link, button, input[type=submit]{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--stjude-red);color:#fff;border:none;border-radius:999px;padding:14px 24px;font-weight:700;box-shadow:var(--stjude-shadow);transition:.25s ease}
.cta-button:hover,.wp-block-button__link:hover,button:hover,input[type=submit]:hover{transform:translateY(-2px);background:var(--stjude-deep-red);color:#fff}
.cta-button.alt{background:var(--stjude-yellow);color:#4b3200}
.cta-button.alt:hover{background:#dcae22;color:#3d2b00}
.site-content{padding:0 0 60px}
.entry-content{padding:0}
.entry-content > *:first-child{margin-top:0}
.entry-content > *:last-child{margin-bottom:0}
.section-shell,.page-shell{padding:50px 20px}
.page-shell .entry-header{max-width:var(--stjude-container);margin:0 auto 24px}
.page-shell .entry-title{margin:0;font-size:clamp(28px,4vw,42px);color:#7b1717}
.page-shell .entry-content{max-width:var(--stjude-container);margin:0 auto}
.site-footer{background:#7b1717;color:#fff;padding:40px 20px 30px;margin-top:30px}
.site-footer .container{display:flex;justify-content:space-between;gap:20px;align-items:center;flex-wrap:wrap}
.site-footer p,.site-footer a{margin:0;color:#fff}

/* block editor styling */
.editor-styles-wrapper{font-family:Arial,Helvetica,sans-serif}
.editor-styles-wrapper .stjude-section,
.stjude-section{padding:54px 0}
.editor-styles-wrapper .stjude-soft,
.stjude-soft{background:var(--stjude-soft)}
.stjude-card,.editor-styles-wrapper .stjude-card{background:#fff;border:1px solid var(--stjude-border);border-radius:var(--stjude-radius);padding:26px;box-shadow:var(--stjude-shadow);height:100%}
.stjude-card h3,.stjude-card h4{margin-top:0;color:#7b1717}
.stjude-grid-4,.stjude-grid-3,.stjude-grid-2{display:grid;gap:24px}
.stjude-grid-4{grid-template-columns:repeat(4,1fr)}
.stjude-grid-3{grid-template-columns:repeat(3,1fr)}
.stjude-grid-2{grid-template-columns:repeat(2,1fr)}
.stjude-hero-intro{max-width:720px;color:#fff}
.stjude-hero-intro h1{font-size:clamp(32px,5vw,58px);line-height:1.1;margin:0 0 14px}
.stjude-hero-intro p{font-size:18px;max-width:620px;margin:0 0 22px}
.stjude-slider{position:relative;min-height:580px;border-radius:0 0 30px 30px;overflow:hidden;background:#000}
.stjude-slider .stjude-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .7s ease, visibility .7s ease}
.stjude-slider .stjude-slide.is-active{opacity:1;visibility:visible;z-index:2}
.stjude-slider .wp-block-cover{min-height:580px;border-radius:0!important}
.stjude-slider-nav{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);z-index:4;display:flex;gap:10px}
.stjude-slider-nav button{width:12px;height:12px;border-radius:50%;padding:0;border:0;background:rgba(255,255,255,.55);box-shadow:none}
.stjude-slider-nav button.active{background:var(--stjude-yellow)}
.stjude-mass-time{font-size:28px;font-weight:800;color:#7b1717;line-height:1.1}
.stjude-section-title{text-align:center;max-width:760px;margin:0 auto 28px}
.stjude-section-title h2{margin:0 0 10px;font-size:clamp(26px,4vw,42px);color:#7b1717}
.stjude-section-title p{margin:0;color:var(--stjude-muted)}
.stjude-inline-badge{display:inline-block;background:var(--stjude-yellow);color:#4b3200;padding:8px 16px;border-radius:999px;font-weight:700;margin-bottom:12px}
.stjude-feature-list{padding-left:18px;margin:14px 0 0}
.stjude-feature-list li{margin-bottom:8px}
.stjude-live-embed iframe,.stjude-map-embed iframe{width:100%;min-height:360px;border:0;border-radius:var(--stjude-radius);box-shadow:var(--stjude-shadow)}
.stjude-saint-image img,.stjude-gallery-image img{border-radius:var(--stjude-radius);box-shadow:var(--stjude-shadow);width:100%;object-fit:cover}
.stjude-news-list .wp-block-latest-posts__featured-image img{border-radius:14px}
.stjude-splash{position:fixed;inset:0;background:linear-gradient(135deg,#7b1717,#b92626);display:flex;align-items:center;justify-content:center;flex-direction:column;color:#fff;z-index:9999;transition:opacity .45s ease, visibility .45s ease}
.stjude-splash.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
.stjude-splash-logo{max-width:130px;background:#fff;border-radius:50%;padding:10px;box-shadow:var(--stjude-shadow);margin-bottom:18px}
.stjude-splash-title{font-size:24px;font-weight:700;text-align:center;padding:0 20px}
.stjude-splash-sub{opacity:.9;margin-top:8px}
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.post-card{background:#fff;border:1px solid var(--stjude-border);border-radius:var(--stjude-radius);overflow:hidden;box-shadow:var(--stjude-shadow);height:100%}
.post-card .post-card-body{padding:20px}
.post-card h3{margin:0 0 10px;font-size:22px}
.post-card .meta{font-size:13px;color:var(--stjude-muted);margin-bottom:8px}
.wp-block-columns.is-layout-flex{gap:24px}
.wp-block-group.has-background{border-radius:var(--stjude-radius)}

/* editor tweaks */
.editor-styles-wrapper .wp-block{max-width:var(--stjude-container)}
.editor-styles-wrapper .wp-block[data-align="wide"],
.editor-styles-wrapper .wp-block.alignwide{max-width:var(--stjude-container)}
.editor-styles-wrapper .wp-block[data-align="full"],
.editor-styles-wrapper .wp-block.alignfull{max-width:none}

@media (max-width:1024px){
  .stjude-grid-4{grid-template-columns:repeat(2,1fr)}
  .stjude-grid-3,.post-grid{grid-template-columns:repeat(2,1fr)}
  .site-branding-row .container{align-items:flex-start;flex-direction:column}
}
@media (max-width:768px){
  .stjude-grid-4,.stjude-grid-3,.stjude-grid-2,.post-grid{grid-template-columns:1fr}
  .primary-nav ul{gap:12px}
  .stjude-slider,.stjude-slider .wp-block-cover{min-height:460px}
  .topbar .container{justify-content:center}
  .site-footer .container{justify-content:center;text-align:center}
}
