/* ============================================
   Featured Articles Widget — style.css
   ============================================ */

/* Reset links */
.faw-widget a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.faw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.faw-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.2;
}

.faw-view-all {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d8c4e;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.faw-view-all:hover {
    color: #1a6b35;
}

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

.faw-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.faw-card:hover {
    transform: translateY(-3px);
}

.faw-card-image-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 14px;
}

.faw-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.faw-no-image {
    background: #e0e0e0;
}

/* Badge (on image) */
.faw-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #2d8c4e;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    pointer-events: none;
}

.faw-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.faw-post-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
    line-height: 1.35;
    transition: color 0.2s;
}
.faw-card:hover .faw-post-title,
.faw-list-item:hover .faw-post-title {
    color: #2d8c4e;
}

.faw-excerpt {
    font-size: 0.88rem;
    color: #555b6e;
    margin: 0 0 14px;
    line-height: 1.55;
    flex: 1;
}

.faw-meta {
    font-size: 0.82rem;
    color: #8a8fa8;
    margin-top: auto;
}

/* ─── MOBILE LIST (hidden on desktop) ─── */
.faw-list {
    display: none;
    flex-direction: column;
    gap: 28px;
}

.faw-list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    padding-bottom: 28px;
    border-bottom: 1px solid #f0f0f0;
}
.faw-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faw-list-image-wrap {
    position: relative;
    flex-shrink: 0;
}

.faw-list-image {
    width: 120px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.faw-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.faw-list-cat {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2d8c4e;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.faw-list-body .faw-post-title {
    font-size: 1rem;
    margin-bottom: 6px;
}

.faw-list-body .faw-meta {
    font-size: 0.8rem;
}

/* No posts */
.faw-no-posts {
    color: #999;
    font-style: italic;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 767px) {
    .faw-grid {
        display: none !important;
    }
    .faw-list {
        display: flex !important;
    }
    .faw-section-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .faw-grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .faw-grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
