/* ============================================
   COMPONENT: Hero Section
   ============================================ */

/* Base Hero Section (dùng cho tất cả pages) */
.hero-section {
	position: relative;
	width: 100%;
	height: calc(100vh - var(--header-total-height-mobile, 112px));
	overflow: hidden;
}

.hero-section__bg {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Hero background cho trang chủ
	- Desktop: dùng hình cũ (set ở home.css hoặc inline hiện tại)
	- Tablet + Mobile: override bằng hình mới */

/* Tablet + Mobile (dưới lg) dùng hình mới */
@media (max-width: 991.98px) {
	.hero-section .hero-section__bg {
		background-image: url("https://codia-f2c.s3.us-west-1.amazonaws.com/image/2025-10-21/FtSsKXbfjR.png");
	}
}

/* ============================================
   Mobile Hero (Home page)
   ============================================ */

.hero-mobile {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.hero-mobile__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	padding-bottom: 2.5rem;
	max-width: 320px;
	color: #fafafa;
	pointer-events: auto;
}

.hero-mobile__subtitle {
	font-family: "SF Pro Display", var(--font-primary, Montserrat);
	font-size: var(--fs-200);
	font-weight: 600;
	line-height: 1.25rem;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}

.hero-mobile__brand {
	font-family: Oswald, var(--font-primary, Montserrat);
	font-size: var(--fs-600);
	line-height: 1.3;
	color: #ffaa17;
	margin-bottom: 0.25rem;
}

.hero-mobile__title {
	font-family: Oswald, var(--font-primary, Montserrat);
	font-size: var(--fs-500);
	line-height: 1.4;
	text-transform: uppercase;
	margin: 0;
}

.hero-mobile__btn {
	margin-top: 1.5rem;
	background-color: var(--color-secondary);
	border-color: var(--color-secondary);
	color: var(--color-on-secondary);
	border-radius: var(--radius-md);
	padding: 0.75rem 1.25rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: Oswald, var(--font-primary, Montserrat);
	font-size: var(--fs-200);
	text-transform: uppercase;
	align-self: flex-start;
	white-space: nowrap;
}

.hero-mobile__btn:hover,
.hero-mobile__btn:focus {
	background-color: #1a294f;
	border-color: #1a294f;
	color: var(--color-on-secondary);
}

.hero-mobile__btn-icon {
	width: 1.5rem;
	height: 1.5rem;
	flex-shrink: 0;
	background-image: url("https://codia-f2c.s3.us-west-1.amazonaws.com/image/2025-10-21/AxhwgFJngh.png");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.hero-mobile__fab-group {
	position: absolute;
	right: 1rem;
	bottom: 5.5rem;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.hero-mobile__fab {
	width: 3.75rem;
	height: 3.75rem;
	border-radius: 999px;
	border: none;
	background-color: transparent;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.hero-mobile__fab--chat {
	background-image: url("https://codia-f2c.s3.us-west-1.amazonaws.com/image/2025-10-21/VeGyY7Zbxo.png");
}

.hero-mobile__fab--phone {
	background-image: url("https://codia-f2c.s3.us-west-1.amazonaws.com/image/2025-10-21/W9o6ByXdtU.png");
}

/* ============================================
   DAI-HOC PAGE VARIANT
   Hero giống index + Feature cards overlay
   ============================================ */

/* Hero banner nhỏ cho các trang con - Desktop */
.hero-section--banner {
	height: 500px;
}

/* Hero background cho dai-hoc */
.hero-section--daihoc .hero-section__bg {
	background-image: url("/assets/images/hero_bg.png");
}

/* Feature Cards Section */
.feature-cards-section {
	background-color: var(--color-light);
	padding: 60px 0;
	overflow: hidden;
}

.feature-cards-section__title {
	font-family: var(--font-primary);
	font-size: var(--fs-700);
	font-weight: 700;
	line-height: 1.22;
	color: var(--brand-primary);
	margin-bottom: 0;
}

.feature-cards-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: var(--sp-4);
}

.feature-cards-wrapper .col-lg-3 {
	flex: 0 0 auto;
	width: auto;
	max-width: none;
	padding: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1199.98px) {
	.hero-mobile__content {
		max-width: 420px;
		padding-bottom: 3.5rem;
	}

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

	.hero-mobile__fab-group {
		bottom: 6.5rem;
	}

	.feature-cards-section {
		padding: 48px 0;
	}

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

	.feature-cards-section__title {
		font-size: var(--fs-600);
	}

	.feature-cards-wrapper {
		gap: var(--sp-4);
	}
}

/* Tablet - 2 cards per row */
@media (min-width: 576px) and (max-width: 1199.98px) {
	/* Hero banner tablet */
	.hero-section--banner {
		height: 350px;
		min-height: 350px;
	}

	.feature-cards-wrapper {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: var(--sp-4);
	}

	.feature-cards-wrapper .col-lg-3 {
		width: 100%;
		max-width: 100%;
	}
}

/* Mobile */
@media (max-width: 575.98px) {
	.hero-section {
		height: auto;
		min-height: calc(100vh - var(--header-total-height-mobile, 112px));
	}

	/* Hero banner nhỏ cho các trang con */
	.hero-section--banner {
		height: 250px;
		min-height: 250px;
	}

	.feature-cards-section {
		padding: 40px 0;
	}

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

	.feature-cards-section__title {
		font-size: var(--fs-500);
		text-align: left;
	}

	.feature-cards-wrapper {
		gap: var(--sp-3);
		flex-direction: column;
	}

	.feature-cards-wrapper .col-lg-3 {
		width: 100%;
		max-width: 100%;
	}
}
