/* ============================================================
   Artikel bisadanedu — editorial / news-magazine UI
   Headlines: Playfair Display (serif). Body: Georgia (system serif).
   UI/meta: Inter (sans-serif).
   ============================================================ */

:root {
    --ink: #0a0a0a;
    --ink-soft: #1f1f1f;
    --ink-2: #404040;
    --muted: #525252;
    --muted-soft: #737373;
    --bg: #fafaf7;
    --surface: #ffffff;
    --border: #e5e5e5;
    --border-strong: #171717;
    --accent: #c8102e;          /* newspaper red */
    --accent-soft: #ef4444;
    --brand: #1d4ed8;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
    font-size: 16px;
}
img { display: block; max-width: 100%; height: auto; }

/* ====== Navbar ====== */
.bd-navbar {
    position: sticky; top: 0; z-index: 50;
    background: linear-gradient(135deg, #0f2f78 0%, #1d4ed8 50%, #4c1d95 100%);
    color: #fff;
    box-shadow: 0 6px 20px -10px rgba(15, 23, 42, .35);
}
.bd-navbar__inner {
    max-width: 76rem; margin: 0 auto;
    padding: .75rem clamp(.9rem, 3vw, 1.5rem);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.bd-navbar__logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.bd-navbar__logo img {
    height: 1.85rem; width: auto; max-width: 9rem;
    object-fit: contain; object-position: left center;
    margin-left: -.3rem;
    filter: brightness(0) invert(1);
}
.bd-navbar__cta {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .45rem .9rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 9999px;
    background: rgba(255, 255, 255, .15);
    color: #fff; font-size: .82rem; font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
    white-space: nowrap;
}
.bd-navbar__cta:hover { background: rgba(255, 255, 255, .25); transform: translateY(-1px); }
.bd-navbar__cta svg { width: .85rem; height: .85rem; }
@media (max-width: 480px) {
    .bd-navbar__cta { font-size: .72rem; padding: .4rem .7rem; gap: .3rem; }
    .bd-navbar__cta svg { width: .75rem; height: .75rem; }
    .bd-navbar__logo img { height: 1.5rem; }
}

/* ====== Page shell ====== */
.bd-shell {
    max-width: 76rem;
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem) 5rem;
}

/* ====== Masthead (section header for list page) ====== */
.bd-masthead {
    border-top: 4px solid var(--border-strong);
    border-bottom: 1px solid #d4d4d4;
    padding: 1.1rem 0 .85rem;
    margin: 0 0 2.25rem;
    display: flex; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; gap: .75rem 1.5rem;
}
.bd-masthead__title {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-weight: 900;
    font-size: clamp(1.85rem, 2.4vw + 1rem, 3.05rem);
    letter-spacing: -.025em;
    line-height: 1;
    margin: 0;
    color: var(--ink);
}
.bd-masthead__sub {
    margin: 0;
    font-size: .72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 700;
}

/* ====== Hero (featured article) ====== */
.bd-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 0 0 2.25rem;
    padding: 0 0 2rem;
    border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
    .bd-hero {
        grid-template-columns: 1.4fr 1fr;
        gap: 2.5rem;
        align-items: center;
        margin-bottom: 2.75rem;
        padding-bottom: 2.75rem;
    }
}
.bd-hero__media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, #0f2f78 0%, #2563eb 48%, #4c1d95 100%);
    isolation: isolate;
    text-decoration: none;
    display: block;
}
.bd-hero__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bd-hero:hover .bd-hero__media img { transform: scale(1.03); }
.bd-hero__media--placeholder::before {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(112deg, rgba(56,189,248,0) 8%, rgba(56,189,248,.55) 30%, rgba(56,189,248,0) 52%),
        radial-gradient(85% 70% at 88% 0%, rgba(147,197,253,.6), transparent 52%),
        radial-gradient(80% 76% at 0% 100%, rgba(139,92,246,.5), transparent 55%);
}
.bd-hero__body { display: flex; flex-direction: column; gap: .65rem; }
.bd-hero__category {
    color: var(--accent);
    font-size: .72rem; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase;
}
.bd-hero__title {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-weight: 800;
    font-size: clamp(1.65rem, 2.4vw + 1rem, 2.65rem);
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 0;
    color: var(--ink);
}
.bd-hero__title a { color: inherit; text-decoration: none; }
.bd-hero__title a:hover { color: var(--accent); }
.bd-hero__excerpt {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink-2);
    font-family: Georgia, 'Times New Roman', serif;
}
.bd-hero__meta {
    margin-top: .25rem;
    font-size: .72rem; color: var(--muted-soft);
    text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
}

