/*
Theme Name: WPCM Portal Theme
Theme URI: https://wpcomum.com.br
Author: WP Comum
Author URI: https://wpcomum.com.br
Description: Tema leve para portais de notícias. Editor visual tipo tagDiv embutido, headers e footers customizáveis, single configurável por post. Totalmente compatível com o plugin WPCM Portal News.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: wpcm-portal
Tags: news, magazine, blog, custom-header, custom-menu, featured-images, editor-style, threaded-comments, translation-ready
*/

/* ============================================================
   WPCM Portal Theme — CSS Base
   ============================================================ */

:root{
	--wpcm-accent: #0d47a1;
	--wpcm-accent-hover: #1565c0;
	--wpcm-bg: #f4f5f7;
	--wpcm-fg: #0f172a;
	--wpcm-muted: #64748b;
	--wpcm-border: #e2e8f0;
	--wpcm-card-bg: #ffffff;
	--wpcm-radius: 8px;
	--wpcm-header-bg: #ffffff;
	--wpcm-header-fg: #0f172a;
	--wpcm-nav-bg: #ffffff;
	--wpcm-nav-fg: #1f2937;
	--wpcm-footer-bg: #364142;
	--wpcm-footer-fg: #cbd5e1;
	--wpcm-footer-bottom-bg: #2a3334;
	--wpcm-container: 1400px;
	--wpcm-content-w: 800px;
	--wpcm-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--wpcm-font-title: 'Fraunces', Georgia, serif;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
	margin:0;
	font-family:var(--wpcm-font);
	background:var(--wpcm-bg);
	color:var(--wpcm-fg);
	line-height:1.6;
	-webkit-font-smoothing:antialiased;
	-moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;height:auto;display:block;}
a{color:var(--wpcm-accent);text-decoration:none;transition:color .15s ease;}
a:hover{color:var(--wpcm-accent-hover);}
h1,h2,h3,h4,h5,h6{
	font-family:var(--wpcm-font-title);
	font-weight:700;
	line-height:1.25;
	letter-spacing:-.015em;
	margin:0 0 .6em;
}

.wpcm-container{
	width:100%;
	max-width:var(--wpcm-container);
	margin:0 auto;
	padding:0 clamp(14px,3vw,32px);
}

.wpcm-skip-link{
	position:absolute;left:-9999px;top:auto;
	background:var(--wpcm-accent);color:#fff;
	padding:12px 20px;z-index:9999;
}
.wpcm-skip-link:focus{left:20px;top:20px;}

/* ════════════════════════════════════════════════════════════
   HEADER — estilo portal (logo + banner + menu horizontal)
   ════════════════════════════════════════════════════════════ */

.wpcm-site-header{
	background:var(--wpcm-header-bg);
	color:var(--wpcm-header-fg);
	position:relative;
	z-index:50;
}

