/* ============================================================
   Case Study Single Post — post-case-study.css
   Golden × Dark Luxury Design System
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   HERO
   ────────────────────────────────────────────────────────── */

.cs-hero {
  position: relative;
  background: var(--ez-dark);
  overflow: hidden;
  padding-top: 120px; /* clear fixed nav */
  padding-bottom: 80px;
}

.cs-hero__inner {
  position: relative;
  z-index: 1;
}

/* ── Left content column ── */
.cs-hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: anim-slideUp 0.65s var(--ease-out) 0.05s both;
}

/* Back breadcrumb link */
.cs-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-size: var(--ez-fs-sm);
  font-weight: 600;
  color: var(--ez-muted);
  letter-spacing: 0.04em;
  transition:
    color 0.2s var(--ease),
    gap 0.2s var(--ease);
  width: fit-content;
}

.cs-hero__back i {
  font-size: 14px;
  transition: transform 0.2s var(--ease);
}

.cs-hero__back:hover {
  color: var(--ez-golden-text);
}

.cs-hero__back:hover i {
  transform: translateX(-4px);
}

/* Meta row: pill tag + date */
.cs-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cs-hero__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Poppins", sans-serif;
  font-size: var(--ez-fs-sm);
  color: var(--ez-muted2);
}

.cs-hero__date i {
  font-size: 13px;
  color: var(--ez-muted);
}

/* Title */
.cs-hero__title {
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.12 !important;
  color: var(--ez-white);
}

/* Excerpt */
.cs-hero__excerpt {
  font-family: "Poppins", sans-serif;
  font-size: var(--ez-fs-lg);
  color: var(--ez-muted);
  line-height: 1.75;
  max-width: 540px;
  margin: 0;
}

/* ── Right: Featured image ── */
.cs-hero__media {
  position: relative;
  display: flex;
  justify-content: center;
  animation: anim-slideUp 0.75s var(--ease-out) 0.22s both;
}

.cs-hero__img-wrap {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--ez-golden-border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    var(--shadow-card),
    0 0 80px rgba(230, 193, 83, 0.12);
  position: relative;
  z-index: 1;
  transition: box-shadow 0.4s var(--ease);
}

.cs-hero__img-wrap:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    var(--shadow-card),
    0 0 110px rgba(230, 193, 83, 0.2);
}

.cs-hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.cs-hero__img-wrap:hover .cs-hero__img {
  transform: scale(1.025);
}

/* ──────────────────────────────────────────────────────────
   DIVIDER LINE
   ────────────────────────────────────────────────────────── */

.cs-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--ez-golden-border),
    transparent
  );
}

/* ──────────────────────────────────────────────────────────
   BODY — article content
   ────────────────────────────────────────────────────────── */

.cs-body {
  background: #ffffff;
  padding: 80px 0 100px;
  position: relative;
}

.cs-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 147, 10, 0.3),
    transparent
  );
}

/* ── Content typography ── */
.cs-body__content {
  font-family: "Poppins", sans-serif;
  font-size: var(--ez-fs-lg);
  color: #4a5568;
  line-height: 1.8;
}

.cs-body__content h1,
.cs-body__content h2,
.cs-body__content h3,
.cs-body__content h4,
.cs-body__content h5,
.cs-body__content h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: #0d1117;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 2.4em;
  margin-bottom: 0.65em;
}

.cs-body__content h2 {
  font-size: var(--ez-fs-h4);
}
.cs-body__content h3 {
  font-size: var(--ez-fs-h5);
}
.cs-body__content h4 {
  font-size: var(--ez-fs-h6);
}
.cs-body__content h5,
.cs-body__content h6 {
  font-size: var(--ez-fs-base);
}

.cs-body__content p {
  margin-bottom: 1.4em;
  color: #4a5568;
}

/* Links */
.cs-body__content a {
  color: var(--ez-golden-dk);
  text-decoration: underline !important;
  text-underline-offset: 3px;
  transition: color 0.18s;
}

.cs-body__content a:hover {
  color: #a07208;
}

/* Images */
.cs-body__content img {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 147, 10, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  margin: 2em 0;
  max-width: 100%;
}

