/* Softnwords Blog Grid — matches Avada theme palette
   color4 #76b62b (green) · color5 #ffa42d (orange) · color8/7/6 inks · color3 borders · color2 #f2f2f2 */

.swb-wrap {
	--swb-green: #76b62b;
	--swb-green-dark: #5f9a1f;
	--swb-green-soft: rgba(118, 182, 43, 0.13);
	--swb-orange: #ffa42d;
	--swb-ink: #141414;
	--swb-head: #2d2d2d;
	--swb-text: #494949;
	--swb-muted: #6f6f6f;
	--swb-border: #e5e5e5;
	--swb-bg: #f2f2f2;
	--swb-card: #ffffff;
	--swb-radius: 14px;
	--swb-shadow: 0 10px 30px rgba(20, 20, 20, 0.07);
	--swb-shadow-hover: 0 24px 55px rgba(20, 20, 20, 0.16);
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px 56px;
	font-family: Sen, Arial, Helvetica, sans-serif;
	color: var(--swb-text);
}

/* ---------- HERO ---------- */
.swb-hero {
	position: relative;
	margin: 0 -20px 34px;
	padding: 54px 24px 50px;
	background:
		radial-gradient(1100px 320px at 85% -10%, rgba(118, 182, 43, 0.20), transparent 60%),
		radial-gradient(900px 300px at 8% 120%, rgba(255, 164, 45, 0.16), transparent 55%),
		linear-gradient(180deg, #ffffff 0%, var(--swb-bg) 100%);
	border-bottom: 1px solid var(--swb-border);
	overflow: hidden;
}
.swb-hero::after {
	content: "";
	position: absolute;
	right: -70px;
	top: -70px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	border: 44px solid rgba(118, 182, 43, 0.10);
	pointer-events: none;
}
.swb-hero-inner { max-width: 780px; margin: 0 auto; text-align: center; position: relative; }
.swb-kicker {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2.6px;
	text-transform: uppercase;
	color: #3f6b12;
	background: var(--swb-green-soft);
	border: 1px solid rgba(118, 182, 43, 0.35);
	padding: 7px 18px;
	border-radius: 999px;
	margin-bottom: 18px;
}
.swb-hero-title {
	margin: 0 0 16px;
	font-size: clamp(30px, 4.6vw, 46px);
	line-height: 1.14;
	font-weight: 800;
	color: var(--swb-ink);
	letter-spacing: -0.5px;
}
.swb-hero-sub {
	margin: 0 auto 22px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--swb-text);
	max-width: 640px;
}
.swb-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.swb-badge {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--swb-head);
	background: #fff;
	border: 1px solid var(--swb-border);
	border-radius: 999px;
	padding: 6px 14px;
	box-shadow: 0 1px 2px rgba(20,20,20,0.05);
}

/* ---------- GRID + CARDS ---------- */
.swb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}
@media (max-width: 1024px) { .swb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 640px)  { .swb-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

.swb-card {
	display: flex;
	flex-direction: column;
	background: var(--swb-card);
	border: 1px solid var(--swb-border);
	border-radius: var(--swb-radius);
	overflow: hidden;
	box-shadow: var(--swb-shadow);
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.swb-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--swb-shadow-hover);
	border-color: rgba(118, 182, 43, 0.55);
}

.swb-thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, #eef5e4, #e4ecf2);
}
.swb-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}
.swb-card:hover .swb-thumb img { transform: scale(1.06); }
.swb-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(600px 200px at 20% 0%, rgba(118,182,43,0.35), transparent 60%), linear-gradient(140deg, #2d2d2d, #141414);
}
.swb-thumb-placeholder span {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(255,255,255,0.85);
}

.swb-body { padding: 18px 20px 4px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.swb-labels { display: flex; gap: 8px; flex-wrap: wrap; min-height: 22px; }
.swb-chip {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: #3f6b12;
	background: var(--swb-green-soft);
	border-radius: 6px;
	padding: 4px 9px;
}
.swb-title {
	margin: 0;
	font-size: 17.5px;
	line-height: 1.32;
	font-weight: 700;
	color: var(--swb-head);
	letter-spacing: -0.1px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 46px;
}
.swb-excerpt {
	margin: 0;
	font-size: 13.8px;
	line-height: 1.6;
	color: var(--swb-text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.swb-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px 18px;
	border-top: 1px solid var(--swb-border);
	margin-top: 14px;
}
.swb-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--swb-muted); flex-wrap: wrap; }
.swb-meta svg { flex: 0 0 auto; opacity: 0.75; }

.swb-read {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font: 700 13.5px/1 Sen, Arial, sans-serif;
	color: #fff;
	background: var(--swb-green);
	border: none;
	border-radius: 8px;
	padding: 10px 16px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s ease, transform 0.2s ease;
}
.swb-read svg { transition: transform 0.25s ease; }
.swb-read:hover { background: var(--swb-green-dark); }
.swb-read:hover svg { transform: translateX(4px); }
.swb-read:focus-visible { outline: 3px solid rgba(118,182,43,0.45); outline-offset: 2px; }

