/* AFAMS Upcoming Events Section Widget Stylesheet */

.afam-upcoming-events-wrapper {
	width: 100%;
	padding: 40px 0;
	font-family: 'Montserrat', 'Open Sans', sans-serif;
	box-sizing: border-box;
}

.afam-upcoming-events-wrapper *,
.afam-upcoming-events-wrapper *::before,
.afam-upcoming-events-wrapper *::after {
	box-sizing: border-box;
}

.afam-events-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

/* SECTION HEADER */
.afam-events-header {
	text-align: center;
	margin-bottom: 36px;
}

.afam-events-title {
	font-size: 22px;
	font-weight: 800;
	color: #071939;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin: 0 0 10px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
}

.afam-events-title.has-accent-lines::before,
.afam-events-title.has-accent-lines::after {
	content: '';
	display: inline-block;
	width: 45px;
	height: 2px;
	background-color: #d4a359;
	flex-shrink: 0;
}

.afam-events-subtitle {
	font-size: 14.5px;
	font-weight: 500;
	color: #444444;
	max-width: 720px;
	margin: 0 auto;
	line-height: 1.6;
}

/* EVENTS GRID */
.afam-events-grid {
	display: grid;
	gap: 28px;
	width: 100%;
}

.afam-events-cols-1 { grid-template-columns: repeat(1, 1fr); }
.afam-events-cols-2 { grid-template-columns: repeat(2, 1fr); }
.afam-events-cols-3 { grid-template-columns: repeat(3, 1fr); }
.afam-events-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* EVENT CARD */
.afam-event-card {
	background-color: #ffffff;
	border-radius: 12px;
	border: 1px solid #e7ebf0;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
}

.afam-event-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 30px rgba(7, 25, 57, 0.12);
}

/* MEDIA & BADGE */
.afam-event-card-media {
	position: relative;
	width: 100%;
	height: 210px;
	overflow: hidden;
	background-color: #071939;
}

.afam-event-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.afam-event-card:hover .afam-event-card-img {
	transform: scale(1.05);
}

/* DATE BADGE */
.afam-event-date-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	background-color: rgba(7, 25, 57, 0.92);
	border: 1.5px solid #d4a359;
	border-radius: 8px;
	padding: 10px 14px;
	min-width: 76px;
	text-align: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(4px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.afam-event-date-day {
	font-size: 19px;
	font-weight: 800;
	color: #ffffff;
	line-height: 1.1;
	margin-bottom: 2px;
	white-space: nowrap;
}

.afam-event-date-month {
	font-size: 13px;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 1px;
	line-height: 1.2;
	margin-bottom: 2px;
}

.afam-event-date-year {
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
	opacity: 0.9;
	line-height: 1.1;
}

/* CARD BODY */
.afam-event-card-body {
	padding: 22px 24px 24px 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.afam-event-card-title {
	font-size: 18px;
	font-weight: 700;
	color: #071939;
	margin: 0 0 10px 0;
	line-height: 1.35;
}

.afam-event-card-location {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: #d99b26;
	margin-bottom: 12px;
}

.afam-event-card-location i {
	font-size: 14px;
	color: #d99b26;
}

.afam-event-card-desc {
	font-size: 14px;
	color: #555555;
	line-height: 1.55;
	margin: 0 0 22px 0;
	flex-grow: 1;
}

/* ACTIONS */
.afam-event-card-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 10px;
}

.afam-event-details-btn {
	font-size: 14px;
	font-weight: 700;
	color: #071939;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color 0.25s ease;
}

.afam-event-details-btn:hover {
	color: #d99b26;
}

.afam-event-details-btn i {
	font-size: 13px;
	transition: transform 0.25s ease;
}

.afam-event-details-btn:hover i {
	transform: translateX(3px);
}

.afam-event-register-btn {
	background-color: #071939;
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	padding: 10px 20px;
	border-radius: 6px;
	text-decoration: none;
	border: 1px solid #071939;
	transition: all 0.25s ease;
	display: inline-block;
	white-space: nowrap;
}

.afam-event-register-btn:hover {
	background-color: #d99b26;
	border-color: #d99b26;
	color: #ffffff;
}

/* FOOTER CTA */
.afam-events-footer-cta {
	text-align: center;
	margin-top: 38px;
}

.afam-events-all-btn {
	display: inline-block;
	background-color: #d4a359;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	padding: 13px 34px;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 4px 14px rgba(212, 163, 89, 0.35);
}

.afam-events-all-btn:hover {
	background-color: #071939;
	color: #ffffff;
	box-shadow: 0 6px 18px rgba(7, 25, 57, 0.3);
}

/* RESPONSIVE */
@media (max-width: 992px) {
	.afam-events-cols-3,
	.afam-events-cols-4 {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px;
	}
}

@media (max-width: 640px) {
	.afam-events-cols-2,
	.afam-events-cols-3,
	.afam-events-cols-4 {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.afam-events-title {
		font-size: 19px;
		gap: 12px;
	}

	.afam-events-title.has-accent-lines::before,
	.afam-events-title.has-accent-lines::after {
		width: 25px;
	}

	.afam-events-subtitle {
		font-size: 13.5px;
	}

	.afam-event-card-body {
		padding: 18px 20px 20px 20px;
	}
}
