/* ===============================
   1️⃣ Old Grid Layout (kept safe)
   =============================== */
@media (max-width: 767px) {
  .bci-compare-result-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
    padding: 0 4px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .bci-compare-column {
    font-size: 12px;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
  }

  .bci-compare-column img {
    max-height: 60px;
    object-fit: contain;
    width: 100%;
    margin-bottom: 6px;
    border-radius: 6px;
  }

  .bci-compare-column h3 {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .bci-compare-column p,
  .bci-compare-column ul {
    font-size: 11px;
    line-height: 1.3;
    margin: 4px 0;
  }

  .bci-compare-column .bci-btn {
    background: #2bbec7;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
  }

  html, body { overflow-x: hidden !important; }
}

/* ===============================
   2️⃣ Table Layout (New Compare View)
   =============================== */
.bci-compare-table-wrap {
  width: 100%;
  overflow-x: hidden;
  margin: 0 auto;
  box-sizing: border-box;
}

.bci-compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  table-layout: fixed;
}

.bci-compare-table th,
.bci-compare-table td {
  border: 1px solid #e6e6e6;
  text-align: center;
  vertical-align: top;
  padding: 12px 8px;
  word-break: break-word;
  min-width: 90px;
}

.bci-compare-table th.bci-ct-feature,
.bci-compare-table td.bci-ct-feature {
  background: #f9fafb;
  font-weight: 600;
  text-align: left;
  width: 110px;
}

.bci-ct-thumb {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
}

.bci-ct-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

.bci-btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.bci-btn-teal {
  background: #2bbec7;
  color: #fff;
  transition: background 0.2s ease;
}

.bci-btn-teal:hover { background: #22a9b3; }

/* ===============================
   3️⃣ Mobile Optimization
   =============================== */
@media (max-width: 767px) {
  html, body { overflow-x: hidden !important; }

  .bci-compare-table th,
  .bci-compare-table td {
    padding: 10px 6px;
    font-size: 11px;
    min-width: 80px;
    vertical-align: middle;
  }

  .bci-ct-thumb { max-height: 55px; }
  .bci-ct-title { font-size: 12px; }

  .bci-compare-table .bci-btn {
    min-width: 72px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
  }

  .bci-compare-table td {
    vertical-align: middle;
  }

  .bci-compare-table.cols-4 {
    transform: scale(0.93);
    transform-origin: top center;
  }
}

/* ===============================
   ✅ FINAL REAL FIX – Buttons & Columns
   =============================== */

/* 1️⃣ Lock table layout (prevents squish) */
.bci-compare-table {
  table-layout: fixed !important;
  width: 100% !important;
  border-collapse: collapse;
}

/* 2️⃣ Set min width per column */
.bci-compare-table th,
.bci-compare-table td {
  min-width: 100px !important;
  text-align: center;
  vertical-align: middle;
  word-break: keep-all !important;
  white-space: normal !important;
  overflow-wrap: break-word;
}

/* 3️⃣ Fix Apply Now buttons */
.bci-compare-table .bci-btn {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  min-width: 100px;
  max-width: 110px;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #2bbec7;
  color: #fff;
  border-radius: 6px;
  border: none;
  line-height: 1.3;
}

/* 4️⃣ Mobile fine-tuning */
@media (max-width: 767px) {
  .bci-compare-table.cols-4 {
    transform: scale(0.92);
    transform-origin: top center;
  }

  .bci-compare-table .bci-btn {
    min-width: 85px;
    padding: 6px 8px;
    font-size: 11.5px;
  }

  .bci-compare-table th,
  .bci-compare-table td {
    min-width: 90px !important;
    font-size: 11px;
  }
}

/* ===============================
   ✅ FINAL RESPONSIVE TUNING – Text Scaling & Mobile Readability
   =============================== */

/* ✳️ Universal Fluid Text Sizes */
.bci-compare-column h3,
.bci-ct-title {
  font-size: clamp(12px, 3.5vw, 16px);
  line-height: 1.3;
}

.bci-compare-column p,
.bci-compare-column ul,
.bci-compare-table th,
.bci-compare-table td {
  font-size: clamp(11px, 3vw, 14px);
  line-height: 1.4;
}

.bci-compare-column .bci-btn,
.bci-compare-table .bci-btn {
  font-size: clamp(11px, 3.2vw, 13px);
  padding: clamp(6px, 1.5vw, 8px) clamp(8px, 2vw, 12px);
}

/* ✳️ Apply Slight Zoom on Smaller Devices for Comfort */
@media (max-width: 480px) {
  .bci-compare-table.cols-4 {
    transform: scale(0.9);
    transform-origin: top center;
  }

  .bci-compare-table th,
  .bci-compare-table td {
    padding: 8px 4px;
    min-width: 78px !important;
  }

  .bci-ct-thumb {
    max-height: 52px;
  }
}

/* ✳️ Keep Grid Clean on Narrow Screens */
@media (max-width: 400px) {
  .bci-compare-result-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .bci-compare-column {
    padding: 6px;
  }
}

/* ===============================
   🔧 Compact Titles & Column Width Fix
   =============================== */
@media (max-width: 767px) {
  /* Allow slightly wider columns */
  .bci-compare-table th,
  .bci-compare-table td {
    min-width: 105px !important;
    word-break: normal !important;
    white-space: normal !important;
  }

  /* Prevent each word from breaking too early */
  .bci-ct-title {
    font-size: clamp(11.5px, 3vw, 13px);
    line-height: 1.25;
    word-break: keep-all;
    white-space: normal;
    text-wrap: balance;
    max-width: 95px;
    margin: 0 auto;
  }

  /* Adjust image and button spacing for balance */
  .bci-ct-thumb {
    max-height: 58px;
    margin-bottom: 4px;
  }

  .bci-compare-table .bci-btn {
    min-width: 85px;
    padding: 6px 8px;
    font-size: 11.5px;
  }

  /* Optional: slight horizontal scroll if text still tight */
  .bci-compare-table-wrap {
    overflow-x: auto;
  }
}

/* ===============================================
   💳 Refined Checkmark Style for Benefits Row
   =============================================== */
.bci-compare-table td ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bci-compare-table td ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  line-height: 1.5;
  color: #333;
  font-size: 14.5px;
  font-weight: 400;
}

/* ==========================
   🏦 BestCardsIndia – Category Intro Section
   ========================== */

/* Wrap container */
.bci-category-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 20px 0;
}

/* Main heading (category name) */
.bci-category-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

/* Description or intro text */
.bci-category-header p,
.bci-category-header {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #555;
  margin: 0 auto 15px;
}

/* Optional subtle underline accent */
.bci-category-header::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #2bbec7; /* your brand cyan accent */
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Make it breathe on smaller screens */
@media (max-width: 768px) {
  .bci-category-header h1 {
    font-size: 26px;
  }
  .bci-category-header p {
    font-size: 15px;
  }
}

