/* ====================================================================
   Newsino — Elementor Widgets Stylesheet
   Shared, self-contained styles for every "Newsino" Elementor widget.
   Scoped under .newsino-ew-widget so it never leaks into the rest of
   the theme, and never depends on the Tailwind build (so it always
   renders correctly no matter where a widget is dropped).
   ==================================================================== */

.newsino-ew-widget {
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    --newsino-primary: #4f46e5;
    --newsino-primary-dark: #4338ca;
    --newsino-accent: #16a34a;
    --newsino-danger: #dc2626;
    --newsino-ink: #111827;
    --newsino-ink-soft: #374151;
    --newsino-muted: #6b7280;
    --newsino-border: #e5e7eb;
    --newsino-bg-soft: #f9fafb;
}

.newsino-ew-widget *,
.newsino-ew-widget *::before,
.newsino-ew-widget *::after {
    box-sizing: border-box;
}

.newsino-ew-widget a {
    text-decoration: none;
    color: inherit;
}

/* Shared "photo layer": an absolutely positioned, cover-fit background
   image sitting inside a sized/positioned parent. Kept as its own element
   (rather than scaling the parent on hover) so overlay text/badges never
   zoom along with the photo. */
.newsino-ew-bg-zoom {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform .6s ease;
}

.newsino-ew-widget img {
    max-width: 100%;
    display: block;
}

/* ---------- Section heading (shared by several widgets) ---------- */
.newsino-ew-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
}

.newsino-ew-heading-bar {
    width: 5px;
    height: 22px;
    border-radius: 999px;
    background: var(--newsino-primary);
    flex-shrink: 0;
}

.newsino-ew-heading-text {
    font-size: 19px;
    font-weight: 800;
    color: var(--newsino-ink);
    margin: 0;
}

/* ---------- Post grid / cards (Latest Posts widget) ---------- */
.newsino-ew-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, 1fr);
}

.newsino-ew-grid.newsino-ew-cols-1 { grid-template-columns: 1fr; }
.newsino-ew-grid.newsino-ew-cols-2 { grid-template-columns: repeat(2, 1fr); }
.newsino-ew-grid.newsino-ew-cols-3 { grid-template-columns: repeat(3, 1fr); }
.newsino-ew-grid.newsino-ew-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .newsino-ew-grid.newsino-ew-cols-3,
    .newsino-ew-grid.newsino-ew-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .newsino-ew-grid {
        grid-template-columns: 1fr !important;
    }
}

.newsino-ew-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(17, 24, 39, .08);
    border: 1px solid var(--newsino-border);
    transition: box-shadow .25s ease, transform .25s ease;
    display: flex;
    flex-direction: column;
}

.newsino-ew-card:hover {
    box-shadow: 0 10px 24px rgba(17, 24, 39, .12);
    transform: translateY(-2px);
}

.newsino-ew-card-media {
    position: relative;
    display: block;
    height: 170px;
    background-color: var(--newsino-bg-soft);
    overflow: hidden;
}

@media (min-width: 640px) { .newsino-ew-card-media { height: 190px; } }
@media (min-width: 1024px) { .newsino-ew-card-media { height: 210px; } }

.newsino-ew-card:hover .newsino-ew-card-media .newsino-ew-bg-zoom {
    transform: scale(1.08);
}

.newsino-ew-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(22, 163, 74, .95);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.newsino-ew-card-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.newsino-ew-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--newsino-ink);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsino-ew-card:hover .newsino-ew-card-title {
    color: var(--newsino-primary);
}

.newsino-ew-card-excerpt {
    font-size: 13px;
    color: var(--newsino-muted);
    line-height: 1.8;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsino-ew-card-meta {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--newsino-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--newsino-muted);
}

.newsino-ew-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.newsino-ew-empty {
    padding: 26px 16px;
    text-align: center;
    color: var(--newsino-muted);
    background: var(--newsino-bg-soft);
    border-radius: 14px;
    font-size: 14px;
}

.newsino-ew-section-heading {
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid var(--newsino-accent-color, var(--newsino-primary));
    padding-bottom: 8px;
    margin: 0 0 18px;
    color: var(--newsino-ink);
}

@media (min-width: 640px) {
    .newsino-ew-section-heading { font-size: 20px; margin-bottom: 22px; }
}

/* ---------- Slider (matches front-page.php's own "Slider" section: a
   crossfade, fixed-height hero — not a sliding/scrolling track) ---------- */
