/* NewsArtix — Editorial News Portal */

:root {
    --ink: #0d1b2a;
    --ink-soft: #1b263b;
    --paper: #f7f4ef;
    --paper-white: #ffffff;
    --line: #e4ddd3;
    --muted: #6b7280;
    --text: #243447;
    --accent: #e85d4c;
    --accent-dark: #c94a3a;
    --accent-2: #2a9d8f;
    --gold: #d4a373;
    --shadow: 0 18px 50px rgba(13, 27, 42, 0.08);
    --shadow-sm: 0 8px 24px rgba(13, 27, 42, 0.06);
    --radius: 18px;
    --radius-sm: 12px;
    --shell: 1240px;
    --font-body: "DM Sans", system-ui, sans-serif;
    --font-display: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(232, 93, 76, 0.06), transparent 28%),
        linear-gradient(180deg, #fff 0%, var(--paper) 100%);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.shell {
    width: min(var(--shell), calc(100% - 2rem));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.topbar {
    background: var(--ink);
    color: rgba(255,255,255,0.88);
    font-size: 0.82rem;
    border-bottom: 3px solid var(--accent);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.55rem 0;
    flex-wrap: wrap;
}

.topbar-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
}

.topbar-text { flex: 1; min-width: 200px; }
.topbar-date { color: rgba(255,255,255,0.65); white-space: nowrap; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), #ff8f6b);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.brand-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1;
    color: var(--ink);
}

.brand-tag {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.nav-item {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--ink-soft);
    transition: 0.2s ease;
}

.nav-item:hover,
.nav-item.is-active {
    background: var(--ink);
    color: #fff;
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    min-width: 220px;
}

.header-search input {
    border: 0;
    background: transparent;
    padding: 0.7rem 1rem;
    width: 100%;
    font: inherit;
    outline: none;
}

.header-search button {
    border: 0;
    background: var(--ink);
    color: #fff;
    width: 42px;
    height: 42px;
    margin: 4px;
    border-radius: 50%;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.page-hero { padding: 2.5rem 0 1rem; }

.hero-panel {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 1.25rem;
}

.featured-card {
    position: relative;
    min-height: 420px;
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    color: #fff;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-end;
}

.featured-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,27,42,0.05) 20%, rgba(13,27,42,0.88) 100%);
}

.featured-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.featured-body {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 720px;
}

.featured-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.featured-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    margin: 0 0 1rem;
}

.featured-excerpt {
    margin: 0 0 1.25rem;
    color: rgba(255,255,255,0.88);
    font-size: 1.05rem;
    max-width: 58ch;
}

.featured-meta,
.card-meta,
.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.2rem;
    color: rgba(255,255,255,0.78);
    font-size: 0.9rem;
}

.hero-side { display: grid; gap: 1rem; }

.side-card {
    background: var(--paper-white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.side-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.side-card-media {
    height: 120px;
    background-size: cover;
    background-position: center;
}

.side-card-body { padding: 1rem 1.1rem 1.15rem; }

.side-card h3 {
    margin: 0.55rem 0 0;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--ink);
}

.section { padding: 2.5rem 0; }

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid var(--ink);
}

.section-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    color: var(--ink);
}

.section-head p {
    margin: 0;
    color: var(--muted);
    max-width: 42ch;
}

.filter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink-soft);
    transition: 0.2s ease;
}

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

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.news-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.news-card-media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--ink-soft), var(--accent-2));
    background-size: cover;
    background-position: center;
}

.news-card-body {
    padding: 1.15rem 1.2rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pill {
    display: inline-flex;
    width: fit-content;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(232, 93, 76, 0.1);
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.news-card h3 {
    margin: 0.75rem 0 0.65rem;
    font-size: 1.15rem;
    line-height: 1.35;
    color: var(--ink);
}

.news-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.86rem;
    color: var(--muted);
}

.read-link { color: var(--accent-dark); font-weight: 700; }
.read-link:hover { color: var(--ink); }

.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.popular-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.rank-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gold);
    color: var(--ink);
    font-weight: 800;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 0 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 600;
}

.pagination a:hover,
.pagination .active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.cta-band {
    position: relative;
    margin-top: 2rem;
    padding: 0;
    border-radius: calc(var(--radius) + 2px);
    background-color: var(--ink);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.78), rgba(36, 59, 83, 0.72));
    z-index: 0;
}

.cta-band-inner {
    position: relative;
    z-index: 1;
    padding: 2.5rem 2rem;
}

.cta-band h2 {
    margin: 0 0 0.6rem;
    font-family: var(--font-display);
    font-size: 2rem;
    color: #fff;
}

