/*
Theme Name: Divi Child
Theme URI: https://www.elegantthemes.com/gallery/divi/
Description: Divi Child Theme
Author: Elegant Themes
Author URI: https://www.elegantthemes.com
Template: Divi
Version: 1.0.0
*/

/* =Theme customization starts here */

/* ====================================================== */

/* ===========================
General Page Styling
=========================== */
.static-page-content {
	line-height: 1.25;
	color: #21214e;
	background-color: #fff;
	margin: 0 auto;
}

/* ===========================
Headings h1 - h6
=========================== */
.static-page-content h1 {
	color: #21214e;
	line-height: 1.3;
	margin-bottom: 0.5em;
}

.static-page-content h2,
.static-page-content h3,
.static-page-content h4,
.static-page-content h5,
.static-page-content h6 {
	color: #21214e;
	line-height: 1.3;
	margin-top: 1.5em;
	margin-bottom: 0.5em;
}

.static-page-content h1 { font-size: 32px; font-weight: 700; }
.static-page-content h2 { font-size: 26px; font-weight: 600; }
.static-page-content h3 { font-size: 22px; font-weight: 600; }
.static-page-content h4 { font-size: 18px; font-weight: 600; }
.static-page-content h5 { font-size: 16px; font-weight: 600; }
.static-page-content h6 { font-size: 14px; font-weight: 600; }

/* ===========================
Paragraphs
=========================== */
.static-page-content p {
	font-size: 14px;
	line-height: 1.25;
	margin: 0 0 12px 0;
}

/* ===========================
Lists
=========================== */
.static-page-content ul,
.static-page-content ol {
	margin: 0 0 12px 30px;
	padding: 0;
}

.static-page-content li {
	margin-bottom: 8px;
}

/* Nested lists */
.static-page-content ul ul,
.static-page-content ol ol,
.static-page-content ul ol,
.static-page-content ol ul {
	margin-left: 20px;
	margin-bottom: 6px;
}

/* ===========================
Links
=========================== */
.static-page-content a {
	color: #2f63ff;
	text-decoration: underline;
}

.static-page-content a:hover {
	text-decoration: none;
}

/* ===========================
Small Text
=========================== */
.static-page-content small {
	font-size: 12px;
	color: #21214e;
	line-height: 1.25;
}

/* ===========================
Blockquote
=========================== */
.static-page-content blockquote {
	border-left: 4px solid #ddd;
	padding-left: 15px;
	padding-top: 8px;
	padding-bottom: 8px;
	color: #21214e;
	font-style: italic;
	margin: 16px 0;
	background-color: #f9f9f9;
	font-size: 14px;
	line-height: 1.25;
}

/* ===========================
Tables
=========================== */
.static-page-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
	font-size: 14px;
	line-height: 1.25;
	color: #3b3b3b;
}

.static-page-content th,
.static-page-content td {
	border: 1px solid #ddd;
	padding: 10px;
	text-align: left;
}

.static-page-content th {
	background-color: #f4f4f4;
	font-weight: 600;
}

/* ===========================
Images
=========================== */
.static-page-content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 15px 0;
}

/* ===========================
Horizontal Rule
=========================== */
.static-page-content hr {
	border: none;
	border-top: 1px solid #ddd;
	margin: 25px 0;
}

/* ===========================
Code / Preformatted Text
=========================== */
.static-page-content pre,
.static-page-content code {
	background-color: #f4f4f4;
	padding: 6px 10px;
	border-radius: 4px;
	font-family: monospace;
	font-size: 13px;
	line-height: 1.25;
	overflow-x: auto;
	color: #3b3b3b;
}

/* ===========================
Section spacing
=========================== */
.static-page-content section {
	margin-bottom: 25px;
}




/* ====================================================== */


/* ===============================
Blog Post Content Typography
================================ */

.blog-post-content {
	line-height: 1.6 !important;
	color: #5C5D76;
	font-size: 15px !important;
	text-align: left !important;
}

/* Text emphasis */
.blog-post-content strong {
	font-weight: 600 !important;
	color: #022C22 !important;
}