.newsino-ew-slider {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    height: 220px;
}

@media (min-width: 640px)  { .newsino-ew-slider { height: 330px; } }
@media (min-width: 768px)  { .newsino-ew-slider { height: 430px; } }
@media (min-width: 1024px) { .newsino-ew-slider { height: 470px; } }

.newsino-ew-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    z-index: 1;
    transition: opacity .7s ease-in-out;
}

.newsino-ew-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.newsino-ew-slide .newsino-ew-bg-zoom {
    background-color: #111;
}

.newsino-ew-slide-gradient-b {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .95), rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, .1));
}

.newsino-ew-slide-gradient-l {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, .2), transparent 60%);
}

.newsino-ew-slide-top {
    position: absolute;
    top: 12px;
    right: 12px;
    left: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    z-index: 3;
}

.newsino-ew-slide-badge-cat,
.newsino-ew-slide-badge-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 10px;
    backdrop-filter: blur(6px);
}

.newsino-ew-slide-badge-cat {
    background: rgba(79, 70, 229, .9);
}

.newsino-ew-slide-badge-time {
    background: rgba(0, 0, 0, .5);
    font-weight: 400;
}

.newsino-ew-slide-bottom {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 3;
    padding: 16px 20px 40px;
}

@media (min-width: 640px) { .newsino-ew-slide-bottom { padding: 20px 28px 48px; } }
@media (min-width: 768px) { .newsino-ew-slide-bottom { padding: 24px 40px 56px; } }

.newsino-ew-slide-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a5b4fc;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.newsino-ew-slide-kicker .bar {
    width: 4px;
    height: 16px;
    border-radius: 999px;
    background: #818cf8;
}

.newsino-ew-slide-title {
    color: #fff;
    font-weight: 900;
    font-size: 20px;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

@media (min-width: 640px)  { .newsino-ew-slide-title { font-size: 24px; } }
@media (min-width: 768px)  { .newsino-ew-slide-title { font-size: 30px; } }
@media (min-width: 1024px) { .newsino-ew-slide-title { font-size: 36px; } }

.newsino-ew-slide-excerpt {
    display: none;
    color: #e5e7eb;
    font-size: 14px;
    line-height: 1.8;
    margin: 8px 0 0;
    max-width: 640px;
}

@media (min-width: 640px) {
    .newsino-ew-slide-excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.newsino-ew-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    margin-top: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.newsino-ew-slider-nav {
    position: absolute;
    inset-inline: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    z-index: 4;
}

@media (min-width: 640px) { .newsino-ew-slider-nav { padding: 0 20px; } }

.newsino-ew-slider-glass-btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: transform .3s ease, background .3s ease;
    font-size: 18px;
}

@media (min-width: 640px) {
    .newsino-ew-slider-glass-btn { width: 44px; height: 44px; font-size: 22px; }
}

.newsino-ew-slider-glass-btn:hover {
    background: rgba(0, 0, 0, .7);
    transform: scale(1.1);
}

.newsino-ew-slider-indicators {
    position: absolute;
    bottom: 14px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

.newsino-ew-slider-dot {
    height: 6px;
    width: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .4);
    transition: all .4s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.newsino-ew-slider-dot.is-active {
    width: 26px;
    background: #fff;
}

.newsino-ew-slider-progress-track {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, .2);
    z-index: 5;
    overflow: hidden;
}

.newsino-ew-slider-progress-bar {
    display: block;
    height: 100%;
    background: rgba(255, 255, 255, .9);
    width: 0%;
}

/* ---------- Breaking ticker ---------- */
.newsino-ew-ticker {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--newsino-border);
    border-radius: 12px;
    overflow: hidden;
}

.newsino-ew-ticker-label {
    flex-shrink: 0;
    background: var(--newsino-danger);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.newsino-ew-ticker-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #fff;
    animation: newsino-ew-pulse 1.4s infinite;
}

@keyframes newsino-ew-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.newsino-ew-ticker-viewport {
    flex: 1;
    overflow: hidden;
    padding: 0 14px;
}

.newsino-ew-ticker-track {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    width: max-content;
    animation: newsino-ew-marquee linear infinite;
}

