/*
Theme Name: VolRada
Theme URI: https://unia.gives/
Author: Громадська організація «УНІА»
Description: Швидка SEO-тема WordPress для Ради волонтерів при Чернівецькій ОВА: новини, OG, JSON-LD, короткі URL, оптимізовані блоки та легша головна.
Version: 8.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: volrada
*/
:root{
  --bg:#eef4fb; --surface:#ffffff; --surface-2:#eaf2fb; --text:#11253e; --muted:#5b6e86;
  --accent:#1d4f91; --accent-dark:#143a6d; --accent-2:#2d6bc0; --border:#d8e3f1;
  --shadow:0 14px 34px rgba(17,37,62,.08); --container:1180px;
}
*{box-sizing:border-box} html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--text);
  background:radial-gradient(circle at top right, rgba(45,107,192,.09), transparent 22%),
             radial-gradient(circle at top left, rgba(29,79,145,.08), transparent 18%),
             var(--bg);line-height:1.65}
a{color:var(--accent);text-decoration:none} a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}
.container{width:min(var(--container),calc(100% - 32px));margin:0 auto}
.site-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:78px}
.branding{display:flex;align-items:center;gap:14px;min-width:0}
.branding img{max-height:64px;width:auto}
.site-logo{width:50px;height:50px;border-radius:16px;background:linear-gradient(135deg,var(--accent),var(--accent-2));display:grid;place-items:center;color:#fff;font-weight:800;font-size:22px;box-shadow:var(--shadow)}
.branding-text{display:flex;flex-direction:column;min-width:0}
.site-title{font-size:1.06rem;font-weight:800;margin:0}.site-tagline{font-size:.9rem;color:var(--muted);margin-top:2px}
.main-nav ul{list-style:none;display:flex;gap:0;padding:0;margin:0;flex-wrap:wrap}
.main-nav li{position:relative}.main-nav > div > ul > li > a,.main-nav > ul > li > a{display:block;padding:12px 14px;font-weight:700;color:var(--text)}
.main-nav li ul{display:none;position:absolute;top:100%;left:0;min-width:230px;background:#fff;border:1px solid var(--border);box-shadow:var(--shadow);border-radius:14px;padding:8px 0;z-index:20}
.main-nav li:hover > ul{display:block}.main-nav li ul li a{display:block;padding:10px 14px;color:var(--text);white-space:nowrap}
.header-actions{display:flex;gap:10px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 18px;border-radius:14px;border:1px solid transparent;font-weight:700;transition:.2s ease;text-decoration:none!important}
.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-dark)}
.btn-secondary{background:var(--surface);color:var(--accent);border-color:var(--border)}
.hero{padding:54px 0 28px}
.hero-card{background:linear-gradient(135deg,var(--accent-dark) 0%, var(--accent) 46%, var(--accent-2) 100%);color:#fff;border-radius:32px;padding:40px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.hero-card:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg, rgba(255,255,255,.08), transparent 35%);pointer-events:none}
.hero-card:after{content:"";position:absolute;inset:auto -80px -80px auto;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.08)}
.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:center}
.hero h1{font-size:clamp(2rem,4vw,3.35rem);line-height:1.08;margin:0 0 14px}
.hero p{font-size:1.08rem;max-width:760px;color:rgba(255,255,255,.92);margin:0 0 24px}
.hero-panel{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:24px;padding:22px}
.hero-panel h3{margin:0 0 12px;font-size:1.1rem}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.section{padding:24px 0 12px}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}
.section-head h2{margin:0;font-size:1.7rem}.section-head p{margin:0;color:var(--muted)}
.grid{display:grid;gap:20px}.grid-2{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-4{grid-template-columns:repeat(4,1fr)}
.card{background:var(--surface);border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow);overflow:hidden}
.card-body{padding:22px}.card h3,.card h4{margin:0 0 10px}.card p{margin:0;color:var(--muted)}
.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.news-thumb{aspect-ratio:16/9;background:linear-gradient(135deg,#dce7f7,#f3f7fd)} .news-thumb img{width:100%;height:100%;object-fit:cover}
.page-header{padding:28px 0 12px}.page-header .card-body h1{margin:0 0 8px}
.content-wrap{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;padding-bottom:30px}
.sidebar .card + .card{margin-top:20px}.entry-content,.entry-summary{color:#253148}.entry-content h2,.entry-content h3{margin-top:28px}
.post-card-title{font-size:1.15rem}.site-main{min-height:50vh}.meta{font-size:.9rem;color:var(--muted)}
.pill-links{display:flex;gap:10px;flex-wrap:wrap}.pill-links a{padding:10px 14px;border-radius:999px;background:#eef3f9;border:1px solid var(--border);font-weight:700}
.footer{margin-top:40px;background:linear-gradient(135deg,#102845,#173b68);color:#dce6f4;padding:34px 0}
.footer a{color:#8fc3ff}.footer-grid{display:grid;grid-template-columns:1.3fr .8fr .8fr;gap:24px}.footer h4{margin:0 0 12px;color:#fff}
.footer-note{margin:.4rem 0 0 0;line-height:1.55}.mobile-nav-toggle{display:none}
@media (max-width:980px){
  .hero-grid,.grid-2,.grid-3,.grid-4,.footer-grid,.content-wrap,.news-grid{grid-template-columns:1fr}
  .header-inner{padding:12px 0;align-items:flex-start;flex-wrap:wrap}
  .site-header .container{position:relative}
  .mobile-nav-toggle{display:inline-flex}
  .main-nav{display:none;width:100%;padding-top:10px;order:3}
  .main-nav.is-open{display:block}
  .main-nav ul{display:block}
  .main-nav li ul{display:block;position:static;border:none;box-shadow:none;padding-left:12px;background:transparent}
  .hero-card{padding:28px}
  .header-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .header-actions .btn{width:100%}
}
@media (max-width:640px){
  .container{width:min(var(--container),calc(100% - 20px))}
  .hero h1{font-size:2rem}
  .hero-actions{flex-direction:column}
  .hero-actions .btn,.header-actions .btn,.mobile-nav-toggle{width:100%}
  .branding img{max-height:52px}
  .site-title{font-size:1rem}
}

.front-news-card .card-body{padding:16px 18px}
.front-news-card .post-card-title{margin:0;font-size:1.08rem;line-height:1.28}
.front-news-card p,.front-news-card .meta{display:none}
.single-gallery-strip{display:flex;gap:10px;overflow-x:auto;padding:6px 2px 10px;scrollbar-width:thin}
.single-gallery-strip::-webkit-scrollbar{height:8px}
.single-gallery-strip img{width:140px;height:95px;object-fit:cover;border-radius:12px;border:1px solid var(--border);flex:0 0 auto}

.share-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}
.share-btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;background:#eef3f9;border:1px solid var(--border);font-weight:700;color:var(--accent)!important;text-decoration:none!important}
.after-article-news{margin-top:26px;padding-top:8px}
.after-article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.sidebar-news-list{display:grid;gap:14px}
.sidebar-news-item{display:grid;grid-template-columns:100px 1fr;gap:12px;align-items:start}
.sidebar-news-item img{width:100%;height:72px;object-fit:cover;border-radius:12px}
.sidebar-news-item .thumb-fallback{width:100%;height:72px;border-radius:12px;background:linear-gradient(135deg,#dce7f7,#f3f7fd)}
.sidebar-news-item a{font-weight:700;color:var(--text)!important;text-decoration:none}
.sidebar-news-item a:hover{text-decoration:underline!important}
@media (max-width:980px){.after-article-grid{grid-template-columns:1fr}}

/* V3.4 refinements */
.branding img,.custom-logo{max-height:90px!important;width:auto!important}
.site-logo{width:70px;height:70px;font-size:28px}
.share-row{gap:12px}
.share-btn{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff!important;border-color:transparent;box-shadow:0 10px 22px rgba(29,79,145,.18)}
.share-btn:hover{filter:brightness(.95);text-decoration:none!important}
.after-article-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important}
.after-article-grid > *{min-width:0}
.front-news-card .news-thumb img{width:100%;height:100%;object-fit:cover}
.home-flex-blocks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.home-builder-slot{margin-top:22px}
.footer-brand{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.footer-brand img{max-height:86px;width:auto;display:block}
.footer-brand-text{min-width:0}
@media (max-width:980px){
  .branding img,.custom-logo{max-height:72px!important}
  .site-logo{width:58px;height:58px;font-size:24px}
  .after-article-grid{grid-template-columns:1fr!important}
  .home-flex-blocks{grid-template-columns:1fr}
  .footer-brand img{max-height:70px}
}

/* V3.5 footer/logo/sidebar polish */
.branding img,.custom-logo{max-height:90px!important;width:auto!important}
.site-logo{width:70px;height:70px;font-size:28px}
.share-row{gap:12px}
.share-btn{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff!important;border-color:transparent;box-shadow:0 10px 22px rgba(29,79,145,.18)}
.share-btn:hover{filter:brightness(.95);text-decoration:none!important}
.after-article-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important}
.after-article-grid > *{min-width:0}
.home-flex-blocks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.home-builder-slot{margin-top:22px}
.footer-contacts-logo{margin-top:16px}
.footer-contacts-logo img{max-height:104px;width:auto;display:block}
.news-thumb{position:relative;overflow:hidden}
.news-thumb .news-watermark{position:absolute;right:10px;bottom:10px;max-width:28%;max-height:28%;width:auto;height:auto;opacity:.92;filter:drop-shadow(0 4px 10px rgba(0,0,0,.2))}
.sidebar-news-list{display:grid;gap:14px}
.sidebar-news-item{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
.sidebar-thumb-wrap{position:relative;width:100%;aspect-ratio:16/9}
.sidebar-news-item img{width:100%!important;height:100%!important;object-fit:cover;border-radius:12px}
.sidebar-news-item .thumb-fallback{width:100%!important;height:100%!important;border-radius:12px;background:linear-gradient(135deg,#dce7f7,#f3f7fd)}
.sidebar-news-item .news-watermark{position:absolute;right:10px;bottom:10px;max-width:32%;max-height:32%;width:auto;height:auto;opacity:.92;filter:drop-shadow(0 4px 10px rgba(0,0,0,.2))}
.sidebar-news-item a{font-weight:700;color:var(--text)!important;text-decoration:none}
.sidebar-news-item a:hover{text-decoration:underline!important}
.sidebar-news-item .meta{margin-top:4px}
@media (max-width:980px){
  .branding img,.custom-logo{max-height:72px!important}
  .site-logo{width:58px;height:58px;font-size:24px}
  .after-article-grid{grid-template-columns:1fr!important}
  .home-flex-blocks{grid-template-columns:1fr}
  .footer-contacts-logo img{max-height:82px}
}

/* V3.6 embedded crest + refined watermark */
.footer-contacts-logo img{max-height:118px;width:auto;display:block}
.news-thumb .news-watermark{right:10px;bottom:10px;max-width:22%;max-height:22%;opacity:.95}
.sidebar-news-item .news-watermark{right:8px;bottom:8px;max-width:22%;max-height:22%;opacity:.95}
.after-article-grid .news-thumb .news-watermark{right:8px;bottom:8px;max-width:24%;max-height:24%;opacity:.95}
@media (max-width:980px){
  .footer-contacts-logo img{max-height:94px}
  .after-article-grid .news-thumb .news-watermark{max-width:18%;max-height:18%}
  .news-thumb .news-watermark{max-width:17%;max-height:17%}
  .sidebar-news-item .news-watermark{max-width:18%;max-height:18%}
}

/* V3.7 footer contact logo fix */
.footer-contacts-logo{margin-top:14px;display:flex;align-items:center}
.footer-contacts-logo img{max-height:120px;width:auto;display:block}

/* V3.8 footer layout */
.footer-brand{display:block}
.footer-brand-text{min-width:0}
.footer-logo-only{display:flex;justify-content:flex-start;align-items:center;margin-bottom:14px}
.footer-logo-only img{max-height:150px;width:auto;display:block}
.footer-contacts-logo{display:none!important}
@media (max-width:980px){
  .footer-logo-only{justify-content:flex-start}
  .footer-logo-only img{max-height:118px}
}

/* V3.9 sidebar + watermark + footer nav */
.news-thumb .news-watermark,
.sidebar-news-item .news-watermark,
.after-article-grid .news-thumb .news-watermark{
  width:auto;height:auto;object-fit:contain!important;
  max-width:22%!important;max-height:22%!important;
}
.sidebar-news-group{margin-bottom:18px}
.sidebar-news-group:last-child{margin-bottom:0}
.footer-nav-row{margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.15)}
.footer-nav-row ul{list-style:none;margin:0;padding:0;display:flex;gap:10px;flex-wrap:wrap}
.footer-nav-row li{margin:0}
.footer-nav-row a{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:999px;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);
  color:#fff!important;text-decoration:none!important;font-weight:700
}
.footer-nav-row a:hover{background:rgba(255,255,255,.16)}
@media (max-width:980px){
  .news-thumb .news-watermark,
  .sidebar-news-item .news-watermark,
  .after-article-grid .news-thumb .news-watermark{
    max-width:18%!important;max-height:18%!important;
  }
}

/* V4.2 form CTA blocks */
.home-form-cta .card p{color:var(--muted)}


/* V4.5 menu polish */
.main-nav .menu-item-has-children > a{padding-right:28px;position:relative}
.main-nav .menu-item-has-children > a:after{content:"▾";position:absolute;right:10px;top:50%;transform:translateY(-52%);font-size:12px;color:var(--muted)}
.main-nav .current-menu-item > a,.main-nav .current-menu-ancestor > a{color:var(--accent)}
.main-nav li ul li a{white-space:normal;line-height:1.35}
@media (max-width:980px){
  .main-nav li ul{display:none;padding:8px 0 8px 14px}
  .main-nav li.submenu-open > ul{display:block}
  .main-nav .menu-item-has-children > a:after{right:4px}
}

/* V4.6 fixes: keep all thumbnails 16:9 without cutting edges */
.news-thumb,
.sidebar-thumb-wrap{
  aspect-ratio:16/9!important;
  background:linear-gradient(135deg,#dce7f7,#f3f7fd)!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.news-thumb > img:not(.news-watermark),
.front-news-card .news-thumb > img:not(.news-watermark),
.sidebar-news-item img:not(.news-watermark){
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
}
.single-gallery-strip img{
  object-fit:contain!important;
  background:linear-gradient(135deg,#dce7f7,#f3f7fd)!important;
}


/* V4.7: images fill their blocks on the site; Facebook uses separate safe 1200x630 OG image */
.news-thumb,
.sidebar-thumb-wrap{
  width:100%!important;
  aspect-ratio:16/9!important;
  overflow:hidden!important;
  display:block!important;
  background:linear-gradient(135deg,#dce7f7,#f3f7fd)!important;
}
.news-thumb > img:not(.news-watermark),
.front-news-card .news-thumb > img:not(.news-watermark),
.sidebar-news-item img:not(.news-watermark){
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
}
.single .news-thumb{
  width:100%!important;
}
.single .news-thumb > img:not(.news-watermark){
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.wp-post-image{
  max-width:100%!important;
}


/* V4.8: single article image must never be cropped; full block width, natural height */
.single article.card > .news-thumb{
  width:100%!important;
  aspect-ratio:auto!important;
  height:auto!important;
  overflow:visible!important;
  display:block!important;
  background:transparent!important;
}
.single article.card > .news-thumb > img:not(.news-watermark){
  width:100%!important;
  height:auto!important;
  max-width:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  border-radius:18px 18px 0 0;
}
.single .entry-content img{
  max-width:100%!important;
  height:auto!important;
}
/* Lists/cards stay 16:9, but without cutting sides */
body:not(.single) .news-thumb > img:not(.news-watermark),
.after-article-grid .news-thumb > img:not(.news-watermark),
.sidebar-news-item img:not(.news-watermark){
  object-fit:contain!important;
}


/* V5.0: full-width single images without cutting edges; previews/cards remain stable 16:9 */
.single article.card > .news-thumb,
.single .entry-content .wp-block-image,
.single .entry-content figure{
  width:100%!important;
  max-width:100%!important;
}
.single article.card > .news-thumb > img:not(.news-watermark),
.single .entry-content img{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  object-fit:contain!important;
  object-position:center center!important;
}
body.single .content-wrap article.card{overflow:hidden!important;}

/* V5.3 wider navigation under logo */
.header-wrap{display:flex;flex-direction:column;gap:0;padding:10px 0 12px}
.header-top{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px;width:100%}
.header-nav-row{width:100%;border-top:1px solid rgba(216,227,241,.8);padding-top:8px;margin-top:6px}
.header-nav-row .main-nav{width:100%}
.header-nav-row .main-nav ul{justify-content:flex-start;gap:4px}
.header-nav-row .main-nav > div > ul > li > a,.header-nav-row .main-nav > ul > li > a{padding:11px 13px;border-radius:12px}
.header-nav-row .main-nav > div > ul > li > a:hover,.header-nav-row .main-nav > ul > li > a:hover{background:#eef3f9;text-decoration:none}
@media (max-width:980px){
  .header-wrap{padding:10px 0}
  .header-top{align-items:flex-start;flex-wrap:wrap;min-height:0}
  .header-nav-row{border-top:none;padding-top:0;margin-top:0;order:3}
  .header-nav-row .main-nav{display:none;width:100%;padding-top:10px}
  .header-nav-row .main-nav.is-open{display:block}
}

/* VolRada v6: readable article typography, no-crop media, SEO blocks */
.header-wrap{display:flex;flex-direction:column;gap:0}
.header-top{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:82px;width:100%}
.header-nav-row{width:100%;border-top:1px solid var(--border)}
.header-nav-row .main-nav > ul,.header-nav-row .main-nav > div > ul{justify-content:flex-start}
.news-thumb img,.sidebar-thumb-wrap img,.single-gallery-strip img{width:100%;height:100%;object-fit:contain;background:#eef3f9}
.front-news-card .news-thumb img{object-fit:cover}
.entry-content{font-size:1.08rem;line-height:1.82;overflow-wrap:anywhere}
.entry-content p{margin:0 0 1.18em}
.entry-content > p:first-of-type{font-size:1.18rem;line-height:1.75;font-weight:600;color:#1d3554;padding:16px 18px;background:#f3f7fd;border-left:4px solid var(--accent);border-radius:14px}
.entry-content h2{font-size:1.65rem;line-height:1.25;margin:1.6em 0 .65em;color:#102845}
.entry-content h3{font-size:1.32rem;line-height:1.3;margin:1.35em 0 .55em;color:#173b68}
.entry-content ul,.entry-content ol{padding-left:1.4em;margin:0 0 1.2em}.entry-content li{margin:.35em 0}
.entry-content blockquote{margin:1.4em 0;padding:18px 22px;border-left:5px solid var(--accent);background:#f5f9ff;border-radius:16px;color:#23364f}
.entry-content img{width:100%;height:auto;object-fit:contain;border-radius:18px}.entry-content figure{margin:1.3em 0}.entry-content figcaption{text-align:center;color:var(--muted);font-size:.92rem;margin-top:8px}
.entry-content table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:1.2em 0}.entry-content td,.entry-content th{border:1px solid var(--border);padding:10px}
.breadcrumbs{font-size:.92rem;color:var(--muted);margin:0 0 12px}.breadcrumbs a{color:var(--muted)}
.reading-time{display:inline-flex;gap:6px;align-items:center;font-size:.9rem;color:var(--muted);margin-top:4px}
.after-article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.after-article-news{margin-top:28px}
.secretary-grid .card-body{display:flex;flex-direction:column;gap:10px}.secretary-grid h3{font-size:1.05rem}
@media(max-width:980px){.header-top{flex-wrap:wrap}.header-nav-row{border-top:0}.after-article-grid{grid-template-columns:1fr}.entry-content{font-size:1.02rem}}


/* VolRada v6.1: mobile article width fix */
html, body{max-width:100%;overflow-x:hidden!important;}
body.single .container,
body.page .container{width:min(var(--container), calc(100% - 24px))!important;max-width:100%!important;}
.content-wrap,
.content-wrap > article,
.content-wrap > aside,
.card,
.card-body,
.entry-content,
.page-header .card{min-width:0!important;max-width:100%!important;}
body.single .content-wrap{grid-template-columns:minmax(0,1fr) 320px!important;}
.entry-content *{max-width:100%;}
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object{max-width:100%!important;width:100%!important;}
.entry-content pre{max-width:100%!important;overflow-x:auto!important;white-space:pre-wrap!important;word-break:break-word!important;}
.entry-content table{width:100%!important;max-width:100%!important;overflow-x:auto!important;}
.share-row{max-width:100%;overflow:hidden;}
.share-btn{min-width:0;max-width:100%;white-space:normal;text-align:center;}
.single-main-thumb{max-width:100%!important;}
.single-main-thumb img{max-width:100%!important;}
.sidebar-news-item{min-width:0;}
.sidebar-news-item > *{min-width:0;}

@media (max-width:980px){
  body.single .content-wrap,
  body.page .content-wrap{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:18px!important;}
  body.single article.card,
  body.single aside.sidebar{width:100%!important;max-width:100%!important;}
  .page-header{padding:16px 0 8px!important;}
  .page-header .card-body{padding:18px!important;}
  .page-header h1{font-size:clamp(1.45rem, 6vw, 2rem)!important;line-height:1.18!important;overflow-wrap:anywhere!important;}
  .entry-content{font-size:1rem!important;line-height:1.72!important;overflow-wrap:break-word!important;word-break:normal!important;}
  .entry-content > p:first-of-type{font-size:1.05rem!important;padding:14px!important;margin-left:0!important;margin-right:0!important;}
  .entry-content h2{font-size:1.32rem!important;}
  .entry-content h3{font-size:1.16rem!important;}
  .card-body{padding:18px!important;}
  .single article.card > .news-thumb > img:not(.news-watermark),
  .single .entry-content img{border-radius:12px!important;}
  .after-article-grid{grid-template-columns:1fr!important;}
  .sidebar-news-item{grid-template-columns:86px minmax(0,1fr)!important;}
  .header-actions{grid-template-columns:1fr!important;}
}

@media (max-width:480px){
  body.single .container,
  body.page .container{width:calc(100% - 16px)!important;}
  .card{border-radius:16px!important;}
  .card-body{padding:15px!important;}
  .page-header .card-body{padding:15px!important;}
  .entry-content > p:first-of-type{padding:12px!important;border-radius:12px!important;}
  .share-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}
  .share-btn{padding:9px 8px!important;font-size:.92rem!important;}
  .sidebar-news-item{grid-template-columns:78px minmax(0,1fr)!important;gap:10px!important;}
  .sidebar-news-item img,
  .sidebar-news-item .thumb-fallback{height:58px!important;}
}

/* VolRada v6.8 — compact author card under articles with optional photo */
.article-author-card{
  margin:34px 0 24px;
  padding:22px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:22px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fafc 100%);
  box-shadow:0 14px 34px rgba(15,23,42,.07);
  display:flex;
  gap:18px;
  align-items:flex-start;
}
.article-author-card.no-author-photo{
  display:block;
  padding:20px 22px;
}
.article-author-card.no-author-photo .author-info{
  width:100%;
}
.article-author-card .author-avatar{
  flex:0 0 76px;
  width:76px;
  height:76px;
  border-radius:999px;
  overflow:hidden;
  background:#e5e7eb;
  box-shadow:0 8px 20px rgba(15,23,42,.12);
}
.article-author-card .author-avatar img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.article-author-card .author-info{
  min-width:0;
  flex:1;
}
.article-author-card .author-label{
  margin:0 0 4px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
}
.article-author-card .author-name{
  margin:0 0 8px;
  font-size:22px;
  line-height:1.2;
  font-weight:900;
  color:#0f172a;
}
.article-author-card .author-name a{
  color:inherit;
  text-decoration:none;
}
.article-author-card .author-name a:hover{
  text-decoration:underline;
}

.article-author-card .author-positions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 10px;
}
.article-author-card .author-positions span{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:5px 9px;
  border-radius:999px;
  background:#eef4fb;
  border:1px solid rgba(29,79,145,.14);
  color:#334155;
  font-size:13px;
  line-height:1.35;
}
.article-author-card .author-positions strong{
  color:#0f172a;
  font-weight:800;
}

.article-author-card .author-bio{
  margin:0 0 12px;
  font-size:15px;
  line-height:1.65;
  color:#334155;
}
.article-author-card .author-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  font-size:13px;
  color:#64748b;
}
.article-author-card .author-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 12px;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  text-decoration:none;
  font-weight:800;
}
.article-author-card .author-link:hover{opacity:.9;}
@media (max-width:640px){
  .article-author-card{
    padding:18px;
    gap:14px;
    border-radius:18px;
  }
  .article-author-card .author-avatar{
    flex-basis:58px;
    width:58px;
    height:58px;
  }
  .article-author-card.no-author-photo{
    padding:17px;
  }
  .article-author-card .author-name{font-size:19px;}
  .article-author-card .author-bio{font-size:14px;}
}


/* VolRada v7.1 — sidebar author block and full author profile */
.sidebar-authors-card h3{margin-bottom:14px;}
.sidebar-authors-list{display:grid;gap:12px;}
.sidebar-author-item{display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;align-items:center;padding:10px;border-radius:16px;background:#f8fafc;border:1px solid rgba(15,23,42,.08);text-decoration:none!important;color:inherit;transition:.18s ease;}
.sidebar-author-item:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(15,23,42,.08);}
.sidebar-author-avatar{width:58px;height:58px;border-radius:999px;overflow:hidden;background:#e5e7eb;display:block;}
.sidebar-author-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.sidebar-author-text{display:grid;gap:2px;min-width:0;}
.sidebar-author-text strong{font-size:14px;line-height:1.25;color:#0f172a;}
.sidebar-author-text em{font-style:normal;font-size:12px;color:#475569;line-height:1.25;}
.sidebar-author-text small{font-size:12px;color:#64748b;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.author-profile-card{padding:26px!important;}
.author-profile-top{display:grid;grid-template-columns:150px minmax(0,1fr);gap:24px;align-items:start;}
.author-profile-avatar{width:150px;height:150px;border-radius:30px;overflow:hidden;background:#e5e7eb;box-shadow:0 14px 30px rgba(15,23,42,.12);}
.author-profile-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.author-profile-info h1{margin:0 0 10px;font-size:clamp(28px,4vw,42px);line-height:1.08;}
.author-profile-badges{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px;}
.author-profile-badges span{display:inline-flex;gap:5px;align-items:center;padding:7px 11px;border-radius:999px;background:#eef4fb;border:1px solid rgba(29,79,145,.14);font-size:13px;line-height:1.3;color:#334155;}
.author-profile-badges strong{color:#0f172a;font-weight:900;}
.author-profile-bio{font-size:16px;line-height:1.75;color:#334155;margin:0 0 14px;max-width:900px;}
.author-profile-links{display:flex;flex-wrap:wrap;gap:9px;}
.author-profile-links a{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#0f172a;color:#fff;text-decoration:none!important;font-size:13px;font-weight:800;}
.author-profile-links a:hover{opacity:.9;}
.pagination-wrap{margin-top:24px;}
@media(max-width:640px){
  .author-profile-top{grid-template-columns:1fr;gap:16px;}
  .author-profile-avatar{width:104px;height:104px;border-radius:22px;}
  .author-profile-card{padding:18px!important;}
}


/* VolRada v7.2 council members */
.sidebar-author-direction{display:block;margin-top:4px;color:#5d6b82;font-size:12px;line-height:1.25}
.author-profile-direction-full{margin:12px 0 0;padding:12px 14px;border-left:4px solid var(--accent,#1d4ed8);background:#f4f7fb;border-radius:12px;color:#27364a}
.council-members-page-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.council-member-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:20px;box-shadow:0 12px 30px rgba(15,23,42,.06);overflow:hidden;display:flex;flex-direction:column}
.council-member-photo{display:block;aspect-ratio:16/11;background:#eef2f7;overflow:hidden}
.council-member-photo img,.council-member-photo .avatar{width:100%;height:100%;object-fit:cover;display:block}
.council-member-info{padding:16px}
.council-member-info h3{margin:0 0 8px;font-size:20px;line-height:1.2}
.council-member-info h3 a{text-decoration:none;color:inherit}
.member-position{font-weight:700;margin:0 0 6px;color:#173b72}
.member-org{margin:0 0 8px;color:#334155}
.member-direction{display:inline-block;margin:0 0 10px;padding:6px 9px;border-radius:999px;background:#eaf1ff;color:#17488f;font-size:13px;font-weight:700}
@media(max-width:900px){.council-members-page-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.council-members-page-grid{grid-template-columns:1fr}.council-member-photo{aspect-ratio:16/10}}


/* VolRada v7.4: sidebar council members button */
.sidebar-all-members-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  margin-top:14px;
  padding:11px 14px;
  border-radius:14px;
  background:#1d4ed8;
  color:#fff!important;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 8px 18px rgba(29,78,216,.18);
}
.sidebar-all-members-btn:hover{filter:brightness(.95);transform:translateY(-1px)}
.article-author-card .author-bio{display:none!important}

/* VolRada v7.6 sidebar safety */
.sidebar-all-members-btn { display:block; text-align:center; margin-top:14px; padding:10px 12px; border-radius:12px; font-weight:700; text-decoration:none; }
@media (max-width: 768px) { .sidebar-authors-card { overflow:hidden; } }


/* VolRada v7.7 — official contacts in header/footer */
.btn-phone{background:#eef7ff;color:#123f73;border-color:#cfe3f9;white-space:nowrap}
.btn-facebook{background:#1877f2;color:#fff!important;border-color:#1877f2;white-space:nowrap}
.btn-facebook:hover,.btn-phone:hover{text-decoration:none!important;filter:brightness(.97)}
.footer-contact-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.footer-contact-list li{display:flex;align-items:flex-start;gap:10px;line-height:1.45;color:#dce6f4}
.footer-contact-icon{width:24px;height:24px;min-width:24px;border-radius:999px;background:rgba(255,255,255,.12);display:inline-flex;align-items:center;justify-content:center;font-size:.9rem;color:#fff}
.footer-contact-list a{font-weight:700}
@media (max-width:980px){
  .header-actions{grid-template-columns:1fr 1fr}
  .btn-phone,.btn-facebook{font-size:.94rem;padding:11px 12px}
}
@media (max-width:520px){
  .header-actions{grid-template-columns:1fr}
}


/* VolRada v7.8: rich profile, council hierarchy and gallery */
.council-role-section{margin:0 0 34px}.council-role-section>h2{margin:0 0 16px;font-size:1.65rem;color:var(--accent-dark)}
.council-members-page-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.council-member-card{background:#fff;border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow);overflow:hidden}.council-member-photo{display:block;aspect-ratio:1/1;background:#eef3f9}.council-member-photo img,.council-member-photo .avatar{width:100%;height:100%;object-fit:cover}.council-member-info{padding:18px}.council-member-info h3{margin:0 0 8px}.member-position{font-weight:800;color:var(--accent-dark)!important}.member-org,.member-direction{font-size:.95rem;color:var(--muted)!important;margin-top:6px!important}
.author-profile-bio{max-width:860px}.author-profile-bio p{margin:0 0 12px}.author-profile-bio ul,.author-profile-bio ol{padding-left:22px}
.volrada-gallery{margin:26px 0;background:#fff;border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow);padding:14px;overflow:hidden}.volrada-gallery-main-wrap{position:relative}.volrada-gallery-main{position:relative;min-height:260px;background:#eef3f9;border-radius:18px;overflow:hidden}.volrada-gallery-slide{display:none;margin:0}.volrada-gallery-slide.is-active{display:block}.volrada-gallery-slide img{width:100%;max-height:72vh;object-fit:contain;background:#eef3f9}.volrada-gallery-slide figcaption{padding:10px 14px;font-size:.95rem;color:var(--muted);background:#fff}.volrada-gallery-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.6);background:rgba(17,37,62,.72);color:#fff;font-size:32px;line-height:1;cursor:pointer}.volrada-gallery-prev{left:12px}.volrada-gallery-next{right:12px}.volrada-gallery-thumbs{display:flex;gap:10px;overflow-x:auto;padding:12px 2px 2px;scrollbar-width:thin}.volrada-gallery-thumb{flex:0 0 112px;height:76px;border:2px solid transparent;border-radius:12px;padding:0;background:#eef3f9;overflow:hidden;cursor:pointer}.volrada-gallery-thumb.is-active{border-color:var(--accent)}.volrada-gallery-thumb img{width:100%;height:100%;object-fit:cover}
@media (max-width:980px){.council-members-page-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.volrada-gallery-main{min-height:190px}.volrada-gallery-thumb{flex-basis:92px;height:64px}}
@media (max-width:640px){.council-members-page-grid{grid-template-columns:1fr}.volrada-gallery{margin-left:-2px;margin-right:-2px;padding:10px}.volrada-gallery-nav{width:38px;height:38px;font-size:26px}.volrada-gallery-slide img{max-height:64vh}}

/* VolRada v7.9: manual order council members */
.council-members-manual-order{margin-top:8px}.member-role{display:inline-flex;margin:0 0 8px;padding:4px 10px;border-radius:999px;background:#eaf2fb;color:var(--accent-dark);font-weight:800;font-size:.88rem}.council-members-manual-order .council-role-section{margin:0}


/* VolRada v8.2: правильна галерея та 100% відео у статті */
.article-auto-gallery{margin-top:28px;}
.article-auto-gallery h3{margin-bottom:14px;}
.single-gallery-strip{display:none!important;}
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object,
.entry-content .wp-block-embed,
.entry-content .wp-block-embed__wrapper,
.entry-content .wp-video,
.entry-content .wp-video video{width:100%!important;max-width:100%!important;}
.entry-content iframe,
.entry-content embed,
.entry-content object{display:block;aspect-ratio:16/9;height:auto!important;min-height:220px;border:0;border-radius:18px;overflow:hidden;background:#eef3f9;}
.entry-content video,
.entry-content .wp-video video{display:block;height:auto!important;border-radius:18px;background:#000;}
.entry-content .wp-block-embed__wrapper{position:relative;overflow:hidden;border-radius:18px;background:#eef3f9;}
.entry-content .wp-block-embed__wrapper iframe{border-radius:18px;}
.volrada-gallery-main{display:flex;align-items:center;justify-content:center;}
.volrada-gallery-slide{width:100%;}
.volrada-gallery-slide img{display:block;width:100%!important;height:auto!important;max-height:72vh;object-fit:contain!important;}
.volrada-gallery-thumbs{scroll-snap-type:x proximity;}
.volrada-gallery-thumb{scroll-snap-align:center;}
@media (max-width:640px){
  .entry-content iframe,.entry-content embed,.entry-content object{min-height:190px;border-radius:14px;}
  .entry-content video,.entry-content .wp-video video{border-radius:14px;}
}
