/* SC-ICG Events — 前台樣式（全部 scoped 於 .sc-icg-events-wrap，Mobile-First） */

.sc-icg-events-wrap {
	--scie-blue: var(--wp--preset--color--palette-color-1, #446084);
	--scie-ink: #1f2733;
	--scie-muted: #6b7785;
	--scie-line: #e6e9ee;
	--scie-radius: 16px;
	color: var(--scie-ink);
}

.sc-icg-events-wrap * { box-sizing: border-box; }

/* 區塊標題（英文小標 + 中文大標） */
.sc-icg-events-section { margin: 0 0 48px; }
.sc-icg-events-head { margin: 0 0 24px; }
.sc-icg-events-head-en {
	display: block;
	font-size: 14px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--scie-blue);
	font-weight: 600;
}
.sc-icg-events-head-zh {
	margin: 4px 0 0;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 700;
}

/* 卡片網格：手機 1 欄 */
.sc-icg-events-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

/* 卡片 */
.sc-icg-events-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--scie-line);
	border-radius: var(--scie-radius);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}
.sc-icg-events-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(31, 39, 51, .12);
}

.sc-icg-events-card-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: #f1f3f6;
	overflow: hidden;
}
.sc-icg-events-card-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform .4s ease;
}
.sc-icg-events-card:hover .sc-icg-events-card-media img { transform: scale(1.05); }

.sc-icg-events-card-noimg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aeb6c2;
	font-size: 20px;
	letter-spacing: .2em;
}

.sc-icg-events-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(31, 39, 51, .72);
	color: #fff;
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 999px;
}
.sc-icg-events-card.is-past .sc-icg-events-card-media img { filter: grayscale(.35); }

.sc-icg-events-card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	gap: 8px;
	padding: 16px 18px 18px;
	flex: 1;
}

.sc-icg-events-meta {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	margin: 0;
	font-size: 14px;
	color: var(--scie-muted);
	text-align: left;
}
.sc-icg-events-meta .sc-icg-events-ic {
	width: 16px;
	height: 16px;
	color: var(--scie-blue);
	flex: none;
}
.sc-icg-events-date { color: var(--scie-blue); font-weight: 600; }

.sc-icg-events-card-title {
	margin: 2px 0;
	font-size: 18px;
	line-height: 1.4;
	font-weight: 700;
}
.sc-icg-events-card-title a { color: inherit; text-decoration: none; }
.sc-icg-events-card-title a:hover { color: var(--scie-blue); }

.sc-icg-events-card-desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--scie-muted);
}

.sc-icg-events-btn {
	align-self: flex-start;
	margin-top: auto;
	display: inline-block;
	background: var(--scie-blue);
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	padding: 9px 20px;
	border-radius: 999px;
	transition: opacity .2s ease;
}
.sc-icg-events-btn:hover { opacity: .85; color: #fff; }
.sc-icg-events-btn.is-ghost {
	background: transparent;
	color: var(--scie-blue);
	border: 1px solid var(--scie-blue);
}

.sc-icg-events-empty {
	text-align: center;
	color: var(--scie-muted);
	padding: 40px 0;
}

/* 平板：2 欄 */
@media (min-width: 480px) {
	.sc-icg-events-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 桌機：3 欄 */
@media (min-width: 783px) {
	.sc-icg-events-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
	.sc-icg-events-head-zh { font-size: 32px; }
}

/* 單篇活動頁：隱藏主題輸出的作者／日期 meta（發文者） */
body.single-event .entry-meta { display: none; }
