/*
Theme Name: DDM News
Theme URI: https://www.diasporadigitalmedia.com
Author: Diaspora Digital Media (DDM)
Author URI: https://www.diasporadigitalmedia.com
Description: A fast, high-volume news magazine theme for DDM News — Nigeria breaking news, Africa and world news. Includes a configurable homepage (latest, featured, category blocks, video, trending, load-more feed), breaking-news ticker, Lagos weather, ad slots, dark mode, post view tracking, reading time, share buttons, related posts, author boxes, contact and "Report News" forms, and auto-created site pages.
Version: 1.9.3
Requires at least: 6.2
Tested up to: 7.1
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: ddm-news
Tags: news, blog, magazine, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-options
*/

/* ==========================================================================
   1. Variables
   ========================================================================== */
:root {
	--ddm-primary: #0b2545;
	--ddm-accent: #d7263d;
	--ddm-accent-dark: #a91b2e;
	--ddm-soft: #d5e0eb;
	--ddm-bg: #ffffff;
	--ddm-bg-alt: #f4f6f9;
	--ddm-text: #1b1f24;
	--ddm-muted: #5d6673;
	--ddm-border: #e3e7ec;
	--ddm-card: #ffffff;
	--ddm-radius: 6px;
	--ddm-shadow: 0 2px 10px rgba(11, 37, 69, .08);
	--ddm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ddm-font-head: "Merriweather", Georgia, "Times New Roman", serif;
	--ddm-container: 1240px;
}
html[data-theme="dark"] {
	--ddm-bg: #0f141a;
	--ddm-bg-alt: #161d25;
	--ddm-text: #e7ebef;
	--ddm-muted: #9aa5b1;
	--ddm-border: #26303b;
	--ddm-card: #151c24;
	--ddm-soft: #1e2a38;
	--ddm-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--ddm-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ddm-text);
	background: var(--ddm-bg);
	transition: background .2s, color .2s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ddm-accent); }
