/*
Theme Name: Dragon Press
Theme URI: https://github.com/
Author: Custom Build
Description: Editorial news theme — Deep Navy + China Red palette, asymmetric hero grid, serif headlines, ribbon-tag cards.
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --dp-navy:        #0A1F44;
    --dp-navy-deep:   #051530;
    --dp-navy-light:  #123262;
    --dp-red:         #C8102E;
    --dp-red-dark:    #970E24;
    --dp-gold:        #C9A24B;
    --dp-gray:        #F3F4F7;
    --dp-border:      #E4E7ED;
    --dp-text:        #1B2430;
    --dp-muted:       #6B7484;
    --font-heading:   'Playfair Display', serif;
    --font-body:      'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background: #F7F8FA;
    color: var(--dp-text);
    font-size: 15px;
    line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--dp-red); }

img { display: block; }

/* ── UTILITY BAR ──────────────────────────────────────────────────── */
.dp-utility {
    background: var(--dp-navy-deep);
    color: rgba(255,255,255,.65);
    font-size: .74rem;
    padding: 6px 0;
    letter-spacing: .02em;
}
.dp-utility strong { color: var(--dp-gold); font-weight: 700; }

/* ── TOPBAR ───────────────────────────────────────────────────────── */
.dp-topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--dp-border);
    padding: 18px 0;
}

.dp-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2rem;
    color: var(--dp-navy);
    letter-spacing: -.02em;
    position: relative;
    padding-left: 14px;
    border-left: 5px solid var(--dp-red);
}
.dp-logo span { color: var(--dp-red); }

.dp-search {
    position: relative;
}
.dp-search input {
    border: 1.5px solid var(--dp-navy);
    border-radius: 2px;
    padding: 8px 42px 8px 16px;
    font-size: .85rem;
    outline: none;
    width: 240px;
    background: var(--dp-gray);
}
.dp-search button {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    background: var(--dp-red);
    color: #fff;
    border: none;
    padding: 0 16px;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .05em;
    cursor: pointer;
}

/* ── NAV BAR ──────────────────────────────────────────────────────── */
.dp-nav {
    background: var(--dp-navy);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.dp-nav ul {
    display: flex;
    list-style: none;
    overflow-x: auto;
    white-space: nowrap;
}

.dp-nav a {
    display: inline-block;
    color: rgba(255,255,255,.88);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .8rem;
    padding: 13px 18px;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 3px solid transparent;
    transition: all .2s;
}

.dp-nav a:hover, .dp-nav a.active {
    color: #ffffff;
    border-bottom-color: var(--dp-red);
    background: var(--dp-navy-light);
}

/* ── BREAKING STRIP ───────────────────────────────────────────────── */
.dp-breaking {
    background: var(--dp-navy-deep);
    display: flex;
    align-items: center;
    height: 40px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.dp-breaking-badge {
    background: var(--dp-red);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: .7rem;
    padding: 0 18px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    letter-spacing: .06em;
    z-index: 5;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
    padding-right: 26px;
}

.dp-breaking-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: dp-pulse 1.4s ease-in-out infinite;
}
@keyframes dp-pulse { 0%,100%{opacity:1;} 50%{opacity:.25;} }

.dp-breaking-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 40px;
}

.dp-breaking-inner {
    display: flex;
    animation: dp-scroll 42s linear infinite;
    white-space: nowrap;
}
.dp-breaking-inner:hover { animation-play-state: paused; }

.dp-breaking-item {
    font-size: .82rem;
    font-weight: 500;
    color: rgba(255,255,255,.92);
    padding: 0 28px;
    line-height: 40px;
}
.dp-breaking-item a:hover { color: var(--dp-gold); }

@keyframes dp-scroll {
    0%   { transform: translateX(50%); }
    100% { transform: translateX(-100%); }
}

/* ── HERO GRID (asymmetric) ──────────────────────────────────────── */
.dp-hero { margin-top: 22px; }

