/* =========================================================
   eh-artikel.css  —  Artikel & Inspirasi Block
   BEM: .eh-artikel / .eh-art__*
   Designed to work inside a Gutenberg Columns column.
   ========================================================= */

/* ── CSS Variables ────────────────────────────────────── */
.eh-artikel {
	--art-teal:       #19babf;
	--art-blue:       #2563EB;
	--art-text-dark:  #1A2332;
	--art-text-mid:   #546E7A;
	--art-text-light: #78909C;
	--art-border:     #E8ECF0;
	--art-radius:     8px;
	--art-gap:        16px;
}

/* ── Section wrapper ──────────────────────────────────── */
.eh-artikel {
	display: block;
	width: 100%;
	padding: 24px 0 28px;
	box-sizing: border-box;
}

/* ── Header row ───────────────────────────────────────── */
.eh-art__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	gap: 12px;
}

.eh-art__heading {
	font-size: 15px;
	font-weight: 700;
	color: var(--art-text-dark);
	margin: 0;
	line-height: 1.2;
}

.eh-art__view-all {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--art-teal);
	text-decoration: none;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	flex-shrink: 0;
	transition: opacity 0.15s;
}

.eh-art__view-all:hover {
	opacity: 0.72;
	text-decoration: underline;
}

/* ── 3-column article grid ────────────────────────────── */
.eh-art__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--art-gap);
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ── Article card ─────────────────────────────────────── */
.eh-art__card {
	display: flex;
	flex-direction: column;
}

/* ── Thumbnail ────────────────────────────────────────── */
.eh-art__thumb-wrap {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--art-radius);
	background: #EEF0F2;
	flex-shrink: 0;
}

.eh-art__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.eh-art__thumb-wrap:hover .eh-art__thumb {
	transform: scale(1.04);
}

.eh-art__thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: #B0BEC5;
}

/* ── Card body ────────────────────────────────────────── */
.eh-art__body {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding-top: 10px;
	flex: 1;
}

/* ── Category badge ───────────────────────────────────── */
.eh-art__cat {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 20px;
	background: var(--art-teal);
	color: #FFFFFF;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.5;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	align-self: flex-start;
}

/* ── Article title ────────────────────────────────────── */
.eh-art__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--art-text-dark);
	line-height: 1.4;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-decoration: none;
}

.eh-art__title:hover {
	color: var(--art-blue);
}

/* ── Date ─────────────────────────────────────────────── */
.eh-art__date {
	font-size: 11px;
	color: var(--art-text-light);
	margin: 0;
	line-height: 1.3;
}

/* ── Read-more link ───────────────────────────────────── */
.eh-art__read-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: auto;
	padding-top: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--art-blue);
	text-decoration: none;
	transition: gap 0.15s;
}

.eh-art__read-more:hover {
	gap: 7px;
	text-decoration: underline;
}

/* ── Empty state ──────────────────────────────────────── */
.eh-art__empty {
	color: var(--art-text-light);
	font-size: 13px;
	margin: 0;
}

/* ── Responsive: 2 cols on small, 1 on very narrow ───── */
@media (max-width: 900px) {
	.eh-art__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
	.eh-artikel { padding: 18px 0 22px; }
	.eh-art__grid { grid-template-columns: 1fr; }
}
