/* ==========================================================================
   Case Study Detail Page - dedicated stylesheet
   Loaded only on single "case_study" posts (case-study/{slug}).
   Uses the same :root CSS variables defined in style.css.
   ========================================================================== */

/* ==========================================================================
   1. HERO
   ========================================================================== */

.a3-csd-hero {
	position: relative;
	background-size: cover;
	background-position: center;
	padding: 90px 24px;
    z-index: 1;
}

.a3-csd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:url(https://olivedrab-cassowary-363284.hostingersite.com/wp-content/uploads/2026/07/image-3.webp);
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.a3-csd-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(to right, #18181b 0%, rgba(24, 24, 27, 0.9) 50%, rgba(24, 24, 27, 0.6) 100%);
}


.a3-csd-hero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--a3-container-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.a3-csd-hero__badge {
	display: inline-flex;
    gap: 5px;
	align-items: center;
	padding: 4px 10px;
	margin-bottom: 20px;
	color: #FF6900;
	background: #EFF6FF;
	border: 1px solid #BEDBFF;
	border-radius: 1.67772e+07px;
	font-weight: 700;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.6px;
	vertical-align: middle;
	text-transform: uppercase;
}

.a3-csd-hero__title {
	font-weight: 700;
	font-size: 56px;
	line-height: 59px;
	letter-spacing: -1.4px;
	color: #FFFFFF;
}

.a3-csd-hero__subheading {
	font-weight: 400;
	font-size: 24px;
	line-height: 39px;
	color: #FFFFFF;
    margin-bottom: 0px;
}

.a3-csd-hero__stats {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: start;
    border-top: 1px;
    border-bottom: 1px;
    border-left: 0;
    border-right: 0;
    border-style: solid;
    border-color: #E4E4E7CC;
    padding: 25px 0;
    margin-top: 48px;
}

.a3-csd-hero__stat {
    flex: 1;
    position: relative;
    max-width: 175px;
}

.a3-csd-hero__stat:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 52px;
    background: #E4E4E7CC;
}

.a3-csd-hero__stat-number {
    display: block;
    font-weight: 800;
    font-size: 48px;
    line-height: 48px;
    letter-spacing: -1.2px;
    color: #F1FEFF;
    margin-bottom: 10px;
}

.a3-csd-hero__stat-label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    line-height: 19px;
    color: #E4E4E4;
}

@media (max-width: 767px) {
    .a3-csd-hero{
        padding: 90px 15px;
    }
    .a3-csd-hero__stats {
        flex-direction: row;
        gap:20px;
        padding: 24px 0;
    }
    .a3-csd-hero__title{
        margin-bottom: 10px;
    }
    .a3-csd-hero__stat {
        width: 100%;
        padding: 4px 10px;
    }
    .a3-csd-hero__subheading{
        font-size: 14px !important;
        line-height: 135%;
    }
    .a3-csd-hero__stat-label {
        max-width: 100%;
        font-size: 12px;
    }
    .a3-csd-hero__stat-number{
        margin-bottom: 5px;
    }
    .a3-csd-meta{
        padding: 25px 0px;
    }
}

.a3-csd-hero__media img {
	width: 100%;
	border-radius: 16px;
	display: block;
}

@media (max-width: 991px) {
	.a3-csd-hero__inner {
		grid-template-columns: 1fr;
	}
	.a3-csd-hero__title {
		font-size: 38px;
	}
    .a3-csd-hero__subheading{
        font-size: 18px;
    }
    .a3-csd-hero__stat-number{
        font-size: 38px;
    }
	.a3-csd-hero__stats {
		flex-wrap: wrap;
		gap: 10px;
        margin-top: 15px;
        padding: 15px 0;
	}
}

/* ==========================================================================
   2. META BAR
   ========================================================================== */

.a3-csd-meta {
	background-color: #fff;
	border-bottom: 1px solid #E4E4E7;
	padding: 28px 24px;
}