.dp-hero-feature {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 420px;
    box-shadow: 0 8px 24px rgba(10,31,68,.2);
}
.dp-hero-feature img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.dp-hero-feature:hover img { transform: scale(1.05); }

.dp-hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 30px 26px 20px;
    background: linear-gradient(to top, rgba(5,21,48,.92) 0%, rgba(5,21,48,.1) 75%, transparent 100%);
    color: #fff;
}

.dp-ribbon {
    display: inline-block;
    background: var(--dp-red);
    color: #fff;
    font-family: var(--font-body);
    font-size: .65rem;
    font-weight: 800;
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: .07em;
    position: relative;
}
.dp-ribbon::after {
    content: '';
    position: absolute;
    right: -8px; top: 0;
    border-style: solid;
    border-width: 11px 0 11px 8px;
    border-color: transparent transparent transparent var(--dp-red-dark);
}

.dp-hero-feature-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.28;
    margin-top: 10px;
}
.dp-hero-feature-title a { color: #fff; }
.dp-hero-feature-title a:hover { color: var(--dp-gold); }

.dp-hero-side {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 199px;
    box-shadow: 0 4px 14px rgba(10,31,68,.15);
}
.dp-hero-side img { width: 100%; height: 100%; object-fit: cover; }
.dp-hero-side .dp-hero-overlay { padding: 18px 18px 14px; }
.dp-hero-side-title {
    font-family: var(--font-heading);
    font-size: .96rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-top: 6px;
}
.dp-hero-side-title a:hover { color: var(--dp-gold); }

/* ── SECTION HEADER ───────────────────────────────────────────────── */
.dp-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.dp-section-header::before {
    content: '';
    width: 20px; height: 20px;
    background: var(--dp-red);
    display: inline-block;
    transform: rotate(45deg);
    flex-shrink: 0;
}
.dp-section-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dp-navy);
}
.dp-section-line {
    flex: 1;
    height: 1px;
    background: var(--dp-border);
}

/* ── NEWS STREAM (card style, red accent) ────────────────────────── */
.dp-stream-item {
    display: flex;
    gap: 18px;
    padding: 18px;
    margin-bottom: 14px;
    background: #ffffff;
    border-left: 4px solid var(--dp-navy);
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(10,31,68,.06);
    transition: border-color .2s, transform .15s;
}
.dp-stream-item:hover {
    border-left-color: var(--dp-red);
    transform: translateX(2px);
}

.dp-stream-img {
    width: 150px;
    height: 105px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.dp-stream-content { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

.dp-stream-cat {
    font-family: var(--font-body);
    font-size: .68rem;
    font-weight: 800;
    color: var(--dp-red);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.dp-stream-title {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--dp-navy);
    line-height: 1.35;
    margin-top: 4px;
}
.dp-stream-title a:hover { color: var(--dp-red); }

.dp-stream-meta {
    font-size: .74rem;
    color: var(--dp-muted);
    margin-top: 6px;
}

/* ── PAGINATION ───────────────────────────────────────────────────── */
.dp-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.dp-pagination a, .dp-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--dp-border);
    border-radius: 2px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--dp-navy);
    background: #fff;
}
.dp-pagination a:hover { background: var(--dp-navy); color: #fff; border-color: var(--dp-navy); }
.dp-pagination .active { background: var(--dp-red); color: #fff; border-color: var(--dp-red); }

/* ── SIDEBAR WIDGETS ──────────────────────────────────────────────── */
.dp-widget {
    background: #ffffff;
    border: 1px solid var(--dp-border);
    border-radius: 2px;
    padding: 20px;
    margin-bottom: 24px;
}

.dp-widget-title {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--dp-navy);
    padding-bottom: 10px;
    margin-bottom: 16px;
    position: relative;
    border-bottom: 1px solid var(--dp-border);
}
.dp-widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 42px; height: 3px;
    background: var(--dp-red);
}

.dp-pop-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--dp-border);
}
.dp-pop-item:last-child { border-bottom: none; }

.dp-pop-num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    background: var(--dp-navy);
    line-height: 1;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
}
.dp-pop-num.top3 { background: var(--dp-red); }