/* Blockquote */
.cs-body__content blockquote {
  border-left: 3px solid var(--ez-golden-mid);
  background: #faf8f2;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 22px 28px;
  margin: 2em 0;
  font-size: var(--ez-fs-xl);
  font-style: italic;
  color: #1a202c;
}

.cs-body__content blockquote p:last-child {
  margin-bottom: 0;
}

/* Lists — unordered */
.cs-body__content ul,
.cs-body__content ol {
  padding-left: 0 !important;
  margin-bottom: 1.4em;
  list-style: none !important;
}

.cs-body__content ul li,
.cs-body__content ol li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 0.55em;
  color: #4a5568;
}

.cs-body__content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 2px;
  background: var(--ez-golden-shine);
  border-radius: 2px;
}

/* Lists — ordered */
.cs-body__content ol {
  counter-reset: cs-ol;
}

.cs-body__content ol li {
  counter-increment: cs-ol;
  padding-left: 32px;
}

.cs-body__content ol li::before {
  content: counter(cs-ol);
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ez-golden-text);
  background: var(--ez-golden-glow);
  border: 1px solid var(--ez-golden-border);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Horizontal rule */
.cs-body__content hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--ez-golden-border),
    transparent
  );
  margin: 3em 0;
}

/* Code inline */
.cs-body__content code {
  background: #f3f4f6;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.88em;
  color: var(--ez-golden-dk);
}

/* Code block */
.cs-body__content pre {
  background: #f3f4f6;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 1.8em 0;
}

.cs-body__content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--ez-fs-sm);
}

/* Tables */
.cs-body__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: var(--ez-fs-sm);
}

.cs-body__content th,
.cs-body__content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.cs-body__content th {
  font-weight: 700;
  color: var(--ez-golden-dk);
  border-bottom-color: rgba(201, 147, 10, 0.25);
  background: #faf8f2;
}

.cs-body__content tr:hover td {
  background: #fafafa;
}

/* ──────────────────────────────────────────────────────────
   FOOTER CTA
   ────────────────────────────────────────────────────────── */

.cs-footer {
  background: var(--ez-dark);
  padding: 52px 0 88px;
  position: relative;
}

.cs-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--ez-golden-border),
    transparent
  );
}

.cs-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ──────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
  .cs-hero {
    padding-top: 100px;
    padding-bottom: 56px;
  }

  .cs-hero__title {
    font-size: clamp(26px, 6vw, 44px) !important;
  }

  .cs-body {
    padding: 56px 0 72px;
  }
}

@media (max-width: 767.98px) {
  .cs-hero {
    padding-top: 88px;
    padding-bottom: 44px;
  }

  .cs-hero__content {
    gap: 18px;
  }

  .cs-hero__excerpt {
    font-size: var(--ez-fs-base);
  }

  .cs-hero__media {
    margin-top: 8px;
  }

  .cs-body {
    padding: 40px 0 56px;
  }

  .cs-body__content h2 {
    font-size: clamp(20px, 5vw, 28px);
  }
  .cs-body__content h3 {
    font-size: clamp(18px, 4.5vw, 24px);
  }

  .cs-footer {
    padding: 36px 0 64px;
  }
}

/* ============================================================
   CASE STUDIES ARCHIVE PAGE  (template-case-studies.php)
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   HERO BANNER
   ────────────────────────────────────────────────────────── */
.csa-hero {
  position: relative;
  background: var(--ez-dark);
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: left;
}

.csa-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.csa-hero__label {
  animation: anim-slideUp 0.55s var(--ease-out) 0s both;
}

.csa-hero__title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ez-white);
  margin: 0;
  animation: anim-slideUp 0.6s var(--ease-out) 0.08s both;
}

.csa-hero__title--gold {
  background: var(--ez-golden);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.csa-hero__sub {
  font-family: "Poppins", sans-serif;
  font-size: var(--ez-fs-lg);
  color: var(--ez-muted);
  max-width: 560px;
  line-height: 1.75;
  margin: 0;
  animation: anim-slideUp 0.65s var(--ease-out) 0.16s both;
}

/* ──────────────────────────────────────────────────────────
   GRID SECTION
   ────────────────────────────────────────────────────────── */
.csa-grid-section {
  background: var(--ez-dark2);
  padding: 80px 0 110px;
  position: relative;
}

.csa-grid-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--ez-golden-border),
    transparent
  );
}