/* ---------- FOOTER CTA ---------- */
.swb-foot { text-align: center; margin-top: 38px; }
.swb-all-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: 700 14.5px/1 Sen, Arial, sans-serif;
	color: var(--swb-ink);
	background: #fff;
	border: 1.5px solid var(--swb-ink);
	border-radius: 10px;
	padding: 14px 26px;
	text-decoration: none;
	transition: all 0.22s ease;
}
.swb-all-btn:hover { background: var(--swb-ink); color: #fff; }

/* ---------- STATUS / ERROR ---------- */
.swb-status { min-height: 0; font-size: 13px; color: var(--swb-muted); text-align: center; }
.swb-error {
	text-align: center;
	border: 1px dashed #cfe0b4;
	background: #f7fbee;
	border-radius: var(--swb-radius);
	padding: 44px 24px;
	max-width: 560px;
	margin: 10px auto;
}
.swb-error h3 { margin: 14px 0 8px; color: var(--swb-head); font-size: 20px; }
.swb-error p { margin: 0 0 18px; color: var(--swb-text); font-size: 14.5px; }
.swb-error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.swb-btn {
	inline-size: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 8px;
	padding: 11px 20px;
	font: 700 13.5px/1 Sen, Arial, sans-serif;
	cursor: pointer;
	text-decoration: none;
	border: none;
}
.swb-btn-solid { background: var(--swb-green); color: #fff; }
.swb-btn-solid:hover { background: var(--swb-green-dark); }
.swb-btn-ghost { background: #fff; color: var(--swb-head); border: 1px solid var(--swb-border); }
.swb-btn-ghost:hover { border-color: var(--swb-green); color: var(--swb-green-dark); }

/* ---------- SKELETONS ---------- */
.swb-skel {
	background: linear-gradient(100deg, #ececec 20%, #f6f6f6 40%, #ececec 60%);
	background-size: 200% 100%;
	animation: swb-shimmer 1.5s infinite;
	border-radius: 8px;
}
.swb-card-skel .swb-thumb { border-radius: 0; animation: swb-shimmer 1.5s infinite; background-size: 200% 100%; background-image: linear-gradient(100deg, #ececec 20%, #f6f6f6 40%, #ececec 60%); }
.swb-skel-chip { width: 84px; height: 18px; }
.swb-skel-line { height: 14px; width: 92%; }
.swb-skel-line-short { width: 70%; }
.swb-skel-line-tiny { width: 45%; }
@keyframes swb-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- MODAL READER ---------- */
.swb-modal[hidden] { display: none !important; }
.swb-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.swb-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 15, 15, 0.72);
	backdrop-filter: blur(3px);
	animation: swb-fade 0.25s ease;
}
@keyframes swb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes swb-pop { from { opacity: 0; transform: translateY(22px) scale(0.97); } to { opacity: 1; transform: none; } }

.swb-modal-panel {
	position: relative;
	background: #fff;
	width: min(900px, 100%);
	max-height: 88vh;
	overflow-y: auto;
	border-radius: var(--swb-radius);
	box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4);
	animation: swb-pop 0.3s ease;
	scrollbar-width: thin;
}
.swb-modal-close {
	position: sticky;
	top: 12px;
	float: right;
	margin: 12px 12px 0 0;
	z-index: 2;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--swb-border);
	background: #fff;
	color: var(--swb-head);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}
.swb-modal-close:hover { background: var(--swb-ink); border-color: var(--swb-ink); color: #fff; }

.swb-article { padding: 30px clamp(20px, 4.5vw, 46px) 34px; }
.swb-article-title {
	margin: 6px 0 12px;
	font-size: clamp(24px, 3.4vw, 33px);
	line-height: 1.22;
	font-weight: 800;
	color: var(--swb-ink);
	letter-spacing: -0.4px;
}
.swb-article-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--swb-muted);
	padding-bottom: 18px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--swb-border);
}
.swb-dot { opacity: 0.6; }
.swb-article-body { font-size: 16.5px; line-height: 1.78; color: var(--swb-text); }
.swb-article-body p { margin: 0 0 1.15em; }
.swb-article-body h1, .swb-article-body h2, .swb-article-body h3, .swb-article-body h4 { color: var(--swb-ink); line-height: 1.3; margin: 1.4em 0 0.5em; }
.swb-article-body h1 { font-size: 1.55em; } .swb-article-body h2 { font-size: 1.38em; } .swb-article-body h3 { font-size: 1.2em; } .swb-article-body h4 { font-size: 1.05em; }
.swb-article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 0.6em auto; display: block; }
.swb-article-body a { color: var(--swb-green-dark); font-weight: 600; }
.swb-article-body blockquote {
	margin: 1.4em 0;
	padding: 14px 18px;
	border-left: 4px solid var(--swb-green);
	background: #f7fbee;
	border-radius: 0 10px 10px 0;
}
.swb-article-body ul, .swb-article-body ol { margin: 0 0 1.15em 1.4em; padding: 0; }
.swb-article-body li { margin-bottom: 0.45em; }
.swb-article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.9em; }
.swb-article-body th, .swb-article-body td { border: 1px solid var(--swb-border); padding: 8px 10px; }

.swb-article-foot {
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid var(--swb-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--swb-muted);
}
.swb-original {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--swb-green-dark);
	font-weight: 700;
	text-decoration: none;
}
.swb-original:hover { text-decoration: underline; }

@media (max-width: 560px) {
	.swb-modal { padding: 0; }
	.swb-modal-panel { width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
	.swb-card-foot { flex-direction: column; align-items: stretch; }
	.swb-read { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.swb-card, .swb-thumb img, .swb-read, .swb-read svg, .swb-skel, .swb-card-skel .swb-thumb { transition: none; animation: none; }
	.swb-modal-backdrop, .swb-modal-panel { animation: none; }
}