h1, h2, h3, h4, h5, h6 { font-family: var(--ddm-font-head); line-height: 1.3; margin: 0 0 .5em; color: var(--ddm-text); }
p { margin: 0 0 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"], textarea, select {
	width: 100%; padding: 10px 12px; border: 1px solid var(--ddm-border); border-radius: var(--ddm-radius); background: var(--ddm-card);
}
textarea { min-height: 140px; resize: vertical; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 9999; background: #fff; color: #000; padding: 10px 14px; width: auto; height: auto; clip: auto; }
.container { max-width: var(--ddm-container); margin: 0 auto; padding: 0 16px; }
.btn, button[type="submit"], input[type="submit"], .wp-block-button__link {
	display: inline-block; background: var(--ddm-accent); color: #fff; border: 0; border-radius: var(--ddm-radius);
	padding: 10px 20px; font-weight: 600; cursor: pointer; transition: background .2s;
}
.btn:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--ddm-accent-dark); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--ddm-accent); color: var(--ddm-accent); }
.btn-outline:hover { background: var(--ddm-accent); color: #fff; }

/* ==========================================================================
   3. Top bar & header
   ========================================================================== */
.topbar { background: var(--ddm-primary); color: #dfe7f0; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #dfe7f0; }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.ddm-weather { display: inline-flex; gap: 6px; align-items: center; }
.topbar a.topbar-subscribe { background: var(--ddm-accent); color: #fff; padding: 3px 12px; border-radius: 3px; font-weight: 700; }
.topbar a.topbar-subscribe:hover { background: var(--ddm-accent-dark); color: #fff; }
.social-links { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social-links a { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; }
.social-links svg { width: 15px; height: 15px; fill: currentColor; }
.social-widget a { background: var(--ddm-primary); color: #fff; width: 38px; height: 38px; }
.social-widget a:hover { background: var(--ddm-accent); color: #fff; }
.entry-content iframe[src*="youtube.com"], .entry-content iframe[src*="youtube-nocookie.com"], .entry-content iframe[src*="vimeo.com"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.footer .social-links a { background: rgba(255, 255, 255, .08); width: 34px; height: 34px; }

.header-ad { text-align: center; padding: 10px 0; background: var(--ddm-bg-alt); border-bottom: 1px solid var(--ddm-border); overflow: hidden; }
.header-ad .ddm-ad { margin: 0 auto; min-height: 0; }
.header-ad img { margin: 0 auto; width: 100%; height: auto; }
.header-ad picture { display: block; }
/* Responsive leaderboard. AdSense units get a fixed size per screen width (space reserved so the
   page doesn't jump); banner images scale to fit, up to the chosen desktop size. */
.header-ad .ddm-ad { max-width: 728px; }
.header-ad-970x90 .ddm-ad, .header-ad-970x250 .ddm-ad { max-width: 970px; }
.header-ad .ddm-ad:has(ins.adsbygoogle) { min-height: 100px; }
.header-ad ins.adsbygoogle[style*="inline-block"] { width: 320px; height: 100px; }
@media (min-width: 500px) {
	.header-ad .ddm-ad:has(ins.adsbygoogle) { min-height: 60px; }
	.header-ad ins.adsbygoogle[style*="inline-block"] { width: 468px; height: 60px; }
}
@media (min-width: 768px) {
	.header-ad .ddm-ad:has(ins.adsbygoogle) { min-height: 90px; }
	.header-ad ins.adsbygoogle[style*="inline-block"] { width: 728px; height: 90px; }
}
@media (min-width: 1010px) {
	.header-ad-970x90 ins.adsbygoogle[style*="inline-block"] { width: 970px; height: 90px; }
	.header-ad-970x250 .ddm-ad:has(ins.adsbygoogle) { min-height: 250px; }
	.header-ad-970x250 ins.adsbygoogle[style*="inline-block"] { width: 970px; height: 250px; }
}
@media (max-width: 680px) { .header-ad { padding: 6px 0; } }
@media (max-width: 767px) { .header-ad picture img { max-width: 360px; } }
/* Pasted ad code: never wider than the screen. */
.header-ad .ddm-ad > iframe, .header-ad .ddm-ad > div { max-width: 100%; margin: 0 auto; }
.header-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

.site-header { background: var(--ddm-bg); border-bottom: 1px solid var(--ddm-border); }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 16px; gap: 12px; }
.header-main .site-branding { flex: 0 1 auto; min-width: 0; }
.header-main .ddm-logo-img { margin: 0; }
.tv-short { display: none; }
.site-title { font-size: 34px; font-weight: 900; margin: 0; letter-spacing: -.5px; }
.site-title a { color: var(--ddm-primary); }
html[data-theme="dark"] .site-title a { color: #fff; }
.site-title span { color: var(--ddm-accent); }
.site-description { margin: 2px 0 0; font-size: 13px; color: var(--ddm-muted); }
.ddm-logo-link { display: inline-block; }
.ddm-logo-img { display: block; height: 74px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; }
.ddm-logo-img.logo-dark { display: none; }
html[data-theme="dark"] .site-header .logo-light { display: none; }
html[data-theme="dark"] .site-header .logo-dark { display: block; }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-shrink: 0; }
.watch-tv { display: inline-flex; align-items: center; gap: 6px; background: var(--ddm-accent); color: #fff !important; padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.watch-tv .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: ddm-pulse 1.4s infinite; }
@keyframes ddm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
.icon-btn { background: none; border: 1px solid var(--ddm-border); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ddm-text); }
.icon-btn:hover { border-color: var(--ddm-accent); color: var(--ddm-accent); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.ddm-dark-toggle .i-sun { display: none; }
html[data-theme="dark"] .ddm-dark-toggle .i-sun { display: block; }
html[data-theme="dark"] .ddm-dark-toggle .i-moon { display: none; }

/* Navigation */
.main-nav { background: var(--ddm-primary); position: relative; z-index: 50; }
.main-nav.is-sticky { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.admin-bar .main-nav.is-sticky { top: 32px; }
.main-nav .container { display: flex; align-items: center; justify-content: center; gap: 10px; }
.nav-menu, .nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu { display: flex; flex-wrap: wrap; justify-content: center; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { display: block; padding: 14px 14px; color: #fff; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .3px; }
.nav-menu > li > a:hover, .nav-menu > li.current-menu-item > a, .nav-menu > li.current-category-ancestor > a, .nav-menu > li.current-menu-parent > a { background: var(--ddm-accent); color: #fff; }
.nav-menu .menu-item-has-children > a::after { content: " \25BE"; font-size: 11px; }
.nav-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--ddm-card); box-shadow: var(--ddm-shadow); border-top: 3px solid var(--ddm-accent); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .15s; }
.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu .sub-menu a { display: block; padding: 10px 16px; font-size: 14px; border-bottom: 1px solid var(--ddm-border); }
.nav-menu .sub-menu .sub-menu { top: 0; left: 100%; }
.menu-toggle { display: none; align-items: center; gap: 8px; background: none; border: 0; color: #fff; padding: 12px 4px; cursor: pointer; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.menu-toggle svg { width: 26px; height: 26px; stroke: #fff; stroke-width: 2; fill: none; }
.nav-placeholder { display: none; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(11, 37, 69, .96); z-index: 9999; display: none; align-items: flex-start; justify-content: center; padding-top: 18vh; }
.search-overlay.is-open { display: flex; }
.search-overlay form { width: min(720px, 92vw); display: flex; gap: 8px; }
.search-overlay input[type="search"] { font-size: 22px; padding: 16px; border: 0; }
.search-overlay .close-search { position: absolute; top: 20px; right: 24px; color: #fff; background: none; border: 0; font-size: 40px; cursor: pointer; line-height: 1; }

/* Breaking ticker */
.breaking-bar { background: var(--ddm-bg-alt); border-bottom: 1px solid var(--ddm-border); }
.breaking-bar .container { display: flex; align-items: center; gap: 12px; height: 44px; overflow: hidden; }
.breaking-label { flex-shrink: 0; background: var(--ddm-accent); color: #fff; font-weight: 800; font-size: 12px; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; letter-spacing: .5px; }
.ticker { overflow: hidden; flex: 1; position: relative; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-track { display: inline-flex; gap: 48px; padding-right: 48px; white-space: nowrap; animation: ddm-ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { font-weight: 600; font-size: 14px; }
.ticker-track a::before { content: "\25CF"; color: var(--ddm-accent); margin-right: 10px; font-size: 10px; vertical-align: middle; }
@keyframes ddm-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker-track .dup { display: none; } }

/* ==========================================================================
   4. Layout
   ========================================================================== */
.site-content { padding: 28px 0 40px; }
.content-area { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; }
.content-area.full-width { grid-template-columns: minmax(0, 1fr); }
.sidebar { min-width: 0; }
.sidebar-inner { position: sticky; top: 70px; }

/* Section headings */
.section-title { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ddm-primary); margin: 0 0 18px; }
html[data-theme="dark"] .section-title { border-color: var(--ddm-accent); }
.section-title h2, .section-title h3, .widget-title { display: inline-block; background: var(--ddm-primary); color: #fff; font-family: var(--ddm-font); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 8px 14px; margin: 0; }
.section-title .view-all { font-size: 13px; font-weight: 700; color: var(--ddm-accent); }
.home-section { margin-bottom: 36px; }

/* ==========================================================================
   5. Post cards
   ========================================================================== */
.cat-badge { display: inline-block; background: var(--ddm-accent); color: #fff !important; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; letter-spacing: .4px; line-height: 1.4; }
.cat-badge:hover { background: var(--ddm-primary); }
.post-meta { font-size: 12.5px; color: var(--ddm-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.post-meta a { color: var(--ddm-muted); }
.post-meta a:hover { color: var(--ddm-accent); }
.post-meta .author { font-weight: 700; color: var(--ddm-text); }

.thumb { position: relative; overflow: hidden; border-radius: var(--ddm-radius); background: var(--ddm-soft); aspect-ratio: 16 / 10; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a:hover .thumb img, .card:hover .thumb img { transform: scale(1.04); }
.thumb .cat-badge { position: absolute; left: 10px; top: 10px; z-index: 2; }
.thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.thumb-placeholder img { width: 38%; max-width: 160px; height: auto; object-fit: contain; opacity: .35; }
a:hover .thumb .thumb-placeholder img, .card:hover .thumb .thumb-placeholder img { transform: none; }
.video-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1; }
.video-icon span { width: 54px; height: 54px; border-radius: 50%; background: rgba(215, 38, 61, .9); display: flex; align-items: center; justify-content: center; }
.video-icon span::after { content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }

.card { min-width: 0; }
.card .card-title { font-size: 17px; margin: 10px 0 6px; }
.card .card-excerpt { font-size: 14px; color: var(--ddm-muted); margin: 6px 0 0; }
.card-sm { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; }
.card-sm .thumb { aspect-ratio: 4 / 3; }
.card-sm .card-title { font-size: 14.5px; margin: 0 0 4px; font-family: var(--ddm-font); font-weight: 700; }
.card-list { display: grid; grid-template-columns: 300px 1fr; gap: 20px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--ddm-border); }
.card-list .card-title { font-size: 21px; margin: 6px 0 8px; }

/* Hero */
.hero-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: minmax(222px, auto); gap: 16px; margin-bottom: 32px; }
.hero-grid .hero-main { grid-row: span 2; }
.hero-grid.hero-count-3 { grid-template-columns: 2fr 1fr; }
.hero-grid.hero-count-1 { grid-template-columns: 1fr; }
.hero-grid .overlay-card:not(.hero-main) h3 { font-size: 17px; }
.overlay-card { position: relative; display: block; border-radius: var(--ddm-radius); overflow: hidden; min-height: 220px; background: var(--ddm-primary); }
.overlay-card .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.overlay-card .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .85) 100%); z-index: 1; }
.overlay-card .overlay-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; z-index: 2; color: #fff; }
.overlay-card .overlay-content h2, .overlay-card .overlay-content h3 { color: #fff; margin: 8px 0 6px; }
.overlay-card .overlay-content { pointer-events: none; }
.overlay-card .overlay-content a { pointer-events: auto; }
.overlay-card .post-meta, .overlay-card .post-meta a, .overlay-card .post-meta .author { color: #e5e9ee; }
.hero-main { min-height: 460px; }
.hero-main h2 { font-size: 30px; }

/* Latest strip */
.latest-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }

/* Category blocks */
.block-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cat-block .cat-block-inner { display: grid; grid-template-columns: 1fr; gap: 14px; }
.cat-block .card-sm + .card-sm { padding-top: 14px; border-top: 1px solid var(--ddm-border); }
.cat-block-wide .cat-block-inner { grid-template-columns: 1.2fr 1fr; gap: 22px; }
.cat-block-wide .cat-block-list { display: grid; gap: 14px; align-content: start; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Video section */
.video-section { background: var(--ddm-primary); padding: 30px 0; margin: 10px 0 36px; color: #fff; }
.video-section .section-title { border-color: var(--ddm-accent); }
.video-section .section-title h2 { background: var(--ddm-accent); }
.video-section .card-title, .video-section .card-title a { color: #fff; }
.video-section .post-meta, .video-section .post-meta a { color: #b9c6d6; }
.video-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }

/* Opinion */
.opinion-card { background: var(--ddm-bg-alt); border-left: 4px solid var(--ddm-accent); padding: 18px; border-radius: var(--ddm-radius); }
.opinion-card .avatar { border-radius: 50%; float: left; margin: 0 12px 6px 0; }
.opinion-card .card-title { font-size: 16px; margin: 0 0 6px; }
.opinion-card .op-author { font-size: 13px; font-weight: 700; color: var(--ddm-accent); }

/* Ads */
.ddm-ad { text-align: center; margin: 0 0 30px; clear: both; overflow: hidden; }
.ddm-ad .ad-label a.ad-remove { color: var(--ddm-accent); text-transform: none; letter-spacing: 0; font-weight: 700; }
body.ddm-ad-free .ddm-ad, body.ddm-ad-free .header-ad, body.ddm-ad-free ins.adsbygoogle { display: none !important; }
.ddm-ad .ad-label { display: block; font-size: 11px; color: var(--ddm-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.ddm-ad img { margin: 0 auto; }
.ddm-ad ins.adsbygoogle { display: block; width: 100%; }
/* Reserve space so the page doesn't jump when ads load (better Core Web Vitals). */
.ddm-ad-article_title, .ddm-ad-article_middle, .ddm-ad-article_after, .ddm-ad-home, .ddm-ad-archive { min-height: 280px; }
.ddm-ad-sidebar { min-height: 250px; }
.entry-content .ddm-ad { margin: 1.8em 0; padding: 10px 0; border-top: 1px solid var(--ddm-border); border-bottom: 1px solid var(--ddm-border); }
.ddm-ad-article_title { margin: 0 0 22px; }
/* Collapse the space when AdSense has no ad to show. */
.ddm-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
@media (max-width: 680px) {
	.ddm-ad-article_title, .ddm-ad-article_middle, .ddm-ad-article_after, .ddm-ad-home, .ddm-ad-archive { min-height: 250px; }
}

/* Load more */
.load-more-wrap { text-align: center; margin: 10px 0 20px; }
.load-more-wrap .btn[disabled] { opacity: .6; cursor: wait; }

/* ==========================================================================
   6. Widgets / sidebar
   ========================================================================== */
.widget { margin-bottom: 32px; }
.widget-title { margin-bottom: 0; }
.widget .widget-title-wrap { border-bottom: 2px solid var(--ddm-primary); margin-bottom: 16px; }
html[data-theme="dark"] .widget .widget-title-wrap { border-color: var(--ddm-accent); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget > ul > li, .widget .menu > li { padding: 8px 0; border-bottom: 1px solid var(--ddm-border); }
.ddm-numbered { counter-reset: ddm; }
.ddm-numbered li { counter-increment: ddm; display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--ddm-border); }
.ddm-numbered li::before { content: counter(ddm); font-family: var(--ddm-font-head); font-size: 28px; font-weight: 900; color: var(--ddm-soft); line-height: 1; -webkit-text-stroke: 1px var(--ddm-primary); }
html[data-theme="dark"] .ddm-numbered li::before { -webkit-text-stroke: 1px var(--ddm-accent); color: transparent; }
.ddm-numbered a { font-weight: 700; font-size: 14.5px; line-height: 1.4; }
.ddm-post-list li { padding: 12px 0; border-bottom: 1px solid var(--ddm-border); }
.ddm-post-list li:first-child { padding-top: 0; }
.ddm-subscribe { background: var(--ddm-primary); color: #fff; padding: 22px; border-radius: var(--ddm-radius); }
.ddm-subscribe h3 { color: #fff; font-size: 20px; }
.ddm-subscribe p { color: #c9d4e1; font-size: 14px; }
.ddm-subscribe input[type="email"] { margin-bottom: 10px; border: 0; background: #fff; color: #111; }
.ddm-subscribe .btn { width: 100%; }
.ddm-app-box { border: 2px dashed var(--ddm-accent); border-radius: var(--ddm-radius); padding: 20px; text-align: center; }
.ddm-app-box h3 { font-size: 18px; }
.ddm-app-help { margin: 10px 0 0; font-size: 13px; }
.ddm-app-help a { color: var(--ddm-accent); text-decoration: underline; }
.ddm-form-msg { padding: 10px 14px; border-radius: var(--ddm-radius); margin: 0 0 14px; font-size: 14px; }
.ddm-form-msg.success { background: #e6f6ea; color: #17692c; }
.ddm-form-msg.error { background: #fdeaea; color: #9b1c1c; }
.tagcloud a, .post-tags a { display: inline-block; font-size: 13px !important; border: 1px solid var(--ddm-border); padding: 4px 10px; margin: 0 6px 6px 0; border-radius: 3px; }
.tagcloud a:hover, .post-tags a:hover { background: var(--ddm-accent); border-color: var(--ddm-accent); color: #fff; }
.sidebar .search-form, .search-form { display: flex; gap: 6px; }

/* ==========================================================================
   7. Single post
   ========================================================================== */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--ddm-accent); width: 0; z-index: 10000; }
.breadcrumbs { font-size: 13px; color: var(--ddm-muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--ddm-muted); }
.breadcrumbs .sep { margin: 0 6px; }
.entry-header .entry-title { font-size: 36px; line-height: 1.2; margin: 12px 0 14px; }
.entry-header .entry-subtitle { font-size: 19px; color: var(--ddm-muted); margin-bottom: 16px; }
.entry-header .entry-meta { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 12px 0; border-top: 1px solid var(--ddm-border); border-bottom: 1px solid var(--ddm-border); margin-bottom: 20px; }
.entry-header .entry-meta .post-meta { font-size: 13.5px; }
.entry-header .entry-meta .avatar { border-radius: 50%; }
.entry-header .updated-on { margin: -12px 0 18px; font-style: italic; }
.featured-media { margin: 0 0 24px; }
.featured-media img { width: 100%; border-radius: var(--ddm-radius); }
.featured-media figcaption { font-size: 13px; color: var(--ddm-muted); padding-top: 6px; }
.entry-content { font-size: 18px; line-height: 1.8; }
.entry-content > * { margin-bottom: 1.3em; }
.entry-content h2 { font-size: 26px; margin-top: 1.5em; }
.entry-content h3 { font-size: 22px; margin-top: 1.4em; }
.entry-content a { color: var(--ddm-accent); text-decoration: underline; text-underline-offset: 2px; }
.entry-content blockquote { margin: 1.5em 0; padding: 14px 24px; border-left: 4px solid var(--ddm-accent); background: var(--ddm-bg-alt); font-family: var(--ddm-font-head); font-size: 20px; font-style: italic; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content img { border-radius: var(--ddm-radius); }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption, .wp-caption-text { font-size: 13px; color: var(--ddm-muted); text-align: center; margin-top: 6px; }
.entry-content iframe { max-width: 100%; }
.entry-content .wp-block-embed__wrapper { position: relative; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--ddm-border); padding: 8px 10px; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }
.sticky .card-title::before { content: "\2605 "; color: var(--ddm-accent); }
.bypostauthor > .comment-body .comment-author b::after { content: " (Author)"; font-size: 12px; color: var(--ddm-accent); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery-caption { font-size: 12px; }

.share-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; }
.share-buttons .share-label { font-weight: 800; font-size: 13px; text-transform: uppercase; margin-right: 4px; }
.share-buttons a, .share-buttons button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 4px; color: #fff; font-size: 13px; font-weight: 700; border: 0; cursor: pointer; }
.share-buttons svg { width: 15px; height: 15px; fill: currentColor; }
.share-fb { background: #1877f2; } .share-x { background: #111; } .share-wa { background: #25d366; } .share-li { background: #0a66c2; } .share-tg { background: #229ed9; } .share-copy { background: var(--ddm-muted); }
.share-buttons a:hover, .share-buttons button:hover { color: #fff; opacity: .88; }

.post-tags { margin: 26px 0; }
.post-tags strong { margin-right: 8px; }
.author-box { display: grid; grid-template-columns: 90px 1fr; gap: 18px; background: var(--ddm-bg-alt); padding: 22px; border-radius: var(--ddm-radius); margin: 30px 0; }
.author-box .avatar { border-radius: 50%; }
.author-box h4 { margin: 0 0 6px; font-size: 18px; }
.author-box p { font-size: 14.5px; color: var(--ddm-muted); margin: 0 0 8px; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; padding: 20px 0; border-top: 1px solid var(--ddm-border); border-bottom: 1px solid var(--ddm-border); }
.post-navigation .nav-next { text-align: right; }
.post-navigation small { display: block; color: var(--ddm-muted); text-transform: uppercase; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.post-navigation a { font-weight: 700; font-family: var(--ddm-font-head); }
.related-posts { margin: 30px 0; }
.report-cta { background: var(--ddm-soft); padding: 18px 20px; border-radius: var(--ddm-radius); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 24px 0; }
html[data-theme="dark"] .report-cta { background: var(--ddm-bg-alt); }
.report-cta strong { font-family: var(--ddm-font-head); font-size: 18px; }

/* Comments */
.comments-area { margin-top: 30px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--ddm-border); }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: 12px; color: var(--ddm-muted); margin: 4px 0 8px; }
.reply a { font-size: 13px; font-weight: 700; color: var(--ddm-accent); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-policy-note { font-size: 13px; color: var(--ddm-muted); }

/* ==========================================================================
   8. Archives, pages, search, 404
   ========================================================================== */
.archive-header { background: var(--ddm-bg-alt); border-left: 5px solid var(--ddm-accent); padding: 22px 24px; margin-bottom: 28px; border-radius: var(--ddm-radius); }
.archive-header h1 { font-size: 30px; margin: 0; }
.archive-header .archive-description { color: var(--ddm-muted); margin-top: 8px; }
.archive-header .archive-description p:last-child { margin: 0; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.subcats a { font-size: 13px; font-weight: 700; padding: 4px 12px; border: 1px solid var(--ddm-border); border-radius: 20px; background: var(--ddm-card); }
.author-header { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: center; }
.author-header .avatar { border-radius: 50%; }
.pagination { margin: 30px 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; padding: 0 12px; align-items: center; justify-content: center; border: 1px solid var(--ddm-border); border-radius: 4px; font-weight: 700; font-size: 14px; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--ddm-accent); border-color: var(--ddm-accent); color: #fff; }
.pagination .page-numbers.dots { border: 0; }
.page-count { font-size: 13px; color: var(--ddm-muted); margin-left: 8px; }
.page-header-simple { margin-bottom: 24px; }
.page-header-simple h1 { font-size: 34px; }
.error-404 { text-align: center; padding: 40px 0; }
.error-404 .big { font-family: var(--ddm-font-head); font-size: 120px; font-weight: 900; color: var(--ddm-accent); line-height: 1; margin: 0; }
.error-404 .search-form { max-width: 520px; margin: 20px auto 40px; }
.no-results { padding: 30px; background: var(--ddm-bg-alt); border-radius: var(--ddm-radius); }
.ddm-form { display: grid; gap: 14px; }
.ddm-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ddm-form label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
.ddm-form .hp { position: absolute; left: -9999px; }
.contact-info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 30px; }
.contact-info-cards div { background: var(--ddm-bg-alt); padding: 18px; border-radius: var(--ddm-radius); border-top: 3px solid var(--ddm-accent); }
.contact-info-cards strong { display: block; margin-bottom: 4px; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.footer { background: #08182e; color: #b9c6d6; margin-top: 30px; font-size: 14.5px; }
.footer a { color: #dbe4ee; }
.footer a:hover { color: #fff; }
.footer h4, .footer .widget-title { color: #fff; background: none; padding: 0; font-family: var(--ddm-font); font-size: 15px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 16px; }
.footer .widget .widget-title-wrap { border: 0; margin-bottom: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding: 48px 16px 34px; }
.footer-about .ddm-logo-img { height: 64px; margin: 0 0 16px; }
.footer .follow-title { margin: 22px 0 10px; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { padding: 5px 0; border: 0 !important; }
.footer .ddm-subscribe { padding: 0; background: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; margin: 0; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--ddm-accent); color: #fff; border: 0; cursor: pointer; opacity: 0; visibility: hidden; transition: all .2s; z-index: 90; font-size: 20px; }
.back-to-top.show { opacity: 1; visibility: visible; }

/* App install banner */
.app-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; background: var(--ddm-primary); color: #fff; padding: 12px 14px; border-radius: 10px; display: none; align-items: center; gap: 12px; z-index: 95; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); max-width: 480px; }
.app-banner.show { display: flex; }
.app-banner p { margin: 0; flex: 1; font-size: 14px; }
.app-banner .btn { padding: 7px 14px; font-size: 13px; }
.app-banner .dismiss { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.content-area { grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
	.footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
	.content-area { grid-template-columns: 1fr; }
	.sidebar-inner { position: static; }
	.hero-grid, .hero-grid.hero-count-3 { grid-template-columns: 1fr 1fr; }
	.hero-grid .hero-main { grid-column: 1 / -1; grid-row: auto; }
	.latest-strip, .grid-4 { grid-template-columns: repeat(2, 1fr); }
	.video-grid { grid-template-columns: 1fr 1fr; }
	.video-grid > :first-child { grid-column: 1 / -1; }
	.main-nav .container { justify-content: center; }
	.header-main { padding: 12px 16px; }
	.contact-info-cards { grid-template-columns: 1fr; }
}
/* Desktop & laptop: always show the menu links, tightening spacing as the screen narrows */
@media (max-width: 1200px) {
	.nav-menu > li > a { padding: 14px 11px; font-size: 13.5px; }
}
@media (max-width: 1000px) {
	.nav-menu > li > a { padding: 13px 8px; font-size: 12.5px; letter-spacing: 0; }
	.nav-menu .sub-menu { left: auto; right: 0; }
}
/* Phones & small tablets: collapse into the MENU button */
@media (max-width: 782px) {
	.menu-toggle { display: inline-flex; }
	.nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--ddm-primary); max-height: 75vh; overflow-y: auto; box-shadow: 0 10px 20px rgba(0, 0, 0, .2); }
	.nav-menu.is-open { display: flex; }
	.nav-menu > li > a { padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.nav-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: rgba(0, 0, 0, .15); display: none; }
	.nav-menu li.submenu-open > .sub-menu { display: block; }
	.nav-menu .sub-menu a { color: #dfe7f0; border-color: rgba(255, 255, 255, .06); padding-left: 32px; }
	.admin-bar .main-nav.is-sticky { top: 46px; }
}
@media (max-width: 680px) {
	body { font-size: 15px; }
	.topbar-menu, .topbar .ddm-date { display: none; }
	.header-main .ddm-logo-img { height: 42px; }
	.header-main { padding: 10px 12px; gap: 8px; }
	.header-right { gap: 6px; }
	.watch-tv { padding: 6px 10px; font-size: 12px; gap: 5px; }
	.tv-long { display: none; }
	.tv-short { display: inline; }
	.header-right .icon-btn { width: 34px; height: 34px; }
	.header-right .icon-btn svg { width: 16px; height: 16px; }
	.hero-main { min-height: 320px; }
	.hero-main h2 { font-size: 22px; }
	.hero-grid, .hero-grid.hero-count-3 { grid-template-columns: 1fr; grid-auto-rows: minmax(210px, auto); }
	.latest-strip, .grid-4, .grid-3, .block-grid-2, .cat-block-wide .cat-block-inner, .video-grid { grid-template-columns: 1fr; }
	.card-list { grid-template-columns: 1fr; }
	.entry-header .entry-title { font-size: 26px; }
	.entry-content { font-size: 17px; }
	.post-navigation { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: left; }
	.author-box, .author-header { grid-template-columns: 1fr; text-align: center; }
	.author-box .avatar, .author-header .avatar { margin: 0 auto; }
	.footer-top { grid-template-columns: 1fr; }
	.ddm-form .row-2 { grid-template-columns: 1fr; }
	.share-buttons .share-text { display: none; }
	.alignleft, .alignright { float: none; margin: 0 0 1em; }
}

@media (max-width: 380px) {
	.header-main .ddm-logo-img { height: 34px; }
	.watch-tv { padding: 6px 8px; }
	.header-right { gap: 4px; }
	.header-right .icon-btn { width: 32px; height: 32px; }
}

/* Print */
@media print {
	.topbar, .header-ad, .main-nav, .breaking-bar, .sidebar, .footer, .share-buttons, .comments-area, .related-posts, .ddm-ad, .back-to-top, .app-banner, .reading-progress { display: none !important; }
	.content-area { grid-template-columns: 1fr; }
}
