/*
Theme Name:  DailyUpdateNews Clean
Theme URI:   https://dailyupdatenews.online
Description: Clean news/blog theme inspired by rvain.com — No register, no submission. Pure reading experience.
Author:      DailyUpdateNews
Version:     1.0.0
Tags:        news, blog, clean, minimal, magazine
*/

/* ── VARIABLES ─────────────────────────────── */
:root {
    --red:    #E8192C;
    --red2:   #C0141F;
    --dark:   #111111;
    --dark2:  #222222;
    --gray:   #555555;
    --gray2:  #888888;
    --gray3:  #BBBBBB;
    --border: #EEEEEE;
    --bg:     #F8F8F8;
    --white:  #FFFFFF;
    --font-h: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-b: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --max:    1200px;
    --rad:    6px;
    --shadow: 0 1px 8px rgba(0,0,0,0.07);
}

/* ── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-b);
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
ul { list-style: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-h);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

/* ── TOP BAR ────────────────────────────────── */
.top-bar {
    background: var(--dark);
    color: #999;
    font-size: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #333;
}
.top-bar .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-date { display: flex; align-items: center; gap: 6px; }
.top-links { display: flex; gap: 16px; }
.top-links a { color: #999; font-size: 11px; font-weight: 600; letter-spacing: .4px; transition: color .2s; }
.top-links a:hover { color: var(--white); }

/* ── BREAKING TICKER ────────────────────────── */
.breaking-bar {
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    height: 34px;
    overflow: hidden;
}
.breaking-label {
    background: var(--dark);
    padding: 0 14px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.ticker-wrap { flex: 1; overflow: hidden; position: relative; }
.ticker-track {
    display: inline-flex;
    gap: 60px;
    white-space: nowrap;
    animation: scroll-ticker 35s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { font-size: 12px; font-weight: 500; }
.ticker-item::before { content: '◆'; margin-right: 8px; font-size: 7px; vertical-align: middle; opacity: .7; }
@keyframes scroll-ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── HEADER ─────────────────────────────────── */
.site-header {
    background: var(--white);
    padding: 18px 0 14px;
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-branding a { text-decoration: none; }
.site-name {
    font-family: var(--font-h);
    font-size: 34px;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -1.5px;
    line-height: 1;
}
.site-name span { color: var(--red); }
.site-tagline {
    font-size: 10px;
    color: var(--gray2);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 3px;
}
.header-search {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    transition: border-color .2s;
}
.header-search:focus-within { border-color: var(--red); }
.header-search input {
    border: none;
    outline: none;
    padding: 8px 16px;
    font-size: 13px;
    width: 220px;
    font-family: var(--font-b);
    background: transparent;
}
.header-search button {
    background: var(--red);
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    color: var(--white);
    font-size: 14px;
    transition: background .2s;
}
.header-search button:hover { background: var(--red2); }

/* ── PRIMARY NAV ────────────────────────────── */
.primary-nav {
    background: var(--white);
    border-bottom: 2px solid var(--dark);
    position: sticky;
    top: 0;
    z-index: 999;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-menu { display: flex; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: block;
    padding: 13px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--dark2);
    border-bottom: 2px solid transparent;
    transition: all .2s;
}
.nav-menu > li > a:hover,
.nav-menu > li.current > a {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* Dropdown */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    border-top: 2px solid var(--red);
    z-index: 999;
}
.nav-menu li:hover .sub-menu { display: block; }
.nav-menu .sub-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark2);
    border-bottom: 1px solid var(--border);
    transition: all .15s;
}
.nav-menu .sub-menu a:hover { color: var(--red); padding-left: 22px; }
.nav-menu .sub-menu li:last-child a { border-bottom: none; }

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 10px;
    color: var(--dark);
}

/* ── CATEGORY PILL ──────────────────────────── */
.cat-pill {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
    transition: background .2s;
}
.cat-pill:hover { background: var(--red2); color: var(--white); }
.cat-pill.outline {
    background: transparent;
    color: var(--red);
    border: 1.5px solid var(--red);
}
.cat-pill.outline:hover { background: var(--red); color: var(--white); }

/* ── HERO SECTION ───────────────────────────── */
.hero-section {
    padding: 24px 0 20px;
    border-bottom: 1px solid var(--border);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 22px;
    align-items: start;
}

/* Main featured */
.hero-featured { position: relative; border-radius: var(--rad); overflow: hidden; }
.hero-featured a { display: block; }
.hero-featured img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    transition: transform .5s;
}
.hero-featured:hover img { transform: scale(1.02); }
.hero-featured-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent 0%, rgba(0,0,0,.78) 100%);
    padding: 48px 24px 24px;
    color: var(--white);
}
.hero-featured-title {
    font-family: var(--font-h);
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--white);
    margin: 8px 0 10px;
    line-height: 1.3;
}
.hero-featured-meta {
    font-size: 12px;
    color: rgba(255,255,255,.75);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.hero-featured-meta .sep { opacity: .4; }

/* Side stack */
.hero-side { display: flex; flex-direction: column; gap: 0; }
.hero-side-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
    transition: opacity .2s;
}
.hero-side-item:first-child { padding-top: 0; }
.hero-side-item:last-child { border-bottom: none; padding-bottom: 0; }
.hero-side-item:hover { opacity: .85; }
.hero-side-item img { width: 110px; height: 78px; object-fit: cover; border-radius: 4px; }
.side-item-body .cat-pill { margin-bottom: 5px; }
.side-item-title {
    font-family: var(--font-h);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
    color: var(--dark);
}
.side-item-title:hover { color: var(--red); }
.side-item-meta { font-size: 11px; color: var(--gray2); display: flex; gap: 6px; align-items: center; }
.side-item-meta .sep { opacity: .4; }