.newsino-ew-ticker-track a {
    font-size: 13px;
    font-weight: 600;
    color: var(--newsino-ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.newsino-ew-ticker-track a:hover {
    color: var(--newsino-primary);
}

@keyframes newsino-ew-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Category tabs ---------- */
.newsino-ew-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--newsino-border);
    padding-bottom: 10px;
}

.newsino-ew-tab-btn {
    background: var(--newsino-bg-soft);
    border: 1px solid var(--newsino-border);
    color: var(--newsino-ink-soft);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s ease;
}

.newsino-ew-tab-btn.is-active,
.newsino-ew-tab-btn:hover {
    background: var(--newsino-primary);
    border-color: var(--newsino-primary);
    color: #fff;
}

.newsino-ew-tab-panel {
    display: none;
}

.newsino-ew-tab-panel.is-active {
    display: block;
}

.newsino-ew-tab-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsino-ew-tab-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.newsino-ew-tab-list-thumb {
    flex-shrink: 0;
    width: 68px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--newsino-bg-soft);
}

.newsino-ew-tab-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsino-ew-tab-list-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--newsino-ink);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsino-ew-tab-list-item:hover .newsino-ew-tab-list-title {
    color: var(--newsino-primary);
}

/* ---------- Ad banner ---------- */
.newsino-ew-ad {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: var(--newsino-bg-soft);
    text-align: center;
}

.newsino-ew-ad img {
    width: 100%;
    height: auto;
}

.newsino-ew-ad-placeholder {
    padding: 30px 16px;
    color: var(--newsino-muted);
    font-size: 13px;
    border: 1px dashed var(--newsino-border);
    border-radius: 14px;
}

/* ---------- Most viewed ---------- */
.newsino-ew-mv-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.newsino-ew-mv-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.newsino-ew-mv-rank {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--newsino-bg-soft);
    color: var(--newsino-ink-soft);
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsino-ew-mv-item:nth-child(1) .newsino-ew-mv-rank { background: #fbbf24; color: #78350f; }
.newsino-ew-mv-item:nth-child(2) .newsino-ew-mv-rank { background: #d1d5db; color: #1f2937; }
.newsino-ew-mv-item:nth-child(3) .newsino-ew-mv-rank { background: #f0b184; color: #7c2d12; }

.newsino-ew-mv-body {
    flex: 1;
    min-width: 0;
}

.newsino-ew-mv-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--newsino-ink);
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsino-ew-mv-item:hover .newsino-ew-mv-title {
    color: var(--newsino-primary);
}

.newsino-ew-mv-views {
    font-size: 11px;
    color: var(--newsino-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ---------- Social icons ---------- */
.newsino-ew-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.newsino-ew-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--newsino-bg-soft);
    border: 1px solid var(--newsino-border);
    transition: transform .2s ease, background .2s ease;
}

.newsino-ew-social-link:hover {
    background: var(--newsino-primary);
    transform: translateY(-2px);
}

.newsino-ew-social-link img {
    width: 55%;
    height: 55%;
    object-fit: contain;
}

.newsino-ew-social-link.is-shape-circle { border-radius: 999px; }
.newsino-ew-social-link.is-shape-rounded { border-radius: 12px; }
.newsino-ew-social-link.is-shape-square { border-radius: 0; }

/* ---------- Newsletter form ---------- */
.newsino-ew-newsletter {
    background: var(--newsino-bg-soft);
    border: 1px solid var(--newsino-border);
    border-radius: 16px;
    padding: 22px;
    text-align: center;
}

.newsino-ew-newsletter-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--newsino-ink);
    margin: 0 0 14px;
}

.newsino-ew-newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
}

.newsino-ew-newsletter-input {
    flex: 1;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--newsino-border);
    font-size: 13px;
    direction: ltr;
    text-align: right;
}

.newsino-ew-newsletter-input:focus {
    outline: 2px solid var(--newsino-primary);
    outline-offset: 1px;
}

.newsino-ew-newsletter-btn {
    background: var(--newsino-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease;
}

.newsino-ew-newsletter-btn:hover {
    background: var(--newsino-primary-dark);
}

.newsino-ew-newsletter-msg {
    margin-top: 12px;
    font-size: 13px;
    display: none;
}

.newsino-ew-newsletter-msg.is-success {
    display: block;
    color: var(--newsino-accent);
}

.newsino-ew-newsletter-msg.is-error {
    display: block;
    color: var(--newsino-danger);
}

/* ---------- Author box ---------- */
.newsino-ew-author {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--newsino-border);
    border-radius: 16px;
    padding: 20px;
}

