/*
 * 文章列表頁（home.php，「最新消息」）。版面、間距、顏色與原網站的 Thrive「List Layout With Sidebar」版型相同。
 * 斷點：平板 ≤1023px 側欄移到列表下方；手機 ≤767px。
 */

.blog .ic-page {
	display: flex;
	flex-direction: column;
}

.ic-blog {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

/* ---------- 金色標題帶 ---------- */
.ic-blog__top {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.ic-blog__top-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	max-width: 100%;
	overflow: hidden;
	background-color: var(--ic-gold-main);
}

.ic-blog__top-in {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	width: var(--ic-content-width);
	max-width: 100%;
	min-height: 100px;
	text-align: center;
}

.ic-blog__top-cols {
	min-width: 780px;
	margin: 0 auto 8px;
}

.ic-blog__top-row {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	margin-left: -15px;
}

.ic-blog__top-col {
	flex: 1 1 auto;
	box-sizing: border-box;
	max-width: 100%;
	padding-left: 15px;
}

.ic-blog__top-col-in {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 100%;
	height: 100%;
}

.ic-blog__title h1 {
	margin: 0;
	padding: 0;
	font-family: var(--ic-font-heading);
	font-size: 40px;
	font-weight: 600;
	line-height: 1.3em;
	color: var(--ic-white);
}

.ic-blog__subtitle p {
	margin: 0;
	padding: 0;
	line-height: 1.5em;
	color: var(--ic-white);
}

/* ---------- 列表＋側欄 ---------- */
.ic-blog__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	padding: 0 40px;
}

.ic-blog__container {
	--ic-bl-sep: 50px;
	--ic-bl-side: 30%;
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1 1 auto;
	box-sizing: border-box;
	width: var(--ic-content-width);
	max-width: 100%;
	padding: 0 10px 40px;
}

.ic-blog__content-bg {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	z-index: 0;
	width: var(--ic-content-width);
	max-width: 100%;
	overflow: hidden;
	transform: translateX(-50%);
}

.ic-blog__list-section,
.ic-blog__side {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1 1 auto;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
}

.ic-blog__list-section {
	order: 1;
	width: calc(100% - var(--ic-bl-side) - var(--ic-bl-sep) * 0.5);
}

.ic-blog__sep {
	flex: 0 0 auto;
	order: 2;
	width: var(--ic-bl-sep);
	height: var(--ic-bl-sep);
}

.ic-blog__side {
	order: 3;
	width: calc(var(--ic-bl-side) - var(--ic-bl-sep) * 0.5);
}

.ic-blog__section-bg,
.ic-blog__side-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	max-width: 100%;
	overflow: hidden;
}

.ic-blog__side-bg {
	background-color: rgb(247, 247, 247);
}

.ic-blog__list-in,
.ic-blog__side-in {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	height: 100%;
}

.ic-blog__list-in {
	padding: 20px 10px;
}

.ic-blog__side-in {
	padding: 15px;
}

/* ---------- 文章卡片 ---------- */
.ic-bl {
	display: flex;
	flex-wrap: wrap;
	box-sizing: content-box;
	margin: 0 0 50px;
}

.ic-bl__post {
	position: relative;
	box-sizing: border-box;
	width: calc(100% + 0px);
}

.ic-bl__post + .ic-bl__post {
	margin-top: 50px;
}

.ic-bl__media {
	position: relative;
	min-height: 10px;
	margin: 0 0 20px;
}

.ic-bl__media-cb {
	position: relative;
	z-index: 1;
	min-height: 10px;
}

.ic-bl__image {
	position: relative;
	z-index: 5;
	display: block;
	min-height: 10px;
}

.ic-bl__image-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 5px;
	background: no-repeat scroll 50% 50% / cover;
	background-clip: padding-box;
}

.ic-bl__image-cb {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 340px;
}

/* 左下角分類標籤 */
.ic-bl__cat-clear::after {
	content: "";
	display: block;
	clear: both;
}

