/* Page CONTENT design for the inner Urdu pages on phones (lists as cards, calmer breadcrumb, readable article text).
   Companion of css/mobile-inner-ur.css (header / menu / footer). Same card look as the home page's "new articles" list
   (white card, 1px #e3e8e4 border, rounded, 18px+ text) plus a chevron and a real tap area.
   Everything is inside @media (max-width: 768px): desktop is untouched.
   Loaded through includes/mobile_inner_ur.php. CSS is cached for a year: BUMP $dii_ic_ver there after every edit of this file. */

@media (max-width: 768px) {

  /* ---- breadcrumb: one line, scrolls sideways instead of wrapping into 2-3 lines ---- */
  body #main > nav[aria-label="breadcrumb"] {
    padding: 0 16px;
  }
  body #main .breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0;
    padding: 2px 0 10px;
    font-size: 15px;
  }
  body #main .breadcrumb::-webkit-scrollbar { display: none; }
  body #main .breadcrumb .breadcrumb-item { flex: none; }

  /* ---- page title ---- */
  body .heading-center h2.page-title {
    font-size: 28px;
    line-height: 1.7;
    margin: 0 0 22px;
  }

  /* ---- lists as cards: articles, sub-categories, categories, graphics (same markup as the home page's article list) ---- */
  body .our-vision .row > .col-md-1,
  body .our-vision .row > .col-sm-1 {
    display: none;
  }
  body .our-vision .row > .col-md-10,
  body .our-vision .row > .col-sm-10 {
    width: 100%;
    padding: 0 16px;
  }
  body .cp-comments,
  body .cp-comments > li {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  body .cp-comments .children {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  body .cp-comments .children > li {
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
  }
  body .cp-comments .children .text {
    background: #fff;
    border: 1px solid #e3e8e4 !important;
    border-radius: 12px;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(21, 91, 44, 0.06);
  }
  body .cp-comments .children .text > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 12px 16px;
    color: #1b1b1b;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(21, 91, 44, 0.12);
  }
  body .cp-comments .children .text > a::after {   /* chevron pointing to the left = "open" in a right-to-left page */
    content: "\f104";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    flex: none;
    color: #155b2c;
    font-size: 20px;
  }
  body .cp-comments .children .text > a:active {
    background: #eef6f0;
  }
  body .cp-comments .children .text > a:focus-visible {
    outline: 3px solid rgba(21, 91, 44, 0.4);
    outline-offset: -3px;
  }
  body .cp-comments .children .text p {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 19px;
    line-height: 1.85;
    color: #1b1b1b;
  }

  /* ---- article / question page: title, author chip, readable text ---- */
  body #main .container > .heading-center h2:not(.page-title) {
    font-size: 26px;
    line-height: 1.9;
    margin: 4px 0 10px;
  }
  body #main .heading-center strong.title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 5px 14px;
    background: #e3f1e7;
    color: #155b2c;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 700;
  }
  body .blog-detail .post-box .text-box {
    padding: 0 2px;
  }
  body .blog-detail .text-box p {
    font-size: 20px;
    line-height: 2.1;
    margin: 0 0 14px;
  }
  body .blog-detail .text-box img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }
}

@media (max-width: 768px) {

  /* long current-page name at the end of the breadcrumb: cut with an ellipsis instead of running off the screen */
  body #main .breadcrumb .breadcrumb-item.active {
    max-width: 62vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* book page: cover at a sensible size, centred, with a soft shadow, so the title and buttons are reachable sooner */
  body .history-section .col-md-6 .text-center {
    margin-bottom: 16px;
  }
  body .history-section .col-md-6 .text-center img {
    width: 68%;
    max-width: 250px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  }

  /* search: the "nothing found" message was a 50px inline heading */
  body #main strong[style*="font-size:50px"] {
    font-size: 30px !important;
    line-height: 1.7;
  }
}
