/**
 * Homepage (home-index) — hero, slider, categories
 */

.home-index #home-one-info {
	background: #f4f6fb;
	padding-bottom: 48px;
}

/* —— Hero —— */
.home-hero {
	position: relative;
	padding: 36px 0 0;
	overflow: hidden;
}

.home-hero__backdrop {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 60% at 50% -10%, rgba(46, 66, 177, 0.18) 0%, transparent 55%),
		linear-gradient(180deg, #eef2ff 0%, #f4f6fb 72%, #f4f6fb 100%);
	pointer-events: none;
}

.home-hero > .container {
	position: relative;
	z-index: 1;
}

.home-hero__intro {
	max-width: 720px;
	margin: 0 auto 28px;
	text-align: center;
}

.home-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(46, 66, 177, 0.1);
	color: #2e42b1;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.home-hero__title {
	margin: 0 0 12px;
	font-size: clamp(1.75rem, 4vw, 2.65rem);
	font-weight: 700;
	line-height: 1.15;
	color: #1a2233;
}

.home-hero__title em {
	font-style: normal;
	color: #2e42b1;
}

.home-hero__lead {
	margin: 0 auto;
	max-width: 560px;
	font-size: 1.05rem;
	line-height: 1.55;
	color: #5c6b82;
}

.home-hero__search {
	max-width: 920px;
	margin: 0 auto 32px;
}

.home-index .home-hero__search .banner-form {
	max-width: none;
	margin: 0;
	border-radius: 16px;
	box-shadow:
		0 4px 6px rgba(26, 34, 51, 0.04),
		0 20px 48px rgba(46, 66, 177, 0.14);
	border: 1px solid rgba(46, 66, 177, 0.08);
}

.home-index .home-hero__search .banner-form .banner-search {
	border-radius: 14px;
	min-height: 60px;
}

.home-index .home-hero__search .banner-search__input {
	height: 60px !important;
	font-size: 16px !important;
}

.home-index .home-hero__search .banner-search__submit {
	min-height: 60px;
	border-radius: 0 14px 14px 0 !important;
	font-size: 16px;
	font-weight: 600;
}

/* —— Promo slider —— */
.home-hero__slider {
	margin-bottom: 40px;
}

.home-promo-slider {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 12px 40px rgba(26, 34, 51, 0.1);
	border: 1px solid #e8ecf4;
}

.home-promo-slider .carousel-inner > .item > img,
.home-promo-slider .carousel-inner > .item > a > img {
	width: 100%;
	height: auto;
	max-height: 360px;
	object-fit: cover;
	display: block;
}

.home-promo-slider .carousel-indicators {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	width: auto;
	margin: 0;
	text-align: center;
}

.home-promo-slider .carousel-indicators li {
	width: 10px;
	height: 10px;
	margin: 0 5px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
}

.home-promo-slider .carousel-indicators .active {
	width: 28px;
	border-radius: 999px;
	background: #fff;
}

.home-promo-slider .carousel-control {
	width: 48px;
	height: 48px;
	top: 50%;
	bottom: auto;
	margin-top: -24px;
	background: rgba(26, 34, 51, 0.45);
	border-radius: 50%;
	opacity: 1;
	text-shadow: none;
	transition: background 0.2s ease;
}

.home-promo-slider .carousel-control:hover {
	background: #970101;
}

.home-promo-slider .carousel-control.left {
	left: 16px;
}

.home-promo-slider .carousel-control.right {
	right: 16px;
}

.home-promo-slider .carousel-control .fa {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 18px;
	color: #fff;
	line-height: 1;
}

.home-promo-slider .arr_img {
	display: none;
}

/* —— Categories section —— */
.home-categories {
	padding: 8px 0 16px;
}

.home-categories__panel {
	background: #fff;
	border: 1px solid #e8ecf4;
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(26, 34, 51, 0.06);
	padding: 32px 28px 36px;
}

.home-index .home-category-section__head {
	margin-bottom: 32px;
}

.home-index .home-category-section__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	color: #1a2233;
	letter-spacing: -0.02em;
}

.home-index .home-category-section__subtitle {
	font-size: 1rem;
	color: #6b7a90;
}

.home-index .home-category-layout {
	margin-left: -10px;
	margin-right: -10px;
}

.home-index .home-category-layout > [class*="col-"] {
	padding-left: 10px;
	padding-right: 10px;
}

/* Sidebar */
.home-index .home-category-sidebar {
	border-radius: 14px;
	box-shadow: none;
	border: 1px solid #e8ecf4;
}

