/* ============================================
   PAGE: Đại Học Chính Quy
   Breakpoints: Desktop (default), Tablet (max-width: 1199px), Mobile (max-width: 575px)
   ============================================ */

/* ========== SECTION: Hero Content ========== */

/* Desktop-first base styles */
.hero-content-section {
	background-color: var(--color-light);
	padding: var(--sp-8) 0;
	overflow: hidden;
}

.hero-content__right {
	margin-top: 0;
	padding-top: 0;
}

.hero-content__text {
	padding-right: var(--sp-4);
}

.hero-content__subtitle {
	font-family: var(--font-family-heading);
	font-size: var(--section-subtitle);
	font-weight: var(--fw-semibold);
	line-height: 1.3;
	color: var(--brand-secondary);
	margin-bottom: var(--sp-2);
}

.hero-content__title {
	font-family: var(--font-family-heading);
	font-size: var(--section-title);
	font-weight: var(--fw-bold);
	line-height: var(--lh-heading-tight);
	color: var(--brand-primary);
	margin-bottom: var(--sp-4);
}

.hero-content__description {
	font-family: var(--font-family-heading);
	font-size: var(--section-description);
	font-weight: var(--fw-regular);
	line-height: 1.57;
	color: var(--gray-900);
	margin: 0;
}

/* Hero Image Wrapper */
.hero-content__image-wrapper {
	position: relative;
	width: 100%;
	max-width: 58.2rem;
	margin: 0 auto;
}

.hero-content__image-bg {
	position: absolute;
	top: 0.3rem;
	left: -1.5rem;
	width: 59.7rem;
	height: 39.8rem;
	background-color: var(--brand-primary);
	border-radius: var(--radius-40);
	z-index: 0;
}

.hero-content__image {
	position: relative;
	width: 100%;
	max-width: 58.2rem;
	height: auto;
	border-radius: var(--radius-40);
	z-index: 1;
}

.hero-content__decoration {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 15.2rem;
	height: 15.2rem;
	object-fit: contain;
	z-index: 0;
	transform: translate(-50%, 50%);
}

/* ========== SECTION: Programs ========== */

.programs-section {
	background-color: var(--color-light);
	padding: var(--sp-8) 0 8rem;
	overflow: hidden;
}

.programs-section__subtitle {
	font-family: var(--font-family-heading);
	font-size: var(--section-subtitle);
	font-weight: var(--fw-semibold);
	line-height: 1.3;
	color: var(--brand-secondary);
	text-transform: capitalize;
	margin-bottom: var(--sp-1);
}

.programs-section__title {
	font-family: var(--font-family-heading);
	font-size: var(--section-title);
	font-weight: var(--fw-bold);
	line-height: var(--lh-heading-tight);
	color: var(--brand-primary);
	margin-bottom: 0;
}

/* Program Cards Grid - Desktop: 3 columns using flexbox */
.programs-section .row.g-4[data-program-grid] {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-4);
	padding-top: var(--sp-4);
}

.programs-section .row.g-4[data-program-grid] > .col-lg-4 {
	flex: 0 0 calc(33.333% - var(--sp-4) * 2 / 3);
	max-width: calc(33.333% - var(--sp-4) * 2 / 3);
	width: auto;
	padding: 0;
}

/* Hidden items in pagination */
.programs-section .row.g-4[data-program-grid] > .col-lg-4.pagination-hidden {
	display: none !important;
}

/* Slider Navigation - Hidden on desktop */
.program-slider-nav {
	display: none;
}

/* ========== SECTION: FAQ ========== */

.faq-section {
	background-color: var(--color-light);
	padding: var(--sp-8) 0;
}

.faq-section__title {
	font-family: var(--font-family-heading);
	font-size: var(--section-title);
	font-weight: var(--fw-bold);
	line-height: var(--lh-heading-tight);
	color: var(--brand-primary);
	margin-bottom: var(--sp-1);
}

.faq-section__subtitle {
	font-family: var(--font-family-heading);
	font-size: var(--fs-400);
	font-weight: var(--fw-medium);
	line-height: 1.3;
	color: var(--gray-900);
	margin-bottom: var(--sp-1);
}

.faq-section__subtitle:last-of-type {
	margin-bottom: var(--sp-6);
}

.faq-section__image {
	width: 100%;
	max-width: 45.2rem;
	height: 52rem;
	border-radius: var(--radius-10);
	object-fit: cover;
}