/* ====== Section divider with title ====== */
.bd-section-rule {
    border-top: 2px solid var(--border-strong);
    padding-top: .85rem;
    margin: 0 0 1.5rem;
    display: flex; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; gap: .5rem 1rem;
}
.bd-section-rule__title {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -.015em;
    margin: 0;
    color: var(--ink);
}
.bd-section-rule__count {
    font-size: .7rem; color: var(--muted);
    text-transform: uppercase; letter-spacing: .15em; font-weight: 700;
}

/* ====== Article grid ====== */
.bd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
    gap: 2.25rem 1.75rem;
}
@media (min-width: 1024px) {
    .bd-grid { gap: 2.5rem 2rem; }
}

.bd-card {
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    transition: opacity .2s ease;
}
.bd-card:hover { opacity: .96; }
.bd-card:hover .bd-card__title { color: var(--accent); }
.bd-card__media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: .85rem;
    background: linear-gradient(135deg, #0f2f78 0%, #2563eb 48%, #4c1d95 100%);
    isolation: isolate;
}
.bd-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bd-card:hover .bd-card__media img { transform: scale(1.04); }
.bd-card__media--placeholder::before {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(112deg, rgba(56,189,248,0) 8%, rgba(56,189,248,.55) 30%, rgba(56,189,248,0) 52%),
        radial-gradient(85% 70% at 88% 0%, rgba(147,197,253,.6), transparent 52%),
        radial-gradient(80% 76% at 0% 100%, rgba(139,92,246,.5), transparent 55%);
}
.bd-card__category {
    color: var(--accent);
    font-size: .68rem; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase;
    margin-bottom: .35rem;
}
.bd-card__title {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 1.2rem; font-weight: 700;
    line-height: 1.2; letter-spacing: -.01em;
    margin: 0 0 .35rem;
    color: var(--ink);
    transition: color .15s ease;
}
.bd-card__excerpt {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: .92rem; line-height: 1.55;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bd-card__meta {
    margin-top: .65rem;
    color: var(--muted-soft);
    font-size: .68rem; text-transform: uppercase;
    letter-spacing: .12em; font-weight: 700;
}

/* ====== Empty state ====== */
.bd-empty {
    text-align: center;
    padding: 5rem 1rem;
    border-top: 2px solid var(--border-strong);
    border-bottom: 1px solid var(--border);
    color: var(--muted);
}
.bd-empty__title {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 1.85rem; font-weight: 800;
    color: var(--ink); margin: 0 0 .35rem;
    letter-spacing: -.015em;
}
.bd-empty__sub { font-size: .92rem; }

/* ====== Article detail page ====== */
.bd-back {
    display: inline-flex; align-items: center; gap: .35rem;
    margin: 0 0 1.25rem;
    color: var(--muted);
    text-decoration: none;
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
}
.bd-back:hover { color: var(--ink); }
.bd-back svg { width: .8rem; height: .8rem; }

.bd-article { max-width: 44rem; margin: 0 auto; }

.bd-article__head { padding: 0 0 1.5rem; }
.bd-article__category {
    color: var(--accent);
    font-size: .72rem; font-weight: 800;
    letter-spacing: .15em; text-transform: uppercase;
    display: inline-block;
    margin-bottom: .5rem;
}
.bd-article__title {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-weight: 900;
    font-size: clamp(1.85rem, 2.4vw + 1.05rem, 3rem);
    letter-spacing: -.025em;
    line-height: 1.08;
    margin: 0 0 .65rem;
    color: var(--ink);
}
.bd-article__deck {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.12rem; line-height: 1.5;
    color: var(--ink-2);
    margin: 0 0 1.25rem;
    font-weight: 400;
}
.bd-article__meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem;
    padding: .85rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 0 0 2rem;
    font-size: .72rem; color: var(--muted);
    text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
}
.bd-article__meta-item { display: inline-flex; align-items: center; gap: .35rem; }
.bd-article__meta-item svg { width: .85rem; height: .85rem; }