/* ── SECTION HEADING ────────────────────────── */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--dark);
}
.section-heading h2 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.section-heading h2::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--red);
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}
.view-all {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--red);
    border-bottom: 1.5px solid var(--red);
    padding-bottom: 1px;
    transition: opacity .2s;
}
.view-all:hover { opacity: .7; color: var(--red); }

/* ── ARTICLE CARDS ──────────────────────────── */
.section-wrap { padding: 28px 0; }
.main-content-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }

/* Card grid */
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* Standard card */
.article-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--rad);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.09);
    transform: translateY(-3px);
}
.card-thumb {
    position: relative;
    overflow: hidden;
}
.card-thumb img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform .4s;
}
.article-card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb .cat-pill { position: absolute; top: 10px; left: 10px; }
.card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-title {
    font-family: var(--font-h);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    flex: 1;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-title:hover { color: var(--red); }
.card-excerpt {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--gray2);
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.card-meta .author-name { font-weight: 600; color: var(--gray); }
.card-meta .sep { color: var(--border); }
.card-meta .read-time { margin-left: auto; }
.author-avatar-tiny {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* Horizontal card (list style) */
.card-horizontal {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.card-horizontal:last-child { border-bottom: none; padding-bottom: 0; }
.card-horizontal img { width: 130px; height: 90px; object-fit: cover; border-radius: 4px; }
.card-horizontal .card-title { font-size: 14px; -webkit-line-clamp: 2; }
.card-horizontal .card-meta { padding-top: 8px; }

/* ── SIDEBAR ────────────────────────────────── */
.sidebar { position: relative; }
.sidebar-widget {
    margin-bottom: 28px;
}
.widget-latest img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.widget-latest-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.widget-latest-item:last-child { border-bottom: none; }
.widget-latest-title {
    font-family: var(--font-h);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
    color: var(--dark);
}
.widget-latest-title:hover { color: var(--red); }
.widget-latest-meta { font-size: 11px; color: var(--gray2); }
.widget-latest-num {
    font-size: 22px;
    font-weight: 900;
    color: var(--border);
    font-family: var(--font-h);
    min-width: 28px;
    line-height: 1;
    flex-shrink: 0;
}
.widget-latest-item:first-child .widget-latest-num { color: var(--red); }
.widget-latest-item:nth-child(2) .widget-latest-num { color: var(--dark2); }

/* Category widget */
.widget-cats li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.widget-cats li:last-child { border-bottom: none; }
.widget-cats a { font-weight: 600; color: var(--dark2); }
.widget-cats a:hover { color: var(--red); }
.cat-count {
    background: var(--bg);
    color: var(--gray2);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Ad/promo widget */
.widget-promo {
    background: var(--dark);
    border-radius: var(--rad);
    padding: 22px;
    text-align: center;
    color: var(--white);
}
.widget-promo h4 { font-size: 16px; margin-bottom: 6px; color: var(--white); }
.widget-promo p { font-size: 12px; color: #999; line-height: 1.6; margin-bottom: 14px; }

/* ── SINGLE ARTICLE ─────────────────────────── */
.single-page { padding: 28px 0; }
.single-grid { display: grid; grid-template-columns: 1fr 300px; gap: 36px; }

.single-header { margin-bottom: 20px; }
.single-cats { margin-bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.single-title {
    font-size: clamp(22px, 3vw, 38px);
    line-height: 1.25;
    margin-bottom: 14px;
    color: var(--dark);
}
.single-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--gray);
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.single-meta .author { font-weight: 700; color: var(--dark); }
.single-featured {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--rad);
    margin: 20px 0;
}
.single-caption {
    font-size: 12px;
    color: var(--gray2);
    text-align: center;
    margin-top: -14px;
    margin-bottom: 18px;
    font-style: italic;
}

/* Article content */
.entry-content {
    font-size: 16px;
    line-height: 1.85;
    color: #222;
}
.entry-content p { margin-bottom: 20px; }
.entry-content h2 {
    font-size: 26px;
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.entry-content h3 { font-size: 21px; margin: 26px 0 12px; }
.entry-content h4 { font-size: 18px; margin: 20px 0 10px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 20px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote {
    border-left: 4px solid var(--red);
    padding: 16px 20px;
    background: #FFF5F6;
    border-radius: 0 var(--rad) var(--rad) 0;
    margin: 24px 0;
    font-style: italic;
    font-size: 17px;
    color: #333;
}
.entry-content a { color: var(--red); text-decoration: underline; }
.entry-content img { border-radius: var(--rad); margin: 8px 0; }
.entry-content strong { font-weight: 700; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14px; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.entry-content th { background: var(--bg); font-weight: 700; }

/* Tags */
.post-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-tags strong { font-size: 12px; color: var(--gray); }
.tag-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--gray);
    transition: all .2s;
}
.tag-pill:hover { background: var(--red); border-color: var(--red); color: var(--white); }

/* Share */
.post-share { margin-top: 20px; display: flex; align-items: center; gap: 10px; }
.post-share strong { font-size: 12px; color: var(--gray); }
.share-btn {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    color: var(--white);
    cursor: pointer;
    border: none;
    letter-spacing: .3px;
}
.share-fb  { background: #1877F2; }
.share-tw  { background: #1DA1F2; }
.share-wa  { background: #25D366; }

/* Related posts */
.related-posts { margin-top: 36px; padding-top: 24px; border-top: 2px solid var(--dark); }

/* ── PAGINATION ──────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark2);
    transition: all .2s;
}
.page-btn:hover, .page-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* ── FOOTER ──────────────────────────────────── */
.site-footer { background: var(--dark2); color: #999; margin-top: 40px; }
.footer-top { padding: 40px 0 32px; border-bottom: 1px solid #333; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-logo {
    font-family: var(--font-h);
    font-size: 26px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.footer-logo span { color: var(--red); }
.footer-about { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 8px; }
.social-link {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #ccc;
    transition: all .2s;
}
.social-link:hover { background: var(--red); color: var(--white); }
.footer-heading {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: #999; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: #777; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--white); }

/* ── UTILITY ─────────────────────────────────── */
.text-red { color: var(--red); }
.bg-red   { background: var(--red); color: var(--white); }
.divider  { height: 1px; background: var(--border); margin: 24px 0; }
.read-more {
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 10px;
    transition: gap .2s;
}
.read-more:hover { gap: 7px; color: var(--red); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1100px) {
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-side { display: none; }
    .main-content-sidebar { grid-template-columns: 1fr; }
    .single-grid { grid-template-columns: 1fr; }
    .card-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .card-grid-2,
    .card-grid-3 { grid-template-columns: 1fr; }
    .card-grid-4 { grid-template-columns: 1fr; }
    .hero-featured img { height: 260px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--dark); z-index: 999; }
    .nav-menu.open { display: flex; }
    .nav-menu > li > a { padding: 11px 18px; border-bottom: 1px solid var(--border); }
    .nav-toggle { display: flex; }
    .header-search { display: none; }
}
