.elementor-5108 .elementor-element.elementor-element-759b1eb{--display:flex;--min-height:44px;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-5108 .elementor-element.elementor-element-581265d{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}/* Start custom CSS *//* =========================================================
   Case Study Skin (EveraTREAT-style)
   Scope: ONLY inside .id-casestudy
   ========================================================= */
.id-casestudy{
  --brand:#2563EB;
  --brand2:#1D4ED8;
  --text:#111827;
  --muted:#4B5563;
  --surface:#FFFFFF;
  --surface2:#F9FAFB;
  --line:#E5E7EB;
  --shadow: 0 10px 24px rgba(17,24,39,.06);
  --radius: 18px;
  --max: 1200px;

  color:var(--text);
  line-height:1.55;
}
.id-casestudy *{box-sizing:border-box}
.id-casestudy a{color:inherit}
.id-casestudy .wrap{max-width:var(--max); margin:0 auto; padding:0 20px}
.id-casestudy section{padding:54px 0}

/* Buttons (match your product pages) */
.id-casestudy .btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:12px 16px;border-radius:14px;
  border:1px solid var(--line);
  background:var(--surface);
  text-decoration:none;
  box-shadow: var(--shadow);
  transition:transform .15s ease, border-color .15s ease, background .15s ease;
  font-weight:800;
  color: rgba(17,24,39,.92);
}
.id-casestudy .btn:hover{
  transform:translateY(-1px);
  border-color:rgba(37,99,235,.35);
  background:#fff;
}
.id-casestudy .btn.primary{
  background: var(--brand);
  color:#fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(37,99,235,.18);
}
.id-casestudy .btn.primary:hover{background: var(--brand2)}
.id-casestudy .btnrow{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}

/* Pill + tag */
.id-casestudy .pill{
  display:inline-flex;gap:8px;align-items:center;
  padding:6px 10px;border-radius:999px;border:1px solid var(--line);
  background: var(--surface2);
  color: rgba(17,24,39,.70);
  font-weight:800;font-size:13px;
}
.id-casestudy .media-tag{
  position:absolute;top:14px;right:14px;
  padding:8px 10px;border-radius:999px;
  background: rgba(37,99,235,.10);
  border:1px solid rgba(37,99,235,.25);
  color: rgba(17,24,39,.85);
  font-weight:900;font-size:12px;
}

/* Cards */
.id-casestudy .card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background: var(--surface);
  padding:16px;
  box-shadow:var(--shadow);
}
.id-casestudy .card h3{
  margin:0 0 10px;
  font-size:18px;
  font-weight:900;
  line-height:1.25;
  text-align:center;
}
.id-casestudy .muted{color: rgba(17,24,39,.68); font-weight:650}
.id-casestudy .center{text-align:center}
.id-casestudy .caption{
  margin:10px 0 0;
  color: rgba(17,24,39,.62);
  font-weight:650;
  font-size:13px;
  text-align:center;
}

/* Layout */
.id-casestudy .grid-3{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px}
.id-casestudy .split{display:grid; grid-template-columns: 1fr 1fr; gap:18px; align-items:start}

/* HERO */
.id-casestudy .cs-hero{
  padding:54px 0 22px;
  background: linear-gradient(180deg, var(--surface2) 0%, #fff 100%);
  border-bottom:1px solid var(--line);
}
.id-casestudy .cs-hero__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:24px;
  align-items:start;
}
.id-casestudy .cs-hero h1{
  font-size: clamp(34px, 4.2vw, 46px);
  line-height:1.06;
  margin:10px 0 8px;
  letter-spacing:-0.02em;
}
.id-casestudy .cs-hero .sub{
  margin:0 0 12px;
  font-weight:800;
  color: rgba(17,24,39,.70);
}
.id-casestudy .cs-hero .lead{
  margin:14px 0 0;
  color: rgba(17,24,39,.70);
  font-size:16px;
  font-weight:650;
}

/* Hero media */
.id-casestudy .cs-hero__media{
  position:relative;
  overflow:hidden;
}
.id-casestudy .cs-hero__media img{
  width: 100%;
  height: 420px;          /* keep your current height */
  object-fit: cover;
  object-position: top center;
  display: block;
}


/* Lightbox thumbs */
.id-casestudy .lightbox-thumb{display:block; cursor:zoom-in}
.id-casestudy .lightbox-thumb img{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
  border-radius: calc(var(--radius) - 6px);
}

/* Table */
.id-casestudy .table-wrap{overflow:auto; border-radius:14px; border:1px solid var(--line)}
.id-casestudy .cs-table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}
.id-casestudy .cs-table th,
.id-casestudy .cs-table td{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
.id-casestudy .cs-table thead th{
  background: var(--surface2);
  font-weight:900;
}
.id-casestudy .cs-table tbody tr:last-child td{border-bottom:0}

/* CTA */
.id-casestudy .cta{
  border-radius:26px;
  border:1px solid rgba(37,99,235,.22);
  background: linear-gradient(135deg, rgba(37,99,235,.08) 0%, rgba(255,255,255,1) 70%);
  box-shadow:var(--shadow);
  padding:22px;
  display:flex;align-items:center;justify-content:space-between;gap:18px;
}
.id-casestudy .cta h3{margin:0 0 6px; font-size:20px; font-weight:900; text-align:left}

.id-cs .btn.btn-green{
  background-color:#E6F4EA;
  border:1px solid #9ED5B5;
  color:#14532D !important;
}

.id-cs .btn.btn-green:hover{
  background-color:#D1EEDC;
  border-color:#7BC9A4;
}
.id-casestudy .btn.btn-green{background-color:#E6F4EA;
  border:1px solid #9ED5B5;
  color:#14532D !important;}
/* =========================
   Case Study — Mobile fixes
   Scope: .id-casestudy only
   ========================= */

/* 1) HERO: stack on mobile */
@media (max-width: 900px){
  .id-casestudy .cs-hero__grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Ensure copy comes first */
  .id-casestudy .cs-hero__copy{ order: 1; }
  .id-casestudy .cs-hero__media{ order: 2; }

  /* Reduce hero headline size a bit */
  .id-casestudy .cs-hero h1{
    font-size: clamp(28px, 7vw, 38px);
    line-height: 1.08;
  }

  /* Lead text comfortable on mobile */
  .id-casestudy .cs-hero .lead{
    font-size: 16px;
    line-height: 1.6;
  }
}

/* 2) FACTS: 3 cards -> 1 column on mobile */
@media (max-width: 900px){
  .id-casestudy .cs-facts .grid-3{
    grid-template-columns: 1fr !important;
  }
}

/* 3) DETAILS: split -> stack on mobile */
@media (max-width: 900px){
  .id-casestudy .split{
    grid-template-columns: 1fr !important;
  }
}

/* 4) GALLERY: 3 images -> 1 column on mobile */
@media (max-width: 900px){
  .id-casestudy .cs-gallery .grid-3{
    grid-template-columns: 1fr !important;
  }
}

/* 5) BUTTON ROWS: stack buttons nicely on mobile */
@media (max-width: 600px){
  .id-casestudy .btnrow{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .id-casestudy .btn{
    justify-content: center;
    width: 100%;
  }
}

/* 6) TABLES: always scroll instead of squeezing */
.id-casestudy .table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.id-casestudy .cs-table{
  min-width: 520px; /* prevents squishing on small screens */
}

/* Optional: slightly smaller table text on very small screens */
@media (max-width: 480px){
  .id-casestudy .cs-table th,
  .id-casestudy .cs-table td{
    font-size: 13px;
    padding: 10px 10px;
  }
}/* End custom CSS */