.blog-post-content h1 strong,
.blog-post-content h2 strong
.blog-post-content h3 strong
.blog-post-content h4 strong
.blog-post-content h5 strong
.blog-post-content h6 strong{
	font-weight: inherit !important;
}

.blog-post-content em {
	font-style: italic;
}

/* Headings */
.blog-post-content h1 {
	font-size: 32px;
	font-weight: 600;
	margin: 32px 0 16px;
	line-height: 1.25;
	padding-bottom: 0;
	color: #022C22;
}

.blog-post-content h2 {
	font-size: 26px;
	margin: 28px 0 14px;
	line-height: 1.3;
	font-weight: 600;
	padding-bottom: 0;
	position: relative;
	padding-left: 16px;
	color: #022C22;
	border-left: 6px solid #2563eb;
}

.blog-post-content h3 {
	font-size: 22px;
	margin: 24px 0 12px;
	line-height: 1.35;
	font-weight: 600;
	color: #022C22;
	padding-bottom: 0;
}

.blog-post-content h4 {
	font-size: 18px;
	padding-bottom: 0;
	font-weight: 600;
	margin: 20px 0 10px;
	color: #022C22;
}

.blog-post-content h5 {
	font-size: 16px;
	padding-bottom: 0;
	font-weight: 600;
	margin: 18px 0 8px;
	color: #022C22;
}

.blog-post-content h6 {
	font-size: 14px;
	padding-bottom: 0;
	font-weight: 600;
	margin: 16px 0 6px;
	color: #022C22;
}

/* Paragraph */
.blog-post-content p {
	margin-bottom: 0px;
    padding-bottom: 12px;
}

/* Lists */
.blog-post-content ul,
.blog-post-content ol {
	margin: 0px 0 0px 18px;
    padding-bottom: 10px;
}

.blog-post-content li {
	margin-bottom: 2px;
}

/* Links */
.blog-post-content a {
	color: #2C67FF;
	text-decoration: underline;
}

/* Blockquote */
.blog-post-content blockquote {
	margin: 20px 0;
	padding: 12px 16px;
	border-left: 4px solid #5C5D76;
	background: #f8fafc;
	font-style: italic;
}

/* Images */
.blog-post-content img {
	max-width: 100%;
	height: auto;
	margin: 16px 0;
	border-radius: 6px;
}

/* Figure */
.blog-post-content figure {
	margin: 20px 0;
	text-align: center;
}

.blog-post-content figcaption {
	font-size: 13px;
	color: #5C5D76;
	margin-top: 6px;
}

/* Code */
.blog-post-content code {
	background: #5C5D76;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 14px;
}

.blog-post-content pre {
	background: #0f172a;
	color: #5C5D76;
	padding: 14px;
	border-radius: 6px;
	overflow-x: auto;
	margin: 18px 0;
}

/* Tables */
.blog-post-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 14px;
}

.blog-post-content th,
.blog-post-content td {
	border: 1px solid #e5e7eb;
	padding: 10px;
	text-align: left;
}

.blog-post-content th {
	background: #f1f5f9;
	font-weight: 600;
}

/* Horizontal rule */
.blog-post-content hr {
	border: none;
	border-top: 1px solid #e5e7eb;
	margin: 32px 0;
}

/* Sup / Sub */
.blog-post-content sup,
.blog-post-content sub {
	font-size: 12px;
}

/* Embedded content */
.blog-post-content iframe {
	max-width: 100%;
	margin: 20px 0;
}

/* ===============================
Tablet (<= 980px)
================================ */
@media (max-width: 980px) {

	.blog-post-content {
		font-size: 14.5px;
	}

	.blog-post-content h1 { font-size: 28px; }
	.blog-post-content h2 { font-size: 24px; }
	.blog-post-content h3 { font-size: 20px; }
	.blog-post-content h4 { font-size: 17px; }
	.blog-post-content h5 { font-size: 15px; }
	.blog-post-content h6 { font-size: 14px; }
}