.faq-section .col-lg-7 {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.faq-section__view-all {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	margin: var(--sp-5) auto 0;
	font-family: var(--font-family-body);
	font-size: var(--fs-body-sm);
	font-weight: var(--fw-semibold);
	color: var(--brand-secondary);
	text-decoration: none;
}

.faq-section__view-all-icon {
	width: 1.6rem;
	height: 1.6rem;
}

.faq-section__view-all:hover {
	text-decoration: underline;
}

/* ================================================
   TABLET (max-width: 1199px)
   ================================================ */
@media (max-width: 1199px) {
	.hero-content-section {
		padding: var(--sp-7) 0;
	}

	.faq-section__title {
		font-size: var(--section-title-tablet);
	}

	.hero-content__right {
		padding-top: var(--sp-7);
	}

	.hero-content__text {
		padding-right: var(--sp-3);
	}

	.hero-content__subtitle {
		font-size: var(--fs-350);
	}

	.hero-content__title {
		font-size: var(--fs-600);
	}

	.hero-content__description {
		font-size: var(--section-description-tablet);
		line-height: 1.5;
	}

	.hero-content__image-bg {
		width: 50rem;
		height: 33rem;
	}

	.hero-content__decoration {
		bottom: -2.5rem;
		right: -2.5rem;
		left: auto;
		width: 13rem;
		height: 13rem;
		transform: none;
	}

	/* Programs Section - Tablet */
	.programs-section {
		padding: var(--sp-7) 0 var(--sp-8);
	}

	/* Program Cards - Tablet: 2 columns */
	.programs-section .row.g-4[data-program-grid] > .col-lg-4 {
		flex: 0 0 calc(50% - var(--sp-4) / 2);
		max-width: calc(50% - var(--sp-4) / 2);
	}

	/* FAQ Section - Tablet */
	.faq-section {
		padding: var(--sp-7) 0;
	}

	.faq-section__subtitle {
		font-size: var(--fs-350);
	}
}

@media (max-width: 991px) {
	.faq-section__image {
		display: none;
	}
}

/* ================================================
   MOBILE (max-width: 575px)
   ================================================ */
@media (max-width: 575px) {
	.hero-content-section {
		padding: var(--sp-6) 0;
	}

	.hero-content__right {
		padding-top: var(--sp-6);
	}

	.hero-content__text {
		padding-right: 0;
	}

	.hero-content__subtitle {
		font-size: var(--fs-300);
		text-align: left;
	}

	.hero-content__title {
		font-size: var(--fs-500);
		margin-bottom: var(--sp-3);
		text-align: left;
	}

	.hero-content__description {
		font-size: var(--section-description-mobile);
		text-align: left;
	}

	.hero-content__image-wrapper {
		border-radius: 0;
		overflow: visible;
	}

	.hero-content__image {
		border-radius: 0;
	}

	.hero-content__image-bg {
		display: none;
	}

	.hero-content__decoration {
		display: none;
	}

	/* Programs Section - Mobile */
	.programs-section {
		padding: var(--sp-6) 0 var(--sp-7);
	}

	.programs-section__header {
		display: flex;
		align-items: flex-start;
		gap: var(--sp-3);
		text-align: left !important;
	}

	.programs-section__icon-wrapper {
		width: 4.8rem;
		height: 4.8rem;
		min-width: 4.8rem;
		background-color: var(--brand-primary);
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.programs-section__icon {
		width: 2.4rem;
		height: 2.4rem;
		filter: brightness(0) invert(1);
	}

	.programs-section__title-wrapper {
		flex: 1;
	}

	.programs-section__subtitle {
		font-size: var(--fs-300);
		text-align: left;
	}

	.programs-section__title {
		font-size: var(--section-title-mobile);
		text-align: left;
	}

	/* Program Cards Mobile Slider */
	.programs-section .row.g-4[data-program-grid] {
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
		gap: var(--sp-3);
		margin: 0 -1.6rem;
		padding: var(--sp-4) 1.6rem 0;
	}

	.programs-section .row.g-4[data-program-grid]::-webkit-scrollbar {
		display: none;
	}

	.programs-section .row.g-4[data-program-grid].is-dragging {
		scroll-snap-type: none;
		cursor: grabbing;
		user-select: none;
	}

	.programs-section .row.g-4[data-program-grid] > .col-lg-4 {
		flex: 0 0 calc(100% - 3.2rem);
		max-width: calc(100% - 3.2rem);
		min-width: calc(100% - 3.2rem);
		scroll-snap-align: center;
		padding: 0;
	}

	.programs-section .row.g-4[data-program-grid] .program-card {
		max-width: 100%;
	}

	/* Show Slider Navigation on mobile */
	.program-slider-nav {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: var(--sp-2);
		margin-top: var(--sp-4);
	}

	.program-slider-nav__btn {
		width: 4rem;
		height: 4rem;
		border-radius: 50%;
		background-color: var(--gray-200, #e5e7eb);
		border: none;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		transition: all var(--transition-base);
	}

	.program-slider-nav__btn:hover:not(:disabled) {
		background-color: var(--gray-300);
	}

	.program-slider-nav__btn:disabled {
		opacity: 0.5;
		cursor: not-allowed;
	}

	.program-slider-nav__btn img {
		width: 1.1rem;
		height: 1rem;
		object-fit: contain;
	}

	/* FAQ Section - Mobile */
	.faq-section {
		padding: var(--sp-6) 0;
	}

	.faq-section__title {
		font-size: var(--section-title-mobile);
	}

	.faq-section__subtitle {
		font-size: var(--fs-300);
	}

	.faq-section__subtitle:last-of-type {
		margin-bottom: var(--sp-5);
	}
}
