/* Articles page styles */

/* =========================================================
   ARTIKEL SUZUKI KALIMALANG
========================================================= */

.article-page {
    --article-ink: #171923;
    --article-muted: #707786;
    --article-line: #e8eaf0;
    --article-accent: var(--primary, #dc2626);
    color: var(--article-ink);
    padding-bottom: 76px;
}

.article-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.article-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 58px;
    background:
        radial-gradient(ellipse at 90% 10%, rgba(220,38,38,.10), transparent 36%),
        linear-gradient(135deg, #f8f9fc 0%, #fff 58%, #f7f7fa 100%);
    border-bottom: 1px solid var(--article-line);
}

.article-hero-inner {
    max-width: 820px;
}

.article-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--article-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.article-eyebrow::before {
    content: "";
    width: 30px;
    height: 3px;
    background: currentColor;
    border-radius: 5px;
}

.article-hero h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -1.8px;
    font-weight: 850;
}

.article-hero h1 span {
    color: var(--article-accent);
}

.article-hero-description {
    max-width: 660px;
    margin: 20px 0 0;
    color: var(--article-muted);
    font-size: 16px;
    line-height: 1.85;
}

.article-search {
    display: flex;
    gap: 10px;
    width: min(590px, 100%);
    margin-top: 28px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e4e6ec;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(20, 24, 40, .055);
}

.article-search input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 0;
    outline: none;
    background: transparent;
    color: inherit;
    font: inherit;
}

.article-search input:focus {
    outline: none;
}

.article-search button {
    flex-shrink: 0;
    padding: 12px 20px;
    border: 0;
    border-radius: 10px;
    background: var(--article-accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
}

.article-search button:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.article-content {
    padding-top: 44px;
}

.article-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 24px;
}

.article-section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 850;
    letter-spacing: -.8px;
}

.article-section-heading p {
    margin: 8px 0 0;
    color: var(--article-muted);
    font-size: 14px;
    line-height: 1.7;
}

.article-count {
    flex-shrink: 0;
    color: var(--article-muted);
    font-size: 13px;
}

/* Artikel unggulan */
.article-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    overflow: hidden;
    margin-bottom: 48px;
    border: 1px solid var(--article-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(20, 24, 40, .055);
}

.article-featured-media {
    position: relative;
    min-height: 340px;
    background: #f0f1f5;
}

.article-featured-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    transition: transform .5s;
}

.article-featured:hover .article-featured-media img {
    transform: scale(1.035);
}

.article-featured-label {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--article-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.article-featured-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(24px, 4vw, 44px);
}

.article-featured-kicker {
    margin-bottom: 14px;
    color: var(--article-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.article-featured-body h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.2;
    letter-spacing: -.9px;
}

.article-featured-body h2 a,
.article-card-title a {
    color: inherit;
    text-decoration: none;
}

.article-featured-body h2 a:hover,
.article-card-title a:hover {
    color: var(--article-accent);
}

.article-featured-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 16px 0 24px;
    color: var(--article-muted);
    font-size: 14px;
    line-height: 1.9;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.article-read-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--article-accent);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.article-read-link span {
    transition: transform .2s;
}

.article-read-link:hover span {
    transform: translateX(5px);
}

/* Grid kartu */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.article-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--article-line);
    border-radius: 17px;
    background: #fff;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: #d9dce5;
    box-shadow: 0 16px 36px rgba(20, 24, 40, .09);
}

.article-card-media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f0f1f5;
}

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

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

.article-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
}

.article-card-category {
    margin: 0 0 11px;
    color: var(--article-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.article-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -.35px;
}

.article-card-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 12px 0 22px;
    color: var(--article-muted);
    font-size: 13px;
    line-height: 1.85;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.article-card-body .article-read-link {
    margin-top: auto;
}

.article-empty {
    grid-column: 1 / -1;
    padding: 56px 24px;
    border: 1px dashed #d9dce5;
    border-radius: 18px;
    background: #fafbfc;
    text-align: center;
}

.article-empty-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: #f0f1f5;
    color: #858b99;
}

.article-empty-icon svg {
    width: 28px;
    height: 28px;
}

.article-empty h2 {
    margin: 0 0 10px;
    font-size: 23px;
}

.article-empty p {
    margin: 0 auto 20px;
    max-width: 450px;
    color: var(--article-muted);
    font-size: 14px;
    line-height: 1.8;
}

.article-reset-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 10px;
    background: var(--article-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

/* Pagination */
.article-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 42px;
}

.article-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--article-line);
    border-radius: 10px;
    background: #fff;
    color: var(--article-ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s;
}

.article-page-link:hover,
.article-page-link.is-active {
    border-color: var(--article-accent);
    background: var(--article-accent);
    color: #fff;
}

.article-page-link.is-disabled {
    opacity: .4;
    pointer-events: none;
}

/* Responsif */
@media (max-width: 900px) {
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .article-featured {
        grid-template-columns: 1fr 1fr;
    }

    .article-featured-media,
    .article-featured-media img {
        min-height: 300px;
    }
}

@media (max-width: 620px) {
    .article-container {
        width: min(100% - 28px, 1180px);
    }

    .article-hero {
        padding: 42px 0 38px;
    }

    .article-hero h1 {
        letter-spacing: -1px;
    }

    .article-hero-description {
        font-size: 14px;
    }

    .article-search {
        gap: 4px;
        border-radius: 12px;
    }

    .article-search input {
        padding: 10px;
        font-size: 13px;
    }

    .article-search button {
        padding: 10px 13px;
        font-size: 12px;
    }

    .article-content {
        padding-top: 32px;
    }

    .article-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .article-featured {
        grid-template-columns: 1fr;
        margin-bottom: 36px;
        border-radius: 16px;
    }

    .article-featured-media,
    .article-featured-media img {
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .article-featured-body {
        padding: 23px;
    }

    .article-featured-body h2 {
        font-size: 27px;
    }

    .article-featured-excerpt {
        -webkit-line-clamp: 3;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .article-card {
        display: grid;
        grid-template-columns: 115px minmax(0, 1fr);
        border-radius: 13px;
    }

    .article-card-media {
        aspect-ratio: auto;
        height: 100%;
        min-height: 155px;
    }

    .article-card-body {
        padding: 15px;
    }

    .article-card-category {
        margin-bottom: 7px;
        font-size: 9px;
        letter-spacing: 1px;
    }

    .article-card-title {
        font-size: 16px;
        line-height: 1.35;
    }

    .article-card-excerpt {
        margin: 8px 0 13px;
        font-size: 12px;
        line-height: 1.65;
        -webkit-line-clamp: 2;
    }

    .article-card-body .article-read-link {
        font-size: 12px;
    }

    .article-pagination {
        gap: 6px;
        margin-top: 30px;
    }

    .article-page-link {
        min-width: 36px;
        min-height: 36px;
        padding: 0 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-page *,
    .article-page *::before,
    .article-page *::after {
        transition: none !important;
    }
}
