/* =========================================================
   eh-forum-proyek.css  —  Forum Proyek / Kebutuhan Terbaru
   BEM: .eh-forum-proyek / .eh-fp__*
   ========================================================= */

/* ── CSS Variables ────────────────────────────────────── */
.eh-forum-proyek {
	--fp-blue:       #1565C0;
	--fp-text-dark:  #1A2332;
	--fp-text-mid:   #546E7A;
	--fp-text-light: #78909C;
	--fp-bg:         #FFFFFF;
	--fp-card-bg:    #FFFFFF;
	--fp-border:     #E8ECF0;
	--fp-radius:     10px;
	--fp-gap:        14px;
	--fp-card-w:     220px;
}

/* ── Section wrapper ──────────────────────────────────── */
.eh-forum-proyek {
	display: block;
	width: 100%;
	background: var(--fp-bg);
	padding: 24px 0 28px;
	box-sizing: border-box;
}

/* ── Inner container ──────────────────────────────────── */
.eh-fp__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

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

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

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

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

/* ── Carousel wrapper ─────────────────────────────────── */
.eh-fp__carousel-wrap {
	position: relative;
}

/* ── Scrollable track ─────────────────────────────────── */
.eh-fp__track {
	display: flex;
	gap: var(--fp-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.eh-fp__track::-webkit-scrollbar { display: none; }

/* ── Arrow buttons ────────────────────────────────────── */
.eh-fp__arrow {
	display: none;
	position: absolute;
	top: 40%; /* image area midpoint */
	transform: translateY(-50%);
	z-index: 10;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1.5px solid #D0D7DE;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.10);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	transition: box-shadow 0.15s, border-color 0.15s;
}

.eh-fp__arrow:hover {
	border-color: var(--fp-blue);
	box-shadow: 0 4px 12px rgba(21,101,192,0.15);
}

.eh-fp__arrow svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: var(--fp-text-dark);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.eh-fp__arrow--prev { left: -17px; }
.eh-fp__arrow--next { right: -17px; }
.eh-fp__arrow.is-visible { display: flex; }
.eh-fp__arrow.is-hidden  { opacity: 0.3; cursor: default; pointer-events: none; }

/* ── Single card item ─────────────────────────────────── */
.eh-fp__item {
	flex: 0 0 auto;
	width: var(--fp-card-w);
	scroll-snap-align: start;
}

.eh-fp__card {
	display: block;
	background: var(--fp-card-bg);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s, transform 0.2s;
}

.eh-fp__card:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,0.10);
	transform: translateY(-2px);
}

.eh-fp__card:focus-visible {
	outline: 2px solid var(--fp-blue);
	outline-offset: 2px;
}

/* ── Card image ───────────────────────────────────────── */
.eh-fp__img-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #EEF0F2;
}

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

.eh-fp__card:hover .eh-fp__img {
	transform: scale(1.04);
}

/* placeholder when no image */
.eh-fp__img-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #E8ECF0 0%, #D0D7DE 100%);
	color: #90A4AE;
	font-size: 28px;
}

/* ── Type badge ───────────────────────────────────────── */
.eh-fp__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

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

/* ── Project title ────────────────────────────────────── */
.eh-fp__title {
	font-size: 13px;
	font-weight: 600;
	color: var(--fp-text-dark);
	line-height: 1.35;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Meta row (location, time) ────────────────────────── */
.eh-fp__meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-top: 2px;
}

.eh-fp__meta-row {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11.5px;
	color: var(--fp-text-mid);
	line-height: 1.3;
}

.eh-fp__meta-icon {
	flex-shrink: 0;
	width: 13px;
	height: 13px;
	fill: none;
	stroke: var(--fp-text-light);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

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

.eh-fp__cta:hover { gap: 7px; }

.eh-fp__cta-arrow {
	font-size: 13px;
	line-height: 1;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
	.eh-forum-proyek { --fp-card-w: 200px; }
}

@media (max-width: 768px) {
	.eh-forum-proyek {
		--fp-card-w: 180px;
		--fp-gap: 10px;
	}
	.eh-fp__inner { padding: 0 16px; }
}

@media (max-width: 480px) {
	.eh-forum-proyek { --fp-card-w: 160px; }
	.eh-fp__heading { font-size: 13.5px; }
}
