﻿/***********************
* Modern Service Cards
***********************/

/* Service One Section */
.service-one-section {
	padding: 80px 0;
}

@media (min-width: 992px) {
	.service-one-section {
		padding: 120px 0;
	}
}

/* Modern Service Card */
.service-one-card {
	position: relative;
	padding: 32px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	background: #fff;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	min-height: 280px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	height: 100%
}

@media (min-width: 768px) {
	.service-one-card {
		padding: 40px;
	}
}

.service-one-card:hover {
	border-color: var(--thm-primary);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
	transform: translateY(-4px);
}

/* Icon Container */
.service-one-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	background: linear-gradient(135deg, rgba(var(--thm-primary-rgb, 255, 90, 50), 0.1), rgba(var(--thm-primary-rgb, 255, 90, 50), 0.05));
	border-radius: 16px;
	margin-bottom: 24px;
	transition: all 0.3s ease;
}

.service-one-card:hover .service-one-icon {
	background: var(--thm-primary);
	transform: scale(1.05);
}

.service-one-icon > i {
	font-size: 36px;
	color: var(--thm-primary);
	transition: color 0.3s ease;
}

.service-one-card:hover .service-one-icon > i {
	color: #fff;
}

/* Card Content */
.service-one-card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.service-one-card-content > h3 {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 12px;
	line-height: 1.3;
	color: var(--thm-black);
	transition: color 0.3s ease;
}

@media (min-width: 768px) {
	.service-one-card-content > h3 {
		font-size: 24px;
	}
}

.service-one-card:hover .service-one-card-content > h3 {
	color: var(--thm-primary);
}

.service-one-card-content > p {
	font-size: 15px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 24px;
	flex: 1;
}

/* Read More Link */
.service-one-detail {
	display: flex;
	align-items: center;
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.service-one-detail a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--thm-black);
	text-decoration: none;
	transition: all 0.3s ease;
}

.service-one-detail a:hover {
	color: var(--thm-primary);
	gap: 12px;
}

.service-one-detail a > span {
	transition: color 0.3s ease;
}

.service-one-detail a > i {
	font-size: 14px;
	transition: transform 0.3s ease;
}

.service-one-card:hover .service-one-detail a > i {
	transform: translateX(4px);
}

/* Grid Layout */
.row-gutter-30 {
	margin-left: -15px;
	margin-right: -15px;
}

.row-gutter-30 > [class*='col-'] {
	padding-left: 15px;
	padding-right: 15px;
	margin-bottom: 30px;
}