.ic-bl__cat {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 12;
	float: left;
	min-height: 10px;
	margin: 0;
	padding: 8px;
}

.ic-bl__cat-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background-color: var(--ic-dark);
	background-clip: padding-box;
}

.ic-bl__cat-cb {
	position: relative;
	z-index: 1;
	display: block;
	min-height: 10px;
}

.ic-bl__cat-tx {
	padding: 1px;
}

.ic-bl__cat-tx p {
	margin: 0;
	padding: 0;
	font-size: 11px;
	line-height: 1em;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--ic-white);
}

.ic-bl__cat-tx a {
	color: inherit;
	text-decoration: none;
}

.ic-bl__date {
	box-sizing: content-box;
	font-size: 12px;
	line-height: 1.5;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: rgb(153, 153, 153);
}

.ic-bl__date p {
	margin: 0;
	padding: 0;
	font-size: 10px;
	line-height: 1.75;
	color: inherit;
}

.ic-bl__title h2 {
	margin: 0;
	padding: 0 0 15px;
	font-family: var(--ic-font-heading);
	font-size: 34px;
	font-weight: 600;
	line-height: 1.4em;
	color: var(--ic-dark);
}

.ic-bl__title a {
	color: inherit;
	text-decoration: none;
}

.ic-bl__title strong {
	font-weight: 800;
}

.ic-bl__author {
	box-sizing: content-box;
	padding: 1px;
}

.ic-bl__author h2 {
	margin: 0;
	padding: 0 0 5px;
	font-family: var(--ic-font-heading);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4em;
	color: var(--ic-text);
}

.ic-bl__excerpt p {
	margin: 0;
	padding: 0 0 24px;
	line-height: 1.75;
	color: rgb(110, 110, 110);
}

.ic-bl__more-clear {
	box-sizing: content-box;
}

.ic-bl__more-clear::after {
	content: "";
	display: block;
	clear: both;
}

.ic-bl__more {
	position: relative;
	display: table;
	float: left;
	box-sizing: content-box;
}

.ic-bl__more a {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	padding: 18px 8px;
	border-top: 1px solid rgba(0, 0, 0, 0.16);
	border-bottom: 1px solid rgba(0, 0, 0, 0.16);
	border-radius: 0;
	background-color: var(--ic-white);
	font-size: 12px;
	line-height: 1.2em;
	letter-spacing: 2px;
	text-align: center;
	text-decoration: none;
	color: rgb(10, 10, 10);
}

.ic-bl__more-texts {
	position: relative;
	flex: 1 1 0%;
	font-weight: 800;
	color: var(--ic-dark);
}

/* ---------- 分頁 ---------- */
.ic-bl-pager {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 30px;
	padding: 6px 0;
}

.ic-bl-pager__nav {
	display: flex;
	align-items: center;
	box-sizing: content-box;
}

.ic-bl-pager__btn {
	display: flex;
	box-sizing: content-box;
	min-height: 42px;
	margin: 0;
	padding: 0;
	line-height: 1.75;
	cursor: pointer;
}

.ic-bl-pager__btn--prev,
.ic-bl-pager__btn--next {
	margin: 2px;
}

.ic-bl-pager__btn.is-disabled {
	opacity: 0.3;
}

.ic-bl-pager__btn a {
	display: flex;
	align-items: center;
	overflow: hidden;
	padding: 0 10px;
	border: none;
	border-radius: 0;
	background-color: var(--ic-white);
	font-size: 16px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: inherit;
}

.ic-bl-pager__btn.is-disabled a {
	pointer-events: none;
}

.ic-bl-pager__btn--prev a,
.ic-bl-pager__btn--next a {
	font-size: 14px;
}

.ic-bl-pager__btn--next a,
.ic-bl-pager__btn--last a {
	flex-direction: row-reverse;
}

