/* =========================================================
   Glendon Addons For Elementor — base styles
   Everything visual here is overridable from the Elementor
   panel; these are only structure + sensible defaults.
   ========================================================= */

.gla-widget,
.gla-widget * {
	box-sizing: border-box;
}

.gla-widget img {
	max-width: 100%;
	display: block;
}

/* ---------------------------------------------------------
   Carousel skeleton (shared by both story widgets)
   --------------------------------------------------------- */
.gla-carousel {
	position: relative;
	--gla-arrow-gap: 8px;
	--gla-arrow-offset-x: 0px;
	--gla-arrow-offset-y: 0px;
	--gla-nav-gap: 24px;
}

.gla-viewport {
	overflow: hidden;
	width: 100%;
}

.gla-track {
	display: flex;
	align-items: stretch;
	transition-property: transform;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 450ms;
	will-change: transform;
}

.gla-slide {
	flex: 0 0 100%;
	min-width: 100%;
}

.gla-track.is-fade {
	display: block;
	position: relative;
	transform: none !important;
}

.gla-track.is-fade .gla-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition-property: opacity;
	transition-timing-function: ease;
	transition-duration: 450ms;
}

.gla-track.is-fade .gla-slide.is-active {
	position: relative;
	opacity: 1;
	pointer-events: auto;
}

.gla-carousel.is-dragging .gla-track {
	transition-duration: 0ms;
}

/* Arrows ------------------------------------------------- */
.gla-arrows {
	display: flex;
	align-items: center;
	gap: var(--gla-arrow-gap, 8px);
}

.gla-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #e5e8ec;
	border-radius: 8px;
	background: #fff;
	color: #0f2a52;
	cursor: pointer;
	line-height: 1;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gla-arrow svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.gla-arrow i {
	font-size: 16px;
}

.gla-arrow[disabled] {
	opacity: 0.4;
	cursor: default;
}

/* Dots --------------------------------------------------- */
.gla-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 18px;
}

.gla-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d3dce6;
	cursor: pointer;
	transition: background-color 0.2s ease, width 0.2s ease;
}

.gla-dot.is-active {
	background: #c8203d;
}

/* =========================================================
   Widget 1 — Success Stories
   ========================================================= */
.gla-success-stories .gla-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.gla-success-stories .gla-head .gla-arrows {
	flex: 0 0 auto;
}

.gla-arrows-top-left .gla-success-stories .gla-head,
.gla-success-stories.gla-head-reverse .gla-head {
	flex-direction: row-reverse;
}

.gla-title {
	margin: 0;
	color: #0f2a52;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
}

.gla-subtitle {
	margin-top: 6px;
	color: #5c6b7a;
	font-size: 15px;
}

.gla-card {
	background: #fff;
	border: 1px solid #e5e8ec;
	border-radius: 12px;
	padding: 24px;
}

.gla-card-inner {
	display: flex;
	align-items: flex-start;
	gap: 26px;
}

.gla-media-right .gla-card-inner {
	flex-direction: row-reverse;
}

.gla-media {
	position: relative;
	flex: 0 0 148px;
	width: 148px;
	height: 210px;
	border-radius: 10px;
	overflow: hidden;
	background: #eef3fa;
}

.gla-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gla-photo--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #c3cedc;
}

.gla-photo--empty svg {
	width: 58%;
	height: auto;
}

.gla-content {
	flex: 1 1 auto;
	min-width: 0;
}

.gla-quote {
	color: #0f2a52;
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 20px;
}

.gla-meta {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}

.gla-flag-inline .gla-meta {
	justify-content: flex-start;
}