/* ===============================
Mobile (<= 767px)
================================ */
@media (max-width: 767px) {

	.blog-post-content {
		font-size: 14px;
	}

	.blog-post-content h1 { font-size: 24px; }
	.blog-post-content h2 { font-size: 21px; }
	.blog-post-content h3 { font-size: 18px; }
	.blog-post-content h4 { font-size: 16px; }
	.blog-post-content h5 { font-size: 15px; }
	.blog-post-content h6 { font-size: 14px; }

	.blog-post-content h2 {
		padding-left: 12px;
		border-left-width: 4px;
	}
}


/* ================================================== */

/* ===============================
Cusom Blog Filter Section
================================ */

/* Filter Section */
.blog-filter-section {
	margin-bottom: 40px;
}
.filter-controls {
	margin-top: 20px;
	gap: 20px;
	flex-wrap: wrap;
}

.category-wrapper .category-heading{
	display: none;
}

.category-wrapper .category-heading h3{
	font-size: 20px;
	font-weight: 500;
	color: #21214E;
}

/* Category Scroll Wrapper */
.category-scroll-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Scroll Buttons */
.scroll-btn {
	background: white;
	border: 1px solid #ddd;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #21214E;
	transition: all 0.3s ease;
	flex-shrink: 0;
	z-index: 2;
}

.scroll-btn:hover {
	background: #f5f5f5;
	border-color: #21214E;
}

.scroll-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.scroll-btn:disabled:hover {
	background: white;
	border-color: #ddd;
}

/* Show scroll buttons when needed */
.category-scroll-wrapper.has-overflow .scroll-btn {
	display: flex;
}

/* Category Buttons Container */
.category-buttons {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	flex: 1;
	/* Hide scrollbar */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.category-buttons::-webkit-scrollbar {
	display: none;
}

/* Category buttons */
.category-filter-btn {
	padding: 4px 14px;
	border: 1px solid #ddd;
	border-radius: 25px;
	background: white;
	color: #21214E;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
	white-space: nowrap;
	flex-shrink: 0;
}

.category-filter-btn:hover,
.category-filter-btn.active-category {
	background: #1A3AA1;
	color: white;
	border-color: #1A3AA1;
}

/* Search Box */

.search-box-wrapper{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 20px;
}

.search-box-wrapper .category-heading h3{
	font-size: 20px;
	font-weight: 500;
	color: #21214E;
}

.search-box {
	position: relative;
}

.search-box input {
	padding: 8px 35px 8px 20px;
	border: 1px solid #ddd;
	border-radius: 25px;
	min-width: 320px;
	font-size: 14px;
}

.search-box input:focus {
	outline: none;
	border-color: #21214E;
}

.search-box button {
	position: absolute;
	right: -6px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: transparent;
	color: #8D91A5;
	border: none;
	cursor: pointer;
}

.search-box button:hover svg path {
	stroke: #21214E;
}

/* Blog Grid */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

#blog-container {
	margin-top: 60px;
}

.blog-item {
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	background: white;
}

.blog-thumbnail {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
}

.blog-thumbnail img {
	object-fit: cover;
	transition: transform 0.3s ease;
/* 	aspect-ratio: 1683 / 1138; */
	overflow: hidden;
	border-radius: 10px;
	max-width: 100%;
	max-height: 100%;
	height: auto;
	width: 100%;
	transition: transform 0.5s ease;
}

.blog-item:hover .blog-thumbnail img{
	transform: scale(1.05);
}

.blog-content {
	padding: 16px 0px;
}

.blog-content .category {
	padding: 4px 14px;
	font-size: 14px;
	font-weight: 500;
	color: #5C5D76;
	border: 2px solid #EEF0F3;
	border-radius: 20px;
}

.blog-content h3 {
	margin-top: 8px;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.75rem;
	color: #21214E;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	padding: 0px;
}

.no-posts {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	font-size: 16px;
	color: #666;
}

.no-posts img{
	margin-inline: auto;
	margin-bottom: 10px;
}

.no-posts p{
	color: #5C5D76;
	font-size: 14px;
	font-weight: 400;
}

