#case-hero-section {
    background-image: url(/wp-content/uploads/2025/10/Case-Hero-Image.jpg);
    height: 260px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#single-case-hero-section {
	height: 260px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#case-list-section .section-container, #single-case-hero-section .section-container{
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

#single-case-details .section-container{
	width: 100%;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(580px, 1fr));
  gap: 40px;
}

.case-details-grid {
	display: grid;
	column-gap: 18px;
	row-gap: 5px;
	grid-template-columns: repeat(2, 1fr);
}

.button-orange-after-icon::after {
	transform: scale(0.7);
}

.case-details-item {
    border-bottom: 1px solid #28282847;
	padding-bottom: 3px;
}

.case-buttons a {
	width: 187px;
	transition: 0.3s;
}

.button-border-case-details  {
	border: 1px solid var(--base-1);
}

.button-border-case-details::after {
	filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg);
}

.button-case-orange:hover {
    background-color: #d1430d;
}

.button-border-case-details:hover {
    background-color: #e8fff4;
}

.case-card {
    box-shadow: 0px 5px 25px 0px rgba(40, 40, 40, 0.1);
}

#case-hero-section h1, #single-case-hero-section h1 {
    text-shadow: 0 5px 15px rgba(253, 253, 253, 0.5);
}

#single-case-hero-section {
	position: relative;
	overflow: hidden;
}

#single-case-hero-section::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: #0b6039e0; 
	z-index: 1;
	background-blend-mode: multiply;
filter: brightness(0.65);
}

#single-case-hero-section::after {
	content: "";
	position: absolute;
	inset: 0;
	background: inherit;
	opacity: 0.5;
	filter: brightness(0.8);
	z-index: 0;
}
#single-case-hero-section > * {
	position: relative;
	z-index: 2;
}

.case-thumbnails img {
    width: 170px;
    height: 120px;
    object-fit: cover;
    object-position: center;
}

.case-thumbnails {
    overflow: hidden;
    position: relative;
	align-items: center;
}

.case-main-image img {
    object-fit: cover;
    object-position: center;
}

.thumb-wrap {
    position: relative;
    transition: transform .18s ease, border-color .18s ease;
    cursor: pointer;
}

.thumb-wrap.active {
    border: 5px solid #0B6039;
}

.thumb-wrap.active::after {
    opacity: 1;
}

.thumb-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 96, 57, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    mix-blend-mode: normal;
    border-radius: inherit;
}

@media screen and (max-width: 768px) {
	#case-hero-section {
		height: 200px;
		background-image: url(/wp-content/uploads/2025/10/Case-Hero-Mobile-Image.jpg) !important;
	}
	
	#single-case-hero-section {
		height: 200px;
	}
	
	.case-grid {
		grid-template-columns: 1fr;
		gap: 50px;
	}
	
	.case-thumbnails img {
		width: 80px;
		height: 60px;
		object-fit: cover;
		object-position: center;
	}
	
	.mobile-grid {
		display: grid;
		column-gap: 18px;
		row-gap: 5px;
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 480px) {
	.case-card__image img {
		height: 180px;
		width: 100%;
		object-fit: cover;
		object-position: center;
	}
}