/* ==========================================================================
   Women Life Network — main.css v2.0.0
   Mobile-first, CSS custom properties, dark mode, RTL-ready, accessible.
   ========================================================================== */

/* ── 1. CSS CUSTOM PROPERTIES ── */
:root {
	/* Brand colors (defaults; overridden by Customizer via inline style) */
	--clr-primary:   #e91e7a;
	--clr-secondary: #6d3b8c;
	--clr-text:      #1a1a2e;
	--clr-bg:        #ffffff;
	--clr-heading:   #1a1a2e;
	--clr-link:      #e91e7a;
	--clr-surface:   #f8f8fb;
	--clr-border:    #e8e8f0;
	--clr-muted:     #666677;

	/* Typography */
	--font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	--font-heading: var(--font-body);
	--fs-base:      1rem;
	--fs-sm:        0.875rem;
	--fs-lg:        1.125rem;
	--fs-xl:        1.375rem;
	--fs-2xl:       1.75rem;
	--fs-3xl:       2.25rem;
	--lh:           1.65;

	/* Layout */
	--container:    1200px;
	--content-max:  720px;
	--sidebar-w:    300px;
	--gap:          24px;
	--section-gap:  60px;

	/* Effects */
	--radius:       8px;
	--radius-lg:    16px;
	--shadow:       0 2px 20px rgba(0,0,0,.08);
	--shadow-md:    0 4px 30px rgba(0,0,0,.12);
	--transition:   0.25s ease;
}

/* Dark mode */
body.dark-mode,
@media (prefers-color-scheme: dark) {
	body:not(.light-mode) {
		--clr-bg:      #0f0f1a;
		--clr-text:    #e8e8f0;
		--clr-heading: #f0f0f8;
		--clr-surface: #1a1a2e;
		--clr-border:  #2a2a40;
		--clr-muted:   #9999bb;
		--shadow:      0 2px 20px rgba(0,0,0,.4);
	}
}
body.dark-mode {
	--clr-bg:      #0f0f1a;
	--clr-text:    #e8e8f0;
	--clr-heading: #f0f0f8;
	--clr-surface: #1a1a2e;
	--clr-border:  #2a2a40;
	--clr-muted:   #9999bb;
	--shadow:      0 2px 20px rgba(0,0,0,.4);
}

/* ── 2. RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--fs-base);
	color: var(--clr-text);
	background: var(--clr-bg);
	line-height: var(--lh);
	-webkit-font-smoothing: antialiased;
	transition: background var(--transition), color var(--transition);
}
img, video {
	max-width: 100%;
	height: auto;
	display: block;
}
a {
	color: var(--clr-link);
	text-decoration: none;
	transition: color var(--transition), opacity var(--transition);
}
a:hover { opacity: .8; }

:focus-visible {
	outline: 3px solid var(--clr-primary);
	outline-offset: 3px;
	border-radius: 3px;
}

h1,h2,h3,h4,h5,h6 {
	font-family: var(--font-heading);
	color: var(--clr-heading);
	line-height: 1.25;
	margin: 0 0 .6em;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 1.2em; }

ul, ol { padding-inline-start: 1.5em; }

blockquote {
	margin: 2em 0;
	padding: 1.25em 1.5em;
	border-inline-start: 4px solid var(--clr-primary);
	background: var(--clr-surface);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-size: var(--fs-lg);
	color: var(--clr-muted);
	font-style: italic;
}

code, pre {
	font-family: "Fira Code", "Courier New", monospace;
	font-size: .9em;
}
pre {
	background: var(--clr-surface);
	border: 1px solid var(--clr-border);
	border-radius: var(--radius);
	padding: 1.25em;
	overflow-x: auto;
}

/* ── 3. UTILITY ── */
.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 20px;
}
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999999;
	background: #000;
	color: #fff;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ── 4. BUTTONS ── */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: .65em 1.4em;
	border-radius: 50px;
	font-size: var(--fs-sm);
	font-weight: 600;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background var(--transition), color var(--transition), transform .15s;
	text-decoration: none;
	white-space: nowrap;
	min-height: 48px;
	min-width: 48px;
}
.btn:active { transform: scale(.97); }
.btn--primary {
	background: var(--clr-primary);
	color: #fff;
}
.btn--primary:hover {
	background: var(--clr-secondary);
	opacity: 1;
}
.btn--outline {
	background: transparent;
	color: var(--clr-primary);
	border-color: var(--clr-primary);
}
.btn--outline:hover {
	background: var(--clr-primary);
	color: #fff;
	opacity: 1;
}
.btn--white {
	background: #fff;
	color: var(--clr-primary);
}
.btn--sm { padding: .45em 1em; font-size: .8rem; min-height: 40px; }

