/* Latest-news sidebar for the dedicated single-news page. */
#primary.emdad-news-primary {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-bottom: 100px !important;
    padding-top:40px !important;
}
body.single-post .site-content .ast-container:has(#primary.emdad-news-primary) {
    width: 100% !important;
    max-width: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}
.emdad-news-page .emdad-news-single-layout {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 28px;
    width: min(100%, 1320px);
    margin: 54px auto 0;
    padding: 0 20px;
    direction: ltr;
    box-sizing: border-box;
}
.emdad-news-page .emdad-news-single-layout > .emdad-news-single {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    direction: rtl;
}
.emdad-news-latest {
    position: sticky;
    top: 28px;
    flex: 0 0 315px;
    overflow: hidden;
    border: 1px solid #d8e7f5;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(18, 55, 87, .12);
    direction: rtl;
}
.emdad-news-latest__header {
    position: relative;
    overflow: hidden;
    padding: 21px 20px 19px;
    background: linear-gradient(135deg, #173f64, #102f4e);
    color: #fff;
}
.emdad-news-latest__header::after {
    position: absolute;
    bottom: -38px;
    left: -23px;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    content: '';
}
.emdad-news-latest__header span,
.emdad-news-latest__header h2 { position: relative; z-index: 1; display: block; margin: 0; }
.emdad-news-latest__header span { margin-bottom: 5px; color: #ffbe69; font-size: .68rem; font-weight: 800; }
.emdad-news-latest__header h2 { color: #fff; font-size: 1.1rem; font-weight: 900; }
.emdad-news-latest__list {
    max-height: min(680px, calc(100vh - 220px));
    padding: 8px 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #9bb8d3 #edf5fc;
    scrollbar-width: thin;
}
.emdad-news-latest__list::-webkit-scrollbar { width: 7px; }
.emdad-news-latest__list::-webkit-scrollbar-track { background: #edf5fc; }
.emdad-news-latest__list::-webkit-scrollbar-thumb { border-radius: 99px; background: #9bb8d3; }
.emdad-news-latest__item {
    display: grid;
    grid-template-columns: 24px 55px minmax(0, 1fr) 15px;
    gap: 9px;
    align-items: center;
    padding: 11px 6px;
    border-bottom: 1px solid #e6eff7;
    color: inherit;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.emdad-news-latest__item:last-child { border-bottom: 0; }
.emdad-news-latest__item:hover,
.emdad-news-latest__item:focus-visible { border-radius: 13px; background: #f0f7ff; outline: none; transform: translateX(-2px); }
.emdad-news-latest__item:focus-visible { box-shadow: inset 0 0 0 2px #f28c18; }
.emdad-news-latest__number { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #fff1df; color: #bd6600; font-size: .62rem; font-weight: 900; }
.emdad-news-latest__image { display: grid; place-items: center; width: 55px; height: 48px; overflow: hidden; border-radius: 10px; background: #e7f2fd; color: #3c81bf; }
.emdad-news-latest__image img { width: 100%; height: 100%; object-fit: cover; }
.emdad-news-latest__image i { font-style: normal; font-size: 1rem; }
.emdad-news-latest__copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.emdad-news-latest__copy strong { display: -webkit-box; overflow: hidden; color: #173f64; font-size: .76rem; font-weight: 900; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.emdad-news-latest__excerpt { display: block; overflow: hidden; color: #687f96; font-size: .66rem; font-weight: 500; line-height: 1.65; text-overflow: ellipsis; white-space: nowrap; }
.emdad-news-latest__copy small { display: flex; flex-wrap: wrap; gap: 4px 7px; color: #7490a8; font-size: .61rem; font-style: normal; font-weight: 700; line-height: 1.5; }
.emdad-news-latest__copy small em { max-width: 105px; overflow: hidden; color: #2f78b6; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.emdad-news-latest__copy small em::before { margin-left: 5px; color: #f28c18; content: '•'; }
.emdad-news-latest__arrow { color: #93b0ca; font-size: .92rem; }
.emdad-news-latest__footer { padding: 11px; border-top: 1px solid #dfebf6; background: #f7fbff; }
.emdad-news-latest__more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 39px;
    border: 0;
    border-radius: 11px;
    background: #173f64;
    color: #fff;
    font: inherit;
    font-size: .75rem;
    font-weight: 900;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.emdad-news-latest__more:hover,
.emdad-news-latest__more:focus-visible { background: #e98611; outline: none; transform: translateY(-1px); }
.emdad-news-latest__more:disabled { opacity: .72; cursor: wait; }
.emdad-news-latest__more.is-loading span { animation: emdad-news-sidebar-pulse .8s infinite alternate; }
@keyframes emdad-news-sidebar-pulse { to { transform: translateY(3px); } }
@media (max-width: 1080px) {
    .emdad-news-page .emdad-news-single-layout { gap: 20px; }
    .emdad-news-latest { flex-basis: 280px; }
}
@media (max-width: 860px) {
    .emdad-news-page .emdad-news-single-layout { flex-direction: column; margin-top: 35px; }
    .emdad-news-page .emdad-news-single-layout > .emdad-news-single { order: 1; width: 100%; }
    .emdad-news-latest { position: static; order: 2; width: 100%; flex-basis: auto; }
    .emdad-news-latest__list { max-height: 520px; }
}
@media (max-width: 540px) {
    .emdad-news-page .emdad-news-single-layout { padding: 0 15px; }
    .emdad-news-latest__item { grid-template-columns: 24px 48px minmax(0, 1fr) 13px; gap: 8px; }
    .emdad-news-latest__image { width: 48px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .emdad-news-latest__item, .emdad-news-latest__more { transition: none; }
    .emdad-news-latest__more.is-loading span { animation: none; }
}
