/* FORCE CENTER – CASE DETAIL HERO */
.case-hero {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.case-hero-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  text-align: center !important;
}

/* pastikan SEMUA teks center */
.case-hero-inner h1,
.case-hero-inner .breadcrumb,
.case-hero-inner .meta {
  text-align: center !important;
}
/* ===============================
   CASE INDEX – LUXURY PREMIUM
   =============================== */

.case-list {
  padding: 110px 24px 120px;
  background: #ffffff;
}

.case-list .container {
  max-width: 1200px;
  margin: 0 auto;
}

.case-list h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.6px;
  margin-bottom: 64px;
  color: #0b3d36;
}


/* GRID */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 48px;
}


/* CARD */
.case-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.case-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #0b3d36;
  box-shadow:
    0 30px 70px rgba(0,0,0,.15),
    0 10px 24px rgba(0,0,0,.08);
}

.case-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: all .6s ease;
}

.case-card:hover .case-thumb img {
  transform: scale(1.06);
  filter: grayscale(0%) contrast(1.05);
}


/* INFO */
.case-info {
  margin-top: 18px;
}

.case-info h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 6px;
  color: #0b3d36;
}

.case-info p {
  font-size: 14px;
  color: #4c6b64;
}


/* LUXURY MICRO DETAIL */
.case-card::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #0b3d36, #2aa18c);
  margin-top: 12px;
  opacity: .6;
}


/* RESPONSIVE */
@media (max-width: 900px) {
  .case-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .case-list {
    padding: 80px 20px;
  }
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.case-hero {
  padding: 140px 0 120px;
  background: linear-gradient(180deg,#0d4a41,#06332d);
  color: #fff;
  text-align: center;
}

.case-hero h1 {
  font-size: 44px;
  margin-bottom: 16px;
}

.case-hero .breadcrumb {
  font-size: 14px;
  opacity: .8;
}

.case-hero .meta {
  margin-top: 10px;
  font-size: 13px;
  opacity: .7;
}

.case-detail {
  padding: 100px 0;
}

.case-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
}

.case-text p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.case-text h4 {
  margin-top: 40px;
  letter-spacing: 2px;
  font-size: 12px;
}

.case-text ul {
  list-style: none;
  padding: 0;
}

.case-text li {
  margin-bottom: 12px;
}

.case-text li::before {
  content: "✔";
  color: #0e6b5c;
  margin-right: 10px;
}

.btn-outline {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 36px;
  border: 1px solid #0e6b5c;
  color: #0e6b5c;
  border-radius: 40px;
  text-decoration: none;
}

.case-image img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.15);
}
.highlight-list {
  list-style: none;
  padding-left: 0;
  margin-top: 16px;
}

.highlight-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #0b3d2e;
}

.highlight-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #1f7a5a;
  font-weight: 600;
}
.case-text {
  display: flex;
  flex-direction: column;
}

.case-text .btn-outline {
  margin-top: 32px;
  align-self: flex-start;
}
.btn-outline {
  border: 1px solid #1f7a5a;
  color: #1f7a5a;
  padding: 10px 22px;
  font-size: 13px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #1f7a5a;
  color: #fff;
}
.case-highlights {
  margin-top: 40px;
}

.case-highlights h3 {
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.case-highlights ul {
  list-style: none;
  padding: 0;
}

.case-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
}

.case-highlights .check {
  color: #0a7c5a;
  font-weight: bold;
}
.case-checklist {
  list-style: none;
  padding-left: 0;
  margin: 24px 0;
}

.case-checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-weight: 500;
}

.case-checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #1f7f4c;
  font-weight: bold;
}
/* ================================
   PREMIUM SHINY GREEN BUTTON
================================ */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;

  color: #0b6b55;
  background: linear-gradient(
    120deg,
    #e6fff7,
    #c9f3e4,
    #e6fff7
  );
  border: 1px solid rgba(11, 107, 85, 0.35);

  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

/* SHINE EFFECT */
.btn-outline::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.8),
    transparent
  );
  transform: rotate(25deg);
  transition: all 0.6s ease;
}

/* HOVER */
.btn-outline:hover {
  color: #fff;
  background: linear-gradient(
    135deg,
    #0e7c66,
    #11a084
  );
  border-color: transparent;
  box-shadow:
    0 12px 30px rgba(14, 124, 102, 0.35);
}