/* ── 5. CATEGORY PILL ── */
.category-pill {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 50px;
	background: var(--clr-primary);
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	text-decoration: none;
}
.category-pill:hover { opacity: .85; }

/* ── 6. HEADER ── */
.site-header {
	padding: 14px 0;
	background: var(--clr-bg);
	border-bottom: 1px solid var(--clr-border);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 8px rgba(0,0,0,.06);
	transition: background var(--transition);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.site-branding { flex-shrink: 0; }
.site-branding img { max-height: 60px; width: auto; }
.site-title-link { text-decoration: none; }
.site-title {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--clr-heading);
	margin: 0;
	background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.site-description { font-size: .75rem; color: var(--clr-muted); margin: 0; }

.header-right { display: flex; align-items: center; gap: 12px; }

/* Primary nav */
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
	align-items: center;
}
.main-navigation ul li { position: relative; }
.main-navigation ul a {
	display: block;
	padding: 8px 14px;
	color: var(--clr-text);
	font-weight: 500;
	font-size: var(--fs-sm);
	border-radius: var(--radius);
	text-decoration: none;
	transition: background var(--transition), color var(--transition);
	min-height: 44px;
	display: flex;
	align-items: center;
}
.main-navigation ul a:hover,
.main-navigation ul li.current-menu-item > a {
	background: var(--clr-surface);
	color: var(--clr-primary);
}
/* Dropdown */
.main-navigation ul ul {
	display: none;
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	background: var(--clr-bg);
	border: 1px solid var(--clr-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	min-width: 200px;
	padding: 8px 0;
	z-index: 200;
	flex-direction: column;
}
.main-navigation ul li:hover > ul,
.main-navigation ul li:focus-within > ul { display: flex; }
.main-navigation ul ul a { padding: 10px 18px; white-space: nowrap; }

/* Header tools */
.header-tools {
	display: flex;
	align-items: center;
	gap: 8px;
}
.search-toggle,
.dark-mode-toggle,
.menu-toggle {
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: var(--clr-text);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	transition: background var(--transition);
}
.search-toggle:hover,
.dark-mode-toggle:hover { background: var(--clr-surface); }

.dark-mode-toggle .icon-moon { display: none; }
body.dark-mode .dark-mode-toggle .icon-sun  { display: none; }
body.dark-mode .dark-mode-toggle .icon-moon { display: block; }

.menu-toggle { display: none; }
.burger-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .3s, opacity .3s;
	margin: 3px 0;
}

/* Inline search bar */
.search-bar-wrap {
	border-top: 1px solid var(--clr-border);
	padding: 14px 0;
	background: var(--clr-surface);
	animation: slideDown .2s ease;
}
.search-bar-wrap .search-form {
	display: flex;
	gap: 8px;
	max-width: 500px;
	margin-inline: auto;
}
.search-bar-wrap input[type="search"] {
	flex: 1;
	padding: 10px 16px;
	border: 1px solid var(--clr-border);
	border-radius: 50px;
	font-size: var(--fs-sm);
	background: var(--clr-bg);
	color: var(--clr-text);
}
.search-bar-wrap .search-submit { composes: btn btn--primary; }
@keyframes slideDown {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── 7. MOBILE DRAWER ── */
.mobile-drawer {
	position: fixed;
	top: 0;
	inset-inline-start: -320px;
	width: 300px;
	height: 100%;
	background: var(--clr-bg);
	z-index: 500;
	box-shadow: 6px 0 30px rgba(0,0,0,.15);
	transition: inset-inline-start .3s ease;
	overflow-y: auto;
}
.mobile-drawer.is-open { inset-inline-start: 0; }
.drawer-inner { padding: 24px 20px; }
.drawer-close {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--clr-text);
	padding: 8px;
	display: flex;
	margin-inline-start: auto;
	margin-bottom: 20px;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
}
.mobile-drawer nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.mobile-drawer nav ul a {
	display: block;
	padding: 12px 0;
	border-bottom: 1px solid var(--clr-border);
	color: var(--clr-text);
	font-weight: 500;
	font-size: var(--fs-lg);
}
.drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	z-index: 499;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s;
}
.drawer-overlay.is-visible {
	opacity: 1;
	pointer-events: auto;
}

