/* ==========================================================================
   ADB Popular Courses Widget
   Colors follow the ADB logo: navy (#1B2A5C) + red (#E2131E)
   ========================================================================== */

.adb-courses-widget {
	--adb-navy: #1B2A5C;
	--adb-red: #E2131E;
	--adb-pill-bg: #EAF6FB;
	--adb-text-muted: #5A6B87;
	padding: 40px 20px;
	text-align: center;
}

/* ---- Heading block ---- */
.adb-heading-block {
	max-width: 720px;
	margin: 0 auto 40px;
}

.adb-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .3px;
	margin-bottom: 14px;
}

.adb-eyebrow-line {
	display: inline-block;
	width: 32px;
	height: 2px;
	background: currentColor;
	opacity: .55;
}

.adb-section-heading {
	font-size: 36px;
	line-height: 1.25;
	font-weight: 800;
	margin: 0;
}

.adb-section-heading .adb-accent {
	color: var(--adb-red);
}

/* ---- Grid ---- */
.adb-courses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 32px;
	max-width: 1200px;
	margin: 0 auto;
	overflow: visible;
}

/* ---- Card ----
   Structure (matches the reference exactly):
   - .adb-course-photo: unclipped wrapper so the badge can overlap the
     ring's edge without being cut off.
   - .adb-course-ring: a white circle (with padding = the visible white
     border) that holds the shadow.
   - .adb-course-image-wrap: clips the actual photo into a circle,
     inset inside the ring so the white border shows all the way round.
   - .adb-course-body: a white rounded card pulled UP behind the photo
     with a negative margin, so the circle overlaps its top half. */
.adb-course-card {
	position: relative;
	transition: transform .25s ease;
}

.adb-course-card:hover {
	transform: translateY(-6px);
}

.adb-course-photo {
	position: relative;
	width: 190px;
	height: 190px;
	margin: 0 auto;
	z-index: 2;
}

.adb-course-ring {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 10px 24px rgba(27, 42, 92, 0.2);
	padding: 8px;
	box-sizing: border-box;
}

.adb-course-image-wrap {
	width: 100%;
	height: 100%;
	border-radius: 50% !important;
	overflow: hidden !important;
}

.adb-course-image,
.adb-courses-widget img.adb-course-image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	object-fit: cover !important;
	object-position: center;
	border-radius: 50% !important;
	-webkit-clip-path: circle(50% at 50% 50%);
	clip-path: circle(50% at 50% 50%);
	box-sizing: border-box;
	aspect-ratio: 1 / 1;
}

/* Badge: white circle with a colored ring, overlapping bottom-right of the photo */
.adb-badge-icon {
	position: absolute;
	z-index: 3;
	right: 2px;
	bottom: 6px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	color: var(--adb-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	border: 2px solid var(--adb-red);
	box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

.adb-badge-icon svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

/* White card panel, pulled up behind the bottom half of the circle */
.adb-course-body {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 16px;
	margin-top: -95px;
	padding: 110px 24px 26px;
	box-shadow: 0 10px 30px rgba(27, 42, 92, 0.08);
	text-align: center;
}

/* ---- Title ---- */
.adb-course-title {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.35;
	color: var(--adb-navy);
	margin: 0 0 18px;
	min-height: 54px;
}

/* ---- Buttons ---- */
.adb-course-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.adb-btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: all .2s ease;
	border: 2px solid transparent;
}

.adb-btn-outline {
	background: transparent;
	border-color: var(--adb-navy);
	color: var(--adb-navy);
}

/* Hover colors are controlled from Elementor's Style tab
   (Read More Hover Background / Text Color controls) so they can be
   customized per-instance without editing this file. */

.adb-btn-solid {
	background: var(--adb-red);
	color: #fff !important;
}

/* ---- Date pills ---- */
.adb-course-dates {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 16px;
	border-top: 1px solid #EDF1F7;
}

.adb-date-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--adb-pill-bg);
	color: var(--adb-navy);
	font-size: 12.5px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 20px;
}

.adb-date-pill i {
	color: var(--adb-red);
	font-size: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
	.adb-section-heading {
		font-size: 28px;
	}
	.adb-course-photo {
		width: 160px;
		height: 160px;
	}
	.adb-course-body {
		margin-top: -80px;
		padding-top: 94px;
	}
}
