/* Homepage h-sec1 — curl dưới video (đè 1 góc), float phải xếp dọc */

.h-sec1 {
	overflow: visible;
}

/* Menu trái — căn theo chiều cao banner */
body.home .h-sec1 .row.align-equal {
	align-items: stretch !important;
}

body.home .h-sec1 .row.align-equal > .col {
	display: flex;
	flex-direction: column;
}

body.home .h-sec1 .row.align-equal > .col > .col-inner {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
}

body.home .section.h-sec1,
body.home .section.h-sec1 > .section-content,
body.home .section.h-sec1 .row.align-equal,
body.home .section.h-sec1 .row.align-equal > .col,
body.home .section.h-sec1 .row.align-equal > .col > .col-inner {
	overflow: visible !important;
}

body.home .h-sec1 .row > .col:first-child {
	position: relative;
	z-index: 30;
	padding-right: 8px;
}

body.home .h-sec1 .revidapi-banner-col {
	position: relative;
	z-index: 1;
	overflow: visible;
	padding-left: 0;
}

body.home .h-sec1 .revidapi-banner-col > .col-inner {
	overflow: visible !important;
	padding: 0 !important;
}

body.home .h-sec1 .revidapi-banner {
	position: relative;
	width: 100%;
	overflow: visible;
}

body.home .h-sec1 .revidapi-banner-inner {
	position: relative;
	max-width: none;
	width: 100%;
	margin: 0;
	aspect-ratio: 16 / 9;
	min-height: 200px;
	padding-bottom: 48%;
	overflow: visible;
}

/* Curl — phía phải, dưới video; banner đè 1 góc */
body.home .h-sec1 .revidapi-banner-curl {
	position: absolute;
	z-index: 1 !important;
	left: auto !important;
	right: -4.25rem !important;
	top: -3.75rem !important;
	max-width: min(56%, 460px);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.8125rem !important;
	font-weight: 600;
	line-height: 1.55;
	white-space: nowrap !important;
	overflow-x: auto;
	padding: 1.15rem 1.3rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.8rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .2);
}

body.home .h-sec1 .revidapi-banner-curl .c-cmd,
body.home .h-sec1 .revidapi-banner-curl .c-url {
	color: #111827;
	font-weight: 700;
}

body.home .h-sec1 .revidapi-banner-curl .c-url {
	color: #0f766e;
}

body.home .h-sec1 .revidapi-banner-curl .c-muted {
	color: #9ca3af;
	font-weight: 500;
}

body.home .h-sec1 .revidapi-banner-curl .c-key {
	color: #7c3aed;
	font-weight: 700;
}

body.home .h-sec1 .revidapi-banner-curl .c-val {
	color: #1f2937;
	font-weight: 600;
}

/* Video — trên cùng trong inner; không element nào đè lên video */
body.home .h-sec1 .revidapi-banner-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
	z-index: 10;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}

/* Float phải — ngoài inner, không overlay video */
body.home .h-sec1 .revidapi-banner-floats {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0;
	padding-bottom: 48%;
	pointer-events: none;
	overflow: visible;
	z-index: 5;
}

body.home .h-sec1 .revidapi-banner-float {
	position: absolute;
	background: #fff;
	border-radius: 1.25rem;
	box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .22);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
}

/* Icon — nằm NGOÀI mép phải banner (khoảng trắng) */
body.home .h-sec1 .revidapi-banner-float-play {
	right: auto !important;
	left: calc(100% + 0.85rem) !important;
	top: 10% !important;
	bottom: auto !important;
	width: 5.5rem !important;
	height: 5.5rem !important;
	transform: rotate(4deg);
	animation: revidapiBannerFloatA 4s ease-in-out infinite;
}

body.home .h-sec1 .revidapi-banner-float-play i {
	font-size: 2.25rem !important;
	color: #15803d;
}

