﻿/* ===== general ===== */
.home-index {
    font-family: 'Noto Kufi Arabic','Cairo',sans-serif;
}

.text-primary-700 {
    color: #0d3a7a;
}

/* ===== generic card ===== */
.v-card {
    background: #fff;
    border: 1px solid #edf0f3;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(15,40,85,.06);
    padding: 14px;
}

/* ===== left quick buttons ===== */
.v-btn {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    color: #0d3a7a;
    text-decoration: none;
    background: #f8fbff;
    border: 1px solid #e8eef7;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: .6rem;
    transition: .2s ease;
}

    .v-btn .icon {
        font-size: 1.1rem;
        opacity: .9;
    }

    .v-btn:hover {
        background: #eef5ff;
        border-color: #d7e6ff;
    }

/* ===== section title ===== */
.section-title {
    font-weight: 800;
    color: #0d3a7a;
    margin: 10px 0 8px;
    background: #f2f6fb;
    border: 1px solid #e6edf7;
    padding: 10px 12px;
    border-radius: 12px;
}

/* ===== Article mini (modern card) ===== */
.article-mini.v-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 6px 18px rgba(13, 58, 122, 0.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    text-decoration: none !important;
}

    .article-mini.v-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(13, 58, 122, 0.12);
        border-color: rgba(13, 58, 122, 0.18);
    }

    /* make the whole row clickable nicely */
    .article-mini.v-card:active {
        transform: translateY(0);
    }

/* Thumb bigger + nicer */
.article-mini .thumb {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    overflow: hidden;
    flex: 0 0 88px;
    background: transparent; /* or keep #f5f7fb if you like */
    border: none; /* ✅ remove border */
}

    .article-mini .thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: transparent;
    }

/* Text */
.article-mini .text {
    min-width: 0; /* important for ellipsis/clamp inside flex */
}

.article-mini .title {
    color: #0d3a7a;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    text-decoration: none !important;
    /* 2-line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-mini p.small {
    margin: 0;
    opacity: .85;
}

/* Optional: subtle “arrow” hint */
.article-mini.v-card::after {
    content: "›";
 
    font-size: 22px;
    line-height: 1;
    opacity: .35;
}

/* RTL support (if your page/body has dir="rtl") */
[dir="rtl"] .article-mini.v-card {
    flex-direction: row-reverse;
}

    [dir="rtl"] .article-mini.v-card::after {
        content: "‹";
    }

/* "More..." card look */
.article-mini.v-card.d-flex.justify-content-center {
    box-shadow: none;
    background: #f8fbff;
    border-style: dashed;
}


/* ===== Mobile: image on top, text under (no HTML changes) ===== */
@media (max-width: 576px) {

    .article-mini.v-card {
        flex-direction: column !important;
        align-items: stretch !important; /* override align-items-center */
        gap: 10px !important;
        padding: 14px !important;
    }

    .article-mini .thumb {
        width: 100% !important;
        height: 180px !important; /* change as you like */
        flex: 0 0 auto !important;
        border-radius: 16px !important;
    }

        .article-mini .thumb img {
            object-fit: contain !important; /* nice banner on mobile */
        }

    .article-mini .text {
        text-align: center; /* or right for Arabic */
    }

    .article-mini.v-card::after {
        display: none !important; /* hide arrow on mobile */
    }
}


/* ===== center ===== */
.hero-img {
    max-height: 380px; /* try 320–420 */
    object-fit: contain;
}

/* ===== right list (pills) ===== */
.pill-item {
    display: block;
    text-decoration: none;
    margin-bottom: 12px;
    background: #f7fbff;
    border: 1px solid #e8eef7;
    border-radius: 16px;
    padding: 14px 16px;
    transition: .2s ease;
}

    .pill-item .title {
        color: #0d3a7a;
        font-weight: 700;
    }

    .pill-item:hover {
        background: #eef5ff;
        border-color: #d7e6ff;
    }

/* news list */


/* ===== responsive ===== */
@media (max-width: 991.98px) {
    .hero-img {
        max-height: 300px;
    }

 
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
/* display all articals,news ... */
/* ---------- Stack of rows ---------- */
/* ---------------- LIST STACK ---------------- */
.list-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* This DOES NOT add padding to first child */
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------------- MEDIA ROW ---------------- */
.media-row {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    overflow: hidden;
    transition: transform .2s ease;
}

    .media-row:hover {
        transform: translateY(-2px);
    }

/* ---------------- IMAGE ---------------- */
.media-row__image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

    .media-row__image img {
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
        display: block;
        transition: transform .4s ease;
    }

/* Desktop layout: side-by-side */
@media (min-width: 768px) {
    .media-row {
        flex-direction: row;
    }

    .media-row__image {
        flex: 0 0 260px;
        height: 180px;
    }

        .media-row__image img {
            aspect-ratio: auto;
            height: 100%;
        }
}

/* Hover zoom on devices that support hover */
@media (hover: hover) {
    .media-row__image img:hover {
        transform: scale(1.05);
    }
}

/* ---------------- CONTENT ---------------- */
.media-row__content {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.media-row__header h4 {
    margin: 0;
    font-weight: 700;
}

.media-row__footer {
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.meta {
    color: #6c757d;
    font-size: .9rem;
}

/* ---------- Utilities ---------- */
.u-justify {
    text-align: justify;
}

.u-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all .25s ease;
    --lines: 3;
    -webkit-line-clamp: var(--lines);
}

    .u-clamp.is-expanded {
        -webkit-line-clamp: unset;
        max-height: none;
    }

    .u-clamp.is-clamped {
        -webkit-line-clamp: var(--lines);
    }

/* ---------- OPTIONAL: logo/emblem mode (no cropping) ---------- */
/* Add .media-row__image--contain to the wrapper when you want the entire image visible */
.media-row__image--contain img {
    object-fit: contain; /* show whole logo */
    background: #fff; /* cleaner on transparent PNGs */
    padding: 8px; /* breathing room for round emblems */
    transform: none !important;
}


.quick-links-section {
    margin-top: 30px;
}

.section-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f3c88;
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

    .quick-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 32px rgba(0,0,0,0.12);
    }

    .quick-card .icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        background: #f1f4ff;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .quick-card .icon img {
            width: 32px;
            height: 32px;
            object-fit: contain;
        }

    .quick-card h6 {
        margin: 0;
        font-weight: 700;
        color: #111;
    }

    .quick-card p {
        margin: 4px 0 0;
        font-size: 13px;
        color: #666;
    }