.a3-csd-meta__inner {
	max-width: var(--a3-container-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.a3-csd-meta__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.a3-csd-meta__label {
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #71717A;
}

.a3-csd-meta__value {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #18181B;
}

@media (max-width: 700px) {
	.a3-csd-meta__inner {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 20px;
	}
}

/* ==========================
   Problem / Solution Section
========================== */

.a3-csd-problem-solution {
    padding: 98px 0;
    background: #FAFAFA;
	border-bottom: 1px solid #E4E4E7;
}

.a3-csd-problem-solution__inner {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.a3-csd-ps-col {
    flex: 1;
}

/* Tag */

.a3-csd-ps-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
	border-radius: 1.67772e+07px;
	margin-bottom: 28px;	
	font-weight: 700;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}

.a3-csd-ps-tag::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.a3-csd-ps-tag--problem {
    color: #E7000B;
	background: #FEF2F2;
	border: 1px solid #FFC9C9;
}

.a3-csd-ps-tag--problem::before {
    background: #E7000B;
}

.a3-csd-ps-tag--solution {
    color: #009966;
	background: #ECFDF5;
	border: 1px solid #A4F4CF
}

.a3-csd-ps-tag--solution::before {
    background: #009966;
}

/* Heading */

.a3-csd-ps-heading {
    margin-bottom: 28px;
	font-weight: 700;
	font-size: 36px;
	line-height: 45px;
	letter-spacing: -0.9px;
	color: #18181B;
}

/* Description */

.a3-csd-ps-description {
	font-weight: 400;
	font-size: 18px;
	line-height: 29px;
	color: #3F3F46;
}

.a3-csd-ps-description:last-of-type {
    margin-bottom: 40px;
}

/* Problem Points */

.a3-csd-ps-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.a3-csd-ps-points li {
    position: relative;
    padding: 18px 22px 18px 52px;
    border: none;
	background: rgba(255, 255, 255, 1);
	box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1);
	border-radius: 12px;
	font-weight: 500;
	font-size: 14px;
	line-height: 20px;
	color: #27272A;
}

.a3-csd-ps-points li::before {
    content: "✕";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FEE2E2;
    color: #EF4444;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Solution Cards */

.a3-csd-ps-highlights {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 24px;
    margin-top: 40px;
}

.a3-csd-ps-highlight {
    border: 1px solid #E5E7EB;
    padding: 28px;
    background: rgba(255, 255, 255, 1);
	box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1);
	border-radius: 16px;
}

.a3-csd-ps-highlight img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin-bottom: 22px;
}

.a3-csd-ps-highlight h4 {
    margin-bottom: 12px;
	font-weight: 700;
	font-size: 16px;
	line-height: 24px;
	color: #18181B;
}

.a3-csd-ps-highlight p {
	font-weight: 400;
	font-size: 12px;
	line-height: 20px;
	color: #52525B;
}

/* Responsive */

@media (max-width:991px){
    .a3-csd-ps-tag{
        font-size: 12px;
    }
    .a3-csd-problem-solution {
        padding: 70px 0;
    }

    .a3-csd-problem-solution__inner{
        flex-direction: column;
        gap: 60px;
    }

    .a3-csd-ps-highlights{
        grid-template-columns:1fr;
    }

    .a3-csd-ps-heading{
        font-size:36px;
    }
}

@media (max-width:767px){

    .a3-csd-problem-solution{
        padding:50px 0;
    }

    .a3-csd-ps-heading{
        font-size:30px;
    }

    .a3-csd-ps-description{
        font-size:16px;
    }

    .a3-csd-ps-highlight{
        padding:22px;
    }

    .a3-csd-ps-points li{
        padding:16px 18px 16px 48px;
        font-size:15px;
    }
}

/* ==========================
   Stats Section
========================== */

.a3-csd-stats {
    padding: 98px 0px;
    background: #fff;
	border-bottom: 1px solid #E4E4E7;
}

.a3-csd-stats__header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 70px;
}

/* Eyebrow */

.a3-eyebrow {
	font-weight: 700;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #F54900;
}

/* Heading */

.a3-csd-stats__heading {
    margin-top: 15px;
	font-weight: 700;
	font-size: 48px;
	line-height: 48px;
	text-align: center;
	letter-spacing: -1.2px;
	color: #18181B;
}

/* Grid */

.a3-csd-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Card */

.a3-csd-stats__card {
    background: #FAFAFA;
	border: 1px solid #E4E4E7E5;
	box-shadow: 0px 1px 3px 0px #0000001A;
    border-radius: 16px;
    padding:25px;
    transition: .3s ease;
    display: flex;
    flex-direction: column;
}
.a3-csd-stats__card hr{
	border-color: #E4E4E7;
}
.a3-csd-stats__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(17, 24, 39, .08);
}

/* Number */

.a3-csd-stats__number {
	font-weight: 900;
	font-size: 48px;
	line-height: 48px;
	letter-spacing: -1.2px;
	color: #18181B;
}

/* Label */

.a3-csd-stats__label {
    display: block;
	font-weight: 700;
	font-size: 16px;
	line-height: 24px;
	color: #18181B;
}

/* Description */

.a3-csd-stats__description {
	font-weight: 400;
	font-size: 12px;
	line-height: 20px;
	color: #52525B;
	margin-bottom: initial;
}

/* Tablet */

@media (max-width: 1199px) {

    .a3-csd-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */

@media (max-width: 767px) {

    .a3-csd-stats {
        padding: 70px 0;
    }

    .a3-csd-stats__header {
        margin-bottom: 45px;
    }

    .a3-csd-stats__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .a3-csd-stats__card {
        min-height: auto;
        padding: 24px;
    }

    .a3-csd-stats__heading {
        font-size: 34px;
    }

    .a3-csd-stats__number {
        font-size: 36px;
    }

    .a3-csd-stats__label {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .a3-csd-stats__description {
        font-size: 14px;
    }
}