/* =============================================
   Autotech - Service Single Frontend CSS
   ============================================= */


/* =============================================
   BANNER / BREADCRUMB
   ============================================= */

.section-banner-detail {
	padding: 28px 0;
	background: #f8f9fb;
	border-bottom: 1px solid #e5e7eb;
}

.banner-inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.banner-category {
	font-size: 22px;
	font-weight: 700;
	color: #1d2327;
	margin: 0;
}

.widget-breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 13px;
}

.breadcrumb-item {
	color: #6b7280;
	text-decoration: none;
}

.breadcrumb-item:hover {
	color: var(--at-accent);
}

.breadcrumb-item--active {
	color: var(--at-accent);
	font-weight: 500;
}

.breadcrumb-sep {
	color: #d1d5db;
	font-size: 11px;
}


/* =============================================
   SERVICE SINGLE LAYOUT
   ============================================= */

.service-single-section {
	padding: 36px 0 64px;
}

/* ---- Top: Ảnh + Info ---- */
.service-top {
	background: #f1f2f4;
	padding: 30px;
	margin-bottom: 44px;
}

.service-top > .widget-childs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px;
	align-items: start;
}

.service-hero-image img {
	width: 100%;
	height: 100%;
	min-height: 520px;
	border-radius: 0;
	display: block;
	object-fit: cover;
}

.service-info-wrap > .widget-childs {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.service-title {
	font-size: clamp(28px, 2.3vw, 50px);
	font-weight: 700;
	color: #1d2327;
	margin: 0;
	line-height: 1.25;
	padding-bottom: 12px;
	border-bottom: 1px solid #d9dde3;
}

.service-short-desc p {
	font-size: clamp(17px, 1.04vw, 20px);
	color: #4b5563;
	line-height: 1.72;
	margin: 0;
}

/* ---- CTA Buttons ---- */
.service-cta-row .widget-childs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	padding-top: 10px;
	padding-bottom: 16px;
	border-bottom: 1px solid #d9dde3;
}

.service-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 66px;
	padding: 0 14px;
	border-radius: 0;
	font-size: clamp(18px, 1.02vw, 20px);
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
}

.service-btn--cta {
	background: var(--at-button-bg);
	color: #fff;
	border: 2px solid var(--at-button-bg);
}

.service-btn--cta:hover {
	background: var(--at-button-bg-hover);
	border-color: var(--at-button-bg-hover);
	color: #fff;
}

.service-btn--phone {
	background: var(--at-button-bg);
	color: #fff;
	border: 2px solid var(--at-button-bg);
}

.service-btn--phone:hover {
	background: var(--at-button-bg-hover);
	border-color: var(--at-button-bg-hover);
	color: #fff;
}

.service-btn .icon {
	font-size: 16px;
}


/* =============================================
   TABS
   ============================================= */

.service-tabs {
	margin-bottom: 48px;
}

.nav-tabs {
	display: flex;
	border-bottom: 2px solid #e5e7eb;
	margin-bottom: 0;
	padding: 0;
	list-style: none;
	gap: 4px;
}

.nav-tabs .nav-link {
	display: inline-block;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	color: #6b7280;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-tabs .nav-link:hover {
	color: var(--at-accent);
}

.nav-tabs .nav-link.active {
	color: var(--at-accent);
	border-bottom-color: var(--at-accent);
}

.tab-content {
	padding-top: 32px;
}

.tab-pane {
	display: none;
}

.tab-pane.show,
.tab-pane.active {
	display: block;
}


/* =============================================
   NỘI DUNG CHI TIẾT + XEM THÊM
   ============================================= */

.service-content-collapsible {
	transition: max-height 0.4s ease;
}

.service-content-collapsible.is-collapsed {
	max-height: 320px;
	overflow: hidden;
	position: relative;
}

.service-content-collapsible.is-collapsed::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100px;
	background: linear-gradient( to bottom, transparent, #fff );
	pointer-events: none;
}

.service-content-body {
	font-size: 14px;
	line-height: 1.9;
	color: #374151;
}

.service-content-body h1,
.service-content-body h2,
.service-content-body h3 {
	font-weight: 700;
	line-height: 1.4;
	margin: 24px 0 12px;
}

.service-content-body img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 16px 0;
}

