/* =========================================================
   SWT Web Design & Development Services — Frontend Styles
   ========================================================= */

/* ---------- Services Grid ---------- */
.swt-services-grid {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(3, 1fr);
	margin: 20px 0;
}
.swt-columns-1 { grid-template-columns: repeat(1, 1fr); }
.swt-columns-2 { grid-template-columns: repeat(2, 1fr); }
.swt-columns-3 { grid-template-columns: repeat(3, 1fr); }
.swt-columns-4 { grid-template-columns: repeat(4, 1fr); }
.swt-columns-5 { grid-template-columns: repeat(5, 1fr); }
.swt-columns-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 992px) {
	.swt-columns-4, .swt-columns-5, .swt-columns-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
	.swt-services-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 18px; }
}
@media (max-width: 480px) {
	.swt-services-grid { grid-template-columns: 1fr !important; }
}

/* ---------- Card ---------- */
.swt-service-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
}
.swt-card-linkwrap {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	text-decoration: none;
	color: inherit;
}
.swt-card-img-wrap {
	overflow: hidden;
	position: relative;
}
.swt-card-img-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.14) 100%);
	opacity: 0;
	transition: opacity .3s ease;
	pointer-events: none;
}
.swt-service-card:hover .swt-card-img-wrap::after {
	opacity: 1;
}
.swt-card-img-wrap img,
.swt-card-img {
	width: 100%;
	height: 210px;
	object-fit: cover;
	display: block;
	transition: transform .5s cubic-bezier(.22,.9,.35,1);
}
.swt-service-card:hover .swt-card-img-wrap img,
.swt-service-card:hover .swt-card-img {
	transform: scale(1.08);
}
.swt-card-body {
	padding: 20px 20px 12px;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}
.swt-card-date {
	margin-bottom: 8px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	font-size: 11px;
}
.swt-card-title {
	margin: 0 0 10px 0;
	line-height: 1.35;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.swt-card-desc {
	margin: 0;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.swt-card-readmore-wrap {
	padding: 4px 20px 20px;
}
.swt-card-readmore {
	text-decoration: none;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	letter-spacing: .01em;
}
.swt-card-readmore-arrow {
	display: inline-block;
	transition: transform .25s cubic-bezier(.22,.9,.35,1);
}
.swt-card-readmore:hover .swt-card-readmore-arrow {
	transform: translateX(4px);
}
.swt-card-readmore:hover {
	text-decoration: underline;
}
.swt-no-services {
	opacity: 0.7;
	text-align: center;
	padding: 40px 0;
}

/* ---------- Single Service Template ---------- */
.swt-single-service {
	max-width: 1100px;
	margin: 40px auto;
	padding: 0 20px;
}
.swt-single-top {
	display: flex;
	gap: 48px;
	flex-wrap: wrap;
	align-items: flex-start;
}
.swt-single-image {
	flex: 1 1 420px;
}
.swt-single-image img {
	width: 100%;
	height: auto;
	border-radius: 16px;
	display: block;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}
.swt-single-details {
	flex: 1 1 360px;
}
.swt-single-title {
	margin: 6px 0 16px;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.swt-single-short-desc {
	font-size: 17px;
	line-height: 1.65;
	margin-bottom: 20px;
	opacity: .85;
}
.swt-single-categories {
	margin-bottom: 20px;
}
.swt-cat-badge {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 20px;
	background: #f1f3f6;
	color: #3a4150;
	font-size: 12px;
	font-weight: 600;
	margin-right: 6px;
	margin-bottom: 6px;
	letter-spacing: .01em;
}
.swt-project-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 26px;
	background: #0073aa;
	color: #fff;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	box-shadow: 0 10px 24px rgba(0, 115, 170, 0.28);
	transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.swt-project-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(0, 115, 170, 0.36);
	color: #fff;
}
.swt-single-full-description {
	margin-top: 48px;
	line-height: 1.8;
	font-size: 16px;
	max-width: 850px;
}

/* ---------- Archive Page ---------- */
.swt-archive-wrap {
	max-width: 1240px;
	margin: 48px auto;
	padding: 0 20px;
}
.swt-archive-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 48px;
}
.swt-archive-title {
	margin: 0 0 16px;
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.swt-archive-accent {
	display: block;
	width: 64px;
	height: 4px;
	margin: 0 auto 20px;
	border-radius: 999px;
	background: linear-gradient(90deg, #0073aa, #52c0ea);
}
.swt-archive-description {
	font-size: 16px;
	line-height: 1.7;
}
.swt-archive-pagination {
	margin-top: 48px;
	text-align: center;
}
.swt-archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	margin: 0 4px;
	border: 1px solid #e2e5ea;
	border-radius: 999px;
	text-decoration: none;
	color: inherit;
	font-weight: 600;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.swt-archive-pagination .page-numbers:hover {
	background: #f1f3f6;
}
.swt-archive-pagination .page-numbers.current {
	background: #0073aa;
	color: #fff;
	border-color: #0073aa;
}
