/* =========================================================
   CASE STUDY DETAIL SECTION
   ========================================================= */

.case-detail-sec {
  background: #fffbff; 
}

.case-detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start; 
}

/* ---------- LEFT: sticky meta panel ---------- */

.case-meta {
  position: sticky;
  top: 40px;
  
}

.case-meta-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.case-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-meta-label {
  font-size: 13px;
  color: #6b5a52;
  letter-spacing: 0.01em;
}

.case-meta-value {
  font-size: 16px;
  font-weight: 600;
  color: #1a1310;
  line-height: 1.3;
  margin: 0;
}

/* ---------- RIGHT: scrolling content column ---------- */
/* ==========================
   Blog Content
========================== */

.post-content {
  color: #1a1310;
  font-size: 16px;
  line-height: 1.8;
}

/* Headings */

.post-content h1 {
  font-size: 42px;
  margin: 0 0 20px;
  font-weight: 700;
}

.post-content h2 {
  font-size: 34px;
  margin: 0 0 18px;
  font-weight: 700;
}

.post-content h3 {
  font-size: 28px;
  margin: 0 0 16px;
  font-weight: 700;
}

.post-content h4 {
  font-size: 24px;
  margin: 0 0 14px;
  font-weight: 600;
}

.post-content h5 {
  font-size: 20px;
  margin: 0 0 12px;
}

.post-content h6 {
  font-size: 18px;
  margin: 0 0 10px;
}

/* Paragraph */

.post-content p {
  margin-bottom: 24px;
}

/* Links */

.post-content a {
  color: #0066cc;
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

/* Lists */

.post-content ul,
.post-content ol {
  margin: 0 0 25px 25px;
}

.post-content ul {
  list-style-type: disc;
}

.post-content li {
  margin-bottom: 10px;
}

/* Images */

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.post-content figure {
  margin: 30px 0;
}

.post-content figcaption {
  text-align: center;
  font-size: 14px;
  color: #777;
  margin-top: 10px;
}

/* Blockquote */

.post-content blockquote {
  border-left: 4px solid #f69d20;
  padding: 20px;
  background: #f8f9fb;
  margin: 30px 0;
  font-style: italic;
}

.post-content blockquote p {
  margin-bottom: 0;
}

/* Tables */

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.post-content th,
.post-content td {
  border: 1px solid #ddd;
  padding: 12px;
}

.post-content th {
  background: #f5f5f5;
}

/* Code */

.post-content pre {
  background: #222;
  color: #fff;
  padding: 20px;
  overflow: auto;
  border-radius: 8px;
}

.post-content code {
  background: #f3f3f3;
  padding: 2px 5px;
  border-radius: 4px;
}

/* Buttons */

.post-content .wp-block-button__link {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
}

/* Gallery */

.post-content .wp-block-gallery {
  margin: 30px 0;
}

/* Video */

.post-content video,
.post-content iframe {
  max-width: 100%;
}

/* HR */

.post-content hr {
  margin: 40px 0;
  border: none;
  border-top: 1px solid #ddd;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {
  .case-detail-grid {
    grid-template-columns: 260px 1fr;
    gap: 40px;
  }

  .case-title {
    font-size: 42px;
  }

  .case-h2 {
    font-size: 28px;
  }

  .case-quote {
    padding: 40px 32px;
  }

  .case-quote p {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .case-detail-sec {
    padding: 48px 0;
  }

  .case-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .case-meta {
    position: static;
  }

  .case-meta-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px 32px;
  }

  .case-meta-item {
    min-width: 140px;
  }

  .case-title {
    font-size: 32px;
  }

  .case-h2 {
    font-size: 24px;
    margin: 40px 0 14px;
  }

  .case-quote {
    padding: 32px 20px;
  }

  .case-quote p {
    font-size: 18px;
  }
}

.metrics-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.metrics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.metrics-table th {
  text-align: left;
  padding: 18px 20px;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
}

.metrics-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
}

.metrics-table tbody tr:last-child td {
  border-bottom: none;
}

.metrics-table tbody tr:hover {
  background: #f9fafb;
}

.metrics-table th:first-child,
.metrics-table td:first-child {
  width: 35%;
  font-weight: 600;
  color: #111827;
}

/* =========================================
   Tablet (≤ 991px)
========================================= */
@media (max-width: 991px) {

  .post-content {
    font-size: 17px;
    line-height: 1.75;
  }

  .post-content h1 {
    font-size: 36px;
  }

  .post-content h2 {
    font-size: 30px;
  }

  .post-content h3 {
    font-size: 26px;
  }

  .post-content h4 {
    font-size: 22px;
  }

  .post-content h5 {
    font-size: 19px;
  }

  .post-content h6 {
    font-size: 17px;
  }

  .post-content figure,
  .post-content table,
  .post-content blockquote,
  .post-content pre {
    margin: 24px 0;
  }
}

/* =========================================
   Mobile (≤ 767px)
========================================= */
@media (max-width: 767px) {

  .post-content {
    font-size: 16px;
    line-height: 1.7;
  }

  .post-content h1 {
    font-size: 30px;
    margin: 30px 0 16px;
  }

  .post-content h2 {
    font-size: 26px;
    margin: 28px 0 14px;
  }

  .post-content h3 {
    font-size: 22px;
    margin: 24px 0 12px;
  }

  .post-content h4 {
    font-size: 20px;
    margin: 20px 0 10px;
  }

  .post-content h5 {
    font-size: 18px;
  }

  .post-content h6 {
    font-size: 16px;
  }

  .post-content p {
    margin-bottom: 18px;
  }

  .post-content ul,
  .post-content ol {
    margin: 0 0 20px 20px;
  }

  .post-content li {
    margin-bottom: 8px;
  }

  .post-content blockquote {
    padding: 16px;
    margin: 20px 0;
  }

  .post-content pre {
    padding: 16px;
    font-size: 14px;
  }

  .post-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .post-content iframe,
  .post-content video {
    width: 100%;
    height: auto;
  }

  .post-content .wp-block-button__link {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }
}

/* =========================================
   Small Mobile (≤ 480px)
========================================= */
@media (max-width: 480px) {

  .post-content {
    font-size: 15px;
  }

  .post-content h1 {
    font-size: 26px;
  }

  .post-content h2 {
    font-size: 23px;
  }

  .post-content h3 {
    font-size: 20px;
  }

  .post-content h4 {
    font-size: 18px;
  }

  .post-content img {
    border-radius: 8px;
  }

  .post-content blockquote {
    padding: 14px;
    font-size: 15px;
  }
}