.dp-pop-title {
    font-family: var(--font-body);
    font-size: .87rem;
    font-weight: 700;
    color: var(--dp-navy);
    line-height: 1.4;
}
.dp-pop-title a:hover { color: var(--dp-red); }

/* ── SINGLE POST ──────────────────────────────────────────────────── */
.dp-post-container {
    background: #ffffff;
    border: 1px solid var(--dp-border);
    border-radius: 2px;
    padding: 32px;
}

.dp-post-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--dp-navy);
    line-height: 1.25;
    margin: 12px 0 14px;
}

.dp-post-meta {
    font-size: .82rem;
    color: var(--dp-muted);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--dp-gray);
    margin-bottom: 22px;
}
.dp-post-meta strong { color: var(--dp-navy); }

.dp-post-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 22px;
}

.dp-post-body {
    font-size: 16.5px;
    line-height: 1.9;
    color: #2A3444;
}
.dp-post-body p { margin-bottom: 1.3rem; }

.dp-post-body h2, .dp-post-body h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--dp-navy);
    margin-top: 2rem;
    margin-bottom: .9rem;
    border-left: 4px solid var(--dp-red);
    padding-left: 14px;
}
.dp-post-body img { max-width: 100%; border-radius: 2px; margin: 18px 0; }

/* "Read Also" box */
.dp-baca-juga {
    background: var(--dp-navy);
    border-left: 5px solid var(--dp-red);
    padding: 16px 20px;
    border-radius: 0 2px 2px 0;
    margin: 24px 0;
}
.dp-baca-juga strong {
    color: var(--dp-gold);
    font-family: var(--font-body);
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.dp-baca-juga a {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    margin-top: 8px;
    font-size: .95rem;
}
.dp-baca-juga a:hover { color: var(--dp-gold); }

.dp-cat-badge {
    display: inline-block;
    background: var(--dp-red);
    color: #fff !important;
    font-size: .68rem;
    font-weight: 800;
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-right: 6px;
    margin-bottom: 6px;
}

.dp-tag {
    display: inline-block;
    background: var(--dp-gray);
    border: 1px solid var(--dp-border);
    color: var(--dp-navy);
    font-size: .74rem;
    font-weight: 600;
    padding: 5px 12px;
    margin: 0 6px 6px 0;
}

/* Related grid */
.dp-related-card {
    background: #fff;
    border: 1px solid var(--dp-border);
    border-radius: 2px;
    overflow: hidden;
    height: 100%;
    transition: box-shadow .2s;
}
.dp-related-card:hover { box-shadow: 0 6px 18px rgba(10,31,68,.12); }
.dp-related-img { height: 150px; width: 100%; object-fit: cover; }
.dp-related-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .9rem;
    line-height: 1.4;
    color: var(--dp-navy);
}
.dp-related-title:hover { color: var(--dp-red); }

/* ── FOOTER ───────────────────────────────────────────────────────── */
.dp-footer {
    background: var(--dp-navy-deep);
    color: rgba(255,255,255,.75);
    padding: 46px 0 20px;
    margin-top: 54px;
    border-top: 4px solid var(--dp-red);
}
.dp-footer h5 {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 10px;
}
.dp-footer a { color: rgba(255,255,255,.65); font-size: .85rem; line-height: 2; }
.dp-footer a:hover { color: var(--dp-gold); text-decoration: none; }

.dp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 34px;
    padding-top: 16px;
    text-align: center;
    font-size: .78rem;
    color: rgba(255,255,255,.45);
}

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .dp-hero-feature { height: 260px; }
    .dp-hero-feature-title { font-size: 1.15rem; }
    .dp-hero-side { height: 160px; margin-bottom: 12px; }
    .dp-stream-img { width: 100px; height: 78px; }
    .dp-post-title { font-size: 1.45rem; }
    .dp-post-container { padding: 18px; }
    .dp-search input { width: 160px; }
    .dp-logo { font-size: 1.5rem; }
}
