/* =========================================================================
   audio-overrides.css
   Project-specific overrides for the audio site, loaded AFTER the shared
   islamweb theme (style.css / responsive.css / style-ar.css).
   Keep rules here instead of editing the shared theme files so they can be
   re-synced from islamweb.net without losing audio-specific fixes.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Left-nav counters: "عدد مرات الاستماع" / "عدد مرات الحفظ"  (.numvisitors)
   Ported from legacy audio  content/css/style.css  (lines 1394-1398).
   The shared ver3 theme sizes h4 169px + span 46% with negative margins,
   which overflows the 25% left column and wraps the number onto a second
   line. Flex layout keeps icon / label / number on one row at any width.
   ------------------------------------------------------------------------- */
.numvisitors {
    display: flex;
    flex-wrap: wrap;          /* number drops to its own row only when the column is too narrow */
    align-items: center;
    background: #f0f0f0;
    padding: 4px;
    border-radius: 20px;
    margin: 0 auto 10px;
    overflow: hidden;
}

.numvisitors samp {
    flex: 0 0 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    padding: 4px;
    background: #fff;
    border-radius: 100%;
    vertical-align: middle;
}
.numvisitors samp img {
    max-width: 100%;
    height: auto;
}
.numvisitors h4 {
    flex: 0 0 auto;
    width: auto;
    height: 39px;
    line-height: 38px;
    margin: 0;
    padding: 0 8px;
    background: none;
    color: #ab1e56;
    text-align: center;
    white-space: nowrap;
}
.numvisitors span {
    flex: 1 1 110px;          /* basis ≈ 10 digits; wraps below the label when narrower */
    display: block;
    width: auto;
    min-width: 0;
    height: 39px;
    line-height: 31px;
    margin: 0;
    padding: 4px 10px;
    background: url(../img/ico-63.png) right center no-repeat #fff;
    border-radius: 20px;      /* container has overflow:hidden, so corners stay flush */
    text-align: center;
    text-indent: 0;
    vertical-align: bottom;
    /* numbers: latin digits in Arial, same convention as the theme's .f-num */
    font-family: arial, sans-serif;
    font-size: 15px;
    color: #6e6e6e;
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 420px) {
    .numvisitors h4 { padding: 0 6px; }
}

