/* ============================================================
   OFFICIAL STATEMENTS
   Compact 2-column Grid
============================================================ */

:root {
    --os-primary: #162556;
    --os-primary-2: #2e3b67;
    --os-surface: #fff;
    --os-text: var(--cnew-text);
    --os-muted: #667085;
    --os-border: #d7dceb;
    --os-border-strong: #b9c3dd;
    --os-shadow: 0 4px 18px rgba(10, 31, 58, .05);
    --os-shadow-hover: 0 10px 24px rgba(10, 20, 55, 0.12);
}

.os-list-wrap {
     direction: rtl;
    font-family: inherit;
}

/* =========================================================
   Header
========================================================= */

.os-list-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
    padding: 20px 22px;
    overflow: hidden;
    color: #fff;
    background: var(--os-primary);
    border: 1px solid var(--os-primary-2);
    border-right: 5px solid var(--os-primary-2);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(10, 20, 55, 0.25);
}

.os-list-header::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    content: "";
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

.os-list-header > * {
    position: relative;
    z-index: 1;
}

.os-list-main-title {
    margin: 0;
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0;
}

.os-list-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.os-list-more:hover,
.os-list-more:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    outline: none;
    transform: translateY(-1px);
}

/* =========================================================
   Grid
========================================================= */

.os-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
}

.os-timeline::before {
    display: none;
}

/* =========================================================
   Item
========================================================= */

.os-item {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: var(--os-surface);
    color: var(--os-text);
    border: 1px solid var(--os-border);
    border-radius: 6px;
    box-shadow: var(--os-shadow);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.os-item:hover {
    border-color: var(--os-border-strong);
    box-shadow: var(--os-shadow-hover);
    transform: translateY(-3px);
}

/* =========================================================
   Side column
========================================================= */

.os-item-side {
    position: relative;
    display: flex;
    flex: 0 0 92px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 14px 8px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0)),
        var(--os-primary);
    border-left: 3px solid var(--os-primary-2);
}

.os-item-side::after {
    position: absolute;
    top: 8px;
    content: "بیانیه";
    color: rgba(255, 255, 255, 0.62);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.os-item-number {
    margin-top: 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.8;
    text-align: center;
}

.os-item-date {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 10px;
    line-height: 1.6;
    text-align: center;
}

/* =========================================================
   Main card
========================================================= */

.os-item-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 14px 15px 12px;
    background: var(--os-surface);
    color: var(--os-text);
}

.os-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.os-badge {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
}

.os-badge--info {
    color: #20304f;
    background: #eef2fb;
    border: 1px solid #d7dff0;
}

.os-badge--danger {
    color: #8b2f2f;
    background: #f8ecec;
    border: 1px solid #ebcaca;
}

.os-card-subject {
    overflow: hidden;
    color: var(--os-muted);
    font-size: 10px;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.os-card-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.8;
}

.os-card-title a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--os-text);
    font-size: 16px;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.os-card-title a:hover {
    color: var(--os-primary);
}

.os-card-body {
    margin-bottom: 10px;
}

.os-card-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--os-muted);
    font-size: 12px;
    line-height: 1.9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* =========================================================
   Footer
========================================================= */

.os-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 9px;
    border-top: 1px dashed var(--os-border);
}

.os-read-more,
.os-download-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.os-read-more {
    color: var(--os-primary);
}

.os-read-more::before {
    content: "←";
    font-size: 14px;
    line-height: 1;
}

.os-read-more:hover {
    color: var(--os-primary-2);
}

.os-download-link {
    color: #3f5aa8;
}

.os-download-link:hover {
    color: var(--os-primary);
}

/* =========================================================
   Tablet
========================================================= */

@media (max-width: 900px) {
    .os-timeline {
        grid-template-columns: 1fr;
    }

    .os-item-side {
        flex-basis: 105px;
    }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 575px) {
    .os-list-wrap {
        margin: 25px auto;
         
    }

    .os-list-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        margin-bottom: 14px;
        padding: 16px 15px;
        border-right-width: 4px;
        border-radius: 7px;
    }

    .os-list-main-title {
        font-size: 18px;
    }

    .os-list-more {
        padding: 7px 10px;
        font-size: 11px;
    }

    .os-timeline {
        gap: 10px;
    }

    .os-item-side {
        flex: 0 0 75px;
        padding: 11px 5px;
    }

    .os-item-number {
        font-size: 12px;
        font-weight: 600;
    }

    .os-item-date {
        font-size: 9px;
    }

    .os-item-card {
        padding: 11px 12px 10px;
    }

    .os-card-title {
        margin-bottom: 4px;
        font-size: 13px;
        line-height: 1.75;
    }

    .os-card-title a {
        font-size: 10px;
        font-weight: 500;
    }

    .os-card-body {
        display: none;
    }

    .os-card-footer {
        margin-top: 7px;
        padding-top: 7px;
    }
}
/* =========================================================
   Dynamic Side Position
========================================================= */

.os-list-wrap.os-side-position-start .os-item {
    flex-direction: row;
}

.os-list-wrap.os-side-position-end .os-item {
    flex-direction: row-reverse;
}

.os-list-wrap.os-side-position-start .os-item-side {
    border-left: 3px solid var(--os-primary-2);
    border-right: 0;
}

.os-list-wrap.os-side-position-end .os-item-side {
    border-right: 3px solid var(--os-primary-2);
    border-left: 0;
}


/* =========================================================
   Dynamic Side Label
========================================================= */

.os-item-side-label {
    position: absolute;
    top: 8px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.2px;
    text-align: center;
}


/* =========================================================
   Remove Old Generated Label
========================================================= */

.os-item-side::after {
    content: none;
}


/* =========================================================
   Empty State
========================================================= */

.os-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 25px;
    color: var(--os-muted);
    background: var(--os-surface);
    border: 1px solid var(--os-border);
    border-radius: 6px;
    box-shadow: var(--os-shadow);
}

.os-empty-state-text {
    font-size: 13px;
    font-weight: 600;
}