/* Topbar (barra superior opcional) */
.wpcm-header-topbar{
	background:var(--wpcm-fg);
	color:#fff;
	font-size:12px;
	padding:7px 0;
}
.wpcm-header-topbar .wpcm-container{
	display:flex;align-items:center;justify-content:space-between;
	gap:12px;flex-wrap:wrap;
}
.wpcm-header-topbar a{color:#fff;opacity:.85;}
.wpcm-header-topbar a:hover{opacity:1;}
.wpcm-topbar-left,.wpcm-topbar-right{display:flex;align-items:center;gap:16px;}
.wpcm-topbar-menu{list-style:none;margin:0;padding:0;display:flex;gap:14px;}
.wpcm-topbar-menu a{font-weight:500;}

/* FAIXA 1: LOGO + BANNER */
.wpcm-header-brand{
	padding:28px 0;
	background:var(--wpcm-header-bg);
}
.wpcm-header-brand .wpcm-container{
	display:grid;
	grid-template-columns: minmax(200px, 1fr) minmax(400px, 2.5fr);
	align-items:center;
	gap:40px;
}
.wpcm-brand-logo{
	display:flex;
	flex-direction:column;
	justify-content:center;
	min-height:100px;
}
.wpcm-brand-logo-link{display:inline-block;}
.wpcm-brand-logo img,
.wpcm-brand-logo .custom-logo{
	max-height:110px;
	width:auto;
}
.wpcm-header-logo-text{
	font-family:var(--wpcm-font-title);
	font-size:clamp(28px,3.5vw,42px);
	font-weight:800;
	color:var(--wpcm-accent);
	line-height:1;
	letter-spacing:-.02em;
	display:block;
}
.wpcm-brand-tagline{
	display:block;
	font-size:14px;
	color:var(--wpcm-muted);
	margin-top:4px;
	font-style:italic;
}

.wpcm-brand-banner{
	text-align:right;
	min-height:90px;
	display:flex;
	align-items:center;
	justify-content:flex-end;
}
.wpcm-brand-banner img{
	max-width:100%;
	max-height:250px;
	height:auto;
	margin-left:auto;
}
.wpcm-brand-banner-placeholder{
	background:linear-gradient(135deg,#f8fafc 0%,#e2e8f0 100%);
	border:2px dashed #cbd5e1;
	border-radius:var(--wpcm-radius);
	padding:30px;
	width:100%;
	max-width:728px;
	text-align:center;
	color:var(--wpcm-muted);
}
.wpcm-brand-banner-placeholder span{
	display:block;
	font-weight:600;
	font-size:14px;
	margin-bottom:6px;
}
.wpcm-brand-banner-placeholder small{
	display:block;
	font-size:11px;
	opacity:.8;
}

/* FAIXA 2: MENU DE CATEGORIAS + BUSCA */
.wpcm-site-nav{
	background:var(--wpcm-nav-bg);
	color:var(--wpcm-nav-fg);
	border-top:1px solid var(--wpcm-border);
	border-bottom:1px solid var(--wpcm-border);
}
.wpcm-site-nav .wpcm-container{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:20px;
}
.wpcm-nav-menu{
	list-style:none;
	margin:0;
	padding:0;
	display:flex;
	flex-wrap:wrap;
	flex:1;
	justify-content:center;
}
.wpcm-nav-menu > li{position:relative;}
.wpcm-nav-menu > li > a{
	display:block;
	padding:18px 18px;
	color:var(--wpcm-nav-fg);
	font-weight:700;
	font-size:13px;
	text-transform:uppercase;
	letter-spacing:.04em;
	transition:color .15s;
	position:relative;
}
.wpcm-nav-menu > li > a::after{
	content:'';
	position:absolute;
	left:50%;
	right:50%;
	bottom:0;
	height:3px;
	background:var(--wpcm-accent);
	transition:left .2s, right .2s;
}
.wpcm-nav-menu > li:hover > a,
.wpcm-nav-menu > li.current-menu-item > a,
.wpcm-nav-menu > li.current-menu-parent > a,
.wpcm-nav-menu > li.current_page_item > a,
.wpcm-nav-menu > li.current-cat > a{
	color:var(--wpcm-accent);
}
.wpcm-nav-menu > li:hover > a::after,
.wpcm-nav-menu > li.current-menu-item > a::after,
.wpcm-nav-menu > li.current-menu-parent > a::after,
.wpcm-nav-menu > li.current_page_item > a::after,
.wpcm-nav-menu > li.current-cat > a::after{
	left:18px;
	right:18px;
}

/* Submenu */
.wpcm-nav-menu .sub-menu{
	position:absolute;
	top:100%;
	left:0;
	background:#fff;
	min-width:220px;
	list-style:none;
	margin:0;
	padding:6px 0;
	box-shadow:0 10px 30px rgba(0,0,0,.12);
	border-top:3px solid var(--wpcm-accent);
	opacity:0;
	visibility:hidden;
	transform:translateY(6px);
	transition:all .2s;
	z-index:100;
}
.wpcm-nav-menu li:hover > .sub-menu{opacity:1;visibility:visible;transform:translateY(0);}
.wpcm-nav-menu .sub-menu a{
	display:block;
	color:var(--wpcm-nav-fg);
	padding:10px 18px;
	font-size:13px;
	text-transform:none;
	letter-spacing:0;
	font-weight:500;
}
.wpcm-nav-menu .sub-menu a:hover{
	background:var(--wpcm-bg);
	color:var(--wpcm-accent);
}
.wpcm-nav-placeholder a{
	color:var(--wpcm-muted) !important;
	font-style:italic;
}

/* Nav toggle (mobile) */
.wpcm-nav-toggle{
	display:none;
	background:transparent;
	border:0;
	color:var(--wpcm-nav-fg);
	padding:14px 16px;
	cursor:pointer;
	align-items:center;
	gap:8px;
	font-weight:700;
	font-size:13px;
	text-transform:uppercase;
	letter-spacing:.04em;
}
.wpcm-nav-toggle-icon{
	width:22px;
	height:16px;
	position:relative;
	display:inline-block;
}
.wpcm-nav-toggle-icon::before,
.wpcm-nav-toggle-icon::after,
.wpcm-nav-toggle-icon > span{
	content:'';
	position:absolute;
	left:0;
	right:0;
	height:2px;
	background:currentColor;
	border-radius:2px;
}
.wpcm-nav-toggle-icon::before{top:0;}
.wpcm-nav-toggle-icon::after{bottom:0;}

/* Search toggle */
.wpcm-search-toggle{
	background:transparent;
	border:0;
	color:var(--wpcm-nav-fg);
	padding:16px 18px;
	cursor:pointer;
	display:flex;
	align-items:center;
	justify-content:center;
	transition:color .15s;
	border-left:1px solid var(--wpcm-border);
}
.wpcm-search-toggle:hover{color:var(--wpcm-accent);}

/* Search overlay */
.wpcm-search-overlay{
	display:none;
	background:rgba(0,0,0,.8);
	position:fixed;
	inset:0;
	z-index:999;
	align-items:flex-start;
	justify-content:center;
	padding-top:15vh;
}
.wpcm-search-overlay.is-open{display:flex;}
.wpcm-search-overlay form{
	width:90%;
	max-width:600px;
	background:#fff;
	border-radius:var(--wpcm-radius);
	padding:20px;
	display:flex;
	gap:10px;
}
.wpcm-search-overlay input[type=search]{
	flex:1;
	padding:14px 18px;
	border:1px solid var(--wpcm-border);
	border-radius:var(--wpcm-radius);
	font-size:16px;
}
.wpcm-search-overlay button{
	padding:0 24px;
	background:var(--wpcm-accent);
	color:#fff;
	border:0;
	border-radius:var(--wpcm-radius);
	font-weight:600;
	cursor:pointer;
}

/* ════════════════════════════════════════════════════════════
   MAIN / CONTENT
   ════════════════════════════════════════════════════════════ */

.wpcm-site-main{min-height:50vh;padding:0;}
.wpcm-page-wrap{padding:32px 0;}

/* ──────────── SINGLE ──────────── */
.wpcm-single-wrap{padding:30px 0;}
.wpcm-single-layout{
	display:grid;
	gap:40px;
	align-items:start;
}
.wpcm-single-layout--right{grid-template-columns:1fr 320px;}
.wpcm-single-layout--left{grid-template-columns:320px 1fr;}
.wpcm-single-layout--none{grid-template-columns:1fr;max-width:var(--wpcm-content-w);margin:0 auto;}

.wpcm-article{
	background:#fff;
	padding:clamp(20px,3vw,40px);
	border-radius:var(--wpcm-radius);
	border:1px solid var(--wpcm-border);
}
.wpcm-article-header{margin-bottom:24px;}
.wpcm-breadcrumb{
	font-size:12px;color:var(--wpcm-muted);
	margin-bottom:12px;display:flex;gap:6px;flex-wrap:wrap;
}
.wpcm-breadcrumb a{color:var(--wpcm-muted);}
.wpcm-breadcrumb a:hover{color:var(--wpcm-accent);}
.wpcm-breadcrumb span{opacity:.5;}

.wpcm-category-badges{
	display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px;
}
.wpcm-category-badge{
	display:inline-block;background:var(--wpcm-accent);color:#fff !important;
	padding:4px 12px;font-size:11px;font-weight:700;
	text-transform:uppercase;letter-spacing:.06em;border-radius:3px;
}

.wpcm-article-title{
	font-size:clamp(26px,3.2vw,40px);
	line-height:1.15;margin:0 0 18px;
}
.wpcm-article-excerpt{
	font-size:clamp(15px,1.4vw,18px);
	color:var(--wpcm-muted);line-height:1.55;
	margin:0 0 20px;font-weight:400;
}
.wpcm-article-meta{
	display:flex;flex-wrap:wrap;gap:14px 22px;
	padding:14px 0;border-top:1px solid var(--wpcm-border);
	border-bottom:1px solid var(--wpcm-border);
	font-size:13px;color:var(--wpcm-muted);
}
.wpcm-article-meta-item{display:inline-flex;align-items:center;gap:6px;}
.wpcm-article-author{display:flex;align-items:center;gap:10px;}
.wpcm-author-avatar{width:32px;height:32px;border-radius:50%;}
.wpcm-author-name{font-weight:600;color:var(--wpcm-fg);}

.wpcm-article-thumb{margin:24px 0;}
.wpcm-article-thumb img{width:100%;border-radius:var(--wpcm-radius);}
.wpcm-article-caption{
	font-size:12px;color:var(--wpcm-muted);text-align:center;
	margin-top:8px;font-style:italic;
}

.wpcm-article-content{
	font-size:17px;line-height:1.75;
	color:#222;
}
.wpcm-article-content p{margin:0 0 1.2em;}
.wpcm-article-content h2,.wpcm-article-content h3{margin-top:1.6em;}
.wpcm-article-content h2{font-size:26px;}
.wpcm-article-content h3{font-size:21px;}
.wpcm-article-content blockquote{
	border-left:4px solid var(--wpcm-accent);
	padding:8px 0 8px 20px;margin:1.5em 0;
	font-style:italic;color:#444;font-size:18px;
}
.wpcm-article-content a{text-decoration:underline;}
.wpcm-article-content img{border-radius:var(--wpcm-radius);margin:1em auto;}
.wpcm-article-content ul,.wpcm-article-content ol{padding-left:1.5em;margin:0 0 1.2em;}
.wpcm-article-content li{margin-bottom:.4em;}

.wpcm-inline-ad{
	margin:2em 0;padding:16px;
	background:var(--wpcm-bg);
	border-radius:var(--wpcm-radius);
	text-align:center;
	border:1px solid var(--wpcm-border);
}
.wpcm-inline-ad-label{
	font-size:10px;text-transform:uppercase;letter-spacing:.12em;
	color:var(--wpcm-muted);margin-bottom:8px;display:block;font-weight:700;
}

.wpcm-article-footer{
	margin-top:30px;padding-top:24px;
	border-top:1px solid var(--wpcm-border);
}
.wpcm-article-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:20px;}
.wpcm-tag{
	display:inline-block;background:var(--wpcm-bg);
	color:var(--wpcm-muted) !important;
	padding:5px 12px;font-size:12px;
	border-radius:999px;border:1px solid var(--wpcm-border);
}
.wpcm-tag:hover{background:var(--wpcm-accent);color:#fff !important;border-color:var(--wpcm-accent);}

.wpcm-share-box{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:20px 0;}
.wpcm-share-label{
	font-size:12px;font-weight:700;color:var(--wpcm-muted);
	text-transform:uppercase;letter-spacing:.08em;margin-right:6px;
}
.wpcm-share-btn{
	display:inline-flex;align-items:center;gap:6px;
	padding:8px 14px;font-size:13px;
	border-radius:var(--wpcm-radius);
	color:#fff !important;font-weight:600;
}
.wpcm-share-whatsapp{background:#25d366;}
.wpcm-share-facebook{background:#1877f2;}
.wpcm-share-twitter{background:#1da1f2;}
.wpcm-share-telegram{background:#0088cc;}
.wpcm-share-link{background:var(--wpcm-muted);}

.wpcm-author-box{
	display:flex;gap:16px;margin-top:20px;
	padding:20px;background:var(--wpcm-bg);
	border-radius:var(--wpcm-radius);
}
.wpcm-author-box-avatar{width:64px;height:64px;border-radius:50%;flex-shrink:0;}
.wpcm-author-box-info h4{margin:0 0 4px;font-size:16px;}
.wpcm-author-box-info p{margin:0;font-size:13px;color:var(--wpcm-muted);}

.wpcm-related{
	margin-top:40px;padding-top:30px;
	border-top:3px solid var(--wpcm-accent);
}
.wpcm-related-title{
	font-size:14px;font-weight:800;
	text-transform:uppercase;letter-spacing:.1em;
	margin:0 0 18px;color:var(--wpcm-fg);
}
.wpcm-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.wpcm-related-card{
	background:#fff;border:1px solid var(--wpcm-border);
	border-radius:var(--wpcm-radius);overflow:hidden;
	transition:transform .2s,box-shadow .2s;
}
.wpcm-related-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(0,0,0,.08);}
.wpcm-related-card-img{aspect-ratio:16/9;overflow:hidden;background:var(--wpcm-border);}
.wpcm-related-card-img img{width:100%;height:100%;object-fit:cover;}
.wpcm-related-card-body{padding:14px;}
.wpcm-related-card-title{font-size:14px;line-height:1.35;margin:0;font-weight:700;}
.wpcm-related-card-title a{color:var(--wpcm-fg);}
.wpcm-related-card-title a:hover{color:var(--wpcm-accent);}
.wpcm-related-card-date{font-size:11px;color:var(--wpcm-muted);margin-top:6px;}

/* Sidebar */
.wpcm-sidebar{display:flex;flex-direction:column;gap:20px;}
.wpcm-sidebar-widget{
	background:#fff;border:1px solid var(--wpcm-border);
	border-radius:var(--wpcm-radius);padding:20px;
}
.wpcm-sidebar-widget-title{
	font-size:13px;font-weight:800;
	text-transform:uppercase;letter-spacing:.1em;
	margin:0 0 14px;padding-bottom:10px;
	border-bottom:2px solid var(--wpcm-accent);
}
.wpcm-sidebar-widget ul{list-style:none;margin:0;padding:0;}
.wpcm-sidebar-widget li{
	padding:8px 0;border-bottom:1px solid var(--wpcm-border);
	font-size:14px;
}
.wpcm-sidebar-widget li:last-child{border:0;}
.wpcm-sidebar-sticky{position:sticky;top:20px;}

/* ════════════════════════════════════════════════════════════
   FOOTER — estilo portal (3 colunas + copyright)
   ════════════════════════════════════════════════════════════ */

.wpcm-site-footer{
	background:var(--wpcm-footer-bg);
	color:var(--wpcm-footer-fg);
	margin-top:60px;
}

/* Faixa principal: 3 colunas */
.wpcm-footer-main{padding:50px 0 40px;}
.wpcm-footer-grid{
	display:grid;
	grid-template-columns: 1fr 2fr 1fr;
	gap:50px;
	align-items:flex-start;
}

.wpcm-footer-col h4{
	color:var(--wpcm-accent);
	font-size:14px;
	font-weight:700;
	text-transform:none;
	margin:0 0 14px;
	padding-bottom:0;
	border:0;
	letter-spacing:0;
	font-family:var(--wpcm-font);
}
.wpcm-footer-col p{
	color:var(--wpcm-footer-fg);
	font-size:13px;
	line-height:1.7;
	margin:0 0 14px;
}
.wpcm-footer-col p:last-child{margin-bottom:0;}

/* Coluna 1: Menu vertical estilo AniGlobe */
.wpcm-footer-col--menu{
	min-width:0;
}
.wpcm-footer-nav,
.wpcm-footer-col--menu ul,
.wpcm-footer-col--menu .menu{
	list-style:none;
	margin:0;
	padding:0;
	display:flex;
	flex-direction:column;
	gap:6px;
}
.wpcm-footer-nav li{
	padding:0;
	border:0;
	font-size:13px;
}
.wpcm-footer-nav a,
.wpcm-footer-col--menu ul a,
.wpcm-footer-col--menu .menu a{
	color:#fff;
	font-weight:500;
	display:inline-block;
	padding:3px 0;
	transition:color .15s, transform .15s;
}
.wpcm-footer-nav a:hover,
.wpcm-footer-col--menu ul a:hover,
.wpcm-footer-col--menu .menu a:hover{
	color:var(--wpcm-accent);
	transform:translateX(3px);
}
.wpcm-footer-nav .current-menu-item > a,
.wpcm-footer-nav .current_page_item > a{
	color:var(--wpcm-accent);
}
/* Submenus indentados */
.wpcm-footer-nav .sub-menu{
	list-style:none;
	margin:4px 0 6px 20px;
	padding:0;
	display:flex;
	flex-direction:column;
	gap:4px;
}
.wpcm-footer-nav .sub-menu a{
	font-size:12px;
	color:var(--wpcm-footer-fg);
	font-weight:400;
}

/* Coluna 2: Sobre / Info */
.wpcm-footer-col--info{
	min-width:0;
}
.wpcm-footer-col--info p{font-size:14px;line-height:1.65;}
.wpcm-footer-contact{
	margin-top:14px;
	font-size:13px;
	line-height:1.8;
}
.wpcm-footer-contact a{color:#fff;}
.wpcm-footer-contact a:hover{color:var(--wpcm-accent);}

/* Coluna 3: Logo / Brand */
.wpcm-footer-col--brand{
	min-width:0;
	text-align:right;
}
.wpcm-footer-logo{
	margin-bottom:14px;
}
.wpcm-footer-logo img,
.wpcm-footer-logo .custom-logo{
	max-height:70px;
	width:auto;
	margin-left:auto;
	filter:brightness(0) invert(1);
	opacity:.9;
}
.wpcm-footer-brand-text{
	font-family:var(--wpcm-font-title);
	font-size:28px;
	font-weight:800;
	color:#fff;
	letter-spacing:-.02em;
}
.wpcm-footer-brand-text:hover{color:var(--wpcm-accent);}
.wpcm-footer-social{
	margin-top:14px;
	display:flex;
	gap:10px;
	justify-content:flex-end;
	align-items:center;
}
.wpcm-footer-social a{
	color:#fff;
	font-size:18px;
	opacity:.8;
	transition:opacity .15s, color .15s;
}
.wpcm-footer-social a:hover{
	opacity:1;
	color:var(--wpcm-accent);
}

.wpcm-footer-extra{
	margin-top:32px;
	padding-top:24px;
	border-top:1px solid rgba(255,255,255,.08);
}

/* Faixa inferior: copyright */
.wpcm-footer-bottom{
	background:var(--wpcm-footer-bottom-bg);
	color:rgba(255,255,255,.65);
	font-size:13px;
}
.wpcm-footer-bottom-inner{
	padding:16px 0;
	display:flex;
	justify-content:space-between;
	align-items:center;
	gap:20px;
	flex-wrap:wrap;
}
.wpcm-footer-bottom a{color:rgba(255,255,255,.85);}
.wpcm-footer-bottom a:hover{color:var(--wpcm-accent);}
.wpcm-footer-bottom-menu{
	list-style:none;
	margin:0;
	padding:0;
	display:flex;
	gap:20px;
}
.wpcm-footer-bottom-menu a{font-size:12px;}

/* ────────── ARCHIVES / LISTAS ────────── */
.wpcm-archive-header{
	background:#fff;padding:32px 0;
	border-bottom:1px solid var(--wpcm-border);
	margin-bottom:30px;
}
.wpcm-archive-title{font-size:clamp(24px,3vw,36px);margin:0 0 8px;}
.wpcm-archive-desc{color:var(--wpcm-muted);font-size:15px;margin:0;}

.wpcm-archive-grid{
	display:grid;grid-template-columns:repeat(3,1fr);
	gap:24px;margin-bottom:40px;
}

.wpcm-post-card{
	background:#fff;border:1px solid var(--wpcm-border);
	border-radius:var(--wpcm-radius);overflow:hidden;
	transition:transform .2s,box-shadow .2s;
	display:flex;flex-direction:column;
}
.wpcm-post-card:hover{transform:translateY(-4px);box-shadow:0 10px 25px rgba(0,0,0,.08);}
.wpcm-post-card-img{aspect-ratio:16/9;overflow:hidden;background:var(--wpcm-border);}
.wpcm-post-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .35s;}
.wpcm-post-card:hover .wpcm-post-card-img img{transform:scale(1.05);}
.wpcm-post-card-body{padding:18px;flex:1;display:flex;flex-direction:column;gap:10px;}
.wpcm-post-card-cat{
	font-size:10px;font-weight:800;text-transform:uppercase;
	letter-spacing:.08em;color:var(--wpcm-accent);
}
.wpcm-post-card-title{font-size:18px;line-height:1.3;margin:0;}
.wpcm-post-card-title a{color:var(--wpcm-fg);}
.wpcm-post-card-title a:hover{color:var(--wpcm-accent);}
.wpcm-post-card-excerpt{
	font-size:14px;color:var(--wpcm-muted);line-height:1.55;
	display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.wpcm-post-card-meta{
	margin-top:auto;padding-top:10px;
	border-top:1px solid var(--wpcm-border);
	font-size:12px;color:var(--wpcm-muted);
}

.wpcm-pagination{
	display:flex;justify-content:center;align-items:center;
	gap:8px;margin:30px 0;flex-wrap:wrap;
}
.wpcm-pagination a,.wpcm-pagination span{
	display:inline-flex;align-items:center;justify-content:center;
	min-width:40px;height:40px;padding:0 14px;
	border:1px solid var(--wpcm-border);
	border-radius:var(--wpcm-radius);background:#fff;
	color:var(--wpcm-fg);font-weight:600;font-size:14px;
}
.wpcm-pagination a:hover,
.wpcm-pagination .current{background:var(--wpcm-accent);color:#fff;border-color:var(--wpcm-accent);}

/* Comments */
.wpcm-comments{
	margin-top:40px;padding:24px;
	background:#fff;border:1px solid var(--wpcm-border);
	border-radius:var(--wpcm-radius);
}
.wpcm-comments-title{font-size:20px;margin:0 0 20px;}
.wpcm-comments ol{list-style:none;padding:0;margin:0;}
.wpcm-comments .comment{border-top:1px solid var(--wpcm-border);padding:20px 0;}
.wpcm-comments .comment-meta{font-size:13px;color:var(--wpcm-muted);margin-bottom:8px;}
.wpcm-comments .comment-author cite{font-weight:700;color:var(--wpcm-fg);font-style:normal;}
.wpcm-comments .comment-respond{margin-top:24px;}
.wpcm-comments textarea,
.wpcm-comments input[type=text],
.wpcm-comments input[type=email],
.wpcm-comments input[type=url]{
	width:100%;padding:10px 14px;
	border:1px solid var(--wpcm-border);
	border-radius:var(--wpcm-radius);font-family:inherit;
}
.wpcm-comments textarea{min-height:120px;}
.wpcm-comments .form-submit input[type=submit]{
	background:var(--wpcm-accent);color:#fff;border:0;
	padding:12px 26px;border-radius:var(--wpcm-radius);
	font-weight:700;cursor:pointer;font-size:14px;
}

/* ════════════════════════════════════════════════════════════
   BUILDER RENDERED (frontend)
   ════════════════════════════════════════════════════════════ */
.wpcm-builder-rendered{
	width:100%;
	max-width:var(--wpcm-container);
	margin:0 auto;
	padding:20px clamp(14px,3vw,32px);
}
.wpcm-b-row{display:grid;gap:20px;margin-bottom:24px;}
.wpcm-b-col{min-width:0;}
.wpcm-b-col > *:first-child{margin-top:0;}
.wpcm-b-col > *:last-child{margin-bottom:0;}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width:1024px){
	.wpcm-single-layout--right,
	.wpcm-single-layout--left{grid-template-columns:1fr;}
	.wpcm-sidebar-sticky{position:static;}
	.wpcm-footer-grid{grid-template-columns:1fr 1fr;}
	.wpcm-footer-col--brand{grid-column:1/-1;text-align:center;margin-top:20px;}
	.wpcm-footer-logo img{margin:0 auto;}
	.wpcm-footer-social{justify-content:center;}
	.wpcm-related-grid,.wpcm-archive-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:820px){
	.wpcm-header-brand .wpcm-container{
		grid-template-columns:1fr;
		text-align:center;
		gap:20px;
	}
	.wpcm-brand-logo{align-items:center;}
	.wpcm-brand-banner{justify-content:center;}
	.wpcm-brand-banner img{margin:0 auto;}
	.wpcm-nav-menu{display:none;}
	.wpcm-nav-toggle{display:inline-flex;}
	.wpcm-site-nav .wpcm-container{justify-content:space-between;}
	.wpcm-nav-menu.is-open{
		display:flex;
		flex-direction:column;
		width:100%;
		position:absolute;
		top:100%;
		left:0;
		right:0;
		background:#fff;
		border-top:1px solid var(--wpcm-border);
		box-shadow:0 10px 30px rgba(0,0,0,.1);
		z-index:99;
	}
	.wpcm-nav-menu.is-open > li{width:100%;border-bottom:1px solid var(--wpcm-border);}
	.wpcm-nav-menu.is-open > li > a{padding:14px 20px;}
	.wpcm-nav-menu.is-open > li > a::after{display:none;}
	.wpcm-nav-menu.is-open .sub-menu{
		position:static;
		opacity:1;
		visibility:visible;
		transform:none;
		box-shadow:none;
		border-top:0;
		background:var(--wpcm-bg);
	}
	.wpcm-header-topbar{font-size:11px;}
	.wpcm-builder-rendered .wpcm-b-row{grid-template-columns:1fr !important;}
}
@media (max-width:640px){
	.wpcm-footer-grid{grid-template-columns:1fr;gap:30px;}
	.wpcm-footer-col--brand{text-align:left;margin-top:0;}
	.wpcm-footer-col--brand .wpcm-footer-logo img{margin:0;}
	.wpcm-footer-social{justify-content:flex-start;}
	.wpcm-footer-bottom-inner{flex-direction:column;text-align:center;}
	.wpcm-related-grid,.wpcm-archive-grid{grid-template-columns:1fr;}
	.wpcm-article-title{font-size:24px;}
}

/* Utility */
.screen-reader-text{
	position:absolute !important;
	width:1px;height:1px;padding:0;margin:-1px;
	overflow:hidden;clip:rect(0,0,0,0);
	white-space:nowrap;border:0;
}
.alignleft{float:left;margin:0 20px 10px 0;}
.alignright{float:right;margin:0 0 10px 20px;}
.aligncenter{display:block;margin:20px auto;}
