/* =========================================================
   Case Studies — Shared Scoped Styles
   Al Murooj Solutions
   Used by: case-studies.php (hub) and each case-study-*.php
   ========================================================= */

body.case-study-page,
body.case-studies-hub {
  font-family: "Roboto", sans-serif;
  background: linear-gradient(180deg, #060b18 0%, #0b1220 100%);
  color: #fff;
  overflow-x: hidden;
}

.cs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================= */
/* HERO (individual case study) */
/* ============================= */
.cs-hero {
  background: #fff;
  color: #000;
  padding: 70px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cs-hero .cs-hero-image {
  flex: 1;
  min-width: 280px;
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.cs-hero .cs-hero-image img.cs-hero-photo {
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.cs-logo-badge {
  position: absolute;
  bottom: -20px;
  right: 14%;
  background: #fff;
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border: 1px solid #eee;
}
.cs-logo-badge img {
  height: 46px;
  width: auto;
  display: block;
}
.cs-hero .cs-hero-content {
  flex: 1;
  min-width: 280px;
  padding: 20px;
}
.cs-eyebrow {
  display: inline-block;
  color: #01B6FF;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.cs-hero h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  color: #000;
  margin-bottom: 16px;
}
.cs-hero h1 span {
  background: linear-gradient(90deg, #FB33EB, #01B6FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.cs-hero p {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

/* ============================= */
/* QUICK FACTS STRIP */
/* ============================= */
.cs-facts {
  background: #0b1220;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cs-facts-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  text-align: center;
}
.cs-fact span.label {
  display: block;
  color: #01B6FF;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.cs-fact span.value {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

/* ============================= */
/* CONTENT SECTIONS */
/* ============================= */
.case-study-page section.dark-section {
  background: #0b1220;
  padding: 60px 0;
}
.case-study-page section.dark-section.alt {
  background: #070b16;
}

.cs-section-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 26px;
}
.cs-section-title i {
  color: #01B6FF;
  margin-right: 10px;
}

.cs-prose {
  max-width: 880px;
}
.cs-prose p {
  font-size: 17px;
  line-height: 1.85;
  color: #d1d5e0;
  margin-bottom: 18px;
}
.cs-prose p:last-child {
  margin-bottom: 0;
}
.cs-prose h4 {
  color: #FB33EB;
  font-size: 19px;
  margin: 26px 0 10px;
}

.cs-with-image {
  display: flex;
  align-items: flex-start;
  gap: 44px;
  flex-wrap: wrap;
}
.cs-with-image .cs-prose {
  flex: 2;
  min-width: 280px;
}
.cs-with-image .cs-side-image {
  flex: 1;
  min-width: 240px;
  text-align: center;
  position: sticky;
  top: 100px;
}
.cs-with-image .cs-side-image img {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 16px;
}

/* ============================= */
/* PROBLEM / RESULT LIST CARDS */
/* ============================= */
.cs-point-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.cs-point-card {
  background: #0f172a;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
.cs-point-card i {
  color: #01B6FF;
  font-size: 20px;
  margin-right: 10px;
}
.cs-point-card h5 {
  display: inline;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.cs-point-card p {
  color: #cfd8e3;
  font-size: 15px;
  line-height: 1.7;
  margin: 8px 0 0;
}
.cs-point-card.problem i { color: #FB33EB; }
.cs-point-card.result i { color: #25D366; }

/* ============================= */
/* SOLUTION STEPS (numbered) */
/* ============================= */
.cs-solution-steps {
  counter-reset: cs-step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.cs-solution-step {
  background: #0f172a;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  position: relative;
  padding-left: 60px;
}
.cs-solution-step::before {
  counter-increment: cs-step;
  content: counter(cs-step);
  position: absolute;
  left: 20px;
  top: 24px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(90deg, #FB33EB, #01B6FF);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-solution-step h5 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 8px;
}
.cs-solution-step p {
  color: #cfd8e3;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================= */
/* CLOSING CTA */
/* ============================= */
.cs-final-cta {
  /* background: linear-gradient(90deg, rgba(251,51,235,0.12), rgba(1,182,255,0.12)); */
  padding: 60px 0;
  text-align: center;
}
.cs-final-cta h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}
.cs-final-cta p {
  color: #cfd8e3;
  font-size: 17px;
  margin-bottom: 28px;
}
.cs-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.case-study-page .cta-btn,
.case-studies-hub .cta-btn {
  background: #25D366;
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}
.case-study-page .cta-btn:hover,
.case-studies-hub .cta-btn:hover {
  background: #01B6FF;
  color: #fff;
}
.case-study-page .cta-btn.outline {
  background: transparent;
  border: 2px solid #01B6FF;
  color: #01B6FF;
}
.case-study-page .cta-btn.outline:hover {
  background: #01B6FF;
  color: #fff;
}

/* ============================= */
/* HUB / LISTING PAGE */
/* ============================= */
.cs-hub-hero {
  background: #fff;
  color: #000;
  padding: 80px 0;
  text-align: center;
}
.cs-hub-hero .cs-container { max-width: 820px; }
.cs-hub-hero h1 {
  font-size: 40px;
  font-weight: 800;
  color: #000;
  margin-bottom: 18px;
}
.cs-hub-hero h1 span {
  background: linear-gradient(90deg, #FB33EB, #01B6FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cs-hub-hero p {
  font-size: 18px;
  color: #333;
  line-height: 1.8;
}

.cs-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.cs-hub-card {
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(0,0,0,0.35);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}
.cs-hub-card:hover {
  transform: translateY(-6px);
  background: #121b38;
}
.cs-hub-card .cs-hub-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.cs-hub-card .cs-hub-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cs-hub-card .cs-hub-tag {
  color: #01B6FF;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.cs-hub-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.cs-hub-card h3 a {
  color: #fff;
  text-decoration: none;
}
.cs-hub-card h3 a:hover { color: #01B6FF; }
.cs-hub-card p {
  color: #cfd8e3;
  font-size: 15px;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 18px;
}
.cs-hub-card .cs-read-more {
  color: #01B6FF;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}
.cs-hub-card .cs-read-more i { margin-left: 6px; transition: 0.2s; }
.cs-hub-card .cs-read-more:hover i { transform: translateX(4px); }

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 991px) {
  .cs-hero { flex-direction: column; text-align: center; padding: 50px 20px 70px; }
  .cs-hero .cs-hero-content { padding: 0; margin-top: 30px; }
  .cs-logo-badge { right: 50%; transform: translateX(50%); }
  .cs-with-image { flex-direction: column; }
  .cs-with-image .cs-side-image { position: static; order: -1; }
}

@media (max-width: 768px) {
  .cs-hero h1 { font-size: 28px; }
  .cs-section-title { font-size: 24px; }
  .cs-hub-hero h1 { font-size: 30px; }
  .cs-facts-row { gap: 24px; }
}

@media (max-width: 575px) {
  .cs-cta-buttons { flex-direction: column; align-items: stretch; }
  .case-study-page .cta-btn { text-align: center; }
  .cs-solution-step { padding-left: 24px; padding-top: 56px; }
  .cs-solution-step::before { left: 24px; top: 20px; }
}