body.home .h-sec1 .revidapi-banner-float-n8n {
	right: auto !important;
	left: calc(100% + 1.15rem) !important;
	top: auto !important;
	bottom: 36% !important;
	width: 5.5rem !important;
	height: 5.5rem !important;
	padding: 0.85rem !important;
	transform: rotate(6deg);
	animation: revidapiBannerFloatB 4.5s ease-in-out infinite 0.3s;
}

body.home .h-sec1 .revidapi-banner-float-n8n img {
	width: 2.35rem !important;
	height: 2.35rem !important;
	object-fit: contain;
}

/* Ẩn overlay cũ / mobile float desktop */
body.home .h-sec1 .revidapi-banner-overlay,
body.home .h-sec1 .revidapi-banner-float-mobile {
	display: none !important;
}

body.home .h-sec1 .revidapi-banner-float-promo {
	right: auto !important;
	left: calc(100% + 1rem) !important;
	top: auto !important;
	bottom: 12% !important;
	width: auto !important;
	height: auto !important;
	min-width: 6.75rem;
	padding: 11px 14px !important;
	background: linear-gradient(135deg, #111827, #1f2937) !important;
	border-radius: 1rem;
	transform: rotate(-2deg);
	animation: revidapiBannerFloatD 4.2s ease-in-out infinite 0.9s;
	z-index: 16;
}

body.home .h-sec1 .revidapi-banner-float-promo span {
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	white-space: normal;
	background: linear-gradient(90deg, #f472b6, #c084fc);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

body.home .h-sec1 .revidapi-hero-mobile {
	padding-bottom: 8px;
}

/* Container chung */
body.home #masthead .ng-header,
body.home .section.h-sec1 > .section-content > .row.row-small,
body.home .section.h-z0 > .section-content > .row.row-small,
body.home .section.h-sec3 > .section-content > .row.row-small {
	max-width: var(--revid-row-small, 1222.5px);
	margin-left: auto;
	margin-right: auto;
}

body.home .h-sec1 .dc-tab-menu-wrapper {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 100%;
	height: 100%;
	align-self: stretch;
	position: relative;
	z-index: 30;
	overflow: visible !important;
	padding: 10px 8px !important;
	border: 1px solid #d1d5db !important;
	border-radius: 8px !important;
	background: #fff !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

body.home .h-sec1 .dc-tab-menu-list {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.home .h-sec1 .dc-tab-menu-item a {
	font-size: 15px;
	font-weight: 500;
	padding: 8px 6px;
	gap: 8px;
	white-space: nowrap;
	flex-wrap: nowrap;
	color: #1f2937 !important;
}

body.home .h-sec1 .dc-tab-menu-item a span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.home .h-sec1 .dc-tab-menu-item:hover a,
body.home .h-sec1 .dc-tab-menu-item.active a {
	color: #111827 !important;
	background: #f3f4f6 !important;
	border-color: #9ca3af !important;
}

body.home .h-sec1 .dc-tab-menu-item a .cat-icon {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	font-size: 15px;
}

body.home .h-sec1 .dc-tab-menu-item a img {
	width: 24px !important;
	height: 24px !important;
	flex: 0 0 24px;
}

/* Headline + CTA — giữ như thiết kế gốc */
body.home .h-sec1 .hero-intro {
	max-width: 900px;
	margin: 0 auto;
	padding: 14px 0 6px;
	text-align: center;
}

body.home .h-sec1 .hero-intro h1 {
	margin: 0;
	font-size: clamp(1.4rem, 3.2vw, 2.25rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: #111827;
}

body.home .h-sec1 .hero-cta {
	display: inline-block;
	margin-top: 12px;
	padding: 10px 26px;
	background: #15803d;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 10px;
	text-decoration: none;
	box-shadow: 0 5px 0 #14532d;
}

body.home .h-sec1 .hero-cta:hover {
	transform: translateY(2px);
	box-shadow: 0 3px 0 #14532d;
}

body.home .h-sec1 .hero-intro p,
body.home .h-sec1 .revidapi-banner-inner p {
	margin: 0;
}

/* Khoảng cách hero → banner sát như revidapi.com */
body.home .section.h-sec1 > .section-content > .row.row-small + .row.row-small {
	margin-top: 0;
}

body.home .section.h-sec1 > .section-content > .row.align-equal {
	margin-top: 0;
}

@media (min-width: 1024px) and (max-width: 1279px) {
	body.home .h-sec1 .revidapi-banner-inner {
		width: 100%;
		margin-left: 0;
		padding-bottom: 46%;
	}

	body.home .h-sec1 .revidapi-banner-floats {
		left: 0;
		width: 100%;
		padding-bottom: 46%;
	}

	body.home .h-sec1 .revidapi-banner-curl {
		right: -3rem !important;
		top: -3.25rem !important;
		max-width: 52%;
		font-size: 0.75rem !important;
		padding: 1rem 1.1rem;
	}
	body.home .h-sec1 .revidapi-banner-float-play {
		left: calc(100% + 0.65rem) !important;
	}
	body.home .h-sec1 .revidapi-banner-float-n8n {
		left: calc(100% + 0.9rem) !important;
	}
	body.home .h-sec1 .revidapi-banner-float-promo {
		left: calc(100% + 0.75rem) !important;
	}
	body.home .h-sec1 .revidapi-banner-float-play,
	body.home .h-sec1 .revidapi-banner-float-n8n {
		width: 4.75rem !important;
		height: 4.75rem !important;
	}
	body.home .h-sec1 .revidapi-banner-float-play i {
		font-size: 1.9rem !important;
	}
}

@media (max-width: 1023px) {
	body.home .h-sec1 .revidapi-banner-curl {
		right: 0 !important;
		left: auto !important;
		max-width: 100%;
		white-space: normal !important;
	}
	body.home .h-sec1 .revidapi-banner-float-play {
		display: none !important;
	}
}

/* Overrides nailgiare — giữ float ảnh 3 + promo revidapi.com */
body.home .h-sec1 .revidapi-banner-float-promo span {
	background: none;
	-webkit-background-clip: border-box;
	background-clip: border-box;
	color: #fff;
	white-space: nowrap;
}

body.home .h-sec1 .revidapi-banner--desktop {
	display: block;
}

body.home .h-sec1 .revidapi-banner--sm {
	display: none;
}

body.home .h-sec1 .revidapi-hero-mobile {
	padding-bottom: 8px;
}

body.home .h-sec1 .revidapi-hero-mobile .dc-tab-menu-wrapper {
	margin-top: 16px;
	position: relative;
	display: block;
	background: #fff;
	border: 1px solid #e8eaed;
	border-radius: 8px;
	padding: 8px;
}

body.home .h-sec1 .revidapi-banner-stack {
	position: relative;
	max-width: 422px;
	margin: 0 auto;
}

@media (max-width: 849px) {
	body.home .h-sec1 .revidapi-banner-stack {
		max-width: 100%;
		width: 100%;
		margin: 0;
		padding: 0 10px;
		box-sizing: border-box;
	}

	body.home .h-sec1 .revidapi-banner-poster--sm {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
		object-fit: cover;
		border-radius: 8px;
	}

	body.home .h-sec1 .revidapi-banner--sm {
		padding-bottom: 120px;
	}

	body.home .h-sec1 .revidapi-banner-video--sm {
		width: min(200px, 46vw);
	}
}

body.home .h-sec1 .revidapi-banner-curl--sm {
	position: relative;
	left: auto;
	top: auto;
	font-size: 12px;
	padding: 12px;
	margin-bottom: 0;
	overflow-x: auto;
	white-space: normal;
}

body.home .h-sec1 .revidapi-banner-video--sm {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 200px;
	border-radius: 6px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
}

body.home .h-sec1 .revidapi-banner--sm {
	padding-bottom: 200px;
}

@media (max-width: 849px) {
	body.home .h-sec1 .revidapi-banner-col {
		display: none !important;
	}

	body.home .h-sec1 .revidapi-banner--desktop {
		display: none !important;
	}

	body.home .h-sec1 .revidapi-banner--sm {
		display: block !important;
	}
}
