/*
Theme Name:  DailyUpdateNews
Theme URI:   https://dailyupdatenews.online
Description: Complete News Portal with Register, OTP, Article Submission
Author:      DailyUpdateNews
Version:     3.0.0
Tags:        news, magazine, blog
*/
:root {
    --red:#E8192C; --red2:#B5121F; --dark:#0D0D0D; --dark2:#1A1A1A;
    --gray:#6B7280; --gray2:#9CA3AF; --border:#E5E7EB; --bg:#F7F7F7;
    --white:#FFFFFF; --radius:8px; --shadow:0 2px 14px rgba(0,0,0,0.08);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Segoe UI',system-ui,sans-serif;font-size:16px;line-height:1.7;color:var(--dark);background:var(--bg)}
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:1200px;margin:0 auto;padding:0 20px}
h1,h2,h3,h4{font-family:Georgia,serif;font-weight:700;line-height:1.25}

/* TOP BAR */
.top-bar{background:var(--dark2);color:#9CA3AF;font-size:12px;padding:6px 0}
.top-bar .container{display:flex;justify-content:space-between;align-items:center}
.top-social{display:flex;gap:14px}
.top-social a{color:#9CA3AF;font-weight:600;transition:color .2s}
.top-social a:hover{color:#fff}

/* BREAKING TICKER */
.breaking-bar{background:var(--red);color:#fff;display:flex;align-items:center;height:36px;overflow:hidden;position:sticky;top:0;z-index:1000}
.breaking-label{background:var(--dark);padding:0 16px;font-size:11px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;white-space:nowrap;height:100%;display:flex;align-items:center;gap:6px;flex-shrink:0}
.breaking-ticker{flex:1;overflow:hidden;padding:0 16px}
.ticker-track{display:flex;gap:60px;animation:ticker 40s linear infinite;white-space:nowrap}
.ticker-track:hover{animation-play-state:paused}
.ticker-item{font-size:13px;font-weight:500}
.ticker-item::before{content:'●';margin-right:8px;font-size:7px;vertical-align:middle}
@keyframes ticker{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* HEADER */
.site-header{background:#fff;border-bottom:3px solid var(--red);padding:16px 0}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.logo-text{font-family:Georgia,serif;font-size:30px;font-weight:900;color:var(--dark);letter-spacing:-1px}
.logo-text span{color:var(--red)}
.logo-tag{font-size:11px;color:var(--gray2);letter-spacing:2px;text-transform:uppercase;margin-top:2px}
.header-right{display:flex;align-items:center;gap:12px}
.btn-submit-art{background:var(--red);color:#fff;padding:9px 18px;border-radius:5px;font-size:13px;font-weight:600;transition:background .2s}
.btn-submit-art:hover{background:var(--red2);color:#fff}

/* NAV */
.main-nav{background:var(--dark);z-index:900}
.nav-inner{display:flex;align-items:center;justify-content:space-between}
.nav-menu{display:flex}
.nav-menu>li>a{display:block;padding:13px 16px;font-size:12px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;color:#D1D5DB;transition:all .2s}
.nav-menu>li>a:hover,.nav-menu>li.cur>a{color:#fff;background:var(--red)}
.nav-live{color:var(--red);font-size:12px;font-weight:700;letter-spacing:1px;display:flex;align-items:center;gap:6px;padding-right:4px}
.live-dot{width:8px;height:8px;background:var(--red);border-radius:50%;animation:pulse 1.5s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}

/* HERO */
.hero-section{padding:24px 0;background:#fff;border-bottom:1px solid var(--border)}
.hero-grid{display:grid;grid-template-columns:1fr 320px;gap:20px}
.hero-main{position:relative;border-radius:var(--radius);overflow:hidden}
.hero-main img{width:100%;height:400px;object-fit:cover}
.hero-overlay{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(0,0,0,.88));padding:36px 24px 24px}
.hero-cat{display:inline-block;background:var(--red);color:#fff;font-size:10px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;padding:3px 9px;border-radius:3px;margin-bottom:8px}
.hero-title{font-size:clamp(17px,2.5vw,24px);color:#fff;margin-bottom:6px;line-height:1.3}
.hero-meta{font-size:12px;color:rgba(255,255,255,.7);display:flex;gap:12px}
.hero-side{display:flex;flex-direction:column;gap:14px}
.side-art{display:grid;grid-template-columns:90px 1fr;gap:10px;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:box-shadow .2s}
.side-art:hover{box-shadow:var(--shadow)}
.side-art img{width:90px;height:72px;object-fit:cover}
.side-art-body{padding:9px 10px 9px 0}
.art-cat{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--red);margin-bottom:4px}
.side-art-body h4{font-size:13px;line-height:1.35;font-family:Georgia,serif}
.art-time{font-size:11px;color:var(--gray2);margin-top:4px}

/* SECTION HEADER */
.sec-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;padding-bottom:12px;border-bottom:2px solid var(--border);position:relative}
.sec-head::after{content:'';position:absolute;bottom:-2px;left:0;width:50px;height:2px;background:var(--red)}
.sec-title{font-size:17px;font-weight:700;display:flex;align-items:center;gap:8px}
.sec-title span{width:4px;height:18px;background:var(--red);border-radius:2px;display:inline-block}
.sec-more{font-size:11px;font-weight:600;color:var(--red);border:1.5px solid var(--red);padding:4px 12px;border-radius:3px;transition:all .2s}
.sec-more:hover{background:var(--red);color:#fff}

/* NEWS GRID */
.news-sec{padding:24px 0}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.grid-main{display:grid;grid-template-columns:2fr 1fr;gap:24px}
.art-card{background:#fff;border-radius:var(--radius);overflow:hidden;border:1px solid var(--border);transition:box-shadow .25s,transform .25s;display:flex;flex-direction:column}
.art-card:hover{box-shadow:0 8px 28px rgba(0,0,0,.1);transform:translateY(-2px)}
.art-card-img{position:relative;overflow:hidden}
.art-card-img img{width:100%;height:180px;object-fit:cover;transition:transform .4s}
.art-card:hover .art-card-img img{transform:scale(1.04)}
.art-card-cat{position:absolute;top:10px;left:10px;background:var(--red);color:#fff;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1px;padding:3px 8px;border-radius:3px}
.art-card-body{padding:14px;flex:1;display:flex;flex-direction:column}
.art-card-body h3{font-size:15px;line-height:1.35;margin-bottom:8px;flex:1}
.art-card-body h3 a:hover{color:var(--red)}
.art-excerpt{font-size:12px;color:var(--gray);line-height:1.6;margin-bottom:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.art-meta{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--gray2);margin-top:auto;padding-top:10px;border-top:1px solid var(--border)}

/* SIDEBAR */
.sidebar-widget{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:18px;margin-bottom:20px}
.widget-title{font-size:14px;font-weight:700;padding-bottom:10px;margin-bottom:14px;border-bottom:2px solid var(--border);position:relative}
.widget-title::after{content:'';position:absolute;bottom:-2px;left:0;width:36px;height:2px;background:var(--red)}
.trending-item{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid var(--border);align-items:flex-start}
.trending-item:last-child{border-bottom:none}
.tr-num{font-size:20px;font-weight:900;color:var(--border);font-family:Georgia,serif;min-width:26px}
.trending-item:first-child .tr-num{color:var(--red)}
.tr-body h5{font-size:12px;line-height:1.4;margin-bottom:3px}
.tr-body h5 a:hover{color:var(--red)}
.cat-list li{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--border);font-size:13px}
.cat-list li:last-child{border-bottom:none}
.cat-count{background:var(--bg);color:var(--gray);font-size:11px;padding:2px 7px;border-radius:20px;font-weight:600}

/* AUTH FORMS */
.auth-page{padding:40px 0}
.auth-box{max-width:480px;margin:0 auto;padding:0 16px}
.auth-card{background:#fff;border:1.5px solid var(--border);border-radius:12px;padding:32px;box-shadow:var(--shadow)}
.auth-logo{text-align:center;margin-bottom:22px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;border:1.5px solid var(--border);border-radius:var(--radius);overflow:hidden;margin-bottom:22px}
.auth-tab{display:block;text-align:center;padding:11px;font-size:14px;font-weight:600;text-decoration:none;background:var(--bg);color:var(--gray);border:none;transition:all .2s}
.auth-tab.active{background:#fff;color:var(--red)}
.auth-tab:last-child{border-left:1px solid var(--border)}
.f-group{margin-bottom:16px}
.f-label{display:flex;justify-content:space-between;font-size:13px;font-weight:600;color:#374151;margin-bottom:6px}
.f-input{width:100%;padding:11px 14px;border:1.5px solid var(--border);border-radius:7px;font-size:14px;outline:none;transition:border-color .2s;font-family:inherit}
.f-input:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(232,25,44,.1)}
.pass-wrap{position:relative}
.pass-wrap .f-input{padding-right:42px}
.eye-btn{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--gray2);font-size:15px;padding:4px}
.str-bar{height:4px;background:var(--border);border-radius:2px;margin-top:7px;overflow:hidden}
.str-fill{height:100%;border-radius:2px;transition:width .3s,background .3s;width:0}
.btn-auth{width:100%;padding:13px;background:var(--red);color:#fff;border:none;border-radius:7px;font-size:15px;font-weight:700;cursor:pointer;transition:background .2s;font-family:inherit}
.btn-auth:hover{background:var(--red2)}
.btn-auth:disabled{background:#F5A0A7;cursor:not-allowed}
.auth-sw{text-align:center;font-size:13px;color:var(--gray);margin-top:16px}
.auth-sw a{color:var(--red);font-weight:600}
.otp-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:16px 0}
.otp-input{width:100%;padding:12px 4px;text-align:center;font-size:20px;font-weight:700;border:1.5px solid var(--border);border-radius:7px;outline:none;font-family:inherit}
.otp-input:focus{border-color:var(--red)}

/* SUBMIT PAGE */
.submit-page{padding:32px 0}
.submit-wrap{max-width:840px;margin:0 auto}
.form-card{background:#fff;border:1px solid var(--border);border-radius:10px;padding:28px;margin-bottom:16px;box-shadow:var(--shadow)}
.card-title{font-size:15px;font-weight:700;padding-bottom:12px;margin-bottom:20px;border-bottom:2px solid var(--border);display:flex;align-items:center;gap:8px}
.card-title::before{content:'';width:4px;height:16px;background:var(--red);border-radius:2px;display:block;flex-shrink:0}
.editor-wrap{border:1.5px solid var(--border);border-radius:7px;overflow:hidden;transition:border-color .2s,box-shadow .2s}
.editor-wrap:focus-within{border-color:var(--red);box-shadow:0 0 0 3px rgba(232,25,44,.1)}
.toolbar{display:flex;flex-wrap:wrap;gap:2px;padding:7px 9px;background:var(--bg);border-bottom:1px solid var(--border);align-items:center}
.tb{padding:4px 7px;border:none;background:transparent;border-radius:5px;cursor:pointer;color:var(--gray);display:flex;align-items:center;justify-content:center;min-width:26px;height:26px;transition:background .15s}
.tb:hover{background:var(--border)}
.tb svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tb-sep{width:1px;height:18px;background:var(--border);margin:0 3px}
.h-sel{padding:3px 7px;border:1px solid var(--border);border-radius:5px;font-size:12px;background:#fff;color:var(--gray);height:26px;cursor:pointer}
.editor-body{padding:14px;min-height:200px;font-size:15px;line-height:1.8;color:var(--dark);outline:none;background:#fff}
.editor-body:empty::before{content:attr(data-ph);color:var(--gray2)}
.editor-body h1{font-size:24px;margin:10px 0 5px}
.editor-body h2{font-size:20px;margin:9px 0 4px}
.editor-body h3{font-size:17px;margin:8px 0 4px}
.editor-body a{color:var(--red);text-decoration:underline}
.editor-body ul,.editor-body ol{padding-left:20px;margin:6px 0}
.editor-body blockquote{border-left:3px solid var(--red);padding-left:12px;color:var(--gray);font-style:italic;margin:8px 0}
.editor-footer{padding:5px 12px;border-top:1px solid var(--border);font-size:11px;color:var(--gray2);background:var(--bg);display:flex;justify-content:space-between}
.seo-box{background:#FFF5F5;border:1.5px solid #FECDD3;border-radius:8px;padding:20px;margin-bottom:16px}
.seo-box-title{font-size:13px;font-weight:700;color:var(--red2);margin-bottom:14px}
.seo-track{height:6px;background:var(--border);border-radius:3px;overflow:hidden;margin-top:5px}
.seo-fill{height:100%;border-radius:3px;transition:width .4s,background .4s;width:0;background:var(--red)}
.cc{font-size:11px;color:var(--gray2)}
.cc.warn{color:#F59E0B}.cc.over{color:var(--red)}
.upload-box{border:2px dashed var(--border);border-radius:7px;padding:24px;text-align:center;cursor:pointer;background:var(--bg);transition:all .2s}
.upload-box:hover{border-color:var(--red);background:#FFF5F5}
.btn-pub{width:100%;padding:14px;background:var(--red);color:#fff;border:none;border-radius:7px;font-size:16px;font-weight:700;cursor:pointer;transition:background .2s;font-family:inherit}
.btn-pub:hover{background:var(--red2)}
.btn-pub:disabled{background:#F5A0A7;cursor:not-allowed}

/* LINK MODAL */
.lmodal-bg{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:9999;align-items:center;justify-content:center}
.lmodal-bg.open{display:flex}
.lmodal{background:#fff;border-radius:10px;padding:24px;width:360px;box-shadow:0 20px 60px rgba(0,0,0,.2)}
.lmodal h4{font-size:15px;margin-bottom:14px}
.lmodal label{font-size:12px;color:var(--gray);font-weight:600;display:block;margin-bottom:4px}
.lmodal input{width:100%;padding:8px 11px;border:1.5px solid var(--border);border-radius:6px;font-size:13px;margin-bottom:10px;font-family:inherit;box-sizing:border-box}
.lmodal input:focus{outline:none;border-color:var(--red)}
.lmodal-btns{display:flex;gap:8px;justify-content:flex-end;margin-top:4px}
.lbtn{padding:8px 16px;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;border:1.5px solid var(--border);background:#fff;font-family:inherit}
.lbtn.ins{background:var(--red);border-color:var(--red);color:#fff}

/* ARTICLE VIEW */
.article-page{padding:32px 0}
.art-page-grid{display:grid;grid-template-columns:1fr 300px;gap:36px}
.art-page-cat{display:inline-block;background:var(--red);color:#fff;font-size:11px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;padding:4px 11px;border-radius:3px;margin-bottom:12px}
.art-page-title{font-size:clamp(22px,3vw,36px);line-height:1.25;margin-bottom:14px}
.art-page-meta{display:flex;align-items:center;gap:14px;font-size:13px;color:var(--gray);padding-bottom:14px;border-bottom:2px solid var(--border);flex-wrap:wrap}
.art-page-meta .author{font-weight:600;color:var(--dark)}
.art-feat-img{width:100%;height:400px;object-fit:cover;border-radius:var(--radius);margin-bottom:24px}
.art-content{font-size:17px;line-height:1.85;color:#1F2937}
.art-content p{margin-bottom:18px}
.art-content h2{font-size:24px;margin:28px 0 12px}
.art-content h3{font-size:20px;margin:24px 0 10px}
.art-content ul,.art-content ol{padding-left:22px;margin-bottom:18px}
.art-content li{margin-bottom:6px}
.art-content blockquote{border-left:4px solid var(--red);padding:14px 18px;background:#FFF5F5;border-radius:0 var(--radius) var(--radius) 0;margin:20px 0;font-style:italic;font-size:18px}
.art-content a{color:var(--red);text-decoration:underline}

/* AUTHOR BIO BOX */
.author-bio{background:#fff;border:1px solid var(--border);border-radius:10px;padding:22px;margin-top:28px;display:flex;gap:16px;align-items:flex-start}
.author-avatar{width:70px;height:70px;border-radius:50%;object-fit:cover;border:3px solid var(--border);flex-shrink:0}
.author-avatar-placeholder{width:70px;height:70px;border-radius:50%;background:var(--red);color:#fff;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:700;font-family:Georgia,serif;flex-shrink:0}
.author-bio-name{font-size:17px;font-weight:700;margin-bottom:4px}
.author-bio-role{font-size:12px;color:var(--red);font-weight:600;margin-bottom:8px;text-transform:uppercase;letter-spacing:.5px}
.author-bio-text{font-size:13px;color:var(--gray);line-height:1.65}

/* NOTICE */
.f-notice{padding:12px 16px;border-radius:7px;font-size:14px;font-weight:500;margin-bottom:14px;display:flex;align-items:flex-start;gap:8px;line-height:1.5}
.f-notice.ok{background:#D1FAE5;border:1px solid #6EE7B7;color:#065F46}
.f-notice.err{background:#FEE2E2;border:1px solid #FCA5A5;color:#991B1B}

/* DASHBOARD */
.dash-page{padding:32px 0}
.dash-wrap{max-width:1000px;margin:0 auto}
.user-hdr{background:#fff;border:1px solid var(--border);border-radius:10px;padding:22px 26px;margin-bottom:18px;display:flex;align-items:center;gap:16px;box-shadow:var(--shadow)}
.u-avatar{width:56px;height:56px;border-radius:50%;background:var(--red);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;font-family:Georgia,serif;flex-shrink:0}
.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}
.stat-box{background:#fff;border:1px solid var(--border);border-radius:8px;padding:16px;text-align:center;box-shadow:var(--shadow)}
.stat-box .num{font-size:28px;font-weight:900;color:var(--red);font-family:Georgia,serif;line-height:1}
.stat-box .lbl{font-size:11px;color:var(--gray);margin-top:4px}
.arts-table{width:100%;border-collapse:collapse}
.arts-table th{padding:9px 14px;text-align:left;font-size:10px;font-weight:700;color:var(--gray);text-transform:uppercase;letter-spacing:.4px;background:var(--bg);border-bottom:1px solid var(--border)}
.arts-table td{padding:12px 14px;font-size:13px;border-bottom:1px solid var(--border);vertical-align:middle}
.arts-table tr:last-child td{border-bottom:none}
.arts-table tr:hover td{background:#FAFAFA}
.badge{display:inline-block;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:600}
.b-pend{background:#FEF3C7;color:#92400E}
.b-pub{background:#D1FAE5;color:#065F46}
.b-rej{background:#FEE2E2;color:#991B1B}

/* SUBMIT CTA */
.sub-cta{background:var(--dark);padding:36px 0;margin-top:28px}
.sub-cta-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}
.sub-cta h3{color:#fff;font-size:20px;margin-bottom:6px}
.sub-cta p{color:#9CA3AF;font-size:14px}
.btn-cta{background:var(--red);color:#fff;padding:12px 26px;border-radius:5px;font-size:14px;font-weight:700;white-space:nowrap;transition:background .2s;flex-shrink:0}
.btn-cta:hover{background:var(--red2);color:#fff}

/* FOOTER */
.site-footer{background:var(--dark2);color:#9CA3AF;padding:44px 0 0}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px;padding-bottom:32px;border-bottom:1px solid var(--dark)}
.footer-logo{font-family:Georgia,serif;font-size:22px;font-weight:900;color:#fff;margin-bottom:10px}
.footer-logo span{color:var(--red)}
.footer-desc{font-size:13px;line-height:1.7}
.footer-head{font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#fff;margin-bottom:14px}
.footer-links{display:flex;flex-direction:column;gap:8px}
.footer-links a{font-size:13px;transition:color .2s}
.footer-links a:hover{color:var(--red)}
.footer-bottom{padding:14px 0;font-size:12px;display:flex;justify-content:space-between;align-items:center}
.footer-bottom-links{display:flex;gap:18px}
.footer-bottom-links a:hover{color:#fff}

@media(max-width:1024px){.grid3{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:768px){.hero-grid{grid-template-columns:1fr}.hero-side{display:none}.grid-main{grid-template-columns:1fr}.art-page-grid{grid-template-columns:1fr}.stats-row{grid-template-columns:repeat(2,1fr)}.sub-cta-inner{flex-direction:column;text-align:center}.footer-grid{grid-template-columns:1fr}}
@media(max-width:480px){.grid3{grid-template-columns:1fr}}
