/* ==========================================================================
   Ciputra Hospital - Artikel (Articles) Page Styles
   Health articles listing with tag filters, vertical card layout, pagination
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page wrapper & container
   -------------------------------------------------------------------------- */
.artikel-page {
    width: 100%;
    background: #F9F9F9;
    padding: 40px 0 60px;
    box-sizing: border-box;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
}

.artikel-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   2. Header section
   -------------------------------------------------------------------------- */
.artikel-header {
    margin-bottom: 32px;
    text-align: left;
}

.artikel-heading {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.25;
    color: #3F4153;
    margin: 0 0 8px;
}

.artikel-subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: #8B8C8D;
    margin: 0;
}

/* --------------------------------------------------------------------------
   3. Tag filter buttons
   -------------------------------------------------------------------------- */
.artikel-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    align-items: center;
}

.artikel-filter-btn {
    display: inline-flex;
    align-items: center;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #D5D5D5;
    background: #F2F2F2;
    color: #3F4153;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    -webkit-user-select: none;
    user-select: none;
}

.artikel-filter-btn:hover {
    background: #E8F1FA;
    border-color: #2B7ACC;
    color: #2B7ACC;
}

.artikel-filter-btn.is-active {
    background: #2B7ACC;
    border-color: #2B7ACC;
    color: #FFFFFF;
}

.artikel-filter-btn.is-active:hover {
    background: #4A9FE5;
    border-color: #4A9FE5;
}

/* Extra filters (hidden by default via HTML hidden attribute) */
.artikel-filters-extra[hidden] {
    display: none;
}

.artikel-filters-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

/* Toggle "Show more / Show less" text button */
.artikel-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #8B8C8D;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    transition: color 0.2s ease;
}

.artikel-filter-toggle:hover {
    color: #2B7ACC;
}

/* --------------------------------------------------------------------------
   4. Article list (vertical stack)
   -------------------------------------------------------------------------- */
.artikel-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* --------------------------------------------------------------------------
   5. Article card — "Neat Little Rose" horizontal layout
   -------------------------------------------------------------------------- */
.artikel-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #FFFFFF;
    border-bottom: 1px solid #EBEBEB;
    padding: 20px 0;
    transition: background 0.15s ease;
}

.artikel-card:first-child {
    padding-top: 0;
}

.artikel-card:last-child {
    border-bottom: none;
}

.artikel-card:hover {
    background: #FAFBFC;
}

/* Card thumbnail — small fixed preview on left */
.artikel-card-image {
    display: block;
    flex-shrink: 0;
    width: 140px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}

.artikel-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artikel-card:hover .artikel-card-image img {
    transform: scale(1.05);
}

/* Card body — content on right */
.artikel-card-body {
    flex: 1;
    min-width: 0;
    padding: 0;
}

/* Card title */
.artikel-card-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.35;
    color: #3F4153;
    margin: 0 0 6px;
}

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

.artikel-card-title a:hover {
    color: #2B7ACC;
}

/* Card meta row */
.artikel-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1;
    color: #8B8C8D;
    margin-bottom: 8px;
}

.artikel-card-meta time {
    color: #8B8C8D;
}

.artikel-card-meta-sep {
    color: #D5D5D5;
    font-size: 10px;
    line-height: 1;
}

/* Tag pill badge inside a card */
.artikel-card-tag {
    display: inline-block;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 11px;
    line-height: 1;
    padding: 3px 8px;
    border-radius: 999px;
    background: #E8F1FA;
    color: #2B7ACC;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.artikel-card-tag:hover {
    background: #2B7ACC;
    color: #FFFFFF;
}

/* Card excerpt */
.artikel-card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #8B8C8D;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   6. Pagination
   -------------------------------------------------------------------------- */
.artikel-pagination {
    margin-top: 48px;
    text-align: center;
}

.artikel-pagination .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.artikel-pagination a,
.artikel-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    border-radius: 10px;
    border: 1px solid #EBEBEB;
    background: #FFFFFF;
    color: #3F4153;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

.artikel-pagination a:hover {
    background: #E8F1FA;
    border-color: #2B7ACC;
    color: #2B7ACC;
}

.artikel-pagination .current {
    background: #2B7ACC;
    border-color: #2B7ACC;
    color: #FFFFFF;
}

.artikel-pagination .prev,
.artikel-pagination .next {
    font-size: 13px;
    padding: 0 14px;
}

.artikel-pagination .dots {
    border: none;
    background: none;
    color: #8B8C8D;
    min-width: auto;
    padding: 0 2px;
}

/* --------------------------------------------------------------------------
   7. Empty state
   -------------------------------------------------------------------------- */
.artikel-empty {
    text-align: center;
    padding: 60px 20px;
    color: #8B8C8D;
    font-size: 16px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   8. Responsive - Tablet (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .artikel-page {
        padding: 32px 0 48px;
    }

    .artikel-container {
        padding: 0 16px;
    }

    .artikel-heading {
        font-size: 28px;
    }

    .artikel-header {
        margin-bottom: 24px;
    }

    .artikel-filters {
        margin-bottom: 24px;
    }

    .artikel-card {
        gap: 16px;
        padding: 16px 0;
    }

    .artikel-card-image {
        width: 120px;
        height: 86px;
        border-radius: 8px;
    }

    .artikel-card-title {
        font-size: 16px;
    }

    .artikel-pagination {
        margin-top: 36px;
    }
}

/* --------------------------------------------------------------------------
   9. Responsive - Mobile (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .artikel-page {
        padding: 24px 0 40px;
    }

    .artikel-container {
        padding: 0 12px;
    }

    .artikel-heading {
        font-size: 24px;
    }

    .artikel-subtitle {
        font-size: 14px;
    }

    .artikel-header {
        margin-bottom: 20px;
    }

    .artikel-filters {
        gap: 6px;
        margin-bottom: 20px;
    }

    .artikel-filter-btn {
        font-size: 13px;
        padding: 6px 12px;
    }

    .artikel-list {
        gap: 16px;
    }

    .artikel-card {
        gap: 12px;
        padding: 14px 0;
    }

    .artikel-card-image {
        width: 96px;
        height: 72px;
        border-radius: 8px;
    }

    .artikel-card-title {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .artikel-card-meta {
        font-size: 12px;
        gap: 6px;
        margin-bottom: 4px;
    }

    .artikel-card-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .artikel-pagination a,
    .artikel-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        border-radius: 8px;
    }

    .artikel-pagination .prev,
    .artikel-pagination .next {
        padding: 0 10px;
        font-size: 12px;
    }
}