.newsino-ew-author-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--newsino-bg-soft);
}

.newsino-ew-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsino-ew-author-body {
    flex: 1;
    min-width: 0;
}

.newsino-ew-author-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--newsino-ink);
    margin: 0 0 4px;
}

.newsino-ew-author-stats {
    font-size: 12px;
    color: var(--newsino-muted);
    margin: 0 0 8px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.newsino-ew-author-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.newsino-ew-author-bio {
    font-size: 13px;
    color: var(--newsino-ink-soft);
    line-height: 1.9;
    margin: 0 0 10px;
}

.newsino-ew-author-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--newsino-primary);
}

.newsino-ew-author-link:hover {
    color: var(--newsino-primary-dark);
}

@media (max-width: 480px) {
    .newsino-ew-author {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- Live search ---------- */
.newsino-ew-live-search {
    position: relative;
}

.newsino-ew-live-search-box {
    position: relative;
}

.newsino-ew-live-search-input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--newsino-border);
    font-size: 14px;
    direction: rtl;
}

.newsino-ew-live-search-input:focus {
    outline: 2px solid var(--newsino-primary);
    outline-offset: 1px;
}

.newsino-ew-live-search-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--newsino-muted);
    pointer-events: none;
}

.newsino-ew-live-search-results {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    background: #fff;
    border: 1px solid var(--newsino-border);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(17, 24, 39, .14);
    max-height: 420px;
    overflow-y: auto;
    z-index: 40;
    display: none;
}

.newsino-ew-live-search-results.is-open {
    display: block;
}

.newsino-ew-live-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--newsino-border);
}

.newsino-ew-live-search-item:last-child {
    border-bottom: none;
}

.newsino-ew-live-search-item:hover {
    background: var(--newsino-bg-soft);
}

.newsino-ew-live-search-thumb {
    flex-shrink: 0;
    width: 52px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--newsino-bg-soft);
}

.newsino-ew-live-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsino-ew-live-search-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--newsino-ink);
    margin: 0 0 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsino-ew-live-search-meta {
    font-size: 11px;
    color: var(--newsino-muted);
}

.newsino-ew-live-search-status {
    padding: 14px;
    font-size: 13px;
    color: var(--newsino-muted);
    text-align: center;
}

/* ---------- Trending tags ---------- */
.newsino-ew-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.newsino-ew-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--newsino-bg-soft);
    border: 1px solid var(--newsino-border);
    color: var(--newsino-ink-soft);
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    transition: all .2s ease;
}

.newsino-ew-tag-pill:hover {
    background: var(--newsino-primary);
    border-color: var(--newsino-primary);
    color: #fff;
}

.newsino-ew-tag-pill-count {
    opacity: .65;
    font-size: 11px;
}

/* ---------- Featured News (horizontal cards, matches front-page.php "اخبار ویژه") ---------- */
.newsino-ew-featured-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.newsino-ew-featured-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(17, 24, 39, .1);
    transition: box-shadow .5s ease;
}

.newsino-ew-featured-card:hover {
    box-shadow: 0 14px 30px rgba(17, 24, 39, .16);
}

.newsino-ew-featured-link {
    display: flex;
    flex-direction: row;
    min-height: 150px;
}

.newsino-ew-featured-media {
    position: relative;
    display: block;
    flex-shrink: 0;
    align-self: stretch;
    width: 130px;
    min-height: 150px;
    background-color: var(--newsino-bg-soft);
    overflow: hidden;
}

.newsino-ew-featured-card:hover .newsino-ew-featured-media .newsino-ew-bg-zoom {
    transform: scale(1.08);
}

.newsino-ew-featured-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, .3), transparent 60%);
}

.newsino-ew-featured-badge-special,
.newsino-ew-featured-badge-time {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    color: #fff;
}

.newsino-ew-featured-badge-special {
    top: 8px;
    right: 8px;
    background: var(--newsino-accent-color, var(--newsino-primary));
}

.newsino-ew-featured-badge-time {
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(2px);
}

.newsino-ew-featured-body {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.newsino-ew-featured-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 11px;
}

.newsino-ew-featured-eyebrow .cat {
    color: var(--newsino-accent-color, var(--newsino-primary));
    font-weight: 700;
}

.newsino-ew-featured-eyebrow .dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--newsino-border);
}