.gla-meta-lines {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.gla-name {
	color: #0f2a52;
	font-size: 17px;
	font-weight: 700;
}

.gla-course {
	color: #5c6b7a;
	font-size: 14.5px;
}

.gla-uni {
	color: #c8203d;
	font-size: 14.5px;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease;
}

.gla-flag {
	flex: 0 0 auto;
	width: 28px;
	height: auto;
	border-radius: 3px;
}

/* Arrow placement (absolute, when not in the heading row) - */
.gla-carousel > .gla-arrows {
	position: absolute;
	z-index: 3;
}

.gla-arrows-top-right .gla-carousel > .gla-arrows {
	top: var(--gla-arrow-offset-y, 0px);
	right: var(--gla-arrow-offset-x, 0px);
}

.gla-arrows-top-left .gla-carousel > .gla-arrows {
	top: var(--gla-arrow-offset-y, 0px);
	left: var(--gla-arrow-offset-x, 0px);
}

.gla-arrows-bottom-right .gla-carousel > .gla-arrows {
	bottom: var(--gla-arrow-offset-y, 0px);
	right: var(--gla-arrow-offset-x, 0px);
}

.gla-arrows-bottom-left .gla-carousel > .gla-arrows {
	bottom: var(--gla-arrow-offset-y, 0px);
	left: var(--gla-arrow-offset-x, 0px);
}

.gla-arrows-bottom-center .gla-carousel > .gla-arrows {
	bottom: var(--gla-arrow-offset-y, 0px);
	left: 50%;
	transform: translateX(-50%);
}

.gla-arrows-middle-sides .gla-carousel > .gla-arrows,
.gla-arrows-middle-inside .gla-carousel > .gla-arrows {
	top: calc(50% + var(--gla-arrow-offset-y, 0px));
	left: var(--gla-arrow-offset-x, 0px);
	right: var(--gla-arrow-offset-x, 0px);
	transform: translateY(-50%);
	justify-content: space-between;
	pointer-events: none;
}

.gla-arrows-middle-inside .gla-carousel > .gla-arrows {
	left: calc(14px + var(--gla-arrow-offset-x, 0px));
	right: calc(14px + var(--gla-arrow-offset-x, 0px));
}

.gla-arrows-middle-sides .gla-carousel > .gla-arrows .gla-arrow,
.gla-arrows-middle-inside .gla-carousel > .gla-arrows .gla-arrow {
	pointer-events: auto;
}

.gla-arrows-middle-right .gla-carousel > .gla-arrows {
	top: calc(50% + var(--gla-arrow-offset-y, 0px));
	right: var(--gla-arrow-offset-x, 0px);
	transform: translateY(-50%);
	flex-direction: column;
}

/* Keep space for bottom arrows so they never overlap dots */
.gla-arrows-bottom-center .gla-dots,
.gla-arrows-bottom-right .gla-dots,
.gla-arrows-bottom-left .gla-dots {
	position: relative;
	z-index: 1;
}

/* =========================================================
   Widget 2 — Student Success Story
   ========================================================= */
.gla-student-story .gla-label {
	color: #c8203d;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.9px;
	text-transform: uppercase;
	margin-bottom: 18px;
}

.gla-student-story .gla-card {
	border-radius: 10px;
	padding: 22px;
}

.gla-student-story .gla-card-inner {
	align-items: center;
	gap: 26px;
}

.gla-student-story .gla-media {
	flex: 0 0 170px;
	width: 170px;
	height: 150px;
	border-radius: 8px;
}

.gla-student-story .gla-carousel {
	display: flex;
	align-items: center;
	gap: var(--gla-nav-gap, 24px);
}

.gla-student-story .gla-viewport {
	flex: 1 1 auto;
	min-width: 0;
}

.gla-nav {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.gla-nav .gla-dots {
	margin-top: 14px;
}

.gla-nav-inside-bottom .gla-student-story .gla-carousel,
.gla-nav-inside-bottom-right .gla-student-story .gla-carousel {
	display: block;
}

.gla-nav-inside-bottom .gla-nav {
	margin-top: var(--gla-nav-gap, 24px);
}

.gla-nav-inside-bottom-right .gla-nav {
	margin-top: var(--gla-nav-gap, 24px);
	align-items: flex-end;
}

.gla-nav-inside-bottom-right .gla-nav .gla-arrows,
.gla-nav-inside-bottom .gla-nav .gla-arrows {
	justify-content: inherit;
}

.gla-quote-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 22px;
}

.gla-quote-icon {
	flex: 0 0 auto;
	display: inline-flex;
	color: #c6d4e4;
	font-size: 22px;
	line-height: 1;
}

.gla-quote-icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.gla-student-story .gla-quote {
	margin-bottom: 0;
	font-size: 15.5px;
	font-style: italic;
	line-height: 1.7;
}

.gla-student-story .gla-name {
	font-size: 15.5px;
}

.gla-meta-line {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 5px;
	color: #5c6b7a;
	font-size: 13.5px;
	font-weight: 500;
	flex-wrap: wrap;
}

.gla-meta-line .gla-uni {
	font: inherit;
	color: inherit;
}

.gla-student-story .gla-flag {
	width: 20px;
}

/* =========================================================
   Widget 3 — Intake Deadlines table
   ========================================================= */
.gla-table-wrap {
	background: #f7fafd;
	padding: 18px;
	border-radius: 12px;
}

.gla-table {
	background: #fff;
	border: 1px solid #e5e8ec;
	border-radius: 10px;
	overflow: hidden;
}

.gla-tr {
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid #edf1f6;
	transition: background-color 0.2s ease;
}

.gla-tbody .gla-tr:last-child {
	border-bottom: 0;
}

.gla-th,
.gla-td {
	display: flex;
	align-items: center;
	min-width: 0;
	border-right: 1px solid #edf1f6;
}

.gla-tr > .gla-th:last-child,
.gla-tr > .gla-td:last-child {
	border-right: 0;
}

.gla-th {
	padding: 15px 18px;
	color: #0f2a52;
	font-size: 14px;
	font-weight: 600;
}

.gla-td {
	padding: 16px 18px;
}

.gla-col-1 { width: 30%; }
.gla-col-2 { width: 21%; }
.gla-col-3 { width: 27%; }
.gla-col-4 { width: 22%; }

.gla-destination {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #0f2a52;
	font-size: 15px;
	font-weight: 600;
	min-width: 0;
}

.gla-intake .gla-destination-text,
.gla-destination-text {
	min-width: 0;
}

.gla-intake,
.gla-deadline {
	color: #5c6b7a;
	font-size: 14.5px;
}

.gla-intake .gla-flag,
.gla-destination .gla-flag {
	width: 26px;
	border-radius: 2px;
}

.gla-action {
	color: #c8203d;
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.gla-action-button .gla-action {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border-radius: 7px;
	background: #c8203d;
	color: #fff;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
	.gla-student-story .gla-carousel {
		gap: 18px;
	}
}

@media (max-width: 767px) {

	.gla-card-inner {
		flex-direction: column !important;
		align-items: stretch !important;
	}

	.gla-media {
		width: 100% !important;
		flex: 0 0 auto !important;
	}

	.gla-success-stories .gla-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.gla-meta {
		align-items: flex-start;
	}

	.gla-student-story .gla-carousel {
		display: block !important;
	}

	.gla-student-story .gla-nav {
		margin-top: 18px;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 16px;
	}

	.gla-student-story .gla-nav .gla-dots {
		margin-top: 0;
	}

	/* stacked table */
	.gla-table--stack .gla-thead {
		display: none;
	}

	.gla-table--stack .gla-tr {
		display: block;
		padding: 6px 0;
	}

	.gla-table--stack .gla-td {
		width: 100% !important;
		justify-content: space-between !important;
		gap: 16px;
		border-right: 0 !important;
	}

	.gla-table--stack .gla-td::before {
		content: attr(data-label);
		flex: 0 0 auto;
		color: #0f2a52;
		font-size: 13px;
		font-weight: 600;
		opacity: 0.75;
	}

	.gla-table:not(.gla-table--stack) {
		overflow-x: auto;
	}

	.gla-table:not(.gla-table--stack) .gla-tr {
		min-width: 620px;
	}
}
