/* ---------------------------------------------------
   BLOCK 10 – Technology Grid Layout (VIP Style)
--------------------------------------------------- */

.block-10 {
  direction: rtl;
  margin-bottom: 40px;
}
.b10-info a {
    color: black;
}
article.b10-card.large a {
    color: black;
}
.block-10 .b10-inner {
  position: relative;
  border-radius: 6px;
  background: #fff;
  padding: 20px;
  border: 2px solid #b68c5a;
}

/* Title overlap */
.block-10 .b10-title-wrap {
  text-align: center;
  margin-bottom: 10px;
}
.block-10 .b10-heading {
  display: block;
  position: absolute;
  top: -40px;
  right: 50%;
  transform: translateX(50%);
  background: #b68c5a;
  color: #fff;
  padding: 7px 50px;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  width: 10%;
}

/* Main grid */
.block-10 .b10-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}

/* Large cards (Top row) */
.block-10 .b10-card.large {
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform .3s;
}
.block-10 .b10-card.large:hover {
  transform: translateY(-3px);
}
.block-10 .b10-card.large img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.block-10 .b10-card.large h3 {
  font-size: 22px;
  margin: 10px;
  line-height: 1.4;
}

/* Small cards (bottom rows) */
.block-10 .b10-card.small {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 8px;
  transition: background .3s;
}
.block-10 .b10-card.small:hover {
  background: #fafafa;
}
.block-10 .b10-card.small img {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
}
.block-10 .b10-card.small h4 {
  font-size: 20px;
  margin: 0;
  line-height: 1.5;
  font-weight: 600;
}

/* Bottom category buttons */
.block-10 .b10-bottom {
  text-align: center;
  margin-top: 15px;
}
.block-10 .b10-bottom .cat-btn {
  display: inline-block;
  background: #b68c5a;
  color: #fff;
  padding: 5px 14px;
  border-radius: 3px;
  margin: 4px;
  text-decoration: none;
  transition: 0.3s;
  font-size: 18px;
}
.block-10 .b10-bottom .cat-btn:hover {
  opacity: .85;
}

/* ==========================================================
   ✅ BLOCK 10 — PERFECT MOBILE FIX (Scoped Version)
   Urdu News Point — Malik Masood 🚀
========================================================== */

@media (max-width: 992px) {

  /* Whole grid becomes stacked */
  .block-10 .b10-grid {
    display: block !important;
  }

  /* ---------- Large post (top full width) ---------- */
  .block-10 .b10-card.large {
    width: 100% !important;
    display: block;
    margin-bottom: 18px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
  }

  .block-10 .b10-card.large img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px 10px 0 0;
  }

  .block-10 .b10-card.large h3 {
    font-size: 20px;
    text-align: right;
    line-height: 1.7;
    margin: 8px 10px 12px;
  }

  /* ---------- Small posts list (1 per row) ---------- */
  .block-10 .b10-card.small {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 10px;
    transition: all 0.3s ease;
  }

  /* Only one post per line */
  .block-10 .b10-card.small:nth-child(n) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .block-10 .b10-card.small .thumb {
    flex-shrink: 0;
  }

  .block-10 .b10-card.small .thumb img {
    width: 85px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
  }

  .block-10 .b10-card.small .b10-info {
    flex: 1;
    text-align: right;
  }

  .block-10 .b10-card.small h4 {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    color: #111;
  }

  .block-10 .b10-card.small h4 a {
    color: inherit;
    text-decoration: none;
  }

  /* Hover lift */
  .block-10 .b10-card.small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  /* ---------- Bottom Category Buttons ---------- */
  .block-10 .b10-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }

  .block-10 .b10-bottom .cat-btn {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
  }
}

/* ---------- Extra Small Phones (<480px) ---------- */
@media (max-width: 480px) {
  .block-10 .b10-card.small .thumb img {
    width: 75px;
    height: 60px;
  }
}