/* =====================================================
   HALAMAN ARTIKEL (user)  -  prefix: ar-
   Letakkan di public/style/artikel-page.css
   ===================================================== */
.ar-page { background: #ffffff; color: #111111; font-family: 'Inter', sans-serif; min-height: 100vh; }
.ar-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.ar-hero {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    min-height: 44vh; padding: 150px 20px 90px; text-align: center; color: #ffffff;
    background: #0d0d0d url('../img/rawbg.webp') center / cover no-repeat;
}
.ar-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.ar-hero__inner { position: relative; z-index: 1; max-width: 880px; }
.ar-hero__title {
    font-family: 'Swiss721', 'Montserrat', sans-serif; font-size: 56px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; line-height: 1.1; text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.ar-hero__title--detail { font-size: 40px; text-transform: none; letter-spacing: 0.5px; }
.ar-hero__sub { margin-top: 16px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.88); }
.ar-hero__meta { margin-top: 18px; font-size: 14px; color: #FFE066; font-weight: 500; }

/* Pencarian */
.ar-search {
    position: relative; z-index: 2; display: flex; gap: 8px; max-width: 640px;
    margin: -30px auto 0; padding: 8px; background: #ffffff; border-radius: 60px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}
.ar-search input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    padding: 12px 18px; font-family: inherit; font-size: 15px; color: #111111;
}
.ar-search button {
    border: 0; border-radius: 50px; padding: 0 28px; cursor: pointer;
    background: #0c632e; color: #ffffff; font-family: inherit; font-size: 15px; font-weight: 600;
    transition: background 0.25s ease;
}
.ar-search button:hover { background: #094a22; }
.ar-search input:focus-visible, .ar-search button:focus-visible { outline: 2px solid #0c632e; outline-offset: 2px; }
.ar-note { margin-top: 28px; text-align: center; color: #555555; font-size: 15px; }
.ar-note a { color: #0c632e; font-weight: 600; text-decoration: underline; }

/* Grid kartu */
.ar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 48px 0 0; }
.ar-card {
    display: flex; flex-direction: column; overflow: hidden; border-radius: 14px;
    background: #ffffff; border: 1px solid #eeeeee; color: inherit; text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}
.ar-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1); }
.ar-card__media { aspect-ratio: 16 / 10; background: #f4f4f4; overflow: hidden; }
.ar-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-card__body { padding: 20px 22px 24px; }
.ar-card__meta { font-size: 13px; color: #777777; margin-bottom: 8px; }
.ar-card__title { font-family: 'Swiss721', 'Montserrat', sans-serif; font-size: 21px; line-height: 1.3; font-weight: 700; color: #111111; }
.ar-card__excerpt { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: #555555;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.ar-empty { padding: 90px 20px; text-align: center; color: #666666; font-size: 16px; }

/* Pagination */
.ar-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 56px 0 90px; }
.ar-pager__item {
    min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #dddddd; border-radius: 10px; font-size: 15px; color: #111111; text-decoration: none; background: #ffffff;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
a.ar-pager__item:hover { border-color: #0c632e; color: #0c632e; }
.ar-pager__item.is-active { background: #0c632e; border-color: #0c632e; color: #ffffff; font-weight: 600; }
.ar-pager__item.is-disabled { color: #bbbbbb; background: #fafafa; }

/* Detail artikel */
.ar-article { max-width: 820px; margin: 0 auto; padding: 0 24px 80px; }
.ar-article__cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin-top: -40px; position: relative; z-index: 2; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); }
.ar-body { margin-top: 44px; font-size: 18px; line-height: 1.85; color: #222222; overflow-wrap: break-word; }
.ar-body p { margin-bottom: 1.3em; }
.ar-body h2 { font-family: 'Swiss721', 'Montserrat', sans-serif; font-size: 28px; line-height: 1.3; margin: 1.8em 0 0.6em; color: #111111; }
.ar-body h3 { font-family: 'Swiss721', 'Montserrat', sans-serif; font-size: 22px; line-height: 1.35; margin: 1.6em 0 0.5em; color: #111111; }
.ar-body a { color: #0c632e; text-decoration: underline; }
.ar-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.2em auto; display: block; }
.ar-body ul, .ar-body ol { margin: 0 0 1.3em 1.5em; }
.ar-body li { margin-bottom: 0.4em; }
.ar-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid #FFE066; color: #444444; font-style: italic; }
.ar-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 16px; display: block; overflow-x: auto; }
.ar-body th, .ar-body td { border: 1px solid #dddddd; padding: 10px 12px; text-align: left; }

.ar-video { margin: 2.2em 0; display: flex; justify-content: center; background: #000000; border-radius: 14px; overflow: hidden; }
.ar-video video { display: block; width: 100%; max-height: 78vh; background: #000000; }
.ar-video.is-portrait video { width: auto; max-width: 100%; height: 78vh; }

.ar-back { display: inline-block; margin-top: 40px; color: #0c632e; font-weight: 600; text-decoration: none; border-bottom: 2px solid #FFE066; padding-bottom: 2px; }
.ar-back:hover { border-bottom-color: #0c632e; }

.ar-more { padding-bottom: 90px; }
.ar-more__title { font-family: 'Swiss721', 'Montserrat', sans-serif; font-size: 28px; }
.ar-more .ar-grid { margin-top: 24px; }

@media (max-width: 960px) {
    .ar-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 640px) {
    .ar-hero { padding: 120px 18px 70px; min-height: 36vh; }
    .ar-hero__title { font-size: 32px; }
    .ar-hero__title--detail { font-size: 26px; }
    .ar-hero__sub { font-size: 15px; }
    .ar-wrap { padding: 0 16px; }
    .ar-grid { grid-template-columns: 1fr; }
    .ar-search button { padding: 0 20px; }
    .ar-article { padding: 0 16px 60px; }
    .ar-body { font-size: 16.5px; line-height: 1.8; }
    .ar-body h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .ar-card { transition: none; } .ar-card:hover { transform: none; } }
