/* === ENCC Global Skin (يُستخدم مع body.encc-skin) === */

.encc-skin {
    background-color: #d3d3d3; /* Main BG */
    font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
    color: #333;
    direction: rtl;
    text-align: right;
}

/* صفحة ENCC العامة */
.encc-page {
    padding: 28px 18px;
    overflow-x: hidden; /* منع Scroll أفقى */
}

.encc-container {
    max-width: 1080px;
    margin: 0 auto;
}

/* Typography */
.encc-skin p {
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 0.9rem;
}

.encc-skin h1,
.encc-skin h2,
.encc-skin h3,
.encc-skin h4 {
    color: #800000; /* Maroon */
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
}

.encc-skin h1 {
    font-size: 28px;
    font-weight: 800;
}

.encc-skin h2 {
    font-size: 22px;
    font-weight: 700;
    padding-right: 10px;
    border-right: 6px solid #800000; /* شريط جانبى يمين */
}

.encc-skin h3 {
    font-size: 18px;
    font-weight: 700;
}

/* Cards / Blocks */
.encc-skin .card,
.encc-skin .encc-card {
    background: #f7f7f7; /* خلفية شبه بيضاء */
    border-radius: 12px;
    border: none;
}

.encc-skin .card-header {
    border-bottom: 1px solid #c5c5c5;
    background-color: #f7f7f7;
    border-radius: 12px 12px 0 0;
}

.encc-skin .card-body {
    padding: 16px 18px;
}

/* Separator بين الأقسام */
.encc-skin .sep {
    border-top: 2px dashed #c5c5c5;
    margin: 24px 0;
}

/* Links */
.encc-skin a {
    color: #800000;
}

.encc-skin a:hover,
.encc-skin a:focus {
    color: #a00000;
    text-decoration: underline;
}

/* Data Grids */
.encc-skin table.datagrid {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #000;
    margin: 16px 0;
    background-color: #fff;
}

.encc-skin table.datagrid th,
.encc-skin table.datagrid td {
    border: 1px solid #000;
    padding: 6px 8px;
    font-size: 14px;
}

.encc-skin table.datagrid th {
    background: #800000;
    color: #fff;
    text-align: center;
    font-weight: 700;
}

.encc-skin table.datagrid td {
    text-align: right;
}

/* Figures / Images */
.encc-skin .figure {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 12px;
    margin: 16px 0;
}

.encc-skin .figure .img-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.encc-skin .figure .img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* عرض الصورة بالكامل بدون قص */
}

.encc-skin .figure .caption {
    margin-top: 8px;
    font-size: 13px;
    color: #555;
}

/* KPIs & Tags */
.encc-skin .kpi {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: #800000;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin: 2px 0;
}

.encc-skin .tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background-color: #e9d6d6;
    border: 1px solid #800000;
    color: #800000;
    font-size: 12px;
    margin: 2px 4px 2px 0;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .encc-page {
        padding: 24px 14px;
    }

    .encc-skin h1 {
        font-size: 24px;
    }

    .encc-skin h2 {
        font-size: 20px;
    }
}