.cta-band p {
    margin: 0 0 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary { background: #fff; color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); }

.empty-state {
    padding: 3rem 2rem;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.article-page {
    padding: 1.5rem 0 3rem;
    background: #fff;
}

.breadcrumb-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.25rem;
}

.breadcrumb-bar a:hover { color: #111; }

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2rem;
    align-items: start;
}

.article-shell {
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.article-cover {
    width: 100%;
    margin: 0 0 1.5rem;
    overflow: hidden;
}

.article-cover img {
    display: block;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.article-inline-image {
    margin: 1.25rem 0 1.75rem;
}

.article-inline-image img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.article-main { padding: 0; }

.article-kicker { margin-bottom: 0.75rem; }

.article-page .pill {
    background: transparent;
    padding: 0;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.article-title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.2;
    color: #111;
    font-weight: 700;
}

.article-meta-bar {
    color: #666;
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 0.95rem;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #111;
    background: #fff;
}

.article-content p {
    margin: 0 0 1rem;
    color: #111;
}

.article-content h2,
.article-content h3 {
    font-family: var(--font-body, var(--font-display));
    color: #111;
    margin: 2rem 0 0.75rem;
    font-weight: 700;
}

.article-content h2 {
    font-size: 1.35rem;
    padding-left: 0;
    border-left: none;
}

.article-content h3 {
    font-size: 1.15rem;
}

.article-content ul,
.article-content ol {
    padding-left: 1.5rem;
    margin: 0 0 1rem;
    color: #111;
}

.article-content li {
    margin-bottom: 0.35rem;
}

.article-content a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: #333;
}

/* Rapikan semua box/container dari generator — tampil sebagai teks biasa */
.article-content .feature-card,
.article-content .info-box,
.article-content .highlight-box,
.article-content .success-box,
.article-content .article-intro,
.article-content .article-source,
.article-content .myryda-link-box,
.article-content .feature-grid {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0 0 1rem;
    box-shadow: none;
}

.article-content .feature-grid {
    display: block;
}

.article-content .article-source {
    margin-top: 2rem;
    font-size: 0.8rem;
    line-height: 1.3;
    color: #555;
}

.article-content .article-source h2 {
    font-size: 0.95rem;
    margin: 0 0 0.35rem;
    font-weight: 700;
    color: #111;
}

.article-content .article-source ul {
    margin: 0;
    padding-left: 1rem;
}

.article-content .article-source li {
    margin: 0 0 0.15rem;
    padding: 0;
    line-height: 1.3;
}

.article-content .article-source a {
    font-size: inherit;
    color: #555;
}

.article-content .feature-icon {
    display: none;
}

.article-content .article-image {
    margin: 1.5rem 0;
    text-align: left;
}

.article-content .article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.article-content .article-image p {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.article-content .myryda-article-logo {
    text-align: center;
    margin: 0 0 1.5rem;
    padding: 0;
}

.article-content .myryda-article-logo a {
    display: inline-block;
}

.article-content .myryda-article-logo img {
    display: block;
    max-width: 100px;
    height: auto;
    margin: 0 auto;
}

.article-content .article-cta,
.article-content p[style] {
    background: transparent !important;
    border: none !important;
    border-left: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 1.5rem 0 0 !important;
    color: #111 !important;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 1rem;
    border: none;
}

.comparison-table th,
.comparison-table td {
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
    color: #111;
}

.comparison-table thead {
    background: transparent;
    color: #111;
}

.comparison-table thead th {
    font-weight: 700;
    border-bottom: 2px solid #111;
}

.share-block {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.share-block h3 { margin: 0 0 1rem; font-size: 1.1rem; }

.share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
}

.btn-share-facebook { background: #1877f2; }
.btn-share-twitter { background: #111; }
.btn-share-linkedin { background: #0a66c2; }
.btn-share-whatsapp { background: #25d366; }

.sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 1rem;
}

.widget {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem;
    box-shadow: var(--shadow-sm);
}

.widget h3 {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--ink);
}

.toc-list { list-style: none; margin: 0; padding: 0; }

.toc-list a {
    display: block;
    padding: 0.45rem 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--accent-dark);
    font-weight: 700;
}

.widget-cta {
    background: linear-gradient(160deg, var(--ink), #33415c);
    color: #fff;
    border: 0;
}

.widget-cta h3 {
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

.widget-cta p {
    color: rgba(255,255,255,0.82);
    margin: 0 0 1rem;
}

.widget-cta .btn-primary { width: 100%; }

.related-item {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
}

.related-item:last-child { border-bottom: 0; padding-bottom: 0; }

.related-item h4 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--ink);
}

.related-item span { font-size: 0.82rem; color: var(--muted); }
.related-item:hover h4 { color: var(--accent-dark); }

.site-footer {
    margin-top: 3rem;
    background: var(--ink);
    color: rgba(255,255,255,0.78);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0 2rem;
}

.footer-grid h4 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 1rem;
}

.footer-brand p { margin: 1rem 0 0; max-width: 42ch; }
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-tag { color: rgba(255,255,255,0.55); }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
    padding: 1.1rem 0 1.6rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
}

.admin-body { background: var(--paper); min-height: 100vh; }
.admin-login, .admin-wrap { width: min(1100px, calc(100% - 2rem)); margin: 2rem auto; }
.admin-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

@media (max-width: 1024px) {
    .hero-panel,
    .articles-grid,
    .popular-grid,
    .footer-grid,
    .article-layout { grid-template-columns: 1fr; }

    .header-inner { grid-template-columns: 1fr auto; }
    .site-nav, .header-search { grid-column: 1 / -1; }
    .site-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0;
    }
    .site-nav.is-open { display: flex; }
    .nav-toggle { display: inline-block; justify-self: end; }
    .sidebar { position: static; }
}

@media (max-width: 640px) {
    .shell { width: min(var(--shell), calc(100% - 1rem)); }
    .featured-card { min-height: 340px; }
    .article-main { padding: 1.25rem; }
    .topbar-text { display: none; }
}
