/**
 * Shared page chrome for the public inner pages (promo, layanan, …).
 *
 * The `pr-` prefix is historical — these blocks started out in promo.css and
 * the class names are kept so no markup had to change when they were extracted.
 * Any inner page may use them; page-specific styles live in its own file.
 * Design tokens come from site.css (:root).
 */

.pr-page {
    overflow-x: clip;
}

/* ==========================================================================
   1. Page hero + breadcrumb
   ========================================================================== */
.pr-hero {
    position: relative;
    padding: clamp(132px, 15vw, 176px) 0 clamp(36px, 4.5vw, 56px);
    background:
        radial-gradient(900px 420px at 86% -12%, rgba(91, 149, 255, .20), transparent 60%),
        radial-gradient(720px 380px at 2% 6%, rgba(26, 109, 255, .10), transparent 58%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    color: var(--ln-navy);
    overflow: hidden;
}

/* Faint grid, faded out towards the bottom so it never fights the content. */
.pr-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(26, 109, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 109, 255, .05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 70%);
    pointer-events: none;
}

.pr-hero > .container {
    position: relative;
    z-index: 1;
}

.pr-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: 12.5px;
    font-weight: 600;
}

.pr-crumbs a {
    color: var(--ln-muted);
    text-decoration: none;
    transition: color .2s var(--ln-ease);
}

.pr-crumbs a:hover {
    color: var(--ln-blue);
}

.pr-crumbs li[aria-current] {
    color: var(--ln-navy);
    max-width: min(100%, 460px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pr-crumbs .pr-crumb-sep {
    color: #b9c4d6;
    font-size: 11px;
}

.pr-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border-radius: 999px;
    background: var(--ln-blue-tint);
    color: var(--ln-blue-dark);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.pr-hero h1 {
    font-size: clamp(26px, 4.2vw, 46px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--ln-navy);
    margin: 0 0 14px;
    max-width: 24ch;
}

.pr-hero h1 span {
    background: var(--ln-grad-soft);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pr-hero-lead {
    font-size: clamp(13.5px, 1.5vw, 16px);
    line-height: 1.8;
    color: var(--ln-muted);
    margin: 0;
    max-width: 62ch;
}

.pr-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.pr-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 17px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ln-line);
    box-shadow: var(--ln-sh-xs);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ln-navy);
}

.pr-hero-pill i {
    font-size: 13px;
    color: var(--ln-blue);
}

/* ==========================================================================
   2. Shared bits
   ========================================================================== */
.pr-body {
    padding: clamp(40px, 5vw, 72px) 0 clamp(52px, 6vw, 88px);
    background: linear-gradient(180deg, #f7faff 0%, var(--ln-sky) 100%);
}

.pr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s var(--ln-ease), box-shadow .25s var(--ln-ease),
        background-color .25s var(--ln-ease), color .25s var(--ln-ease);
}

.pr-btn-primary {
    background: var(--ln-grad);
    color: #fff;
    box-shadow: 0 12px 28px rgba(26, 109, 255, .3);
}

.pr-btn-primary:hover,
.pr-btn-primary:focus {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(26, 109, 255, .4);
}

.pr-btn-ghost {
    background: #fff;
    color: var(--ln-navy);
    border: 1px solid var(--ln-line);
    box-shadow: var(--ln-sh-xs);
}

.pr-btn-ghost:hover,
.pr-btn-ghost:focus {
    color: var(--ln-blue-dark);
    border-color: rgba(26, 109, 255, .3);
    transform: translateY(-3px);
    box-shadow: var(--ln-sh-sm);
}

/* Status pills, shared by cards and the detail page */
.pr-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .03em;
    white-space: nowrap;
}

.pr-pill i {
    font-size: 11px;
}

.pr-pill--promo {
    background: var(--ln-grad);
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 5px 14px rgba(26, 109, 255, .28);
}

.pr-pill--date {
    background: var(--ln-sky-2);
    border: 1px solid var(--ln-line);
    color: var(--ln-navy);
    letter-spacing: 0;
    font-weight: 700;
}

.pr-pill--date i {
    color: var(--ln-blue);
}

.pr-pill--soon {
    background: #fff4e5;
    border-color: #fde3bd;
    color: #b45309;
}

.pr-pill--soon i {
    color: var(--ln-amber);
}

.pr-pill--expired {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    letter-spacing: 0;
    font-weight: 700;
}

/* ==========================================================================
   4. Empty state
   ========================================================================== */
.pr-empty {
    max-width: 520px;
    margin: 0 auto;
    padding: clamp(36px, 5vw, 56px) 28px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--ln-line);
    border-radius: var(--ln-r-xl);
    box-shadow: var(--ln-sh-sm);
}

.pr-empty-icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin: 0 auto 20px;
    border-radius: 24px;
    background: var(--ln-blue-tint);
    color: var(--ln-blue);
    font-size: 32px;
}

.pr-empty h2 {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 800;
    color: var(--ln-navy);
    margin: 0 0 10px;
}

.pr-empty p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--ln-muted);
    margin: 0 0 24px;
}

/* ==========================================================================
   6. "Promo lainnya" + pagination
   ========================================================================== */
.pr-more {
    padding: clamp(44px, 6vw, 76px) 0;
    background: var(--ln-sky);
    border-top: 1px solid var(--ln-line);
}

.pr-more-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: clamp(24px, 3vw, 38px);
}

.pr-more-head h2 {
    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ln-navy);
    margin: 0;
}

.pr-more-head p {
    font-size: 13.5px;
    color: var(--ln-muted);
    margin: 6px 0 0;
}

.pr-pagination {
    margin-top: clamp(32px, 4vw, 48px);
}

.pr-pagination .pagination {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.pr-pagination .page-link {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ln-line);
    border-radius: 12px;
    background: #fff;
    color: var(--ln-navy);
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: var(--ln-sh-xs);
    transition: all .25s var(--ln-ease);
}

.pr-pagination .page-link:hover {
    background: var(--ln-sky-2);
    border-color: rgba(26, 109, 255, .3);
    color: var(--ln-blue-dark);
}

.pr-pagination .page-item.active .page-link {
    background: var(--ln-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(26, 109, 255, .3);
}

.pr-pagination .page-item.disabled .page-link {
    background: #f8fafc;
    color: #b9c4d6;
    box-shadow: none;
}

/* ==========================================================================
   7. Responsive
   ========================================================================== */
@media (max-width: 767.98px) {
    .pr-hero {
        padding-top: clamp(118px, 20vw, 150px);
    }

    .pr-hero h1 {
        max-width: none;
    }

    .pr-more-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .pr-hero-meta {
        gap: 8px;
    }

    .pr-hero-pill {
        padding: 8px 13px;
        font-size: 11.5px;
    }

    .pr-pagination .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 12.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pr-page *,
    .pr-page *::before,
    .pr-page *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