/* ── 8. HERO ── */
.hero-section {
	position: relative;
	min-height: 480px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: #1a1a2e;
}
.hero-bg-wrap {
	position: absolute;
	inset: 0;
}
.hero-bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 8s ease;
}
.hero-section:hover .hero-bg-img { transform: scale(1.04); }
.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10,10,30,.9) 0%, rgba(10,10,30,.4) 55%, transparent 100%);
}
.hero-content {
	position: relative;
	z-index: 2;
	padding: 40px 0 60px;
	width: 100%;
	color: #fff;
}
.hero-cat-pill { margin-bottom: 14px; }
.hero-title {
	font-size: clamp(1.6rem, 4vw, 2.8rem);
	font-weight: 800;
	color: #fff;
	margin: 0 0 16px;
	max-width: 700px;
	line-height: 1.15;
}
.hero-title a { color: inherit; text-decoration: none; }
.hero-title a:hover { opacity: .9; }
.hero-excerpt {
	font-size: var(--fs-lg);
	color: rgba(255,255,255,.85);
	max-width: 600px;
	margin: 0 0 20px;
}
.hero-meta {
	display: flex;
	gap: 16px;
	font-size: var(--fs-sm);
	color: rgba(255,255,255,.7);
	margin-bottom: 24px;
}
.hero-btn { background: var(--clr-primary); color: #fff; }

/* ── 9. SECTION HEADERS ── */
.section-heading,
.block-title {
	font-size: var(--fs-2xl);
	font-weight: 800;
	position: relative;
	margin: 0 0 var(--gap);
	padding-bottom: 12px;
}
.section-heading::after,
.block-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	inset-inline-start: 0;
	width: 48px;
	height: 4px;
	background: var(--clr-primary);
	border-radius: 4px;
}
.section-heading a,
.block-title a { color: inherit; }
.section-heading a:hover,
.block-title a:hover { color: var(--clr-primary); opacity: 1; }

.block-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: var(--gap);
}
.view-all-link {
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--clr-primary);
	display: flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

/* ── 10. POST CARDS ── */
.posts-grid {
	display: grid;
	gap: var(--gap);
}
.posts-grid.three-col { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.post-card {
	background: var(--clr-bg);
	border: 1px solid var(--clr-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .25s, box-shadow .25s;
}
.post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}
.card-thumb-link { display: block; overflow: hidden; }
.card-thumb {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform .4s ease;
}
.post-card:hover .card-thumb { transform: scale(1.05); }

.card-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}
.card-title {
	font-size: var(--fs-xl);
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
}
.card-title a { color: var(--clr-heading); }
.card-title a:hover { color: var(--clr-primary); opacity: 1; }
.card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	font-size: var(--fs-sm);
	color: var(--clr-muted);
	align-items: center;
}
.card-excerpt {
	font-size: var(--fs-sm);
	color: var(--clr-muted);
	margin: 0;
	flex: 1;
}

/* List-style card */
.post-card--list {
	flex-direction: row;
}
.post-card--list .card-thumb-link { width: 240px; flex-shrink: 0; }
.post-card--list .card-thumb { height: 100%; min-height: 160px; }
.post-card--list .card-body { padding: 20px; }

/* ── 11. CATEGORY BLOCKS ── */
.homepage-category-blocks > .category-block { padding: var(--section-gap) 0; }
.homepage-category-blocks > .category-block:nth-child(even) {
	background: var(--clr-surface);
}

/* ── 12. LATEST POSTS SECTION ── */
.latest-posts-section {
	padding: var(--section-gap) 0;
}
.posts-loop {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
}
.load-more-wrap {
	text-align: center;
	margin-top: 40px;
}
.load-more-btn[data-loading]::after {
	content: ' …';
}

