/* 
Theme Name: Brand New Day
Theme URI: https://github.com/
Author: Rifan Muazin
Description: Bold, high-energy modern news theme inspired by Brand New Day. Features Crimson Red, Deep Navy, Swiper Hero, modular widgets, and responsive design.
Version: 1.0
*/

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

:root {
    --bnd-red:        #C00D0D;
    --bnd-red-dark:   #940808;
    --bnd-navy:       #0F1B29;
    --bnd-navy-light: #1A2A3F;
    --bnd-gold:       #FFD700;
    --bnd-bg:         #F3F5F8;
    --bnd-card-bg:    #FFFFFF;
    --bnd-text:       #1E293B;
    --bnd-muted:      #64748B;
    --bnd-border:     #E2E8F0;
    --font-main:      'Plus Jakarta Sans', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background: var(--bnd-bg);
    color: var(--bnd-text);
    font-size: 15px;
    line-height: 1.7;
}

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

/* ── HEADER ───────────────────────────────────────────────────────── */
.bnd-header {
    background: var(--bnd-navy);
    border-bottom: 4px solid var(--bnd-red);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

.bnd-topbar {
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bnd-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -.03em;
    text-transform: uppercase;
}

.bnd-logo span { color: var(--bnd-gold); }

.bnd-search input {
    background: var(--bnd-navy-light);
    border: 1px solid rgba(255,255,255,.15);
    color: #ffffff;
    border-radius: 20px 0 0 20px;
    padding: 7px 18px;
    font-size: .85rem;
    outline: none;
}

.bnd-search input:focus { border-color: var(--bnd-gold); }

.bnd-search button {
    background: var(--bnd-red);
    color: #ffffff;
    border: none;
    border-radius: 0 20px 20px 0;
    padding: 7px 20px;
    font-weight: 800;
    font-size: .82rem;
    cursor: pointer;
    transition: background .2s;
}

.bnd-search button:hover { background: var(--bnd-red-dark); }

/* ── NAV BAR ──────────────────────────────────────────────────────── */
.bnd-nav {
    background: var(--bnd-navy-light);
}

.bnd-nav ul {
    display: flex;
    list-style: none;
    margin: 0; padding: 0;
    overflow-x: auto;
    white-space: nowrap;
}

.bnd-nav a {
    display: inline-block;
    color: rgba(255,255,255,.85);
    font-weight: 700;
    font-size: .84rem;
    padding: 10px 16px;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: color .2s, background .2s;
}

.bnd-nav a:hover, .bnd-nav a.active {
    color: var(--bnd-gold);
    background: rgba(255,255,255,.05);
}

/* ── BREAKING TICKER ─────────────────────────────────────────────── */
.bnd-ticker {
    background: var(--bnd-red);
    color: #ffffff;
    height: 38px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.bnd-ticker-badge {
    background: var(--bnd-navy);
    color: var(--bnd-gold);
    font-weight: 900;
    font-size: .75rem;
    padding: 0 18px;
    height: 38px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    letter-spacing: .08em;
    position: relative;
    z-index: 5;
}

.bnd-ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 38px;
}

.bnd-ticker-inner {
    display: flex;
    animation: bnd-scroll 40s linear infinite;
    white-space: nowrap;
}

.bnd-ticker-inner:hover { animation-play-state: paused; }

.bnd-ticker-item {
    font-size: .84rem;
    font-weight: 600;
    padding: 0 30px;
    line-height: 38px;
}

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

/* ── HERO SLIDER ─────────────────────────────────────────────────── */
.bnd-hero { margin-top: 24px; }

.bnd-swiper { border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.bnd-slide { position: relative; }
.bnd-slide img { width: 100%; height: 460px; object-fit: cover; display: block; }

.bnd-slide-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 30px 24px 20px;
    background: linear-gradient(to top, rgba(15,27,41,.92) 0%, transparent 100%);
    color: #ffffff;
}

.bnd-badge-cat {
    display: inline-block;
    background: var(--bnd-red);
    color: #ffffff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.bnd-slide-title {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.3;
    margin-top: 8px;
}

/* ── CARDS & STREAM ──────────────────────────────────────────────── */
.bnd-section-title {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--bnd-navy);
    padding-bottom: 8px;
    border-bottom: 3px solid var(--bnd-red);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bnd-card {
    background: var(--bnd-card-bg);
    border: 1px solid var(--bnd-border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}

.bnd-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.bnd-card-img-wrap { overflow: hidden; aspect-ratio: 16/9; }

.bnd-card-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s ease;
}
.bnd-card:hover .bnd-card-img-wrap img { transform: scale(1.06); }

.bnd-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.bnd-card-title {
    font-size: .98rem;
    font-weight: 800;
    color: var(--bnd-navy);
    line-height: 1.4;
    flex: 1;
}

.bnd-card-meta {
    font-size: .74rem;
    color: var(--bnd-muted);
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--bnd-border);
}

/* ── SINGLE POST ─────────────────────────────────────────────────── */
.bnd-post-wrap {
    background: var(--bnd-card-bg);
    border: 1px solid var(--bnd-border);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

.bnd-post-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--bnd-navy);
    line-height: 1.25;
    margin-bottom: 12px;
}

.bnd-post-meta {
    font-size: .82rem;
    color: var(--bnd-muted);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bnd-border);
    margin-bottom: 24px;
}

.bnd-post-hero-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 24px;
}

.bnd-post-body {
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--bnd-text);
}

.bnd-post-body p { margin-bottom: 1.3rem; }

.bnd-post-body h2, .bnd-post-body h3 {
    font-weight: 800;
    color: var(--bnd-navy);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 5px solid var(--bnd-red);
    padding-left: 14px;
}

.bnd-post-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.bnd-read-also {
    background: #FFF5F5;
    border-left: 5px solid var(--bnd-red);
    padding: 14px 20px;
    border-radius: 0 10px 10px 0;
    margin: 24px 0;
}

.bnd-read-also strong {
    color: var(--bnd-red);
    font-size: .85rem;
    text-transform: uppercase;
}

.bnd-read-also a {
    display: block;
    font-weight: 800;
    color: var(--bnd-navy);
    margin-top: 4px;
}

/* ── FOOTER ───────────────────────────────────────────────────────── */
.bnd-footer {
    background: var(--bnd-navy);
    color: rgba(255,255,255,.75);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.bnd-footer h5 {
    color: #ffffff;
    font-weight: 800;
}

.bnd-footer a {
    color: rgba(255,255,255,.7);
    font-size: .85rem;
    line-height: 2;
    transition: color .2s;
}

.bnd-footer a:hover { color: var(--bnd-gold); }

.bnd-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 36px;
    padding-top: 18px;
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.4);
}

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .bnd-slide img { height: 260px; }
    .bnd-post-wrap { padding: 20px; }
    .bnd-post-title { font-size: 1.4rem; }
}