.bd-article__cover {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin: 0 0 1.5rem;
    background: linear-gradient(135deg, #0f2f78 0%, #2563eb 48%, #4c1d95 100%);
}
.bd-article__cover img { width: 100%; height: 100%; object-fit: cover; }
.bd-article__cover-cap {
    margin: .5rem 0 1.5rem;
    font-size: .78rem; color: var(--muted);
    font-style: italic;
}

/* Body content (serif for readability) */
.bd-content {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.12rem;
    line-height: 1.65;
    color: var(--ink-soft);
}
.bd-content > *:first-child { margin-top: 0; }
.bd-content p { margin: 0 0 .65em; }
.bd-content p + p { margin-top: 0; }
.bd-content > p:first-of-type::first-letter {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-weight: 900;
    font-size: 4.2em;
    float: left;
    line-height: .85;
    margin: .07em .12em -.05em 0;
    color: var(--ink);
}
.bd-content h2 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-weight: 800;
    font-size: 1.55rem;
    letter-spacing: -.015em;
    line-height: 1.2;
    margin: 1.2em 0 .35em;
    color: var(--ink);
}
.bd-content h3 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.22rem;
    letter-spacing: -.01em;
    line-height: 1.25;
    margin: 1em 0 .3em;
    color: var(--ink);
}
.bd-content h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 1em 0 .3em;
    color: var(--ink);
}
.bd-content a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color .15s ease;
}
.bd-content a:hover { color: var(--accent); }
.bd-content ul, .bd-content ol { margin: 0 0 .75em; padding-left: 1.5em; }
.bd-content li { margin: .15em 0; }
.bd-content blockquote {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.4;
    margin: 1.1em 0;
    padding: 0 0 0 1.1rem;
    border-left: 3px solid var(--accent);
    color: var(--ink);
}
.bd-content img {
    width: 100%; height: auto;
    margin: 1em 0;
}
.bd-content figure { margin: 1em 0; }
.bd-content figcaption {
    margin-top: .5rem;
    font-family: 'Inter', sans-serif;
    font-size: .78rem;
    color: var(--muted);
    text-align: center;
    font-style: italic;
}
.bd-content code {
    background: #f1f5f9; padding: .15em .4em;
    border-radius: 4px; font-size: .9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.bd-content pre {
    background: #0a0a0a; color: #f5f5f5;
    padding: 1em 1.2em; border-radius: 4px;
    overflow-x: auto; font-size: .88em;
    margin: 1.5em 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    line-height: 1.5;
}
.bd-content pre code { background: transparent; padding: 0; color: inherit; }
.bd-content table {
    border-collapse: collapse; width: 100%;
    margin: 1.5em 0; font-size: .92em;
    font-family: 'Inter', sans-serif;
}
.bd-content table td, .bd-content table th {
    border-top: 1px solid var(--border);
    padding: .65em .75em; text-align: left;
}
.bd-content table th {
    border-bottom: 2px solid var(--ink);
    font-weight: 700; color: var(--ink);
}
.bd-content hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2.25em 0;
}

/* End-of-article rule + footer */
.bd-article__end {
    margin: 2.5rem 0 0;
    padding: 1.25rem 0 0;
    border-top: 4px solid var(--ink);
    color: var(--muted);
    font-size: .78rem;
    font-style: italic;
    text-align: center;
}

/* Drop empty CKEditor-ish paragraphs that contain only &nbsp; */
.bd-content p:empty { display: none; }

/* Mobile tweaks */
@media (max-width: 540px) {
    .bd-card__title { font-size: 1.08rem; }
    .bd-card__excerpt { font-size: .85rem; -webkit-line-clamp: 3; }
    .bd-content { font-size: 1rem; line-height: 1.6; }
    .bd-content p { margin-bottom: .55em; }
    .bd-content h2 { font-size: 1.32rem; margin: 1em 0 .3em; }
    .bd-content h3 { font-size: 1.12rem; margin: .85em 0 .25em; }
    .bd-content blockquote { font-size: 1.12rem; margin: .9em 0; }
    .bd-content > p:first-of-type::first-letter { font-size: 3.4em; }
    .bd-article__deck { font-size: 1rem; }
    .bd-grid { gap: 1.75rem 1.25rem; }
    .bd-hero__excerpt { font-size: .94rem; }
}