/* 第一頁／最後一頁只顯示文字，上一頁／下一頁只顯示圖示 */
.ic-bl-pager__btn--first .ic-bl-pager__icon,
.ic-bl-pager__btn--last .ic-bl-pager__icon,
.ic-bl-pager__btn--prev .ic-bl-pager__texts,
.ic-bl-pager__btn--next .ic-bl-pager__texts {
	display: none;
}

.ic-bl-pager__icon {
	position: relative;
	line-height: 0;
}

.ic-bl-pager__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ic-bl-pager__texts {
	position: relative;
	flex: 1 1 0%;
}

.ic-bl-pager__numbers {
	display: flex;
	align-items: center;
	box-sizing: content-box;
}

.ic-bl-pager__num {
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 40px;
	min-height: 42px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.75;
}

.ic-bl-pager__num.is-current {
	background-color: var(--ic-gold-main);
	color: var(--ic-white);
}

.ic-bl-pager__num a {
	color: inherit;
	text-decoration: none;
}

/* ---------- 側欄 ---------- */
.ic-bs__box {
	position: relative;
	min-height: 10px;
	margin: 0 0 15px;
	padding: 20px;
}

.ic-bs__box--recent {
	padding: 20px 15px;
}

.ic-bs__box-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background-color: var(--ic-white);
	background-clip: padding-box;
}

.ic-bs__box-cb {
	position: relative;
	z-index: 1;
	display: flow-root;
	min-height: 10px;
	text-align: left;
}

.ic-bs__inner {
	position: relative;
	min-height: 10px;
}

.ic-bs__inner--follow {
	margin: 0 0 30px;
}

.ic-bs__inner-cb {
	position: relative;
	z-index: 1;
	display: flow-root; /* 與原網站相同：內層自成一區，裡面的下邊距不會往外合併 */
	min-height: 10px;
}

