/* ===== Custom Blog Widget ===== */
.cb-blog {
	position: relative;
}

/* Grid Mode */
.cb-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* Card */
.cb-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Image */
.cb-image {
	position: relative;
	display: block;
	height: 200px;
	overflow: hidden;
}
.cb-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.cb-card:hover .cb-image img {
	transform: scale(1.05);
}
.cb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: #f0f0f0;
}

/* Date Badge */
.cb-date-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 6px;
	background: rgba(51, 51, 51, 0.85);
	color: #fff;
	z-index: 2;
	line-height: 1;
	text-align: center;
}
.cb-date-day {
	display: block;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
}
.cb-date-mon {
	display: block;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 1px;
}

/* Card Body */
.cb-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Title */
.cb-title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #222;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.3s ease;
}
.cb-title a {
	color: inherit;
	text-decoration: none;
}

/* Meta */
.cb-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
	font-size: 13px;
	color: #999;
}
.cb-author::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 4px;
	vertical-align: -2px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* Excerpt */
.cb-excerpt {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
	flex: 1;
}

/* Read More */
.cb-readmore {
	display: inline-block;
	font-size: 14px;
	font-weight: 500;
	color: #1a73e8;
	text-decoration: none;
	transition: color 0.3s ease;
	margin-top: auto;
}
.cb-readmore:hover {
	color: #0d5bcc;
}

/* ===== Carousel Mode ===== */
.cb-carousel-mode {
	position: relative;
	padding: 0 50px;
}
.cb-carousel-mode .cb-swiper {
	overflow: hidden;
}
.cb-carousel-mode .swiper-slide {
	height: auto;
}
.cb-carousel-mode .cb-card {
	height: 100%;
}

/* Nav Buttons */
.cb-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	transition: box-shadow 0.3s ease, opacity 0.3s ease;
	color: #333;
}
.cb-nav-btn:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.cb-nav-btn svg {
	width: 20px;
	height: 20px;
}
.cb-nav-prev {
	left: 0;
}
.cb-nav-next {
	right: 0;
}
.cb-nav-btn.swiper-button-disabled {
	opacity: 0.3;
	cursor: default;
}

/* ===== Pagination ===== */
.cb-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
}
.cb-pag-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #666;
	background: #fff;
	cursor: pointer;
	transition: all 0.25s ease;
	user-select: none;
}
.cb-pag-num:hover {
	border-color: #1a73e8;
	color: #1a73e8;
}
.cb-pag-num.active {
	background: #1a73e8;
	border-color: #1a73e8;
	color: #fff;
	cursor: default;
}
.cb-pag-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	transition: all 0.25s ease;
	user-select: none;
}
.cb-pag-arrow:hover {
	border-color: #1a73e8;
}
.cb-pag-arrow.disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}
.cb-pag-arrow i,
.cb-pag-arrow svg,
.cb-pag-arrow img {
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 1;
	display: block;
	color: inherit;
}
.cb-grid-mode.cb-loading .cb-grid {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.cb-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.cb-carousel-mode {
		padding: 0 40px;
	}
}
@media (max-width: 767px) {
	.cb-grid {
		grid-template-columns: 1fr;
	}
	.cb-carousel-mode {
		padding: 0 36px;
	}
	.cb-nav-btn {
		width: 32px;
		height: 32px;
	}
	.cb-nav-btn svg {
		width: 16px;
		height: 16px;
	}
}
