/* ============================================================
   Elementor News Widget — Estilos
   ============================================================ */

/* ── GRID ── */
.enw-grid {
    display: grid;
    gap: 24px;
}
.enw-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.enw-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.enw-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .enw-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
    .enw-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .enw-grid { grid-template-columns: 1fr !important; }
}

/* ── CARD BASE ── */
.enw-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.enw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
}

.enw-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.enw-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.enw-card:hover .enw-card__image img {
    transform: scale(1.05);
}

.enw-card__cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 2;
}

.enw-card__body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.enw-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
}
.enw-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.enw-card__title a:hover { color: #e74c3c; }

.enw-card__meta {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.enw-card__meta svg { vertical-align: middle; margin-right: 3px; }
.enw-card__date, .enw-card__author { display: flex; align-items: center; gap: 4px; }

.enw-card__excerpt {
    font-size: .875rem;
    color: #555;
    line-height: 1.65;
    margin: 0 0 14px;
    flex: 1;
}

.enw-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e74c3c;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    align-self: flex-start;
    transition: background .2s, transform .15s;
    margin-top: auto;
}
.enw-card__btn:hover {
    background: #c0392b;
    transform: translateX(2px);
    color: #fff;
}

/* ── OVERLAY STYLE ── */
.enw-style-overlay .enw-card {
    position: relative;
    min-height: 260px;
}
.enw-style-overlay .enw-card__image {
    position: absolute;
    inset: 0;
    aspect-ratio: unset;
    border-radius: 0;
}
.enw-style-overlay .enw-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 40%, transparent);
}
.enw-style-overlay .enw-card__body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    color: #fff;
}
.enw-style-overlay .enw-card__title a,
.enw-style-overlay .enw-card__excerpt,
.enw-style-overlay .enw-card__meta { color: rgba(255,255,255,.9); }

/* ── MINIMAL STYLE ── */
.enw-style-minimal .enw-card {
    box-shadow: none;
    border-radius: 0;
    border-bottom: 1px solid #eee;
}
.enw-style-minimal .enw-card__image { aspect-ratio: 3/2; }

/* ── MAGAZINE STYLE ── */
.enw-style-magazine .enw-grid--cols-3 > .enw-card:first-child,
.enw-style-magazine .enw-grid--cols-4 > .enw-card:first-child {
    grid-column: span 2;
    flex-direction: row;
}
.enw-style-magazine .enw-grid > .enw-card:first-child .enw-card__image {
    flex: 0 0 55%;
    aspect-ratio: unset;
}
.enw-style-magazine .enw-grid > .enw-card:first-child .enw-card__title { font-size: 1.25rem; }

/* ── NO POSTS ── */
.enw-no-posts {
    color: #999;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* ── TICKER ── */
.enw-ticker {
    display: flex;
    align-items: stretch;
    background: #1a1a2e;
    overflow: hidden;
    border-radius: 4px;
    min-height: 44px;
}
.enw-ticker__label {
    flex: 0 0 auto;
    background: #c0392b;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 0 18px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}
.enw-ticker__label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    border-top: 44px solid #c0392b;
    border-right: 10px solid transparent;
}
.enw-ticker__track-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}
.enw-ticker__track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: enw-scroll linear infinite;
}
.enw-ticker[data-pause-hover="1"]:hover .enw-ticker__track {
    animation-play-state: paused;
}
@keyframes enw-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.enw-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    font-size: .875rem;
}
.enw-ticker__item a {
    color: #fff;
    text-decoration: none;
    transition: color .2s;
}
.enw-ticker__item a:hover { color: #f39c12; }
.enw-ticker__item-date {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    font-style: italic;
}
.enw-ticker__sep {
    color: #e74c3c;
    padding: 0 6px;
    font-size: 10px;
    flex: 0 0 auto;
}

/* ── FEATURED ── */
.enw-featured {
    display: grid;
    border-radius: 10px;
    overflow: hidden;
    gap: 0;
}

/* Hero layout */
.enw-featured--hero {
    grid-template-columns: 1fr 320px;
}
@media (max-width: 768px) {
    .enw-featured--hero { grid-template-columns: 1fr; }
}

/* Magazine layout */
.enw-featured--magazine {
    grid-template-columns: 1fr;
}
.enw-featured--magazine .enw-featured__secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Split layout */
.enw-featured--split {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}
@media (max-width: 640px) {
    .enw-featured--split { grid-template-columns: 1fr; }
}

.enw-featured__main,
.enw-featured__secondary {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.enw-featured__secondary { min-height: 220px; }

.enw-featured__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.enw-featured__content {
    position: relative;
    z-index: 2;
    padding: 28px 28px 24px;
}

.enw-featured__badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 3px 12px;
    border-radius: 2px;
    margin-bottom: 8px;
}
.enw-featured__cat {
    display: block;
    color: rgba(255,255,255,.7);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}
.enw-featured__main-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    margin: 0 0 10px;
}
.enw-featured__main-title a {
    color: inherit;
    text-decoration: none;
}
.enw-featured__main-title a:hover { text-decoration: underline; }

.enw-featured__excerpt {
    color: rgba(255,255,255,.82);
    font-size: .9rem;
    line-height: 1.6;
    margin: 0 0 14px;
}
.enw-featured__date {
    display: block;
    color: rgba(255,255,255,.5);
    font-size: 12px;
    margin-top: 8px;
}

/* Sidebar */
.enw-featured__sidebar {
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #eee;
}
.enw-featured__sidebar-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-bottom: 1px solid #e8e8e8;
    transition: background .2s;
}
.enw-featured__sidebar-item:hover { background: #eee; }
.enw-featured__sidebar-item:last-child { border-bottom: none; }

.enw-featured__sidebar-thumb {
    flex: 0 0 72px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    display: block;
}
.enw-featured__sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.enw-featured__sidebar-body h4 {
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 4px;
    color: #222;
}
.enw-featured__sidebar-body h4 a {
    color: inherit;
    text-decoration: none;
}
.enw-featured__sidebar-body h4 a:hover { color: #e74c3c; }
.enw-featured__sidebar-body span {
    font-size: 11px;
    color: #999;
}

/* Split body */
.enw-featured__split-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 36px;
    background: #fff;
}
.enw-featured__split-body .enw-featured__main-title {
    color: #1a1a2e;
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.enw-featured__split-body .enw-featured__main-title a { color: #1a1a2e; }
.enw-featured__split-body .enw-featured__excerpt { color: #555; }
.enw-featured__split-body .enw-featured__date { color: #999; margin-top: 14px; }
.enw-featured__split-body .enw-card__btn { margin: 14px 0 0; }
.enw-featured__split-body .enw-featured__badge,
.enw-featured__split-body .enw-featured__cat { color: #999; }