/* Responsive */
@media (max-width: 980px) {
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.filter-controls {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 767px) {
	#blog-container {
		margin-top: 40px;
	}
	
	.blog-grid {
		grid-template-columns: 1fr;
	}
	
	.category-scroll-wrapper {
		width: 100%;
	}
	
	.category-buttons {
		width: 100%;
	}
	
	.search-box-wrapper{
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 10px;
		margin-bottom: 20px;
	}

	.search-box-wrapper .category-heading {
		display: none;
	}
	
	.category-wrapper .category-heading{
		margin-bottom: 20px;
		display: block;
	}
	
	.search-box {
		display: flex;
		width: 100%;
	}
	
	.search-box input {
		flex: 1;
		min-width: auto;
	}
	
	/* Hide scroll buttons on mobile */
	.scroll-btn {
		display: none !important;
	}
}


/* Pagination */
.blog-pagination {
	grid-column: 1 / -1;
	margin-top: 50px;
	display: flex;
	justify-content: center;
}

.blog-pagination ul {
	display: flex;
	list-style: none;
	gap: 8px;
	padding: 0;
	margin: 0;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
}

.blog-pagination li {
	margin: 0;
}

.blog-pagination a,
.blog-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #E5E7EB;
	border-radius: 8px;
	text-decoration: none;
	color: #5C5D76;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
	background: white;
	white-space: nowrap;
}

.blog-pagination a svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.blog-pagination a:hover:not(.prev):not(.next) {
	background: #2C67FF;
	color: white;
	border-color: #2C67FF;
	transform: translateY(-1px);
}

/* Previous/Next buttons */
.blog-pagination .prev,
.blog-pagination .next {
	font-weight: 500;
	min-width: auto;
	padding: 0 16px;
}

.blog-pagination .prev:hover,
.blog-pagination .next:hover {
	background: #F3F4F6;
	border-color: #D1D5DB;
}

/* Current page */
.blog-pagination .current {
	background: #2C67FF;
	color: white;
	border-color: #2C67FF;
	cursor: default;
	font-weight: 500;
}

/* Dots */
.blog-pagination .dots {
	border: none;
	cursor: default;
	background: transparent;
	color: #5C5D76;
	min-width: 32px;
}

.blog-pagination .dots:hover {
	background: transparent;
	transform: none;
}

/* Pagination Skeleton */
.pagination-skeleton {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 10px 0;
	flex-wrap: wrap;
	justify-content: center;
}

.skeleton-btn {
	width: 44px;
	height: 44px;
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: skeleton-loading 1.5s infinite;
	border-radius: 8px;
}

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

/* Loader wrapper */
.loader-wrapper {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 520px;
}