.home-index .home-category-sidebar__header {
	background: linear-gradient(135deg, #2e42b1 0%, #3d55c8 100%);
	padding: 18px 16px;
}

.home-index .home-category-sidebar__header-badge {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.15);
	font-size: 16px;
}

.home-index .home-category-sidebar__title {
	font-size: 1.05rem;
}

.home-index .home-category-sidebar__nav {
	max-height: 420px;
	overflow-y: auto;
}

.home-index .home-one .home-category-sidebar__link {
	padding: 11px 14px;
	border-radius: 8px;
}

.home-index .home-category-sidebar__footer {
	background: #f8f9fc;
}

.home-index .home-category-sidebar__view-all {
	font-weight: 600;
}

/* Category grid — override legacy list styles */
.home-index .home-one .category-list.home-category-grid .category-item,
.home-index .home-one .home-category-grid .category-item {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	display: block !important;
	vertical-align: initial !important;
	float: none !important;
}

.home-index .home-one .home-category-grid {
	gap: 16px;
	grid-template-columns: repeat(4, 1fr);
}

.home-index .home-one .home-category-grid .category-card {
	min-height: 188px;
	padding: 24px 16px 20px;
	border-radius: 14px;
	border: 1px solid #e8ecf4;
	box-shadow: 0 2px 8px rgba(26, 34, 51, 0.04);
}

.home-index .home-one .home-category-grid .category-card:hover,
.home-index .home-one .home-category-grid .category-card:focus {
	border-color: #2e42b1;
	box-shadow: 0 12px 28px rgba(46, 66, 177, 0.12);
}

.home-index .home-one .home-category-grid .category-card__icon {
	width: 100px;
	height: 100px;
	min-height: 100px;
	margin-bottom: 14px;
	background: linear-gradient(145deg, #f4f6ff 0%, #e8eeff 100%);
}

.home-index .home-one .home-category-grid .category-card__icon img {
	width: 64px !important;
	height: 64px !important;
	max-width: 64px;
	max-height: 64px;
}

.home-index .home-one .home-category-grid .category-card__title {
	font-size: 0.92rem;
	line-height: 1.35;
}

/* CTA band */
.home-cta {
	padding: 0 0 56px;
}

.home-cta__card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	padding: 28px 32px;
	border-radius: 16px;
	background: linear-gradient(135deg, #2e42b1 0%, #1e2f8a 100%);
	color: #fff;
	box-shadow: 0 16px 40px rgba(46, 66, 177, 0.22);
}

.home-cta__text h2 {
	margin: 0 0 6px;
	font-size: 1.35rem;
	font-weight: 700;
	color: #fff;
}

.home-cta__text p {
	margin: 0;
	font-size: 0.95rem;
	opacity: 0.9;
}

.home-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.home-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 10px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.home-cta__btn--primary {
	background: #fff;
	color: #2e42b1 !important;
}

.home-cta__btn--primary:hover {
	background: #f0f3ff;
	color: #2e42b1 !important;
	transform: translateY(-1px);
}

.home-cta__btn--ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.55);
	color: #fff !important;
}

.home-cta__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	color: #fff !important;
}

/* Legacy overrides */
.home-index #banner-two {
	margin-bottom: 0;
}

.home-index .category-ad {
	padding: 0;
	box-shadow: none;
	background: transparent;
}

.home-index .banner {
	position: static;
}

@media (min-width: 992px) and (max-width: 1199px) {
	.home-index .home-one .home-category-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 991px) {
	.home-hero {
		padding-top: 24px;
	}

	.home-hero__intro {
		margin-bottom: 20px;
	}

	.home-hero__slider {
		margin-bottom: 28px;
	}

	.home-promo-slider .carousel-inner > .item > img,
	.home-promo-slider .carousel-inner > .item > a > img {
		max-height: 260px;
	}

	.home-categories__panel {
		padding: 24px 18px 28px;
	}

	.home-index .home-category-sidebar__nav {
		max-height: none;
	}

	.home-index .home-one .home-category-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.home-index .home-one .home-category-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.home-cta__card {
		padding: 22px 20px;
		text-align: center;
		justify-content: center;
	}

	.home-cta__actions {
		width: 100%;
		justify-content: center;
	}

	.home-promo-slider .carousel-control {
		display: none;
	}
}

@media (max-width: 480px) {
	.home-index .home-one .home-category-grid .category-card {
		min-height: 160px;
		padding: 18px 12px 16px;
	}

	.home-index .home-one .home-category-grid .category-card__icon {
		width: 80px;
		height: 80px;
		min-height: 80px;
	}

	.home-index .home-one .home-category-grid .category-card__icon img {
		width: 52px !important;
		height: 52px !important;
		max-width: 52px;
		max-height: 52px;
	}
}
