/* ============================================
   COMPONENT: Breadcrumb
   For program detail pages
   Breakpoints: Desktop (default), Tablet (max-width: 1199px), Mobile (max-width: 575px)
   ============================================ */

/* Desktop-first base styles */
.breadcrumb-section {
	padding: var(--sp-7) 0 var(--sp-3);
}

.breadcrumb-section__title {
	font-family: var(--font-family-heading);
	font-size: var(--fs-525);
	font-weight: var(--fw-bold);
	line-height: var(--lh-heading-tight);
	color: var(--brand-primary);
	text-transform: capitalize;
	margin: 0 0 var(--sp-3);
}

.breadcrumb-section__meta {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
}

.breadcrumb-section__icon {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
}

.breadcrumb-section__date {
	font-family: var(--font-family-heading);
	font-size: var(--fs-caption);
	font-weight: var(--fw-regular);
	line-height: 1.2;
	color: var(--gray-500);
}

/* Divider after breadcrumb */
.breadcrumb-section::after {
	content: "";
	display: block;
	width: 100%;
	max-width: var(--container-xl);
	height: 1px;
	background-color: #cccccc;
	margin: var(--sp-3) auto 0;
}

/* ============================================
   COMPONENT: Hero Breadcrumb
   Breadcrumb dùng sau hero section
   Only visible on mobile - Hidden on tablet/desktop via Bootstrap class d-sm-none in HTML
   ============================================ */

.hero-breadcrumb {
	background-color: #f6f7f8;
	padding: var(--sp-3) 0;
}

.hero-breadcrumb__list {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hero-breadcrumb__item {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	font-family: var(--font-family-body);
	font-size: var(--fs-body-sm);
	font-weight: var(--fw-regular);
	line-height: 1.2;
}

/* Arrow separator */
.hero-breadcrumb__item:not(:last-child)::after {
	content: "";
	display: inline-block;
	width: 5px;
	height: 8px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='8' viewBox='0 0 5 8' fill='none'%3E%3Cpath d='M1 1L4 4L1 7' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	margin-left: var(--sp-2);
}

.hero-breadcrumb__link {
	color: var(--gray-700);
	text-decoration: none;
	transition: color var(--transition-base);
}

.hero-breadcrumb__link:hover {
	color: var(--brand-primary);
	text-decoration: underline;
}

/* Active item - màu brand secondary */
.hero-breadcrumb__item--active .hero-breadcrumb__current {
	color: var(--brand-secondary);
	font-weight: var(--fw-regular);
}

/* ================================================
   TABLET (max-width: 1199px)
   ================================================ */
@media (max-width: 1199px) {
	.breadcrumb-section {
		padding: var(--sp-6) 0 var(--sp-3);
	}

	.breadcrumb-section__title {
		font-size: var(--fs-500);
	}
}

/* ================================================
   MOBILE (max-width: 575px)
   ================================================ */
@media (max-width: 575px) {
	.breadcrumb-section {
		padding: var(--sp-5) 0 var(--sp-2);
	}

	.breadcrumb-section__title {
		font-size: var(--fs-450);
		margin: 0 0 var(--sp-2);
	}

	.hero-breadcrumb__item {
		font-size: var(--fs-caption);
	}
}
