/*
Theme Name: UKBreaking
Theme URI: https://ukbigbreakingnews.co.uk/
Author: UKBreaking
Description: A bold, fast breaking-news theme for UK Big Breaking News. Dark header, red breaking alerts, bold headlines.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ukbreaking
Tags: news, breaking-news, dark, responsive, fast, two-columns, right-sidebar
*/
:root{
  --navy:#0F172A; --navy2:#1E293B; --red:#DC2626; --red-dark:#B91C1C;
  --bg:#FFFFFF; --ink:#0F172A; --muted:#64748B; --line:#E2E8F0; --light:#F8FAFC;
  --head:'Oswald','Archivo',Arial,sans-serif; --body:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:var(--body);color:var(--ink);background:var(--bg);line-height:1.65;font-size:17px}
img{max-width:100%;height:auto;display:block}
a{color:var(--navy);text-decoration:none}
a:hover{color:var(--red)}
h1,h2,h3,h4{font-family:var(--head);line-height:1.2;text-transform:uppercase;letter-spacing:.3px}
.container{max-width:1200px;margin:0 auto;padding:0 20px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.skip-link:focus{position:static;width:auto;height:auto;clip:auto;background:var(--red);color:#fff;padding:8px 14px;z-index:99}

/* ---------- Breaking bar ---------- */
.breaking-bar{background:var(--red);color:#fff;display:flex;align-items:stretch;overflow:hidden}
.breaking-badge{background:var(--navy);color:#fff;font-family:var(--head);font-weight:700;padding:10px 18px;display:flex;align-items:center;gap:10px;white-space:nowrap;text-transform:uppercase;letter-spacing:1px;font-size:15px;z-index:2}
.breaking-badge .dot{width:10px;height:10px;border-radius:50%;background:#fff;animation:pulse 1.2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.25}}
.breaking-ticker{overflow:hidden;white-space:nowrap;flex:1;display:flex;align-items:center}
.breaking-ticker span{display:inline-block;padding-left:100%;animation:tick 28s linear infinite;font-weight:600;font-size:15px}
.breaking-ticker a{color:#fff}
@keyframes tick{to{transform:translateX(-100%)}}

/* ---------- Header ---------- */
.site-header{background:var(--navy);color:#fff;position:sticky;top:0;z-index:50;box-shadow:0 2px 12px rgba(0,0,0,.35)}
.header-inner{display:flex;align-items:center;gap:24px;padding:12px 0}
.site-branding img{height:52px;width:auto}
.site-branding .wordmark{font-family:var(--head);font-size:26px;font-weight:700;color:#fff;line-height:1}
.site-branding .wordmark b{color:var(--red)}
.main-nav{margin-left:auto}
.main-nav ul{display:flex;list-style:none;gap:4px}
.main-nav a{color:#E2E8F0;font-family:var(--head);font-size:15px;text-transform:uppercase;letter-spacing:.6px;padding:10px 14px;display:block;border-bottom:3px solid transparent}
.main-nav a:hover,.main-nav .current-menu-item a{color:#fff;border-bottom-color:var(--red)}
.clock{font-family:var(--head);color:#94A3B8;font-size:14px;letter-spacing:1px;white-space:nowrap}
.icon-btn{background:none;border:1px solid #334155;color:#fff;width:40px;height:40px;border-radius:6px;cursor:pointer;display:none;align-items:center;justify-content:center}
.icon-btn svg{width:20px;height:20px}
.header-search{background:var(--navy2);display:none;padding:12px 0}
.header-search.open{display:block}
.header-search input{width:100%;padding:10px 14px;border-radius:6px;border:1px solid #334155;background:#0F172A;color:#fff;font-size:16px}

/* ---------- Hero ---------- */
.hero{background:var(--navy);color:#fff;padding:28px 0 34px}
.hero-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}
.hero-main{position:relative;border-radius:10px;overflow:hidden;min-height:420px;display:flex}
.hero-main img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,23,42,.05) 30%,rgba(15,23,42,.92))}
.hero-content{position:relative;margin-top:auto;padding:26px;z-index:2}
.kicker{display:inline-block;background:var(--red);color:#fff;font-family:var(--head);font-size:13px;letter-spacing:1.5px;padding:5px 12px;border-radius:4px;text-transform:uppercase;margin-bottom:12px}
.hero-content h2{font-size:34px;margin-bottom:10px}
.hero-content h2 a{color:#fff}
.hero-content h2 a:hover{color:#FCA5A5}
.hero-content p{color:#CBD5E1;font-size:16px}
.hero-side{display:flex;flex-direction:column;gap:14px}
.hero-item{display:flex;gap:14px;background:var(--navy2);border-radius:8px;padding:12px;border-left:4px solid var(--red)}
.hero-item img{width:110px;height:84px;object-fit:cover;border-radius:6px;flex-shrink:0}
.hero-item h3{font-size:16px;line-height:1.35}
.hero-item h3 a{color:#fff}
.hero-item time{color:#94A3B8;font-size:12.5px;font-family:var(--head);letter-spacing:.5px}

/* ---------- Sections ---------- */
.section{padding:38px 0}
.section.alt{background:var(--light)}
.section-head{display:flex;align-items:center;gap:14px;margin-bottom:22px;border-bottom:3px solid var(--navy);padding-bottom:10px}
.section-head h2{font-size:24px}
.section-head .bar{width:44px;height:6px;background:var(--red);flex-shrink:0}
.section-head .view-all{margin-left:auto;font-family:var(--head);font-size:14px;letter-spacing:1px;text-transform:uppercase;color:var(--red)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.cards.four{grid-template-columns:repeat(4,1fr)}
.card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}
.card:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(15,23,42,.12)}
.card-thumb{position:relative;display:block}
.card-thumb img{width:100%;height:190px;object-fit:cover}
.cards.four .card-thumb img{height:150px}
.card .kicker{position:absolute;top:12px;left:12px;margin:0}
.card-body{padding:16px 18px;display:flex;flex-direction:column;gap:10px;flex:1}
.card-body h3{font-size:18px;line-height:1.35;text-transform:none;font-family:var(--head)}
.card-excerpt{color:var(--muted);font-size:14.5px;flex:1}
.post-meta{display:flex;gap:14px;color:var(--muted);font-size:13px;font-family:var(--head);letter-spacing:.4px}

/* ---------- Latest updates feed ---------- */
.updates{background:var(--navy);color:#fff;border-radius:12px;padding:26px}
.updates h2{color:#fff;margin-bottom:18px;font-size:22px}
.update{display:flex;gap:16px;padding:14px 0;border-top:1px solid #1E293B}
.update time{font-family:var(--head);color:var(--red);font-size:14px;white-space:nowrap;letter-spacing:1px;min-width:86px}
.update h3{font-size:16px;text-transform:none}
.update h3 a{color:#E2E8F0}
.update h3 a:hover{color:#fff}

/* ---------- Layout / sidebar ---------- */
.layout{display:grid;grid-template-columns:1fr 320px;gap:30px;align-items:start}
.sidebar .widget{background:var(--light);border:1px solid var(--line);border-radius:10px;padding:20px;margin-bottom:22px}
.sidebar .widget h3{font-size:17px;margin-bottom:14px;padding-bottom:8px;border-bottom:3px solid var(--red);display:inline-block}
.sidebar ul{list-style:none}
.sidebar li{padding:8px 0;border-bottom:1px solid var(--line);font-size:15px}
.sidebar li:last-child{border:0}
.cat-count{background:var(--navy);color:#fff;font-size:12px;border-radius:20px;padding:2px 10px;margin-left:8px}
.recent{display:flex;gap:12px;align-items:center}
.recent img{width:64px;height:64px;object-fit:cover;border-radius:6px}
.tagcloud a{display:inline-block;background:#fff;border:1px solid var(--line);border-radius:20px;padding:4px 12px;margin:0 6px 8px 0;font-size:13px}

/* ---------- Single ---------- */
.single-wrap{padding:30px 0 50px}
.crumbs{font-size:13.5px;color:var(--muted);margin-bottom:16px;font-family:var(--head);letter-spacing:.4px}
.crumbs a{color:var(--red)}
.post-header{margin-bottom:22px}
.post-header h1{font-size:40px;margin:12px 0 14px;line-height:1.15}
.post-meta-row{display:flex;gap:18px;color:var(--muted);font-size:14px;font-family:var(--head);letter-spacing:.4px;flex-wrap:wrap}
.post-featured{margin:0 0 28px;border-radius:12px;overflow:hidden}
.post-featured img{width:100%;max-height:520px;object-fit:cover}
.post-body{font-size:18px}
.post-body h2{font-size:28px;margin:34px 0 14px;color:var(--navy)}
.post-body h3{font-size:22px;margin:28px 0 12px}
.post-body p{margin-bottom:20px}
.post-body>p:first-of-type::first-letter{font-family:var(--head);font-size:58px;float:left;line-height:.9;margin:6px 10px 0 0;color:var(--red)}
.post-body ul,.post-body ol{margin:0 0 20px 24px}
.post-body li{margin-bottom:8px}
.post-body img{border-radius:8px}
.post-body blockquote{border-left:5px solid var(--red);background:var(--light);padding:16px 20px;margin:0 0 24px;font-style:italic}
.post-tags{margin:28px 0;display:flex;flex-wrap:wrap;gap:8px}
.post-tags a{background:var(--navy);color:#fff;font-size:13px;padding:6px 14px;border-radius:20px;font-family:var(--head);letter-spacing:.5px}
.author-box{display:flex;gap:18px;background:var(--light);border:1px solid var(--line);border-radius:10px;padding:22px;margin:30px 0}
.author-box img{border-radius:50%;width:88px;height:88px}
.author-box h4{font-size:18px;margin-bottom:6px}
.prev-next{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:30px 0}
.prev-next a{border:1px solid var(--line);border-radius:8px;padding:14px 16px;display:block}
.prev-next a span{display:block;color:var(--red);font-family:var(--head);font-size:13px;letter-spacing:1px;margin-bottom:4px}
.prev-next .next{text-align:right}
.related{margin-top:40px}

/* ---------- Archive ---------- */
.archive-head{background:var(--navy);color:#fff;padding:34px 0;margin-bottom:30px}
.archive-head h1{font-size:34px}
.archive-head p{color:#94A3B8;margin-top:6px}
.pagination{display:flex;gap:8px;justify-content:center;margin:36px 0}
.pagination a,.pagination span{border:1px solid var(--line);border-radius:6px;padding:8px 16px;font-family:var(--head)}
.pagination .current{background:var(--red);color:#fff;border-color:var(--red)}

/* ---------- Newsletter ---------- */
.newsletter{background:var(--red);color:#fff;border-radius:12px;padding:34px;text-align:center}
.newsletter h2{color:#fff;font-size:26px;margin-bottom:8px}
.newsletter p{color:#FECACA;margin-bottom:18px}
.newsletter-form{display:flex;gap:10px;max-width:480px;margin:0 auto}
.newsletter-form input{flex:1;padding:12px 16px;border-radius:8px;border:0;font-size:16px}
.newsletter-form button{background:var(--navy);color:#fff;border:0;border-radius:8px;padding:12px 26px;font-family:var(--head);letter-spacing:1px;cursor:pointer;text-transform:uppercase}
.newsletter .thanks{display:none;color:#fff;font-weight:700}

/* ---------- Footer ---------- */
.site-footer{background:var(--navy);color:#CBD5E1;margin-top:50px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:30px;padding:44px 0}
.site-footer h3{color:#fff;font-size:16px;margin-bottom:16px;letter-spacing:1px}
.site-footer ul{list-style:none}
.site-footer li{margin-bottom:10px;font-size:14.5px}
.site-footer a{color:#94A3B8}
.site-footer a:hover{color:#fff}
.footer-brand img{height:44px;margin-bottom:14px}
.copyright{border-top:1px solid #1E293B;padding:18px 0;text-align:center;font-size:13.5px;color:#64748B}

/* ---------- 404 / search ---------- */
.notfound{text-align:center;padding:70px 0}
.notfound h1{font-size:90px;color:var(--red)}
.notfound h2{font-size:28px;margin:10px 0 18px}

/* ---------- Comments ---------- */
.comments{margin-top:40px}
.comments h3{font-size:22px;margin-bottom:18px}
.comment-list{list-style:none}
.comment{background:var(--light);border:1px solid var(--line);border-radius:8px;padding:16px 18px;margin-bottom:14px}
.comment-form input,.comment-form textarea{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:6px;margin-bottom:12px;font-size:15px}
.comment-form .submit{background:var(--red);color:#fff;border:0;border-radius:6px;padding:12px 28px;font-family:var(--head);letter-spacing:1px;cursor:pointer}

/* ---------- Responsive ---------- */

/* Mobile content safety: prevent horizontal overflow */
.post-body,.entry-content,.page-body{overflow-wrap:break-word;word-wrap:break-word;max-width:100%}
.post-body img,.entry-content img,.page-body img{max-width:100%;height:auto}
.post-body table,.entry-content table{width:100%;display:block;overflow-x:auto}
.post-body iframe,.entry-content iframe{max-width:100%}

@media(max-width:1000px){
  .hero-grid{grid-template-columns:1fr}
  .cards{grid-template-columns:repeat(2,1fr)}
  .cards.four{grid-template-columns:repeat(2,1fr)}
  .layout{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .clock{display:none}
}
@media(max-width:700px){
  .main-nav{display:none;position:absolute;top:100%;left:0;right:0;background:var(--navy);padding:10px 20px}
  .main-nav.open{display:block}
  .main-nav ul{flex-direction:column}
  .icon-btn.menu-toggle{display:flex}
  .icon-btn.search-toggle{display:flex}
  .cards,.cards.four{grid-template-columns:1fr}
  .hero-content h2{font-size:26px}
  .post-header h1{font-size:30px}
  .newsletter-form{flex-direction:column}
  .prev-next{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .breaking-badge{font-size:12px;padding:8px 12px}
}