/* ── 13. NEWSLETTER ── */
.newsletter-section {
	padding: 70px 0;
	background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
	color: #fff;
	text-align: center;
}
.newsletter-heading { color: #fff; font-size: var(--fs-2xl); margin-bottom: 12px; }
.newsletter-subtext { color: rgba(255,255,255,.85); font-size: var(--fs-lg); margin-bottom: 32px; }
.newsletter-form-wrap { max-width: 480px; margin-inline: auto; }
.newsletter-form-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}
.newsletter-input {
	flex: 1;
	min-width: 220px;
	padding: 14px 20px;
	border: none;
	border-radius: 50px;
	font-size: var(--fs-base);
	background: rgba(255,255,255,.95);
	color: #1a1a2e;
}
.newsletter-input:focus { outline: 3px solid rgba(255,255,255,.6); }
.newsletter-submit { min-height: 48px; }
.wln-message {
	padding: 12px 20px;
	border-radius: var(--radius);
	margin-bottom: 16px;
	font-weight: 600;
	background: rgba(255,255,255,.2);
}

/* ── 14. SINGLE POST ── */
.single-layout {
	display: grid;
	grid-template-columns: 1fr var(--sidebar-w);
	gap: 48px;
	padding: 40px 0 60px;
	align-items: start;
}
.content-area { min-width: 0; }

.single-article { max-width: var(--content-max); }

.entry-header { margin-bottom: 24px; }
.entry-title {
	font-size: clamp(1.6rem, 3.5vw, 2.5rem);
	line-height: 1.2;
	margin: 0 0 16px;
}
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	align-items: center;
	font-size: var(--fs-sm);
	color: var(--clr-muted);
	padding: 14px 0;
	border-top: 1px solid var(--clr-border);
	border-bottom: 1px solid var(--clr-border);
}
.entry-meta a { color: var(--clr-muted); }
.entry-meta a:hover { color: var(--clr-primary); opacity: 1; }
.meta-cat { font-size: .7rem; }

.post-featured-image {
	margin: 24px 0 32px;
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.post-featured-image img {
	width: 100%;
	max-height: 500px;
	object-fit: cover;
}
.post-featured-image figcaption {
	font-size: var(--fs-sm);
	color: var(--clr-muted);
	text-align: center;
	padding: 8px 16px;
	background: var(--clr-surface);
}

/* Table of Contents */
.toc-box {
	background: var(--clr-surface);
	border: 1px solid var(--clr-border);
	border-radius: var(--radius-lg);
	padding: 20px 24px;
	margin-bottom: 32px;
}
.toc-box-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}
.toc-box-title {
	font-size: var(--fs-base);
	font-weight: 700;
	margin: 0;
}
.toc-toggle-icon { transition: transform .25s; }
.toc-box[open] .toc-toggle-icon { transform: rotate(180deg); }
.toc-list {
	margin: 16px 0 0;
	padding-inline-start: 20px;
}
.toc-list li { margin-bottom: 6px; }
.toc-list a {
	color: var(--clr-text);
	font-size: var(--fs-sm);
}
.toc-list a:hover { color: var(--clr-primary); opacity: 1; }