.btn-outline:hover::before {
  left: 130%;
}
/* ================================
   CASE STUDY CONTENT
================================ */
.case-text p {
  font-size: 15.5px;
  line-height: 1.9;
  color: #2f3e3b;
  margin-bottom: 18px;
}

.case-text h4 {
  margin-top: 36px;
  margin-bottom: 18px;
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  color: #0e7c66;
}

.case-text ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.case-text ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 15px;
  color: #243a35;
}

/* CHECK ICON */
.case-text ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #0e7c66;
  font-weight: 700;
}
.case-image img {
  border-radius: 18px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.12);
}
/* ===============================
   CASE STUDIES GRID
================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 36px;
}

/* ===============================
   CASE CARD
================================ */
.case-card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.45s cubic-bezier(.22,.61,.36,1);
  position: relative;
}

/* SHADOW BASE */
.case-card {
  box-shadow:
    0 12px 30px rgba(0,0,0,0.06);
}

/* SHINE BORDER */
.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1px solid rgba(14,124,102,0.15);
  pointer-events: none;
}

/* IMAGE */
.case-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* BODY */
.case-body {
  padding: 20px 22px 24px;
}

.case-body h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #0f2f28;
  margin-bottom: 8px;
}

.case-meta {
  font-size: 12px;
  color: #6b8f87;
  letter-spacing: 0.04em;
}

/* ===============================
   HOVER — LUXURY EFFECT
================================ */
.case-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 30px 70px rgba(14,124,102,0.22);
}

.case-card:hover .case-image img {
  transform: scale(1.08);
}

/* SUBTLE GLOW */
.case-card:hover::after {
  border-color: rgba(14,124,102,0.45);
}
/* ===============================
   CASE STUDIES – LUXURY MODE
================================ */

/* section background */
.case-luxury {
  background:
    radial-gradient(1200px at 10% -20%, rgba(14,124,102,0.15), transparent),
    linear-gradient(180deg, #f8fbfa, #eef6f4);
  padding: 100px 0 120px;
}

/* title */
.page-title {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
  color: #0f2f2a;
}

/* grid */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 40px;
}

/* card */
.case-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden; /* boleh */
  background: #f6fbf8;
}

/* hover cinematic */
.case-card:hover {
  transform: translateY(-14px) scale(1.01);
  box-shadow: 0 45px 90px rgba(14,124,102,0.28);
}

/* badge */
.case-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 6px 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 50px;
  z-index: 3;
  backdrop-filter: blur(6px);
}

/* image */
.case-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.95);
  transition: transform 0.8s ease;
}

.case-card:hover img {
  transform: scale(1.08);
}

/* image overlay */
.case-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.35)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.case-card:hover .case-image::after {
  opacity: 1;
}

/* content */
.case-body {
  padding: 26px 26px 30px;
  color: #123d35;
  position: relative;
}

.case-body h3 {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.case-meta {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5f8f85;
}

/* elegant line */
.case-body::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, #0e7c66, transparent);
  margin-top: 14px;
}

/* empty state */
.case-empty {
  grid-column: 1 / -1;
  text-align: center;
  opacity: 0.6;
}

@media (max-width: 768px) {

  /* pastikan card jadi relative */
  a.case-card {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
  }

  /* kecilkan gambar */
  a.case-card .case-image {
    height: 140px !important;
  }

  a.case-card .case-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* PAKSA text ke atas gambar */
  a.case-card .case-body {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    padding: 12px 14px !important;
    z-index: 999 !important;

    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.7),
      rgba(0,0,0,0)
    ) !important;

    color: #ffffff !important;
  }

  a.case-card .case-body h3 {
    color: #ffffff !important;
    font-size: 14px !important;
    margin: 0 0 4px !important;
    line-height: 1.25 !important;
  }

  a.case-card .case-meta {
    color: #eaeaea !important;
    font-size: 12px !important;
  }
}

/* ===============================
   DESKTOP FIX – TITLE BELOW IMAGE
================================ */
@media (min-width: 769px) {

  .case-card {
    display: flex;
    flex-direction: column;
  }

  .case-body {
    position: static;
    background: transparent;
    padding: 16px 0 0;
    color: #0b3d2e;
  }

  .case-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0b3d2e;
  }

  .case-meta {
    font-size: 14px;
    color: #5f7f73;
  }

}