.loader {
	width: 48px;
	height: 48px;
	border: 6px solid #f3f3f3;
	border-top: 6px solid #1A3AA1;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Mobile Responsive - Compact & Optimized */
@media (max-width: 767px) {
	.blog-pagination {
		margin-top: 30px;
	}

	.blog-pagination ul {
		gap: 6px;
	}

	/* Base button size for mobile */
	.blog-pagination a,
	.blog-pagination span {
		min-width: 40px;
		height: 40px;
		padding: 0 10px;
		font-size: 13px;
		gap: 4px;
	}

	/* Previous/Next - Hide text, show only icon */
	.blog-pagination .prev,
	.blog-pagination .next {
		min-width: 40px;
		padding: 0;
		font-size: 0; /* Hide text */
	}

	.blog-pagination .prev svg,
	.blog-pagination .next svg {
		width: 18px;
		height: 18px;
		margin: 0;
	}

	/* Compact dots */
	.blog-pagination .dots {
		min-width: 28px;
		font-size: 12px;
	}

	/* Skeleton for mobile */
	.skeleton-btn {
		width: 40px;
		height: 40px;
	}

	.pagination-skeleton {
		gap: 6px;
	}
}

/* Extra Small Screens - Ultra Compact */
@media (max-width: 480px) {
	.blog-pagination ul {
		gap: 4px;
	}

	.blog-pagination a,
	.blog-pagination span {
		min-width: 36px;
		height: 36px;
		padding: 0 8px;
		font-size: 12px;
	}

	.blog-pagination .prev,
	.blog-pagination .next {
		min-width: 36px;
	}

	.blog-pagination .prev svg,
	.blog-pagination .next svg {
		width: 16px;
		height: 16px;
	}

	.blog-pagination .dots {
		min-width: 24px;
	}

	.skeleton-btn {
		width: 36px;
		height: 36px;
	}
}

/* ===============================
Cusom Blog Filter Section
================================ */















/* ==============================
   Search Box
   ============================== */
.case-study-search-section {
    margin-bottom: 40px;
}

.case-study-search-box {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 16px;
    background: #fff;
    gap: 10px;
    max-width: 360px;
}

.case-study-search-box svg {
    flex-shrink: 0;
}

.case-study-search-box input {
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
    width: 100%;
    background: transparent;
}

.case-study-search-box input::placeholder {
    color: #aaa;
}


/* ==============================
   Case Study Grid
   ============================== */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Card */
.case-study-item {
    display: flex;
    flex-direction: column;
}

/* Image */
.case-study-image-wrap {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
}

.case-study-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.case-study-item:hover .case-study-image-wrap img {
    transform: scale(1.04);
}

/* Category badge */
.case-study-badge {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 13px;
    color: #444;
    background: #fff;
    width: fit-content;
}

/* Title */
.case-study-title {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
}

.case-study-title a {
    color: inherit;
    text-decoration: none;
}

.case-study-title a:hover {
    color: #1a44c2;
}


/* ==============================
   Pagination  (mirrors .blog-pagination exactly)
   ============================== */
.case-pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.case-pagination ul.page-numbers {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}

/* All items — base style */
.case-pagination ul.page-numbers li a.page-numbers,
.case-pagination ul.page-numbers li span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #344054;
    text-decoration: none;
    border: 1px solid #D0D5DD;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

.case-pagination ul.page-numbers li a.page-numbers:hover {
    background: #F9FAFB;
    border-color: #D0D5DD;
}

/* Active / current page */
.case-pagination ul.page-numbers li span.current {
    background: #F9F5FF;
    color: #6941C6;
    border-color: #E9D7FE;
}

/* Dots */
.case-pagination ul.page-numbers li span.dots {
    border: none;
    background: transparent;
    box-shadow: none;
    color: #667085;
    min-width: auto;
    padding: 0 4px;
}

/* Prev / Next — keep SVG and text aligned */
.case-pagination ul.page-numbers li a.prev,
.case-pagination ul.page-numbers li a.next {
    padding: 0 14px;
    gap: 6px;
}

.case-pagination ul.page-numbers li a svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}


/* ==============================
   Loader
   ============================== */
.cs-loader-wrapper {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.cs-loader {
    width: 36px;
    height: 36px;
    border: 3px solid #e0e0e0;
    border-top-color: #6941C6;
    border-radius: 50%;
    animation: cs-spin 0.7s linear infinite;
}

@keyframes cs-spin {
    to { transform: rotate(360deg); }
}


/* ==============================
   Pagination Skeleton
   ============================== */
.cs-pagination-skeleton {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
}

.cs-skeleton-btn {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: cs-shimmer 1.2s infinite;
}

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


/* ==============================
   No Posts
   ============================== */
.cs-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.cs-no-posts-text {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}


/* ==============================
   Responsive
   ============================== */
@media (max-width: 1024px) {
    .case-study-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet: hide Prev/Next labels, show only icon */
@media (max-width: 768px) {
    .case-study-search-box {
        max-width: 100%;
    }

    .case-pagination ul.page-numbers li a.prev span,
    .case-pagination ul.page-numbers li a.next span {
        display: none;
    }

    .case-pagination ul.page-numbers {
        gap: 6px;
    }

    .case-pagination ul.page-numbers li a.page-numbers,
    .case-pagination ul.page-numbers li span.page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }
}

/* Mobile: tighter, wraps naturally */
@media (max-width: 480px) {
    .case-pagination ul.page-numbers {
        gap: 4px;
    }

    .case-pagination ul.page-numbers li a.page-numbers,
    .case-pagination ul.page-numbers li span.page-numbers {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 8px;
        border-radius: 6px;
    }

    .case-pagination ul.page-numbers li a.prev,
    .case-pagination ul.page-numbers li a.next {
        padding: 0 10px;
    }
}

@media (max-width: 400px) {
    .case-study-grid {
        grid-template-columns: 1fr;
    }
}