/* Events & Webinars shortcode — [events_webinars] */

.ccust-events-webinars {
	max-width: 900px;
}

.ccust-ew-section {
	margin-bottom: 2.5em;
}

.ccust-ew-section h2 {
	font-size: 1.5em;
	font-weight: 600;
	color: #1A202C;
	margin-bottom: 1em;
	padding-bottom: 0.4em;
	border-bottom: 2px solid #E2E8F0;
}

/* Card layout */
.ccust-ew-card {
	display: flex;
	gap: 1.25em;
	padding: 1.25em;
	margin-bottom: 1em;
	background-color: #F7FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 6px;
}

.ccust-ew-card-image {
	flex-shrink: 0;
	width: 160px;
}

.ccust-ew-card-image img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
}

.ccust-ew-card-body {
	flex: 1;
	min-width: 0;
}

.ccust-ew-card-title {
	font-size: 1.15em;
	font-weight: 600;
	margin: 0 0 0.3em;
	line-height: 1.3;
}

.ccust-ew-card-title a {
	color: #1A202C;
	text-decoration: none;
}

.ccust-ew-card-title a:hover {
	color: #2B6CB0;
}

.ccust-ew-card-subtitle {
	color: #4A5568;
	font-size: 0.95em;
	margin-bottom: 0.3em;
}

.ccust-ew-card-date {
	color: #718096;
	font-size: 0.9em;
	margin-bottom: 0.6em;
}

/* Expandable content */
.ccust-ew-card-details {
	margin-bottom: 0.75em;
}

.ccust-ew-card-details summary {
	cursor: pointer;
	color: #2B6CB0;
	font-size: 0.9em;
	font-weight: 500;
	padding: 0.25em 0;
	user-select: none;
}

.ccust-ew-card-details summary:hover {
	color: #215387;
}

.ccust-ew-card-content {
	padding: 0.75em 0 0.25em;
	color: #4A5568;
	font-size: 0.93em;
	line-height: 1.6;
}

.ccust-ew-card-content p:last-child {
	margin-bottom: 0;
}

/* Action buttons */
.ccust-ew-card-actions {
	margin-top: 0.5em;
}

.ccust-ew-btn {
	display: inline-block;
	background-color: #2B6CB0;
	color: #fff;
	text-decoration: none;
	padding: 0.45em 1.2em;
	border-radius: 4px;
	font-size: 0.9em;
	font-weight: 500;
	transition: background-color 0.2s ease;
}

.ccust-ew-btn:hover {
	background-color: #215387;
	color: #fff;
}

/* Pagination */
.ccust-ew-pagination {
	display: flex;
	gap: 1em;
	margin-top: 1em;
	padding-top: 1em;
	border-top: 1px solid #E2E8F0;
}

.ccust-ew-pagelink {
	color: #2B6CB0;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95em;
}

.ccust-ew-pagelink:hover {
	color: #215387;
	text-decoration: underline;
}

/* Responsive: stack card on small screens */
@media (max-width: 600px) {
	.ccust-ew-card {
		flex-direction: column;
	}

	.ccust-ew-card-image {
		width: 100%;
	}
}
