/* ═══════════════════════════════════════
   SPOTLIGHT (index artikel)
   Dibangun DI ATAS portofolio.css — memakai
   pola yang sama (porto-badge, porto-main-title,
   cat-group, fade reveal). File ini hanya berisi
   tambahan khusus kartu artikel & pagination.
═══════════════════════════════════════ */

/* ── FEATURED CARD (artikel terbaru) ── */
.featured-card {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.09);
    box-shadow: 0 4px 24px rgba(11, 31, 58, 0.07);
    overflow: hidden;
    text-decoration: none;
    transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
    min-height: 320px;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(11, 31, 58, 0.12);
    border-color: rgba(37, 99, 235, 0.18);
}

.featured-media {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s ease;
}

.featured-card:hover .featured-media img {
    transform: scale(1.04);
}

/* Fallback cover — dipakai saat artikel belum punya gambar.
   Pola visual sama: gradient brand + pola grid + ikon + judul. */
.art-fallback {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    color: #fff;
    font-family: 'Sora', sans-serif;
    background:
        radial-gradient(80% 120% at 15% 10%, rgba(255,255,255,.14), transparent 55%),
        radial-gradient(90% 140% at 90% 90%, rgba(6,182,212,.45), transparent 60%),
        linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #06b6d4 100%);
    overflow: hidden;
}

.art-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.fallback-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.28);
    font-size: 1.5rem;
    backdrop-filter: blur(4px);
}

.fallback-title {
    position: relative;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-shadow: 0 2px 12px rgba(11,31,58,.25);
}

.fallback-tag {
    position: relative;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.25);
}

.featured-fallback { min-height: 320px; }

.featured-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(22px, 3.5vw, 44px);
    gap: 14px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #7a8fa6;
}

.featured-badge {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
}

.featured-tag {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 999px;
}

.featured-dot { color: #b6c2cd; }

.featured-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 800;
    color: #0b1f3a;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0;
}

.featured-excerpt {
    color: #7a8fa6;
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    color: #2563eb;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 4px;
    transition: gap .2s ease;
}

.featured-card:hover .featured-link { gap: 12px; }

/* ── GRID ARTIKEL ── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

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

@media(max-width:640px) {
    .articles-grid { grid-template-columns: 1fr; }
}

.article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(37, 99, 235, 0.09);
    box-shadow: 0 4px 24px rgba(11, 31, 58, 0.07);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(11, 31, 58, 0.12);
    border-color: rgba(37, 99, 235, 0.16);
}

.article-card-media {
    display: block;
    height: 190px;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    text-decoration: none;
}

.article-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.article-card:hover .article-card-media img {
    transform: scale(1.06);
}

.article-card-fallback {
    height: 100%;
    min-height: 190px;
}

.article-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 20px 20px 22px;
    gap: 10px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #7a8fa6;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.meta-dot { color: #b6c2cd; }

.article-card-title {
    margin: 0;
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0b1f3a;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.article-card-title a:hover { color: #2563eb; }

.article-card-excerpt {
    margin: 0;
    color: #7a8fa6;
    font-size: 0.92rem;
    line-height: 1.6;
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    word-break: break-word;
}

.article-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}

.article-card-tag {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 6px 12px;
    border-radius: 999px;
}

.article-card-link {
    color: #2563eb;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s ease;
}

.article-card:hover .article-card-link { gap: 10px; }

/* ── PAGINATION ── */
.articles-pager {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 44px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.pager-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: #2563eb;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.pager-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.14);
    background: #f6f9ff;
}

.pager-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.pager-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pager-number {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.14);
    color: #2563eb;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.pager-number:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
}

.pager-number.active {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
}

@media (max-width:600px) {
    .articles-pager { gap: 8px; }
    .pager-number { min-width: 36px; height: 36px; }
    .pager-btn { padding: 8px 14px; font-size: 0.84rem; }
}

@media (max-width:820px) {
    .featured-card { grid-template-columns: 1fr; }
    .featured-media { min-height: 220px; }
}
