/*
Theme Name: TrendNews 2.0
Theme URI: https://www.sdkpage.com/trendnews-wordpress-theme
Author: SDKPage
Author URI: https://www.sdkpage.com/
Description: A WordPress news theme rebuilt from the TrendNews Blogger structure with headline grids, category news blocks, article ads, related posts, dark mode, search overlay, and mobile navigation.
Version: 2.0.56
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trendnews
Tags: news, blog, custom-menu, custom-logo, featured-images, theme-options, threaded-comments
*/

@font-face {
  font-family: "Google Sans";
  src: url("assets/fonts/google-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --site-width: 1180px;
  --primary: #008751;
  --primary-dark: #045b38;
  --accent: #18c46d;
  --breaking: #d71920;
  --bg: #f3f5f4;
  --card-bg: #ffffff;
  --header-bg: #070b08;
  --text: #151515;
  --text-muted: #6b7280;
  --border: #e0e0e0;
  --label-bg: #0a7c3e;
  --label-text: #ffffff;
  --footer-bg: #070b08;
  --footer-text: #cccccc;
  --tag-color: #0a7c3e;
  --hover-shadow: 0 4px 16px rgba(0,0,0,0.12);
  --font-body: "Google Sans", "Segoe UI", Arial, sans-serif;
  --font-article: "Google Sans", "Segoe UI", Arial, sans-serif;
  --font-heading: "Google Sans", "Segoe UI", Arial, sans-serif;
  --home-section-feature-height: 394px;
}

body.dark-mode {
  --primary: #008751;
  --primary-dark: #00683d;
  --accent: #8dd33f;
  --breaking: #008751;
  --bg: #000000;
  --card-bg: #0b0d0b;
  --header-bg: #182418;
  --text: #f8fff9;
  --text-muted: #aeb8ae;
  --border: #007a3d;
  --label-bg: #008751;
  --label-text: #ffffff;
  --footer-bg: #101110;
  --footer-text: #d8dfd9;
  --tag-color: #18c46d;
  --hover-shadow: 0 8px 24px rgba(0,135,81,0.26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; transition: background .3s, color .3s; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { display: block; max-width: 100%; height: auto; }
.trendnews-image-placeholder { display: block; width: 100%; min-height: 72px; aspect-ratio: 16/9; background: linear-gradient(135deg, #dfe7e2, #f7faf8); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

#header-wrapper { background: #eef4ef; padding: 10px 24px 8px; position: sticky; top: 0; z-index: 1000; }
body.dark-mode #header-wrapper { background: var(--bg); }
#header-inner { max-width: var(--site-width); min-height: 78px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(160px, 190px) minmax(0, 1fr) minmax(160px, 190px); align-items: center; gap: 14px; background: rgba(255,255,247,.92); border: 1px solid rgba(255,255,255,.9); border-radius: 32px; box-shadow: 0 2px 0 rgba(255,255,255,.9), 0 12px 28px rgba(0,0,0,.08); }
body.dark-mode #header-inner { background: var(--header-bg); border-color: color-mix(in srgb, var(--border) 42%, transparent); box-shadow: 0 14px 34px rgba(0,0,0,.62); }
body.logo-centered #header-inner { grid-template-columns: 1fr; text-align: center; }
body.logo-centered .header-menu, body.logo-centered .header-actions { justify-content: center; }
#header-logo a, .site-title { display: inline-flex; flex-direction: column; align-items: flex-start; max-width: 100%; color: #078c50; font-size: 33px; font-weight: 950; letter-spacing: 0; line-height: 1; }
body.logo-centered #header-logo a { align-items: center; }
#header-logo span, .mobile-logo span, #footer-logo span { color: #78be20; }
.site-description { display: block; margin-top: 4px; color: #111; font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
body.dark-mode .site-description { color: #d1d5db; }
.custom-logo { max-height: 62px; width: auto; }
.header-menu { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.45vw, 24px); min-width: 0; overflow: hidden; }
.header-menu ul, .mobile-menu ul, #footer-links ul { display: flex; flex-wrap: wrap; gap: inherit; margin: 0; padding: 0; list-style: none; }
.header-menu a { color: #111; font-size: 13px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
body.dark-mode .header-menu a { color: #f4fff6; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.mobile-menu-toggle, #dark-toggle, #search-btn, .hide-mobile-menu, #search-close { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; }
.mobile-menu-toggle, #dark-toggle, #search-btn { position: relative; width: 48px; height: 48px; padding: 0; border-radius: 50%; background: #fff; color: #111; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.mobile-menu-toggle { display: none; font-size: 22px; }
#dark-toggle, #search-btn { font-size: 0; }
#dark-toggle::before { content: ""; width: 19px; height: 19px; border: 3px solid currentColor; border-radius: 50%; }
#dark-toggle::after { content: ""; position: absolute; width: 12px; height: 24px; border-radius: 0 999px 999px 0; background: currentColor; transform: translateX(5px); opacity: .82; }
#search-btn::before { content: ""; position: absolute; width: 17px; height: 17px; border: 3px solid currentColor; border-radius: 50%; transform: translate(-3px,-3px); }
#search-btn::after { content: ""; position: absolute; width: 12px; height: 3px; border-radius: 999px; background: currentColor; transform: translate(8px,8px) rotate(45deg); }
body.dark-mode .mobile-menu-toggle, body.dark-mode #dark-toggle, body.dark-mode #search-btn { background: var(--card-bg); color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.42); }

#mobile-overlay { position: fixed; inset: 0; z-index: 2200; visibility: hidden; opacity: 0; background: rgba(0,0,0,.58); transition: opacity .2s, visibility .2s; }
body.nav-active #mobile-overlay { visibility: visible; opacity: 1; }
#slide-menu { position: fixed; top: 0; bottom: 0; left: 0; z-index: 2300; width: 310px; max-width: 86vw; visibility: hidden; transform: translateX(-100%); background: var(--card-bg); color: var(--text); box-shadow: 4px 0 24px rgba(0,0,0,.24); transition: transform .25s, visibility .25s; }
body.nav-active #slide-menu { visibility: visible; transform: translateX(0); }
.slide-menu-header { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 18px; background: var(--header-bg); }
.mobile-logo a { color: #fff; font-size: 23px; font-weight: 950; letter-spacing: 0; }
.hide-mobile-menu { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 28px; }
.slide-menu-flex { height: calc(100% - 68px); overflow-y: auto; padding: 18px; display: flex; flex-direction: column; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 0; }
.mobile-menu a { display: block; padding: 12px; border-bottom: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 900; text-transform: uppercase; }
.slide-menu-footer-slot { margin-top: auto; padding-top: 18px; color: var(--text-muted); font-size: 12px; }

.ad-banner { max-width: var(--site-width); margin: 12px auto; padding: 0 16px; text-align: center; }
.ad-banner-inner { display: inline-block; width: 100%; padding: 12px 24px; background: #111827; color: #fff; border-left: 5px solid var(--primary); border-radius: 3px; font-size: 13px; font-weight: 800; text-transform: uppercase; }
#main-wrapper { max-width: var(--site-width); margin: 0 auto; padding: 16px; }
.section-label { display: flex; align-items: center; gap: 12px; margin: 30px 0 24px; }
.section-label span { flex: 0 0 auto; padding: 7px 16px; border: 5px solid #eeeeee; border-radius: 999px; background: var(--label-bg); color: var(--label-text); box-shadow: none; font-size: 12px; font-weight: 950; line-height: 1; text-transform: uppercase; }
.section-label::before, .section-label::after { content: ""; flex: 1; height: 2px; background: var(--primary); }
.more-btn { display: block; width: fit-content; min-width: 260px; margin: 20px auto 0; padding: 9px 44px; border: 1px solid rgba(0,135,81,.32); border-radius: 14px; background: rgba(0,135,81,.13); color: var(--primary); text-align: center; font-size: 14px; font-weight: 700; }
.more-btn:hover { background: var(--primary); color: #fff; }

.post-card, .archive-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--hover-shadow); transform: translateY(-2px); }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #d1d5db; }
.post-card-body { padding: 8px 10px 10px; }
.post-card-label, .post-list-item-label, .archive-card-kicker span { color: var(--tag-color); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.post-card-title { display: block; margin-top: 4px; color: var(--text); font-size: 13px; font-weight: 850; line-height: 1.38; }
.post-card-meta, .archive-card-kicker time { color: var(--text-muted); font-size: 11px; }
.post-featured { position: relative; height: 100%; min-height: 260px; border-radius: 12px; overflow: hidden; background: #d1d5db; }
.post-featured img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.post-featured-overlay { position: absolute; right: 0; bottom: 0; left: 0; padding: 58px 22px 22px; background: linear-gradient(transparent, rgba(0,0,0,.84)); }
.post-featured-overlay .post-card-label, .post-featured-overlay .post-card-title { color: #fff; }
.post-featured-overlay .post-card-title { font-size: 18px; line-height: 1.2; font-weight: 900; }
.post-list-item { display: flex; gap: 10px; }
.post-list-item img { width: 72px; height: 72px; flex-shrink: 0; object-fit: cover; border-radius: 8px; background: #d1d5db; }
.post-list-item-title { display: block; color: var(--text); font-size: 14px; font-weight: 800; line-height: 1.23; }

.headlines-grid { display: grid; grid-template-columns: .74fr 1.54fr .9fr; gap: 16px; align-items: stretch; width: 100%; min-width: 0; max-width: 100%; margin-left: 0; transform: none; }
.headlines-left, .headlines-right, .section-grid-right, .entertainment-right-list, .sports-right-list { display: flex; flex-direction: column; gap: 14px; }
.headlines-left { justify-content: space-between; gap: 12px; min-width: 0; }
.headlines-left .entertainment-mini-card { display: block; }
.headlines-left .entertainment-mini-card > a { display: block; }
.headlines-left .entertainment-mini-card img { width: 100%; aspect-ratio: 5 / 3.25; height: auto; border-radius: 14px; object-fit: cover; }
.headlines-left .post-list-item-body { padding-top: 8px; }
.headlines-left .post-list-item-title { font-size: 16px; font-weight: 700; line-height: 1.14; }
.headlines-center .post-featured { height: 100%; min-height: 0; aspect-ratio: auto; border-radius: 14px; }
.headlines-center .post-featured img { min-height: 0; height: 100%; }
.headlines-center .post-featured-overlay { padding: 58px 22px 22px; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.headlines-center .post-featured-overlay .post-card-label { color: var(--primary); }
.headlines-center .post-featured-overlay .post-card-title { font-size: 24px; line-height: 1.12; font-weight: 650; letter-spacing: 0; }
.headlines-right { padding-top: 0; }
.headlines-right .post-list-item, .entertainment-right-list .post-list-item { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.headlines-right .post-list-item { gap: 14px; align-items: flex-start; padding-bottom: 8px; }
.headlines-right .post-list-item > a, .section-grid-right .post-list-item > a, .entertainment-right-list .post-list-item > a, .magazine-feature-list .post-list-item > a, .sports-list-item > a { flex: 0 0 76px; width: 76px; }
.headlines-right .post-list-item img, .section-grid-right .post-list-item img, .entertainment-right-list .post-list-item img, .magazine-feature-list .post-list-item img, .sports-list-item img { width: 76px; height: 76px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; }
.headlines-right .post-list-item-label { margin-bottom: 5px; color: var(--primary); font-size: 13px; }
.headlines-right .post-list-item-title { font-size: 13px; line-height: 1.18; font-weight: 750; }
.headlines-more-btn { min-width: min(330px, 86%); margin-top: auto; }
.headlines-more-btn::after { content: " \2192"; }
.trendnews-home-widget, .home-section { margin: 0; padding: 0; }
.section-grid { display: grid; grid-template-columns: minmax(380px, 1.05fr) minmax(260px, .7fr) minmax(260px, .7fr); gap: 22px; align-items: stretch; }
.section-grid > div:first-child, .home-section-standard .post-featured { min-height: var(--home-section-feature-height); }
.section-grid .post-featured-overlay .post-card-title { font-size: 26px; line-height: 1.12; font-weight: 750; }
.entertainment-news-grid { display: grid; grid-template-columns: .74fr 1.54fr .9fr; gap: 16px; align-items: stretch; width: 100%; min-width: 0; max-width: 100%; }
.entertainment-mini-card { display: flex; gap: 10px; }
.entertainment-mini-card img { width: 100%; aspect-ratio: 5 / 3.25; object-fit: cover; border-radius: 14px; }
.entertainment-left-cards { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; }
.entertainment-left-cards .entertainment-mini-card { display: block; }
.entertainment-left-cards .entertainment-mini-card > a { display: block; }
.entertainment-left-cards .post-list-item-body { padding-top: 8px; }
.entertainment-left-cards .post-list-item-title { font-size: 16px; font-weight: 700; line-height: 1.14; }
.entertainment-featured .post-featured { height: 100%; min-height: 0; aspect-ratio: auto; border-radius: 14px; }
.entertainment-featured .post-featured img { min-height: 0; height: 100%; }
.entertainment-featured .post-featured-overlay { padding: 58px 22px 22px; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.entertainment-featured .post-featured-overlay .post-card-label { color: var(--primary); }
.entertainment-featured .post-featured-overlay .post-card-title { font-size: 24px; line-height: 1.12; font-weight: 650; letter-spacing: 0; }
.entertainment-right-list { padding-top: 0; }
.entertainment-right-list .post-list-item { gap: 14px; align-items: flex-start; padding-bottom: 8px; }
.entertainment-right-list .post-list-item-label { margin-bottom: 5px; color: var(--primary); font-size: 13px; }
.entertainment-right-list .post-list-item-title { font-size: 13px; line-height: 1.18; font-weight: 750; }
.entertainment-more-btn { min-width: min(330px, 86%); margin-top: auto; }
.entertainment-more-btn::after { content: " \2192"; }
.metro-news-grid, .four-col-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.metro-card { background: transparent; }
.metro-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.magazine-feature-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, .62fr) minmax(280px, .72fr); gap: 18px; align-items: stretch; }
.magazine-feature-main .post-featured { min-height: var(--home-section-feature-height); border-radius: 14px; }
.magazine-feature-main .post-featured-overlay .post-card-title { font-size: 30px; line-height: 1.08; font-weight: 850; }
.magazine-feature-cards, .magazine-feature-list { display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: var(--home-section-feature-height); }
.magazine-feature-card { min-height: 0; overflow: hidden; border-bottom: 1px solid var(--border); background: transparent; }
.magazine-feature-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; }
.magazine-feature-card .post-card-body { padding: 9px 0 14px; }
.magazine-feature-card .post-card-title { font-size: 16px; line-height: 1.18; font-weight: 850; }
.magazine-feature-list { padding-left: 4px; }
.magazine-feature-list .post-list-item { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.magazine-feature-list .post-list-item-label { margin-bottom: 4px; color: var(--primary); }
.magazine-more-btn { min-width: 240px; margin-top: auto; }
.sports-news-grid { display: grid; grid-template-columns: minmax(0, 1.33fr) minmax(390px, 1.11fr); gap: 16px; align-items: stretch; }
.sports-featured .post-featured { min-height: 360px; border-radius: 14px; }
.sports-featured .post-featured-overlay { padding: 66px 24px 24px; }
.sports-featured .post-featured-overlay .post-card-title { font-size: 27px; line-height: 1.1; font-weight: 800; }
.sports-right-list { gap: 15px; justify-content: space-between; height: 100%; }
.sports-list-item { display: flex; align-items: center; gap: 16px; min-height: 104px; padding: 0 17px 0 0; border: 0; border-radius: 12px; background: var(--card-bg); box-shadow: 4px 5px 0 rgba(0,0,0,.07); overflow: hidden; }
.sports-list-item > a { flex: 0 0 154px; width: 154px; align-self: stretch; }
.sports-list-item img { width: 154px; height: 104px; aspect-ratio: auto; border-radius: 12px; object-fit: cover; }
.sports-list-item .post-list-item-label { margin-bottom: 6px; color: var(--text); font-size: 11px; font-weight: 850; }
.sports-list-item .post-list-item-title { font-size: 16px; line-height: 1.18; font-weight: 700; }

.archive-page-heading, .page-heading { max-width: 760px; margin: 0 auto; padding: 42px 0 26px; text-align: center; }
.archive-page-heading h1, .page-heading h1 { margin: 0; color: var(--text); font-family: var(--font-heading); font-size: 34px; line-height: 1.08; }
.archive-grid { display: flex; flex-direction: column; gap: 22px; max-width: 760px; margin: 0 auto; }
.archive-card { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 18px; align-items: center; background: transparent; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding-top: 22px; }
.archive-card img { width: 100%; height: 126px; object-fit: cover; border-radius: 12px; }
.archive-card-title { display: block; margin: 0 0 6px; color: var(--text); font-size: 21px; font-weight: 650; line-height: 1.12; }
.archive-card-snippet { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.35; }
.pagination, .post-nav { display: flex; justify-content: center; gap: 12px; margin: 30px auto; }
.pagination a, .pagination span, .post-nav a { padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--card-bg); font-weight: 800; }

.single-post-wrapper, .static-page-wrapper { max-width: 760px; margin: 0 auto; padding: 18px 0 34px; }
body.single #main-wrapper { padding-top: 16px; }
body.single .single-post-wrapper { padding-top: 0; }
body.single-layout-left .single-post-wrapper, body.single-layout-left .about-author, body.single-layout-left .related-posts, body.single-layout-left .comment-section-box, body.single-layout-left .post-nav { margin-left: 0; margin-right: auto; }
body.single-layout-center .single-post-wrapper, body.single-layout-center .about-author, body.single-layout-center .related-posts, body.single-layout-center .comment-section-box, body.single-layout-center .post-nav { margin-left: auto; margin-right: auto; }
body.single #breadcrumb { display: none; }
body.single .single-post-wrapper .section-label { display: inline-flex; gap: 0; margin: 0 0 12px; }
body.single .single-post-wrapper .section-label::before, body.single .single-post-wrapper .section-label::after { display: none; }
body.single .single-post-wrapper .section-label span { padding: 7px 15px; border: 5px solid #dfe5e1; font-size: 11px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.single-title, .static-page-title { margin: 0 0 8px; color: var(--text); font-family: var(--font-heading); font-size: 24px; line-height: 1.18; font-weight: 650; letter-spacing: 0; }
.static-page-title { font-size: clamp(32px, 5vw, 56px); line-height: 1.02; }
.single-meta, .single-author-line { color: var(--text-muted); font-size: 11px; font-weight: 700; line-height: 1.35; }
.single-author-line { margin-top: 3px; color: var(--text); }
.single-author-line a { color: var(--primary); font-weight: 900; }
.share-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 14px; }
.share-row a, .native-share, .single-share-copy { border: 0; font-family: inherit; cursor: pointer; }
.share-row > a, .native-share { display: inline-flex; align-items: center; justify-content: center; min-height: 31px; padding: 7px 15px; border-radius: 999px; background: #f1f1f1; color: #202020; box-shadow: 0 1px 0 rgba(0,0,0,.12), inset 0 0 0 1px rgba(0,0,0,.08); font-size: 13px; font-weight: 900; line-height: 1; }
.share-row .native-share { gap: 7px; background: #cf211a; color: #fff; box-shadow: none; }
.share-row .native-share::before { content: "\26AD"; display: inline-block; font-size: 20px; font-weight: 400; line-height: .7; transform: rotate(-22deg); }
.share-row .google-news-follow { gap: 8px; padding-left: 12px; }
.share-row .google-news-follow img { width: 20px; height: 20px; border-radius: 50%; object-fit: contain; }
.single-share-panel { position: absolute; top: calc(100% + 9px); left: 0; z-index: 20; width: min(268px, calc(100vw - 32px)); padding: 10px; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; background: var(--card-bg); box-shadow: 0 12px 34px rgba(0,0,0,.18); }
.single-share-panel[hidden] { display: none; }
.single-share-url { overflow: hidden; margin-bottom: 10px; padding: 12px 14px; border-radius: 8px; background: rgba(0,135,81,.08); color: var(--primary); font-size: 12px; font-weight: 850; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.single-share-panel a, .single-share-copy { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 14px; border-top: 1px solid var(--border); background: transparent; color: var(--text); text-align: left; font-size: 14px; font-weight: 750; box-shadow: none; }
.single-share-copy { border-top: 0; }
.share-icon { display: block; flex: 0 0 18px; width: 18px; height: 18px; }
.single-featured-image { margin-top: 0; }
.single-featured-image img { width: 100%; aspect-ratio: 45/28; object-fit: cover; border-radius: 10px; }
.single-featured-caption { margin-top: 10px; padding: 9px 13px; border-left: 3px solid var(--primary); background: #f5f5f5; color: #333; font-size: 11px; line-height: 1.2; }
.single-body, .static-page-body { margin-top: 24px; font-family: var(--font-article); color: var(--text); font-size: 16px; line-height: 1.62; }
.static-page-body { margin-top: 24px; font-size: 19px; line-height: 1.78; }
.single-body p, .static-page-body p { margin: 0 0 1.55em; }
.single-body em, .single-body i { font-style: italic; }
.article-ad-slot { margin: 24px 0; }
.about-author, .comment-section-box, .related-posts { max-width: 760px; margin: 42px auto 22px; padding-top: 14px; border-top: 3px solid var(--primary); }
.about-author { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 4px; align-items: start; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.author-label { grid-column: 1; grid-row: 1; align-self: start; color: var(--text); font-size: 13px; font-weight: 900; line-height: 1.35; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.about-author .author-avatar { grid-column: 1; grid-row: 2; justify-self: start; margin-top: -2px; }
.author-content { grid-column: 2; grid-row: 1 / span 2; }
.author-title { display: inline-block; margin: 0 0 5px; color: var(--primary); font-size: 13px; font-weight: 900; line-height: 1.35; }
.author-text { margin: 0; color: var(--text); font-size: 13px; line-height: 1.4; }
.author-more-link { display: inline-block; margin-top: 6px; color: var(--primary); font-size: 12px; font-weight: 900; }
.related-title-row, .comment-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.related-title-row h3, .comment-title-row h3 { margin: 0; color: var(--primary); font-size: 14px; font-weight: 950; text-transform: uppercase; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 26px; }
.related-posts { margin-top: 42px; padding-top: 12px; border-top: 2px solid var(--primary); }
.related-view-all { display: none; }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.related-card-title { display: block; margin-top: 9px; color: var(--text); font-size: 13px; font-weight: 800; line-height: 1.12; }
body.single .post-nav { display: none; }
.comment-section-box .comment-form-comment textarea { width: 100%; min-height: 160px; }

#footer-wrapper { margin-top: 32px; padding: 32px 16px 16px; background: var(--footer-bg); color: var(--footer-text); }
#footer-inner { max-width: var(--site-width); margin: 0 auto; text-align: center; }
#footer-logo { margin-bottom: 6px; color: #fff; font-size: 28px; font-weight: 900; }
#footer-logo .custom-logo { max-height: 70px; margin: 0 auto; }
#footer-links { margin: 14px 0; }
#footer-links ul { justify-content: center; gap: 6px 20px; }
#footer-links a { color: #aaa; font-size: 12px; font-weight: 800; text-transform: uppercase; }
#footer-copy { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); color: #777; font-size: 11px; }
body.single #footer-wrapper { margin-top: 72px; padding: 54px 16px 0; background: #d1d1d1; color: #111; }
body.single #footer-logo { margin-bottom: 22px; color: var(--primary); font-size: 44px; }
body.single #footer-logo a { color: var(--primary); }
body.single #footer-links { margin: 18px 0 34px; }
body.single #footer-links a { color: #111; }
body.single #footer-copy { margin-top: 0; padding: 16px; border-top: 0; background: var(--primary); color: #fff; box-shadow: 0 0 0 100vmax var(--primary); clip-path: inset(0 -100vmax); }

#search-overlay { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.78); }
#search-overlay.open { display: flex; }
#search-box { width: min(680px, 100%); }
#search-box .search-form { display: flex; gap: 10px; }
#search-box input[type="search"] { flex: 1; min-width: 0; padding: 18px 20px; border: 0; border-radius: 14px; font-size: 20px; }
#search-box .search-submit { padding: 0 22px; border: 0; border-radius: 14px; background: var(--primary); color: #fff; font-weight: 950; }
#search-close { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: #fff; font-size: 24px; }
.error-page { max-width: 760px; margin: 60px auto; text-align: center; }
.error-code { color: var(--primary); font-size: 92px; font-weight: 950; line-height: 1; }

@media (max-width: 980px) {
  #header-wrapper { padding: 8px 12px; }
  #header-inner { position: relative; grid-template-columns: 92px minmax(0, 1fr) 92px; min-height: 62px; gap: 8px; padding: 0 12px; border-radius: 24px; }
  body.logo-centered #header-inner { grid-template-columns: 92px minmax(0, 1fr) 92px; text-align: center; }
  #header-logo { grid-column: 2; grid-row: 1; justify-self: center; min-width: 0; max-width: 100%; text-align: center; z-index: 1; }
  #header-logo a, .site-title { align-items: center; font-size: 28px; text-align: center; }
  #header-logo .custom-logo, #header-logo img { width: min(186px, 100%); max-height: 46px; object-fit: contain; }
  .header-menu { display: none; }
  .header-actions { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px 42px; gap: 6px; align-items: center; justify-content: stretch; z-index: 2; }
  body.logo-centered .header-actions { justify-content: stretch; }
  .mobile-menu-toggle { display: inline-flex; }
  .mobile-menu-toggle { grid-column: 1; justify-self: start; border-radius: 12px; }
  #dark-toggle { grid-column: 3; justify-self: end; }
  #search-btn { grid-column: 4; justify-self: end; }
  .headlines-grid, .section-grid, .entertainment-news-grid, .magazine-feature-grid { grid-template-columns: 1fr 1fr; }
  .headlines-right, .sports-featured, .magazine-feature-main, .entertainment-featured, .headlines-center { grid-column: 1 / -1; }
  .headlines-center { order: -1; }
  .headlines-center .post-featured { min-height: 0; }
  .entertainment-featured { order: -1; }
  .entertainment-featured .post-featured { min-height: 0; }
  .magazine-feature-main .post-featured, .magazine-feature-cards, .magazine-feature-list { min-height: var(--home-section-feature-height); }
  .metro-news-grid, .four-col-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sports-news-grid { grid-template-columns: 1fr; }
  .sports-featured .post-featured { min-height: 430px; }
}

@media (max-width: 680px) {
  #main-wrapper { padding: 12px; }
  #header-wrapper { padding: 6px 8px; }
  #header-inner { grid-template-columns: 48px minmax(0, 1fr) 92px; min-height: 58px; padding: 0 10px; border-radius: 18px; }
  body.logo-centered #header-inner { grid-template-columns: 48px minmax(0, 1fr) 92px; }
  #header-logo a, .site-title { font-size: 25px; }
  #header-logo .custom-logo, #header-logo img { width: min(156px, 100%); max-height: 42px; }
  .site-description { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; letter-spacing: 1.3px; }
  .header-actions { grid-template-columns: 42px minmax(0, 1fr) 42px 42px; gap: 4px; }
  #dark-toggle, #search-btn, .mobile-menu-toggle { width: 42px; height: 42px; }
  .headlines-grid, .section-grid, .entertainment-news-grid, .metro-news-grid, .four-col-grid, .sports-news-grid, .magazine-feature-grid { grid-template-columns: 1fr; }
  .headlines-center { order: -1; }
  .headlines-center .post-featured { min-height: 0; }
  .headlines-center .post-featured-overlay .post-card-title { font-size: 23px; }
  .entertainment-featured .post-featured { min-height: 0; }
  .entertainment-featured .post-featured-overlay .post-card-title { font-size: 23px; }
  .entertainment-left-cards { gap: 0; }
  .magazine-feature-main .post-featured { min-height: 330px; }
  .magazine-feature-main .post-featured-overlay .post-card-title { font-size: 23px; }
  .magazine-feature-card { display: flex; gap: 10px; padding-bottom: 12px; }
  .magazine-feature-card > a { flex: 0 0 72px; }
  .magazine-feature-card img { width: 72px; height: 72px; border-radius: 8px; }
  .magazine-feature-card .post-card-body { padding: 0; }
  .magazine-feature-card .post-card-title { font-size: 14px; }
  .sports-featured .post-featured { min-height: 330px; }
  .sports-list-item { gap: 12px; min-height: 82px; padding-right: 12px; box-shadow: 4px 5px 0 rgba(0,0,0,.07); }
  .sports-list-item > a { flex: 0 0 92px; width: 92px; }
  .sports-list-item img { width: 92px; height: 82px; border-radius: 12px; }
  .sports-list-item .post-list-item-title { font-size: 14px; line-height: 1.18; }
  .sports-list-item .post-list-item-label { margin-bottom: 5px; font-size: 10px; }
  .post-card, .metro-card, .headlines-left .entertainment-mini-card, .entertainment-left-cards .entertainment-mini-card { display: flex; gap: 10px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; padding-bottom: 12px; }
  .post-card > a, .metro-card > a, .entertainment-mini-card > a { flex: 0 0 72px; }
  .post-card img, .metro-card img, .entertainment-mini-card img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
  .metro-card .post-card-body { padding: 0; }
  .archive-card { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
  .archive-card img { height: 82px; }
  .archive-card-title { font-size: 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 14px; align-items: center; }
  .related-card img { width: 90px; height: 90px; }
  .related-card-title { margin-top: 0; }
  .single-body, .static-page-body { font-size: 17px; }
  body.single #main-wrapper { padding-top: 12px; }
  .single-title { font-size: 22px; }
  .single-body { margin-top: 20px; font-size: 16px; }
  .about-author { grid-template-columns: 44px minmax(0, 1fr); gap: 2px 4px; }
  .about-author .author-label { grid-column: 1; }
  .author-avatar { width: 44px; height: 44px; }
  .about-author .author-avatar { margin-top: -1px; }
  body.single #footer-logo { font-size: 34px; }
}