/* Entry content */
.entry-content {
	font-size: var(--fs-lg);
	line-height: 1.8;
	color: var(--clr-text);
}
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 2em; }
.entry-content img {
	border-radius: var(--radius);
	max-width: 100%;
	height: auto;
}
.entry-content .alignwide  { max-width: 900px; margin-inline: auto; }
.entry-content .alignfull  { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.search-highlight { background: rgba(233,30,122,.15); border-radius: 3px; padding: 1px 3px; }

/* Share buttons */
.share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	padding: 24px 0;
	border-top: 1px solid var(--clr-border);
	border-bottom: 1px solid var(--clr-border);
	margin: 32px 0;
}
.share-label { font-weight: 700; font-size: var(--fs-sm); color: var(--clr-muted); }
.share-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px;
	border-radius: 50px;
	font-size: var(--fs-sm);
	font-weight: 600;
	cursor: pointer;
	border: 1px solid var(--clr-border);
	background: var(--clr-surface);
	color: var(--clr-text);
	text-decoration: none;
	transition: background var(--transition), color var(--transition);
	min-height: 40px;
}
.share-btn:hover { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); opacity: 1; }
.share-whatsapp svg { color: #25d366; }
.share-facebook svg { color: #1877f2; }
.share-twitter svg  { color: #000; }
.share-copy svg     { color: var(--clr-muted); }

/* Post navigation */
.post-navigation {
	margin: 40px 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--gap);
}
.post-navigation .nav-links { display: contents; }
.post-navigation a {
	display: block;
	padding: 18px;
	border: 1px solid var(--clr-border);
	border-radius: var(--radius-lg);
	transition: border-color .2s, background .2s;
}
.post-navigation a:hover {
	border-color: var(--clr-primary);
	background: var(--clr-surface);
	opacity: 1;
}
.nav-dir { display: block; font-size: .75rem; color: var(--clr-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.nav-title { display: block; font-weight: 700; color: var(--clr-heading); }
.nav-next { text-align: end; }

/* Author bio */
.author-bio-box {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 20px;
	align-items: start;
	padding: 28px;
	background: var(--clr-surface);
	border-radius: var(--radius-lg);
	border: 1px solid var(--clr-border);
	margin: 40px 0;
}
.author-avatar img {
	border-radius: 50%;
	width: 96px;
	height: 96px;
	object-fit: cover;
}
.author-name { font-size: var(--fs-lg); margin: 0 0 8px; }
.author-name a { color: var(--clr-heading); }
.author-desc { font-size: var(--fs-sm); color: var(--clr-muted); margin: 0 0 14px; }

/* Related posts */
.related-posts {
	margin: 50px 0;
}
.related-posts-title { margin-bottom: var(--gap); }

/* ── 15. AD SLOTS ── */
.wln-ad {
	margin: 24px 0;
	text-align: center;
	overflow: hidden;
	max-width: 100%;
	min-height: 90px;
	border-radius: var(--radius);
	background: var(--clr-surface);
	border: 1px dashed var(--clr-border);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.ad-label {
	display: block;
	font-size: .65rem;
	color: var(--clr-muted);
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-bottom: 8px;
}

/* ── 16. SIDEBAR ── */
.sidebar {
	position: sticky;
	top: 100px;
}
.sidebar .widget {
	margin-bottom: 32px;
	padding: 20px;
	background: var(--clr-surface);
	border-radius: var(--radius-lg);
	border: 1px solid var(--clr-border);
}
.sidebar .widget-title {
	font-size: var(--fs-base);
	font-weight: 700;
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--clr-primary);
}

/* Recent posts widget */
.wln-recent-posts-widget { list-style: none; margin: 0; padding: 0; }
.wln-recent-posts-widget li {
	display: flex;
	gap: 12px;
	align-items: start;
	padding: 10px 0;
	border-bottom: 1px solid var(--clr-border);
}
.wln-recent-posts-widget li:last-child { border-bottom: none; }
.wln-widget-thumb img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.wln-widget-post-info a { display: block; font-weight: 600; font-size: var(--fs-sm); color: var(--clr-heading); margin-bottom: 4px; }
.wln-widget-post-info time { font-size: .75rem; color: var(--clr-muted); }

/* Social icons */
.wln-social-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--clr-bg);
	border: 1px solid var(--clr-border);
	color: var(--clr-text);
	transition: background var(--transition), color var(--transition), transform .2s;
}
.social-icon:hover { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); opacity: 1; transform: translateY(-2px); }

/* ── 17. ARCHIVE / BREADCRUMBS ── */
.archive-layout {
	display: grid;
	grid-template-columns: 1fr var(--sidebar-w);
	gap: 48px;
	padding: 40px 0;
}
.archive-header {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 2px solid var(--clr-border);
}
.archive-title { font-size: var(--fs-2xl); margin: 0 0 8px; }
.archive-description { color: var(--clr-muted); }

.wln-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
	font-size: var(--fs-sm);
	color: var(--clr-muted);
	margin-bottom: 24px;
}
.wln-breadcrumbs a { color: var(--clr-muted); text-decoration: underline; }
.wln-breadcrumbs a:hover { color: var(--clr-primary); opacity: 1; }

