/*
Theme Name: Daily US Social News
Theme URI: https://dailyussocialnews.news/
Author: Daily US Social News
Description: A clean, responsive editorial WordPress theme for daily drama, viral stories, celebrity news, and trending topics.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: daily-us-social-news
*/
:root{--dusn-red:#f0443e;--dusn-red-dark:#d93631;--dusn-ink:#222a31;--dusn-muted:#69737d;--dusn-line:#e4e8eb;--dusn-bg:#f6f7f8;--dusn-white:#fff;--dusn-radius:3px;--dusn-width:1100px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--dusn-ink);font-family:"Inter","Segoe UI",Roboto,Arial,Helvetica,sans-serif;font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:hover{color:var(--dusn-red)}
img{max-width:100%;height:auto;display:block}
button,input,textarea{font:inherit}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.container{width:min(var(--dusn-width),calc(100% - 36px));margin-inline:auto}

/* ---------- Header ---------- */
.site-branding{padding:12px 0 10px;background:#fff}
.brand-row{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.brand-link{display:inline-flex;align-items:center;min-width:0}
.custom-logo{width:auto;max-height:56px}
.site-title{margin:0;font-size:clamp(24px,2.7vw,30px);line-height:1.1;font-weight:900;letter-spacing:-.6px;text-transform:uppercase;color:var(--dusn-ink)}
.site-title .brand-us{color:var(--dusn-red)}
.site-description{margin:3px 0 0;color:var(--dusn-muted);font-size:8.5px;line-height:1.3;font-weight:600;letter-spacing:2.2px;text-transform:uppercase}
.top-nav{padding-top:14px}
.top-menu{list-style:none;margin:0;padding:0;display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.top-menu li{margin:0;display:flex;align-items:center}
.top-menu li+li:before{content:"|";color:#555;font-size:10px;margin:0 11px}
.top-menu a{font-size:10px;font-weight:500;color:#2b3238;text-transform:none;letter-spacing:0;line-height:1.4}
.top-menu .top-contact a,.top-menu li:last-child a{font-weight:700;color:var(--dusn-ink)}
.top-menu a:hover{color:var(--dusn-red)}

/* ---------- Main nav ---------- */
.main-navigation{background:#23282d;color:#fff;position:relative}
.nav-inner{display:flex;align-items:stretch;justify-content:space-between;min-height:42px}
.primary-menu{list-style:none;margin:0;padding:0;display:flex;align-items:stretch;flex-wrap:wrap}
.primary-menu li{margin:0}
.primary-menu a{display:flex;align-items:center;height:100%;padding:0 21px;font-size:13.5px;font-weight:700;line-height:1.2;color:#fff}
.primary-menu .current-menu-item>a,.primary-menu .current_page_item>a,.primary-menu .current-menu-ancestor>a,.primary-menu a:hover{background:var(--dusn-red);color:#fff}
.nav-search-toggle{background:none;border:0;color:#fff;cursor:pointer;padding:0 2px 0 16px;display:flex;align-items:center}
.nav-search-toggle:hover{color:var(--dusn-red)}
.nav-search-panel{display:none;background:#2c3238;border-top:1px solid #3a4046;padding:10px 0;position:absolute;left:0;right:0;top:100%;z-index:50}
.nav-search-panel.is-open{display:block}

/* ---------- Search form ---------- */
.search-form{display:flex;align-items:center;gap:6px}
.search-form input[type=search]{width:100%;max-width:340px;min-width:0;border:1px solid #cfd5d9;border-radius:3px;background:#fff;color:var(--dusn-ink);padding:8px 10px;font-size:13px}
.nav-search-panel .search-form input[type=search]{border-color:#4a4f53;background:#303539;color:#fff}
.nav-search-panel .search-form input::placeholder{color:#d2d6d8}
.search-form button{border:0;background:var(--dusn-red);color:#fff;border-radius:3px;padding:8px 14px;cursor:pointer;font-weight:700;font-size:12px}
.search-form button:hover{background:var(--dusn-red-dark)}

/* ---------- Layout ---------- */
main{min-height:50vh}
.content-area{padding:19px 0 34px}
.hero-grid{display:grid;grid-template-columns:1.62fr 1fr;gap:12px;margin-bottom:22px}
.hero-main,.hero-small{position:relative;display:block;overflow:hidden;background:#30353a;border-radius:var(--dusn-radius);isolation:isolate}
.hero-main{min-height:330px}
.hero-side{display:grid;grid-template-rows:1fr 1fr;gap:12px}
.hero-small{min-height:159px}
.story-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .35s ease}
.hero-main:after,.hero-small:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.88) 0%,rgba(0,0,0,.45) 32%,rgba(0,0,0,0) 70%);z-index:-1}
.hero-main:hover .story-image,.hero-small:hover .story-image,.post-card:hover .card-image{transform:scale(1.035)}
.hero-copy{position:absolute;left:16px;right:16px;bottom:11px;color:#fff}
.hero-main .hero-copy{max-width:88%}
.category-label{display:inline-block;background:var(--dusn-red);color:#fff!important;padding:2px 7px;border-radius:2px;font-size:9.5px;font-weight:800;line-height:1.55;text-transform:uppercase;letter-spacing:.03em}
.hero-copy h2{font-size:clamp(20px,2.4vw,26px);line-height:1.1;letter-spacing:-.4px;margin:8px 0 9px;font-weight:800;color:#fff}
.hero-small .hero-copy{left:11px;right:11px;bottom:8px}
.hero-small .hero-copy h2{font-size:16.5px;line-height:1.18;margin:6px 0 6px;letter-spacing:-.2px}
.post-meta{color:var(--dusn-muted);font-size:11px;line-height:1.4}
.hero-copy .post-meta{color:#f3f3f3;font-size:10.5px;font-weight:500}

.section-heading{display:flex;align-items:center;gap:12px;margin:0 0 14px;width:calc(100% - 294px)}
.section-heading h2{font-size:21px;line-height:1.2;margin:0;font-weight:800;letter-spacing:-.3px;white-space:nowrap}
.section-heading h2:before{content:"";display:inline-block;width:3px;height:22px;background:var(--dusn-red);margin-right:10px;vertical-align:-4px}
.section-heading .heading-rule{height:1px;background:#d9dde0;flex:1}
.section-heading .view-all{font-size:11px;font-weight:600;color:var(--dusn-red);white-space:nowrap}
.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 272px;gap:22px;align-items:start}
.posts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}

/* ---------- Cards ---------- */
.post-card{min-width:0;border:1px solid #eceff1;border-radius:3px;overflow:hidden;background:#fff;transition:box-shadow .2s;display:flex;flex-direction:column}
.post-card:hover{box-shadow:0 7px 22px rgba(20,30,40,.08)}
.card-image-wrap{position:relative;display:block;overflow:hidden;background:#e9ecef;aspect-ratio:1.66/1;min-height:0}
.card-image{width:100%;height:100%;object-fit:cover;object-position:center top;transition:transform .35s ease}
.card-category{position:absolute;left:0;bottom:0;border-radius:0 2px 0 0}
.post-card-body{padding:13px 13px 14px;flex:1;display:flex;flex-direction:column}
.post-card h3{font-size:15px;line-height:1.3;margin:0 0 7px;font-weight:700;letter-spacing:-.1px}
.post-card .post-meta{margin-bottom:10px}
.post-card .excerpt{font-size:12px;line-height:1.65;color:#69737d;margin:0 0 12px}
.read-more{display:inline-block;margin-top:auto;color:var(--dusn-red);font-size:11.5px;font-weight:700}
.read-more:hover{color:var(--dusn-red-dark)}

/* ---------- Sidebar ---------- */
.sidebar-widget{margin-bottom:16px;padding:0;background:transparent}
.widget-title{margin:0 0 14px;font-size:15.5px;line-height:1.25;font-weight:800;display:flex;align-items:center;gap:8px}
.widget-title:before{content:"";width:3px;height:18px;background:var(--dusn-red);display:inline-block}
.widget-title-icon:before{display:none}
.widget-icon{flex:none}
.trending-widget .widget-title:after{content:"";flex:1;height:1px;background:#d9dde0;margin-left:4px}
.trending-widget{padding:4px 8px 6px 0}
.trending-list{list-style:none;margin:0;padding:0;counter-reset:trend}
.trending-list li{counter-increment:trend;display:grid;grid-template-columns:24px 1fr;gap:12px;padding:0;margin-bottom:12px;border:0;align-items:start}
.trending-list li:before{content:counter(trend,decimal-leading-zero);background:var(--dusn-red);color:#fff;border-radius:3px;font-weight:800;font-size:12px;text-align:center;line-height:24px;height:24px;width:24px;margin-top:2px}
.trending-list a{font-size:12px;font-weight:700;line-height:1.35;display:block}
.trending-list .post-date{display:block;color:#8a949c;font-size:10px;font-weight:400;margin-top:2px}
.about-widget{background:#fdeceb;border:1px solid #f9dcda;border-radius:3px;padding:14px 14px 15px;margin-top:6px}
.about-widget .widget-title{font-size:13px;margin-bottom:6px}
.about-widget p{margin:0 0 11px;font-size:11px;color:#69737d;line-height:1.55}
.button-link,.wp-block-button__link{display:inline-block;background:var(--dusn-red);color:#fff!important;border:0;border-radius:2px;padding:6px 11px;font-size:10.5px;font-weight:700;line-height:1.4}
.button-link:hover,.wp-block-button__link:hover{background:var(--dusn-red-dark);color:#fff}

/* ---------- Archive / single / pages ---------- */
.archive-header{margin:0 0 22px;padding:20px;background:var(--dusn-bg);border-left:4px solid var(--dusn-red)}
.archive-header h1{margin:0;font-size:28px;line-height:1.2}
.archive-header p{margin:8px 0 0;color:var(--dusn-muted)}
.post-navigation,.pagination{margin-top:25px}
.nav-links{display:flex;justify-content:space-between;gap:10px}
.page-numbers{display:inline-block;border:1px solid var(--dusn-line);padding:7px 11px;margin:0 3px 3px 0;border-radius:3px;font-size:13px}
.page-numbers.current,.page-numbers:hover{background:var(--dusn-red);border-color:var(--dusn-red);color:#fff}
.single-article{max-width:850px;margin:0 auto}
.single-article .entry-title{font-size:clamp(30px,4vw,44px);line-height:1.13;letter-spacing:-1px;margin:12px 0}
.single-article .featured-image{margin:22px 0;border-radius:4px;overflow:hidden}
.single-article .entry-content{font-size:17px;line-height:1.8}
.single-article .entry-content h2,.single-article .entry-content h3{line-height:1.3}
.single-article .entry-content blockquote{margin:22px 0;padding:5px 18px;border-left:4px solid var(--dusn-red);color:#59636c}
.entry-content a{text-decoration:underline;text-decoration-color:#f5aaa6;text-underline-offset:3px}
.entry-content ul,.entry-content ol{padding-left:25px}
.no-results{padding:24px;background:var(--dusn-bg)}
.widget-area .widget{margin-bottom:18px}
.widget-area ul{padding-left:18px}
input,textarea{max-width:100%}

/* ---------- Footer ---------- */
body .site-footer{background:#23282d;border-top:0;padding:46px 0 22px;color:#c4c9ce;font-size:13px;line-height:1.6;margin-top:10px}
body .site-footer .footer-grid{display:grid;grid-template-columns:1.9fr 1fr 1fr 1fr;gap:44px;align-items:start;text-align:left}
body .site-footer .footer-logo{display:inline-block;font-size:24px;line-height:1.1;font-weight:900;letter-spacing:-.5px;text-transform:uppercase;color:#fff}
body .site-footer .footer-logo .brand-us{color:#f0443e}
body .site-footer .footer-logo:hover{color:#fff}
body .site-footer .footer-highlight{margin:16px 0 10px;font-size:15px;font-weight:800;color:#fff;line-height:1.35}
body .site-footer .footer-highlight span{color:#f0443e}
body .site-footer .footer-about{margin:0;font-size:12.5px;line-height:1.75;color:#c4c9ce;max-width:380px}
body .site-footer .footer-heading{margin:2px 0 16px;font-size:14px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#fff;line-height:1.3}
body .site-footer .footer-links{list-style:none;margin:0;padding:0;display:block}
body .site-footer .footer-links li{margin:0 0 9px;padding:0;display:block}
body .site-footer .footer-links li:before{content:none}
body .site-footer .footer-links a{font-size:12.5px;font-weight:400;color:#d6dadd;text-decoration:none}
body .site-footer .footer-links a:hover{color:#f0443e}
body .site-footer .footer-bottom{margin-top:34px;padding-top:20px;border-top:1px solid #363c42;text-align:center}
body .site-footer .footer-menu{list-style:none;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;margin:0 0 10px;padding:0}
body .site-footer .footer-menu li{display:flex;align-items:center}
body .site-footer .footer-menu li+li:before{content:"|";color:#6b737a;margin:0 11px}
body .site-footer .footer-menu a{font-weight:600;color:#d6dadd;font-size:11px}
body .site-footer .footer-menu a:hover{color:#f0443e}
body .site-footer .copyright{margin:0;font-size:11px;color:#9aa1a7}

/* ---------- Responsive ---------- */
@media(max-width:1000px){
  .posts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .brand-row{flex-direction:column;gap:6px}
  .top-nav{padding-top:0}
  .top-menu{justify-content:flex-start}
  .hero-grid{grid-template-columns:1fr}
  .hero-main{min-height:330px}
  .hero-side{grid-template-columns:1fr 1fr;grid-template-rows:none}
  .hero-small{min-height:180px}
  .section-heading{width:100%}
  .content-layout{grid-template-columns:1fr}
  .sidebar{display:grid;grid-template-columns:1fr 1fr;gap:20px}
  .sidebar-widget{margin-bottom:0}
}
@media(max-width:650px){
  .container{width:calc(100% - 24px)}
  .site-title{font-size:23px}
  .site-description{letter-spacing:1.4px}
  .primary-menu{width:calc(100% - 40px)}
  .primary-menu a{padding:11px 11px;font-size:12.5px}
  .content-area{padding-top:14px}
  .hero-main{min-height:300px}
  .hero-main .hero-copy{max-width:100%}
  .hero-side{grid-template-columns:1fr}
  .hero-small{min-height:170px}
  .hero-copy h2{font-size:21px}
  .posts-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .post-card .excerpt{display:none}
  .sidebar{grid-template-columns:1fr}
  .section-heading h2{font-size:19px}
  .single-article .entry-title{font-size:30px}
}
@media(max-width:430px){
  .posts-grid{grid-template-columns:1fr}
  .post-card .excerpt{display:block}
}

/* ---------- v1.1.1 hard overrides (win against plugin / Additional CSS / old cached rules) ---------- */
body .content-area .posts-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:17px!important}
body .content-area .post-card{display:flex!important;flex-direction:column!important;height:auto!important;border:1px solid #eceff1!important;border-radius:3px!important;background:#fff!important;overflow:hidden!important}
body .content-area .post-card .card-image-wrap{position:relative!important;display:block!important;width:100%!important;height:155px!important;aspect-ratio:auto!important;min-height:0!important;max-height:155px!important;overflow:hidden!important;background:#e9ecef!important}
body .content-area .post-card .card-image-wrap img,body .content-area .post-card img.card-image{position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center center!important;transform:none}
body .content-area .post-card:hover img.card-image{transform:scale(1.035)!important}
body .content-area .post-card .card-category{position:absolute!important;left:0!important;bottom:0!important;z-index:2}
body .content-area .post-card h3{font-size:15px!important;line-height:1.3!important;font-weight:700!important;margin:0 0 7px!important}
body .content-area .post-card .excerpt{font-size:12px!important;line-height:1.65!important;color:#69737d!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body .content-area .category-label{background:#f0443e!important;color:#fff!important}
body .content-area .read-more,body .content-area .section-heading .view-all{color:#f0443e!important}

/* Sidebar */
body .sidebar .sidebar-widget{border:0!important;background:transparent!important;padding:0 8px 0 0!important;box-shadow:none!important;margin-bottom:16px!important}
body .sidebar .about-widget{background:#fdeceb!important;border:1px solid #f9dcda!important;padding:14px!important;border-radius:3px!important}
body .sidebar .trending-list li{display:grid!important;grid-template-columns:24px 1fr!important;gap:12px!important;padding:0!important;margin:0 0 12px!important;border:0!important}
body .sidebar .trending-list li:before{background:#f0443e!important;color:#fff!important;width:24px!important;height:24px!important;line-height:24px!important;font-size:12px!important;border-radius:3px!important;padding:0!important}
body .sidebar .trending-list a{font-size:12px!important;line-height:1.35!important;font-weight:700!important;display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body .sidebar .trending-list .post-date{font-size:10px!important;line-height:1.4!important;font-weight:400!important;color:#8a949c!important;margin-top:2px!important}
body .sidebar .widget-title:before{background:#f0443e!important}
body .sidebar .widget-title-icon:before{display:none!important}

@media(max-width:1000px){body .content-area .posts-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){body .content-area .post-card .excerpt{display:none!important}}
@media(max-width:430px){body .content-area .posts-grid{grid-template-columns:1fr!important}body .content-area .post-card .excerpt{display:-webkit-box!important}}
@media(max-width:900px){body .site-footer .footer-grid{grid-template-columns:1fr 1fr;gap:30px}body .site-footer .footer-brand{grid-column:1/-1}body .site-footer .footer-about{max-width:none}}
@media(max-width:560px){body .site-footer{padding-top:34px}body .site-footer .footer-grid{grid-template-columns:1fr 1fr;gap:24px}}
