/* ==========================================================================
   Hero Accordion — Carrusel expandible de cursos
   Mobile-first: base = mobile, @media (min-width: 1024px) = desktop
   ========================================================================== */

/* --- Section --- */
.hero-accordion {
	padding: 20px 0;
	margin-bottom: 0 !important;
}

.hero-accordion .container {
	padding-left: 0;
	padding-right: 0;
}

/* --- Hide desktop on mobile, hide mobile on desktop --- */
.hero-accordion__desktop {
	display: none;
}

.hero-accordion__mobile {
	display: block;
}

/* Hide slide icon */
.hero-accordion__slide-icon {
	display: none;
}

/* ==========================================================================
   Shared Styles
   ========================================================================== */

.hero-accordion__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 24px;
	height: 100%;
	position: relative;
	z-index: 2;
}

.hero-accordion__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	padding: 8px 14px;
	height: 24px;
	background: #1773E2;
	color: #fff;
	font-family: 'TT Norms Pro', sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 120%;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: 6px;
	margin-bottom: 12px;
	box-sizing: content-box;
	box-shadow: 0 4px 4px rgba(0, 0, 0, 0.10);
}

.hero-accordion__title {
	font-family: 'TT Norms Pro', sans-serif;
	font-size: 30px;
	font-weight: 700;
	line-height: 32px;
	letter-spacing: 0;
	color: #fff;
	margin: 0 0 12px;
}

.hero-accordion__date {
	font-family: 'TT Norms Pro', sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 120%;
	letter-spacing: 0;
	color: #fff;
	margin: 0 0 20px;
	text-transform: uppercase;
}

.hero-accordion__date strong {
	font-weight: 700;
	font-size: 16px;
	line-height: 120%;
	letter-spacing: 0;
	text-transform: none;
}

.hero-accordion__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	height: 44px;
	padding: 13px 24px;
	background: #fff;
	color: #034069;
	font-family: 'TT Norms Pro', sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: 0;
	border-radius: 23px;
	text-decoration: none;
	overflow: hidden;
	transition: background 0.2s ease, transform 0.1s ease;
}

.hero-accordion__cta:hover {
	background: #F0F4F8;
}

.hero-accordion__cta:active {
	transform: scale(0.98);
}

/* ==========================================================================
   Mobile Slider
   ========================================================================== */

.hero-accordion__slider {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: var(--container-padding, 20px);
	scroll-padding-right: var(--container-padding, 20px);
	padding-left: var(--container-padding, 20px);
	padding-right: var(--container-padding, 20px);
	-webkit-overflow-scrolling: touch;
	gap: 10px;
	scrollbar-width: none;
	padding-left: var(--container-padding, 20px);
	padding-right: var(--container-padding, 20px);
}

.hero-accordion__slider::-webkit-scrollbar {
	display: none;
}

.hero-accordion__slide {
	flex: 0 0 min(320px, 85vw);
	scroll-snap-align: start;
	height: 360px;
	border-radius: 16px;
	background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.20) 100%);
	background-size: cover;
	background-position: center;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hero-accordion__slide:last-child {
	scroll-snap-align: end;
}

/* Gradient overlay */
.hero-accordion__slide::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
	z-index: 1;
}

/* Slide icon — hidden */

/* Dots */
.hero-accordion__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.hero-accordion__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: #C4C4C4;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease, width 0.2s ease, border-radius 0.2s ease;
}

.hero-accordion__dot.is-active {
	width: 40px;
	height: 10px;
	border-radius: 5px;
	background: #016FDF;
}

/* ==========================================================================
   Small mobile — max-width: 359px
   ========================================================================== */

@media (max-width: 359px) {

	.hero-accordion__badge {
		font-size: 11px;
		padding: 6px 10px;
		height: 20px;
	}
}

/* ==========================================================================
   Desktop Accordion — min-width: 1024px
   ========================================================================== */

@media (min-width: 768px) {

	.hero-accordion .container {
		padding-left: var(--container-padding, 20px);
		padding-right: var(--container-padding, 20px);
	}

	.hero-accordion__desktop {
		display: flex;
		gap: 10px;
		height: 400px;
	}

	.hero-accordion__mobile {
		display: none;
	}

	/* --- Item base (compressed tab) --- */
	.hero-accordion__item {
		position: relative;
		flex: 0 0 60px;
		height: 100%;
		border-radius: 16px;
		background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.20) 100%);
		background-size: cover;
		background-position: center;
		overflow: hidden;
		cursor: pointer;
		padding: 24px 16px;
		transition: flex 0.8s cubic-bezier(0.4, 0, 0.2, 1);
	}

	/* Overlay */
	.hero-accordion__item::before {
		content: '';
		position: absolute;
		inset: 0;
		background: rgba(0, 0, 0, 0.50);
		z-index: 1;
		transition: background 0.8s ease;
	}

	/* --- Active item (expanded) --- */
	.hero-accordion__item.is-active {
		flex: 1;
	}

	.hero-accordion__item.is-active::before {
		background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.05) 60%, transparent 100%);
	}

	/* --- Content (visible only when active) --- */
	.hero-accordion__item .hero-accordion__content {
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.5s ease 0.3s;
		position: absolute;
		inset: 0;
		z-index: 2;
		padding: 24px 24px 24px 32px;
	}

	.hero-accordion__item.is-active .hero-accordion__content {
		opacity: 1;
		pointer-events: auto;
	}

	/* --- Tab (visible only when compressed) --- */
	.hero-accordion__tab {
		position: absolute;
		inset: 0;
		z-index: 2;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-end;
		padding: 24px 16px;
		gap: 12px;
		opacity: 1;
		transition: opacity 0.2s ease;
	}

	.hero-accordion__item.is-active .hero-accordion__tab {
		opacity: 0;
		pointer-events: none;
	}

	.hero-accordion__tab-text {
		writing-mode: vertical-rl;
		text-orientation: mixed;
		transform: rotate(180deg);
		font-family: 'TT Norms Pro', sans-serif;
		font-size: 20px;
		font-weight: 700;
		line-height: 110%;
		letter-spacing: 0.05em;
		text-transform: uppercase;
		color: #fff;
		white-space: nowrap;
	}

	.hero-accordion__tab-icon {
		display: none;
	}

	/* Tablet title */
	.hero-accordion__desktop .hero-accordion__title {
		font-size: 28px;
		line-height: 120%;
		letter-spacing: 0;
		text-shadow: 0 4px 40px rgba(0, 0, 0, 0.40);
	}
}

/* ==========================================================================
   Desktop — min-width: 1024px
   ========================================================================== */
@media (min-width: 1200px) {

	.hero-accordion__desktop {
		height: 500px;
	}

	.hero-accordion__item {
		flex: 0 0 80px;
	}

	.hero-accordion__item.is-active {
		flex: 1 0 752px;
	}

	.hero-accordion__desktop .hero-accordion__title {
		font-size: 40px;
	}
}