/* 3-column responsive grid */
.csa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ──────────────────────────────────────────────────────────
   CARD
   ────────────────────────────────────────────────────────── */
.csa-card {
  background: var(--ez-mid);
  border: 1px solid var(--ez-golden-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
  animation: anim-slideUp 0.6s var(--ease-out) both;
}

.csa-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 193, 83, 0.45);
  box-shadow:
    0 0 0 1px rgba(230, 193, 83, 0.08),
    var(--shadow-card),
    0 0 60px rgba(230, 193, 83, 0.12);
}

/* ── Image wrapper ── */
.csa-card__img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ez-mid2);
  flex-shrink: 0;
}

.csa-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}

.csa-card:hover .csa-card__img {
  transform: scale(1.06);
}

/* Placeholder when no featured image */
.csa-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ez-mid2);
  color: var(--ez-muted2);
  font-size: 40px;
}

/* Hover overlay */
.csa-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(7, 9, 13, 0.82) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 24px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.csa-card:hover .csa-card__overlay {
  opacity: 1;
}

.csa-card__view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-size: var(--ez-fs-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ez-golden-text);
  transform: translateY(10px);
  transition: transform 0.35s var(--ease);
}

.csa-card__view-btn i {
  font-size: 16px;
  transition: transform 0.2s var(--ease);
}

.csa-card:hover .csa-card__view-btn {
  transform: translateY(0);
}

.csa-card:hover .csa-card__view-btn i {
  transform: translate(3px, -3px);
}

/* Gold top edge shimmer on hover */
.csa-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ez-golden-shine);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.csa-card:hover::after {
  opacity: 1;
}

/* ── Card Body ── */
.csa-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px 22px;
  flex: 1;
}

/* Category pill */
.csa-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Poppins", sans-serif;
  font-size: var(--ez-fs-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ez-golden-text);
}

.csa-card__cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ez-golden-text);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(227, 187, 69, 0.6);
}

/* Title */
.csa-card__title {
  font-family: "Poppins", sans-serif;
  font-size: var(--ez-fs-h6);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ez-white);
}

.csa-card__title a {
  color: inherit;
  text-decoration: none !important;
  transition: color 0.2s var(--ease);
}

.csa-card__title a:hover {
  color: var(--ez-golden-text);
}

/* Excerpt */
.csa-card__excerpt {
  font-family: "Poppins", sans-serif;
  font-size: var(--ez-fs-sm);
  color: var(--ez-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer row */
.csa-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--ez-border);
  margin-top: auto;
}

.csa-card__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Poppins", sans-serif;
  font-size: var(--ez-fs-xs);
  color: var(--ez-muted2);
}

.csa-card__date i {
  font-size: 12px;
  color: var(--ez-muted);
}

.csa-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Poppins", sans-serif;
  font-size: var(--ez-fs-sm);
  font-weight: 600;
  color: var(--ez-golden-text);
  text-decoration: none !important;
  transition:
    color 0.2s var(--ease),
    gap 0.2s var(--ease);
}

.csa-card__link i {
  font-size: 14px;
  transition: transform 0.2s var(--ease);
}

.csa-card__link:hover {
  color: var(--ez-golden-lt);
}

.csa-card__link:hover i {
  transform: translateX(4px);
}

/* ── Empty state ── */
.csa-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 80px 0;
  text-align: center;
}

.csa-empty__icon {
  font-size: 56px;
  color: var(--ez-muted2);
}

.csa-empty__text {
  font-family: "Poppins", sans-serif;
  font-size: var(--ez-fs-lg);
  color: var(--ez-muted);
  margin: 0;
}

/* ──────────────────────────────────────────────────────────
   RESPONSIVE — archive
   ────────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .csa-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 767.98px) {
  .csa-hero {
    padding-top: 100px;
    padding-bottom: 48px;
  }

  .csa-hero__title {
    font-size: clamp(36px, 10vw, 60px);
  }

  .csa-grid-section {
    padding: 48px 0 72px;
  }

  .csa-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .csa-card__body {
    padding: 20px 20px 18px;
  }
}
