/*
 * listingstyle-rtl.css
 * RTL Arabic version of listingstyle.css
 * Add this to the Arabic masterpage ONLY — do not touch the English masterpage CSS
 * Uses Cairo Arabic web font for clean Arabic rendering
 */

/*@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');*/

/* =============================================
   BASE RTL DIRECTION
   ============================================= */

/*body {*/
    /*direction: rtl;*/
    /*font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}*/

/* =============================================
   JUMP NAVIGATION — np-jumpto
   ============================================= */

.np-jumpto {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px 0;
    padding: 10px 14px;
    background: #f8f8f8;
    border-right: 4px solid #c0392b;  /* RTL: border on RIGHT instead of left */
    border-left: none;
    border-radius: 4px;
    direction: rtl;
}

.np-jumpto a {
    display: inline-block;
    padding: 4px 10px;
    font-size: 16px;
    font-weight: 600;
    color: #c0392b;
    text-decoration: none;
    border: 1px solid #e0c0be;
    border-radius: 3px;
    background: #fff;
    transition: background 0.2s, color 0.2s;
    font-family: 'Cairo', Arial, sans-serif;
}

.np-jumpto a:hover {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

/* =============================================
   SECTION TITLE BADGE — np-section-title
   ============================================= */

.np-section-title {
    display: inline-block;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    background-color: #c0392b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 3px;
    margin: 18px 0 10px 0;
    font-family: 'Cairo', Arial, sans-serif;
}

.np-section-title.regional  { background-color: #2980b9; }
.np-section-title.digital   { background-color: #8e44ad; }
.np-section-title.business  { background-color: #27ae60; }
.np-section-title.sports    { background-color: #e67e22; }

/* =============================================
   CARD GRID — np-direct-grid
   ============================================= */

.np-direct-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 22px 0;
    padding: 0;
    list-style: none;
    direction: rtl;
}

.np-direct-grid a {
    display: inline-flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 14px;
    border: 1.5px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-size: 17.5px;
    font-weight: 600;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s, background 0.2s;
    white-space: normal;
    gap: 6px;
    direction: rtl;
    font-family: 'Cairo', Arial, sans-serif;
    min-width: 140px;
    max-width: 200px;
    line-height: 1.4;
}

.np-direct-grid a:hover {
    border-color: #c0392b;
    box-shadow: 0 2px 8px rgba(192,57,43,0.12);
    background: #fff8f8;
    color: #c0392b;
    text-decoration: none;
}

/* RTL: arrow points left (↖) instead of right (↗) */
.np-direct-grid a::after {
    content: "↖";
    font-size: 10px;
    opacity: 0.35;
    margin-right: 3px;  /* RTL: margin-right instead of margin-left */
    margin-left: 0;
}

.np-direct-grid a:hover::after {
    opacity: 0.75;
}

/* =============================================
   LANGUAGE BADGE — np-lang
   ============================================= */

.np-lang {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.04em;
    background: #eee;
    color: #555;
    text-transform: uppercase;
    font-family: 'Cairo', Arial, sans-serif;
    margin-right: 0;
    margin-left: 2px;   /* RTL: badge sits to the left of the text */
    flex-shrink: 0;
}

    /* Language-specific badge colours */
    .np-lang.ar {
        background: #d5f5e3;
        color: #1e8449;
    }
    /* Arabic */
    .np-lang.fr {
        background: #1a3a6b;
        color: #fff;
    }
    /* French */
    .np-lang.en {
        background: #d6eaf8;
        color: #1a5276;
    }
    /* English */
    .np-lang.es {
        background: #7b241c;
        color: #fff;
    }
    /* Spanish */
    .np-lang.am {
        background: #784212;
        color: #fff;
    }
    /* Amharic */
    .np-lang.so {
        background: #117a65;
        color: #fff;
    }
    /* Somali */
    .np-lang.ti {
        background: #4a235a;
        color: #fff;
    }
    /* Tigrinya */
    .np-lang.bi {
        background: #515a5a;
        color: #fff;
    }
/* Bilingual */

/* =============================================
   DESCRIPTION TEXT — np-desc
   ============================================= */

.np-desc {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: #888;
    white-space: normal;
    line-height: 1.3;
    margin-top: 3px;
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', Arial, sans-serif;
}

/* Cards with descriptions — same column layout as English */
/*.np-direct-grid a:has(.np-desc) {
    white-space: normal;
    align-items: flex-start;
    flex-direction: column;
    max-width: 195px;
    min-width: 140px;
    line-height: 1.4;
}*/

/* =============================================
   PARAGRAPHS IN CONTENT AREA
   ============================================= */

/* Internal links in paragraph text */
p a {
    color: #c0392b;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1.5px;
    transition: color 0.15s;
}

    /* Visited - purple so users know they have been there */
    p a:visited {
        color: #7d3c98;
    }

    /* Hover */
    p a:hover {
        color: #922b21;
    }

.np-direct-grid ~ p,
.np-section-title ~ p {
    direction: rtl;
    text-align: right;
    line-height: 1.9;
    font-family: 'Cairo', Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */

@media (max-width: 640px) {
    .np-direct-grid {
        gap: 10px;
    }

    .np-jumpto {
        gap: 6px;
        padding: 8px 10px;
    }

    .np-jumpto a {
        font-size: 15px;
        padding: 3px 8px;
    }

    .np-section-title {
        font-size: 16px;
        padding: 3px 10px;
    }

    .np-direct-grid a {
        font-size: 17px;
        padding: 7px 11px;
    }

    .np-desc {
        font-size: 14px;
    }   

       
}
@media (max-width: 479px) {

    .np-direct-grid a {
        max-width: 180px;
    }  
}

@media (max-width: 375px) {

    .np-direct-grid a {
        max-width: 151px;
        
    }    
}