.newsino-ew-featured-eyebrow .date {
    color: var(--newsino-muted);
}

.newsino-ew-featured-kicker {
    font-size: 13px;
    font-weight: 700;
    color: var(--newsino-accent-color, var(--newsino-primary));
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsino-ew-featured-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.7;
    color: var(--newsino-ink);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsino-ew-featured-card:hover .newsino-ew-featured-title {
    color: var(--newsino-accent-color, var(--newsino-primary));
}

.newsino-ew-featured-excerpt {
    display: none;
    font-size: 13px;
    color: var(--newsino-muted);
    line-height: 1.9;
    margin: 6px 0 0;
}

.newsino-ew-featured-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--newsino-border);
    font-size: 11px;
    color: var(--newsino-muted);
}

.newsino-ew-featured-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.newsino-ew-featured-meta .read-more {
    margin-right: auto;
    color: var(--newsino-accent-color, var(--newsino-primary));
    font-weight: 700;
}

@media (min-width: 640px) {
    .newsino-ew-featured-media { width: 224px; }
    .newsino-ew-featured-link { min-height: 210px; }
    .newsino-ew-featured-excerpt { display: block; }
    .newsino-ew-featured-title { font-size: 18px; }
}

@media (min-width: 768px) {
    .newsino-ew-featured-media { width: 256px; }
}

@media (min-width: 1024px) {
    .newsino-ew-featured-media { width: 288px; }
}

/* ---------- Latest News Grid (full-bleed overlay cards, matches front-page.php "آخرین خبرها") ---------- */
.newsino-ew-latestgrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 768px) {
    .newsino-ew-latestgrid { grid-template-columns: repeat(2, 1fr); }
}

.newsino-ew-latestgrid-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(17, 24, 39, .1);
    transition: box-shadow .5s ease;
}

.newsino-ew-latestgrid-card:hover {
    box-shadow: 0 18px 36px rgba(17, 24, 39, .2);
}

.newsino-ew-latestgrid-link {
    position: relative;
    display: block;
    width: 100%;
    height: 256px;
    background-color: #111;
    overflow: hidden;
}

@media (min-width: 640px) { .newsino-ew-latestgrid-link { height: 288px; } }
@media (min-width: 768px) { .newsino-ew-latestgrid-link { height: 320px; } }

.newsino-ew-latestgrid-card:hover .newsino-ew-latestgrid-link .newsino-ew-bg-zoom {
    transform: scale(1.08);
}

.newsino-ew-latestgrid-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, .3) 55%, transparent);
}

.newsino-ew-latestgrid-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    transition: opacity .5s ease;
}

.newsino-ew-latestgrid-card:hover .newsino-ew-latestgrid-dim {
    opacity: 1;
}

.newsino-ew-latestgrid-badge-category,
.newsino-ew-latestgrid-badge-time {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
    color: #fff;
}

.newsino-ew-latestgrid-badge-category {
    right: 12px;
    background: var(--newsino-accent-color, var(--newsino-accent));
}

.newsino-ew-latestgrid-badge-time {
    left: 12px;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(2px);
    font-weight: 400;
}

.newsino-ew-latestgrid-base {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 1;
    padding: 18px;
    transition: opacity .5s ease, transform .5s ease;
}

.newsino-ew-latestgrid-card:hover .newsino-ew-latestgrid-base {
    opacity: 0;
    transform: translateY(10px);
}

.newsino-ew-latestgrid-base-title {
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsino-ew-latestgrid-reveal {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease;
}

.newsino-ew-latestgrid-card:hover .newsino-ew-latestgrid-reveal {
    opacity: 1;
    transform: translateY(0);
}

.newsino-ew-latestgrid-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--newsino-accent-color, var(--newsino-accent));
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.newsino-ew-latestgrid-kicker .bar {
    width: 4px;
    height: 14px;
    border-radius: 999px;
    background: currentColor;
}

.newsino-ew-latestgrid-reveal-title {
    color: #fff;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.6;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsino-ew-latestgrid-excerpt {
    color: #e5e7eb;
    font-size: 13px;
    line-height: 1.8;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newsino-ew-latestgrid-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    color: #e5e7eb;
    font-size: 11px;
}

.newsino-ew-latestgrid-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.newsino-ew-latestgrid-meta .read-more {
    margin-right: auto;
    color: var(--newsino-accent-color, var(--newsino-accent));
    font-weight: 700;
}