/* Pagination */
.pagination,
.page-links,
.posts-pagination {
	margin: 40px 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 8px 14px;
	border-radius: var(--radius);
	border: 1px solid var(--clr-border);
	color: var(--clr-text);
	font-weight: 500;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.page-numbers.current,
.page-numbers:hover {
	background: var(--clr-primary);
	color: #fff;
	border-color: var(--clr-primary);
	opacity: 1;
}

/* ── 18. SEARCH ── */
.search-highlight { background: rgba(233,30,122,.15); border-radius: 3px; padding: 1px 4px; }
.search-term { color: var(--clr-primary); }

/* ── 19. 404 ── */
.not-found-layout { padding: 80px 0; text-align: center; }
.not-found-code { font-size: 8rem; font-weight: 900; color: var(--clr-border); line-height: 1; margin: 0 0 16px; }
.not-found-title { font-size: var(--fs-2xl); margin: 0 0 16px; }

/* ── 20. FOOTER ── */
.site-footer {
	background: #0f0f1a;
	color: rgba(255,255,255,.7);
	padding: 60px 0 24px;
}
.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 40px;
	margin-bottom: 48px;
}
.footer-col {}
.site-footer .widget-title {
	color: #fff;
	font-size: var(--fs-base);
	border-bottom-color: var(--clr-primary);
}
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--clr-primary); opacity: 1; }

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	border-top: 1px solid rgba(255,255,255,.1);
	padding-top: 24px;
}
.footer-copy { margin: 0; font-size: var(--fs-sm); }
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.footer-menu a {
	padding: 6px 12px;
	font-size: var(--fs-sm);
	border-radius: var(--radius);
}
.footer-menu a:hover { background: rgba(255,255,255,.1); }

/* Back to top */
.back-to-top {
	position: fixed;
	bottom: 24px;
	inset-inline-end: 24px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--clr-primary);
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-md);
	z-index: 200;
	transition: opacity .3s, transform .3s;
}
.back-to-top:hover { transform: translateY(-3px); opacity: .9; }
.back-to-top[hidden] { display: none; }

/* ── 21. AD ZONE ── */
.ad-before-footer {
	padding: 24px 0;
	background: var(--clr-surface);
	border-top: 1px solid var(--clr-border);
}

/* ── 22. RESPONSIVE EMBED ── */
.responsive-embed-wrap {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	border-radius: var(--radius);
}
.responsive-embed-wrap iframe,
.responsive-embed-wrap object,
.responsive-embed-wrap embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ── 23. COMMENTS ── */
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-body {
	padding: 20px;
	background: var(--clr-surface);
	border-radius: var(--radius-lg);
	border: 1px solid var(--clr-border);
	margin-bottom: 20px;
}
.comment-author img { border-radius: 50%; vertical-align: middle; margin-inline-end: 10px; }
.comment-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.comment-content p { margin: 0; }
.comment-form input,
.comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--clr-border);
	border-radius: var(--radius);
	font-size: var(--fs-base);
	background: var(--clr-bg);
	color: var(--clr-text);
	margin-bottom: 16px;
}
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form input:focus,
.comment-form textarea:focus {
	outline: 2px solid var(--clr-primary);
	border-color: var(--clr-primary);
}
.comment-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: var(--fs-sm); }
.comment-form input[type="submit"] {
	width: auto;
	background: var(--clr-primary);
	color: #fff;
	border: none;
	cursor: pointer;
	border-radius: 50px;
	padding: 12px 28px;
	font-weight: 700;
}

/* ── 24. RESPONSIVE ── */
@media (max-width: 1024px) {
	.single-layout,
	.archive-layout {
		grid-template-columns: 1fr;
	}
	.sidebar { position: static; }
}

@media (max-width: 768px) {
	:root { --section-gap: 40px; }

	.main-navigation { display: none; }
	.menu-toggle { display: flex; }

	.hero-section { min-height: 350px; }
	.hero-title { font-size: 1.6rem; }

	.post-card--list { flex-direction: column; }
	.post-card--list .card-thumb-link { width: 100%; }
	.post-card--list .card-thumb { height: 200px; }

	.posts-grid.three-col { grid-template-columns: 1fr; }

	.newsletter-form-row { flex-direction: column; }
	.newsletter-input { min-width: 0; }

	.post-navigation { grid-template-columns: 1fr; }
	.author-bio-box { grid-template-columns: 1fr; }

	.footer-bottom { flex-direction: column; align-items: start; }

	.header-right .main-navigation { display: none; }
}

@media (max-width: 480px) {
	.container { padding-inline: 16px; }
	.hero-title { font-size: 1.4rem; }
	h1 { font-size: 1.6rem; }
	h2 { font-size: 1.4rem; }
}

/* ── 25. PRINT ── */
@media print {
	.site-header, .site-footer, .sidebar, .share-buttons,
	.related-posts, .wln-ad, .newsletter-section,
	.back-to-top, .mobile-drawer { display: none !important; }
	body { color: #000; background: #fff; }
	a { color: #000; text-decoration: underline; }
	.single-layout { grid-template-columns: 1fr; }
}