/* Empty State */
.alert {
	padding: 24px;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.alert-info {
	background-color: rgba(13, 110, 253, 0.05);
	color: #084298;
	border-color: rgba(13, 110, 253, 0.15);
}

/* Page Banner (if needed) */
.page-banner {
	padding: 80px 0;
	background-size: cover;
	background-position: center;
	background-color: var(--thm-dark-black);
	position: relative;
}

.page-banner::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.page-banner .container {
	position: relative;
	z-index: 1;
}

.page-breadcrumbs ul {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.page-breadcrumbs li {
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
}

.page-breadcrumbs li:not(:last-child)::after {
	content: '/';
	margin-left: 8px;
	color: rgba(255, 255, 255, 0.5);
}

.page-breadcrumbs a {
	color: #fff;
	text-decoration: none;
	transition: color 0.3s ease;
}

.page-breadcrumbs a:hover {
	color: var(--thm-primary);
}

.page-banner-title h3 {
	font-size: 36px;
	font-weight: 700;
	color: #fff;
	margin: 0;
}

@media (min-width: 768px) {
	.page-banner-title h3 {
		font-size: 48px;
	}
}

/* Accessibility */
.service-one-card:focus-within {
	outline: 2px solid var(--thm-primary);
	outline-offset: 2px;
}

/* Loading State (optional) */
@keyframes shimmer {
	0% { background-position: -468px 0; }
	100% { background-position: 468px 0; }
}

.service-one-card.loading {
	background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
	background-size: 800px 104px;
	animation: shimmer 1.5s infinite;
}
/***********************
* Modern Service Cards
***********************/

/* Service Two Section */
.service-two-section {
	padding: 0px 0;
	background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
	position: relative;
}

@media (min-width: 992px) {
	.service-two-section {
		padding: 120px 0;
	}
}

/* Section Title */
.department-two-box {
	margin-bottom: 0px;
}

.section-title-box {
	text-align: center;
}

.section-title {
	font-size: 32px;
	font-weight: 700;
	color: var(--thm-black);
	margin: 0;
	position: relative;
	display: inline-block;
}

@media (min-width: 768px) {
	.section-title {
		font-size: 42px;
	}
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -12px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background: var(--thm-primary);
	border-radius: 2px;
}

/* Service Two Card */
.service-two-card {
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	height: 100%;
	display: flex;
	flex-direction: column;
	min-height: 480px;
}

@media (min-width: 768px) {
	.service-two-card {
		min-height: 520px;
	}
}

.service-two-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Image Container */
.service-two-imgbox {
	position: relative;
	overflow: hidden;
	height: 240px;
	background: #f0f0f0;
	flex-shrink: 0;
}

.service-two-image {
	width: 100%;
	height: 100%;
	position: relative;
}

.service-two-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-two-card:hover .service-two-image img {
	transform: scale(1.08);
}

.service-two-image a {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.service-two-card:hover .service-two-image a {
	opacity: 1;
}

/* Card Content */
.service-two-card-content {
	padding: 28px;
	flex: 1;
	display: flex;
	flex-direction: column;
	background: #fff;
}

@media (min-width: 768px) {
	.service-two-card-content {
		padding: 32px;
	}
}

.service-two-card-content h4 {
	font-size: 20px;
	font-weight: 700;
	color: var(--thm-black);
	margin-bottom: 12px;
	line-height: 1.4;
	transition: color 0.3s ease;
	min-height: 56px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (min-width: 768px) {
	.service-two-card-content h4 {
		font-size: 22px;
		min-height: 60px;
	}
}

.service-two-card:hover .service-two-card-content h4 {
	color: var(--thm-primary);
}

.service-two-card-content p {
	font-size: 15px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 24px;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: 72px;
}

/* Read More Link */
.service-two-card-content a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
	color: var(--thm-black);
	text-decoration: none;
	padding-top: 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	transition: all 0.3s ease;
	margin-top: auto;
}

.service-two-card-content a:hover {
	color: var(--thm-primary);
	gap: 14px;
}

.service-two-card-content a i {
	font-size: 14px;
	transition: transform 0.3s ease;
}

.service-two-card:hover .service-two-card-content a i {
	transform: translateX(4px);
}

.service-two-card-content a span {
	font-weight: 600;
}

/* Grid Layout */
.row-gutter-y-40 {
	margin-left: -15px;
	margin-right: -15px;
}

.row-gutter-y-40 > [class*='col-'] {
	padding-left: 15px;
	padding-right: 15px;
	margin-bottom: 30px;
}

/* Responsive Grid */
@media (min-width: 992px) {
	.row-gutter-y-40 > .col-lg-4:nth-child(n+3) {
		margin-bottom: 0;
	}
}

/* Loading State */
.service-two-card.loading {
	pointer-events: none;
}

.service-two-card.loading .service-two-imgbox,
.service-two-card.loading .service-two-card-content h4,
.service-two-card.loading .service-two-card-content p {
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: loading 1.5s infinite;
}

@keyframes loading {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* Empty State */
.service-two-section .alert {
	padding: 32px;
	border-radius: 16px;
	background: rgba(13, 110, 253, 0.05);
	border: 1px solid rgba(13, 110, 253, 0.15);
	text-align: center;
}

/* Accessibility */
.service-two-card:focus-within {
	outline: 2px solid var(--thm-primary);
	outline-offset: 4px;
	border-radius: 20px;
}

/* Animation on Scroll */
.service-two-card {
	opacity: 0;
	transform: translateY(30px);
	animation: fadeInUp 0.6s ease forwards;
}

.service-two-card:nth-child(2) {
	animation-delay: 0.1s;
}

.service-two-card:nth-child(3) {
	animation-delay: 0.2s;
}

.service-two-card:nth-child(4) {
	animation-delay: 0.3s;
}

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Empty State */
.service-two-section .text-center.py-5 {
	padding: 60px 20px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.service-two-section .text-center.py-5 i {
	opacity: 0.3;
	margin-bottom: 20px;
}

.service-two-section .text-muted {
	color: #6c757d;
	font-size: 16px;
	margin: 0;
}

/* Print Styles */
@media print {
	.service-two-section {
		background: #fff;
	}
	
	.service-two-card {
		page-break-inside: avoid;
		box-shadow: none;
		border: 1px solid #ddd;
	}
}