.ic-bs__inner--cats .ic-bs__inner-cb {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ic-bs__title {
	padding: 1px;
}

.ic-bs__title h5 {
	margin: 0;
	padding: 0;
	font-family: var(--ic-font-heading);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4em;
	text-transform: capitalize;
	color: var(--ic-dark);
}

.ic-bs__divider {
	width: 35px;
	margin: 0 0 20px;
	padding: 10px 1px;
}

.ic-bs__divider--tight {
	margin-bottom: 10px;
}

.ic-bs__divider hr {
	box-sizing: content-box;
	min-width: 10px;
	height: 0;
	margin: 0;
	border: none;
	border-bottom: 2px solid var(--ic-dark);
	overflow: hidden;
}

.ic-bs__list {
	display: table;
	padding: 1px 0;
}

.ic-bs__list--cats {
	padding: 1px;
}

.ic-bs__list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ic-bs__list li {
	display: flex;
	justify-content: flex-start;
	margin: 0;
	font-size: 18px;
	line-height: 1.4em;
}

.ic-bs__list--recent li {
	padding: 5px 0;
	border-bottom: 1px solid rgba(200, 200, 200, 0.56);
}

.ic-bs__list--cats li {
	padding: 0 0 10px;
}

.ic-bs__icon {
	position: relative;
	z-index: 1;
}

.ic-bs__icon > span {
	display: inline;
}

.ic-bs__icon-box {
	display: table;
	box-sizing: content-box;
	margin: 0 1px 0 0;
	padding: 5px 10px 3px;
	line-height: 0;
	text-align: center;
}

.ic-bs__list--recent .ic-bs__icon-box {
	width: 12px;
	height: 12px;
	font-size: 12px;
	color: var(--ic-text);
}

/* 熱門消息的愛心：12px、往左轉 30 度（原網站只有登入時看得到，新版大家都顯示） */
.ic-bs__icon-box svg {
	display: inline-block;
	width: 12px;
	height: 12px;
	vertical-align: middle;
	fill: currentColor;
	transform: rotate(-30deg);
}

.ic-bs__text {
	display: flex;
	align-items: center;
}

.ic-bs__text a {
	text-decoration: none;
}

.ic-bs__list--recent a {
	color: var(--ic-gold-main);
}

.ic-bs__list--cats .ic-cat-name {
	font-size: 16px;
	color: rgb(95, 93, 89);
}

/* 關注我們：圓角淺灰底的 Facebook 圖示 */
.ic-bs__social {
	display: flex;
	justify-content: center;
	align-items: center;
	max-width: max-content;
	margin: 0 0 20px;
	padding: 1px;
	overflow: hidden;
	border-radius: 100px;
	background-color: rgb(248, 248, 248);
}

.ic-bs__social-items {
	font-size: 13px;
	line-height: 1;
	vertical-align: middle;
}

.ic-bs__social-item {
	position: relative;
	z-index: 1;
	display: inline-block;
	margin: 4px 0;
	padding: 1px;
	overflow: hidden;
	line-height: 1.5;
	vertical-align: bottom;
	color: rgb(23, 23, 22);
	fill: rgb(23, 23, 22);
}

.ic-bs__social-item a {
	display: flex;
	fill: none;
}

.ic-bs__social-icon {
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: content-box;
	padding: 0.6em;
	text-align: center;
	vertical-align: middle;
}

.ic-bs__social-icon svg {
	width: 1.5em;
	height: 1.5em;
	vertical-align: bottom;
	fill: rgb(23, 23, 22);
}

/* ---------- 平板 ---------- */
@media (max-width: 1023px) {
	.ic-blog__top-in {
		min-height: 200px;
		padding: 0 40px;
	}

	.ic-blog__top-cols {
		min-width: 100%;
	}

	.ic-blog__title h1 {
		font-size: 36px;
	}

	.ic-blog__content {
		padding: 0;
	}

	.ic-blog__container {
		flex-wrap: wrap;
		padding: 20px;
	}

	.ic-blog__sep {
		width: 100%;
	}

	.ic-blog__list-in,
	.ic-blog__side-in {
		padding: 20px;
	}

	.ic-bs__inner--follow {
		margin-bottom: 0;
	}

	.ic-bs__list li {
		line-height: 1.75em;
	}
}

/* ---------- 手機 ---------- */
@media (max-width: 767px) {
	.ic-blog__top-in {
		padding: 0 20px;
	}

	.ic-blog__top-row {
		flex-direction: column;
	}

	.ic-blog__top-row > .ic-blog__top-col {
		flex: 0 0 auto;
	}

	.ic-blog__title h1 {
		font-size: 30px;
	}

	.ic-blog__subtitle p {
		line-height: 1.4em;
	}

	.ic-blog__container {
		padding: 10px;
	}

	.ic-blog__list-section,
	.ic-blog__side {
		min-width: 100%;
	}

	.ic-blog__sep {
		display: none;
	}

	.ic-blog__list-in {
		padding: 20px 10px;
	}

	.ic-blog__side-in {
		padding: 10px;
	}

	.ic-bl {
		margin-bottom: 0;
	}

	.ic-bl__media,
	.ic-bl__excerpt {
		margin-bottom: 15px;
	}

	.ic-bl__image-cb {
		min-height: 185px;
	}

	.ic-bl__cat {
		padding: 6px;
	}

	.ic-bl__cat-tx p {
		font-size: 10px;
	}

	.ic-bl__title h2 {
		font-size: 24px;
	}

	.ic-bl__excerpt p {
		padding-bottom: 20px;
	}

	.ic-bl-pager {
		flex-direction: column;
		justify-content: flex-start;
		padding: 2px 0;
	}

	.ic-bl-pager__btn--first a,
	.ic-bl-pager__btn--last a {
		padding-right: 4px;
		padding-left: 4px;
		font-size: 13px;
	}

	.ic-bl-pager__btn--prev a,
	.ic-bl-pager__btn--next a {
		padding-right: 6px;
		padding-left: 6px;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.ic-bl__title h2 {
		font-size: 28px;
	}

	.ic-bl__excerpt p {
		padding-bottom: 22px;
	}
}

