/**
 * absites — News section shortcode styles.
 * Scoped under `.absites-news` to avoid Elementor conflicts.
 */

.absites-news {
    width: 100%;
    box-sizing: border-box;
}

.absites-news *,
.absites-news *::before,
.absites-news *::after {
    box-sizing: border-box;
}

/* Header row */
.absites-news__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.absites-news__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--e-global-color-primary, #c0392b);
}

.absites-news__view-all {
    font-size: 14px;
    font-weight: 500;
    color: var(--e-global-color-primary, #c0392b);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.absites-news__view-all:hover,
.absites-news__view-all:focus {
    opacity: 0.75;
    text-decoration: none;
}

/* Grid */
.absites-news__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .absites-news__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .absites-news__grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.absites-news__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
}

.absites-news__image {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 16 / 10;
    background-color: #f2f2f2;
}

.absites-news__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.absites-news__card:hover .absites-news__image img {
    transform: scale(1.04);
}

.absites-news__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.absites-news__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.absites-news__date {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--e-global-color-primary, #c0392b);
}

.absites-news__badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #6b7280;
    line-height: 1.4;
}

.absites-news__title {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    margin: 4px 0 0;
    color: var(--e-global-color-secondary, #1b2a4e);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.absites-news__title a {
    color: inherit;
    text-decoration: none;
}

.absites-news__title a:hover,
.absites-news__title a:focus {
    text-decoration: underline;
}

.absites-news__excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.absites-news__more {
    align-self: flex-start;
    font-size: 14px;
    font-weight: 600;
    color: var(--e-global-color-primary, #c0392b);
    text-decoration: none;
    margin-top: 4px;
    transition: opacity 0.2s ease;
}

.absites-news__more:hover,
.absites-news__more:focus {
    opacity: 0.75;
    text-decoration: none;
}

.absites-news__empty {
    grid-column: 1 / -1;
    padding: 24px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}