.service-content-body ul,
.service-content-body ol {
	padding-left: 20px;
}

.service-content-body li {
	margin-bottom: 6px;
}

/* Nút Xem thêm / Thu gọn */
.service-see-more-row {
	margin-top: 20px;
}

.see-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 20px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	border: 2px solid var(--at-button-bg);
	border-radius: 6px;
	background: var(--at-button-bg);
	cursor: pointer;
	transition: all 0.2s ease;
}

.see-more-btn:hover {
	background: var(--at-button-bg-hover);
	border-color: var(--at-button-bg-hover);
	color: #fff;
}


/* =============================================
   FB COMMENTS
   ============================================= */

.service-fb-comments {
	min-height: 120px;
	padding: 8px 0;
}


/* =============================================
   FILE TẢI XUỐNG (INLINE CỘT PHẢI)
   ============================================= */

.service-downloads-inline {
	padding-top: 2px;
}

.service-downloads-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 700;
	color: #1d2327;
	margin: 0 0 12px;
	border-bottom: none;
	padding-bottom: 0;
}

.service-downloads-title .icon {
	color: var(--at-accent);
}

.service-downloads-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.service-download-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: var(--at-button-bg);
	border: 1px solid var(--at-button-bg);
	border-radius: 6px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.service-download-btn:hover {
	background: var(--at-button-bg-hover);
	border-color: var(--at-button-bg-hover);
	color: #fff;
}

.service-download-btn .icon {
	font-size: 16px;
}


/* =============================================
   RELATED PRODUCTS SLIDER
   ============================================= */

.service-related-section {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 2px solid #f3f4f6;
}

.service-related-title {
	font-size: 20px;
	font-weight: 700;
	color: #1d2327;
	margin: 0 0 28px;
}

.service-related-title a {
	color: inherit;
	text-decoration: none;
}

.service-related-title a:hover {
	color: var(--at-accent);
}

/* Swiper container */
.service-slider .swiper-container {
	overflow: hidden;
	padding-bottom: 8px;
}

/* Slide item */
.widget-slider-item {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Ảnh thu nhỏ slider */
.slider-image-wrap .widget-childs {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 16px;
}

.slider-thumb {
	display: block;
	width: 100%;
	padding-top: 66%;       /* Tỉ lệ 3:2 */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.4s ease;
}

.slider-image-wrap:hover .slider-thumb {
	transform: scale(1.04);
}

/* Nút mũi tên trên ảnh */
.slider-arrow {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	background: var(--at-button-bg);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	text-decoration: none;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.slider-image-wrap:hover .slider-arrow {
	opacity: 1;
	transform: translateY(0);
}

/* Tiêu đề + excerpt */
.slider-item-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.4;
}

.slider-item-title a {
	color: #1d2327;
	text-decoration: none;
}

.slider-item-title a:hover {
	color: var(--at-accent);
}

.slider-item-excerpt {
	font-size: 13px;
	color: #6b7280;
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Nav buttons */
.service-slider .swiper-button-next,
.service-slider .swiper-button-prev {
	width: 40px;
	height: 40px;
	background: var(--at-button-bg);
	border-radius: 50%;
	color: #fff;
	font-size: 14px;
}

.service-slider .swiper-button-next::after,
.service-slider .swiper-button-prev::after {
	display: none;
}

.service-slider .swiper-button-next:hover,
.service-slider .swiper-button-prev:hover {
	background: var(--at-button-bg-hover);
}

.service-slider .swiper-button-disabled {
	opacity: 0.35;
}


/* =============================================
   RESPONSIVE
   ============================================= */

@media ( max-width: 768px ) {
	.service-top {
		padding: 16px;
	}

	.service-top > .widget-childs {
		grid-template-columns: 1fr;
		gap: 24px;
		margin-bottom: 0;
	}

	.service-hero-image img {
		min-height: 260px;
	}

	.service-title {
		font-size: clamp(24px, 7vw, 30px);
	}

	.service-cta-row .widget-childs {
		grid-template-columns: 1fr;
	}

	.service-btn {
		height: 52px;
		font-size: 16px;
	}

	.nav-tabs .nav-link {
		padding: 10px 16px;
		font-size: 13px;
	}

	.service-related-section {
		margin-top: 40px;
	}
}
