.jkc-top-block {
  width: 100%;
  background: #fff;
}

/* 🔥 GRID FIX */
.jkc-top-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 520px;              /* 🔥 SAME HEIGHT FOR ALL */
}

/* COMMON COLUMN */
.jkc-col {
  position: relative;
  overflow: hidden;
}

.image-col {
  height: 100%;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000; /* optional */
}

.jkc-full-img {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* 🔥 KEY LINE */
  display: block;
}


/* BACKGROUND IMAGE COLUMNS */
.image-box {
  background-size: cover;
  background-position: center;
}

/* OVERLAY FIX */
.overlay {
  position: absolute;
  inset: 0;
  padding: 30px;              /* 🔥 reduced padding */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overlay.center {
  background: rgba(255,255,255,0.9);
  text-align: center;
}

.overlay.text {
  background: rgba(255,255,255,0.95);
}

/* CTA */
.btn-quote {
  margin-top: 24px;
  background: #f4c430;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
}

/* SOCIAL */
.jkc-social-strip {
  padding: 50px 0;
  background: #fff;
}

/* MOBILE */
@media (max-width: 992px) {
  .jkc-top-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .jkc-col {
    height: 360px;
  }
}


/* SOCIAL */
.jkc-social-strip {
  padding: 50px 0;
  display: flex;
  justify-content: center;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #ddd;
  padding: 20px 30px;
  border-radius: 12px;
  max-width: 720px;
}

.social-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.social-info h5 {
  margin: 0;
  font-size: 18px;
}

.social-logo img {
  width: 40px;
}

/* MOBILE */
@media(max-width: 992px){
  .jkc-top-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= GLOBAL SAFETY ================= */
body {
  overflow-x: hidden;
}

/* ================= BLOG HERO ================= */
.blog-hero-section {
  width: 100%;
  overflow: hidden;
}

.blog-hero-bg {
  width: 100%;
  height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.post-title {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  max-width: 900px;
}

.post-date {
  color: #ddd;
  font-size: 0.95rem;
  margin-top: 8px;
}

/* Mobile Hero */
@media (max-width: 768px) {
  .blog-hero-bg {
    height: 260px;
  }

  .post-title {
    font-size: 1.4rem;
  }
}

/* ================= BLOG CONTENT ================= */
.blog-content {
  max-width: 900px;
  margin: auto;
}

.post-body {
  font-size: 1rem;
  line-height: 1.8;
}

/* VERY IMPORTANT — FIX IMAGE OVERFLOW */
.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
}

/* ================= GALLERY ================= */
.post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.post-gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

/* ================= SHARE BUTTONS ================= */
.share-section {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none;
}

.share-btn.whatsapp { background: #25D366; }
.share-btn.fb { background: #1877F2; }
.share-btn.linkedin { background: #0A66C2; }

/* ================= RELATED POSTS ================= */
.related-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.related-title {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 600;
}
/* ===== MOBILE CALCULATOR CLEAN FIX ===== */
@media (max-width: 768px) {

  .calculator-table table {
    border: none;
  }

  .calculator-table thead {
    display: none;
  }

  .calculator-table tbody tr {
    display: block;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
  }

  .calculator-table td {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;
    align-items: center;
    border: none;
    padding: 6px 0;
    font-size: 14px;
  }

  .calculator-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
  }

  .calculator-table input {
    width: 100%;
  }

  /* Dimension inputs */
  .calculator-table .item-length,
  .calculator-table .item-breadth {
    width: 100%;
  }

  /* Cost emphasis */
  .calculator-table .item-cost {
    font-weight: 700;
    color: #000;
  }

  /* Remove excessive shadows */
  .calculator-table tr {
    box-shadow: none;
  }

  /* Sticky CTA */
  .btn-gold {
    position: sticky;
    bottom: 10px;
    width: 100%;
    z-index: 5;
  }
}