/*
Theme Name: Digital Fact World
Theme URI: https://digitalfactworld.com/
Author: Muhammad Amjad Butt
Author URI: https://digitalfactworld.com/
Description: A unique magazine theme for Digital Fact World. Category menu at the top, hero mosaic, category cards with More buttons, "You May Have Missed" slider cards, a "What to Read" sidebar list, plus ready Contact Us and Privacy Policy pages that you can edit from the WordPress editor.
Version: 1.0.0
Requires at least: 6.0
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: dfw
Tags: blog, news, magazine, custom-logo, custom-menu, featured-images, theme-options, two-columns, right-sidebar
*/

:root {
	--dfw-navy: #0b1530;
	--dfw-ink: #0f172a;
	--dfw-text: #334155;
	--dfw-muted: #64748b;
	--dfw-line: #e2e8f0;
	--dfw-bg: #f5f7fb;
	--dfw-card: #ffffff;
	--dfw-accent: #06b6d4;
	--dfw-accent-2: #8b5cf6;
	--dfw-pink: #ec4899;
	--dfw-radius: 18px;
	--dfw-shadow: 0 10px 30px rgba(15, 23, 42, .08);
	--dfw-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--dfw-head: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--dfw-font); font-size: 17px; line-height: 1.7; color: var(--dfw-text); background: var(--dfw-bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dfw-ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--dfw-accent); }
h1, h2, h3, h4, h5, h6 { font-family: var(--dfw-head); color: var(--dfw-ink); line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
.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: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; border-radius: 8px; }
.dfw-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.dfw-topbar { background: var(--dfw-navy); color: #cbd5e1; font-size: 13.5px; }
.dfw-topbar .dfw-container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.dfw-topbar a { color: #cbd5e1; }
.dfw-topbar a:hover { color: #fff; }
.dfw-topbar__links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.dfw-date { display: inline-flex; align-items: center; gap: 8px; }
.dfw-date::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dfw-accent); box-shadow: 0 0 0 4px rgba(6, 182, 212, .25); }

/* ---------- Header ---------- */
.dfw-header { background: #fff; border-bottom: 1px solid var(--dfw-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .dfw-header { top: 32px; }
.dfw-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.dfw-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.dfw-brand .custom-logo { max-height: 52px; width: auto; }
.dfw-logo-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--dfw-accent), var(--dfw-accent-2)); color: #fff; font-family: var(--dfw-head); font-weight: 700; font-size: 18px; letter-spacing: -.5px; }
.dfw-site-title { font-family: var(--dfw-head); font-size: 23px; font-weight: 700; color: var(--dfw-ink); line-height: 1.1; margin: 0; letter-spacing: -.4px; }
.dfw-site-title span { color: var(--dfw-accent); }
.dfw-site-desc { font-size: 12.5px; color: var(--dfw-muted); margin: 2px 0 0; }

.dfw-nav { margin-left: auto; }
.dfw-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.dfw-nav li { position: relative; }
.dfw-nav a { display: block; padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--dfw-ink); white-space: nowrap; }
.dfw-nav a:hover, .dfw-nav .current-menu-item > a, .dfw-nav .current-category-ancestor > a, .dfw-nav .current-post-ancestor > a { background: var(--dfw-ink); color: #fff; }
.dfw-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--dfw-line); border-radius: 14px; padding: 8px; box-shadow: var(--dfw-shadow); flex-direction: column; }
.dfw-nav li:hover > .sub-menu, .dfw-nav li:focus-within > .sub-menu { display: flex; }
.dfw-nav .sub-menu a { border-radius: 10px; }

.dfw-header__actions { display: flex; align-items: center; gap: 8px; }
.dfw-icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--dfw-line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--dfw-ink); }
.dfw-icon-btn:hover { border-color: var(--dfw-ink); }
.dfw-menu-toggle { display: none; }
.dfw-search-panel { display: none; border-top: 1px solid var(--dfw-line); background: #fff; padding: 16px 0; }
.dfw-search-panel.is-open { display: block; }

/* ---------- Category strip ---------- */
.dfw-catstrip { background: linear-gradient(90deg, var(--dfw-navy), #1e1b4b); display: none; }
@media (max-width: 980px) { .dfw-catstrip { display: block; } }
.dfw-catstrip ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.dfw-catstrip ul::-webkit-scrollbar { display: none; }
.dfw-catstrip a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #e2e8f0; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.dfw-catstrip a:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.dfw-catstrip a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dfw-cat, var(--dfw-accent)); }

/* ---------- Badges ---------- */
.dfw-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #fff; background: var(--dfw-cat, var(--dfw-accent)); line-height: 1.6; }
.dfw-badge:hover { color: #fff; filter: brightness(1.08); }
.dfw-badge--soft { background: #fce7f3; color: #be185d; text-transform: none; letter-spacing: 0; font-weight: 700; }
.dfw-badge--soft:hover { color: #9d174d; }

/* ---------- Section heads ---------- */
.dfw-section { padding: 46px 0; }
.dfw-section--tight { padding: 28px 0; }
.dfw-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.dfw-section-head h2 { margin: 0; font-size: 28px; letter-spacing: -.5px; white-space: nowrap; }
.dfw-section-head::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--dfw-line) 0 10px, transparent 10px 14px); }
.dfw-section-head .dfw-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dfw-pink); box-shadow: 0 0 0 5px rgba(236, 72, 153, .18); order: 2; flex-shrink: 0; }
.dfw-section-head .dfw-viewall { order: 4; font-weight: 700; font-size: 14px; white-space: nowrap; }
.dfw-section-head::after { order: 3; }
.dfw-center-head { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.dfw-center-head h2 { font-size: 36px; letter-spacing: -.8px; }
.dfw-center-head p { font-size: 18px; font-weight: 600; color: var(--dfw-ink); }

/* ---------- Hero mosaic ---------- */
.dfw-hero { padding: 26px 0 10px; }
.dfw-mosaic { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 230px 230px; gap: 8px; border-radius: var(--dfw-radius); overflow: hidden; }
.dfw-mosaic__item { position: relative; overflow: hidden; background: var(--dfw-navy); }
.dfw-mosaic__item:first-child { grid-row: span 2; }
.dfw-mosaic--three .dfw-mosaic__item:nth-child(2) { grid-row: span 2; }
.dfw-mosaic--three { grid-template-columns: 1.5fr 1fr 1fr; }
.dfw-mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dfw-mosaic__item:hover img { transform: scale(1.05); }
.dfw-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 22px; background: linear-gradient(180deg, rgba(11, 21, 48, 0) 30%, rgba(11, 21, 48, .92) 100%); }
.dfw-overlay h2, .dfw-overlay h3 { color: #fff; margin: 0; }
.dfw-overlay h2 { font-size: 34px; letter-spacing: -.6px; }
.dfw-overlay h3 { font-size: 20px; }
.dfw-overlay a { color: #fff; }
.dfw-overlay .dfw-badge { align-self: flex-start; }
.dfw-overlay .dfw-meta { color: #cbd5e1; }

/* Welcome hero (no posts yet) */
.dfw-welcome { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: center; background: #fff; border-radius: 26px; padding: 34px; box-shadow: var(--dfw-shadow); }
.dfw-welcome__img { border-radius: 20px; overflow: hidden; }
.dfw-eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dfw-accent); margin-bottom: 10px; }
.dfw-welcome h1 { font-size: 44px; letter-spacing: -1.2px; }

/* ---------- Buttons ---------- */
.dfw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 30px; border-radius: 8px; background: #111; color: #fff; font-weight: 800; font-size: 16px; border: 0; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.dfw-btn:hover { background: var(--dfw-accent); color: #fff; transform: translateY(-1px); }
.dfw-btn--ghost { background: transparent; color: var(--dfw-ink); border: 2px solid var(--dfw-ink); }
.dfw-btn--ghost:hover { background: var(--dfw-ink); color: #fff; }

/* ---------- Deal-style cards (category boxes + post cards) ---------- */
.dfw-grid { display: grid; gap: 22px; }
.dfw-grid--3 { grid-template-columns: repeat(3, 1fr); }
.dfw-grid--4 { grid-template-columns: repeat(4, 1fr); }
.dfw-grid--5 { grid-template-columns: repeat(5, 1fr); }
.dfw-grid--2 { grid-template-columns: repeat(2, 1fr); }
.dfw-grid--cats { display: flex; flex-wrap: wrap; justify-content: center; }
.dfw-grid--cats > .dfw-card { width: calc((100% - 44px) / 3); }
.dfw-slide-btns { display: inline-flex; gap: 8px; }
.dfw-slide-btns .dfw-icon-btn { width: 38px; height: 38px; font-weight: 800; }
.dfw-card { background: var(--dfw-card); border: 1px solid var(--dfw-line); display: flex; flex-direction: column; transition: box-shadow .25s ease, transform .25s ease; }
.dfw-card:hover { box-shadow: var(--dfw-shadow); transform: translateY(-3px); }
.dfw-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: #e2e8f0; }
.dfw-card__img img { width: 100%; height: 100%; object-fit: cover; }
.dfw-card__body { padding: 18px 18px 22px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.dfw-card__body h3 { font-size: 19px; margin-bottom: 8px; }
.dfw-card__body p { font-size: 15.5px; color: var(--dfw-ink); margin-bottom: 14px; }
.dfw-card__meta { font-size: 13px; color: var(--dfw-muted); margin-bottom: 14px; }
.dfw-card__body .dfw-btn { margin-top: auto; align-self: center; }
.dfw-card--cat .dfw-card__body p { flex: 1; }

/* ---------- About block ---------- */
.dfw-about { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.dfw-about__img { border-radius: 22px; overflow: hidden; box-shadow: var(--dfw-shadow); }
.dfw-about__text h2 { font-size: 34px; letter-spacing: -.8px; }
.dfw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.dfw-stat { background: #fff; border: 1px solid var(--dfw-line); border-radius: 14px; padding: 14px; text-align: center; }
.dfw-stat strong { display: block; font-family: var(--dfw-head); font-size: 24px; color: var(--dfw-ink); }
.dfw-stat span { font-size: 13px; color: var(--dfw-muted); }

/* ---------- Layout with sidebar ---------- */
.dfw-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; }
.dfw-layout--full { grid-template-columns: minmax(0, 1fr); }

/* ---------- Horizontal post list (main column) ---------- */
.dfw-row-post { display: grid; grid-template-columns: 260px 1fr; gap: 20px; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--dfw-line); margin-bottom: 18px; }
.dfw-row-post__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.dfw-row-post__body { padding: 18px 20px 18px 0; }
.dfw-row-post__body h3 { font-size: 21px; margin: 8px 0; }
.dfw-row-post__body p { font-size: 15.5px; margin-bottom: 8px; }
.dfw-meta { font-size: 13px; color: var(--dfw-muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Sidebar: "What to Read" ---------- */
.dfw-sidebar { position: sticky; top: 110px; }
.dfw-widget { background: #f3f4f6; border-radius: 6px; padding: 24px 22px; margin-bottom: 26px; }
.dfw-widget-title, .dfw-widget .widget-title, .dfw-widget h2 { font-family: var(--dfw-head); text-align: center; font-size: 19px; letter-spacing: 2px; text-transform: uppercase; color: #000; margin: 0 0 18px; }
.dfw-widget ul { list-style: none; margin: 0; padding: 0; }
.dfw-widget li { padding: 8px 0; border-bottom: 1px solid #e5e7eb; }
.dfw-mini { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid #e2e4e8; }
.dfw-mini:last-child { border-bottom: 0; }
.dfw-mini__img img { width: 64px; height: 64px; object-fit: cover; }
.dfw-mini h4 { font-size: 15.5px; line-height: 1.3; margin: 0 0 6px; color: #000; font-family: var(--dfw-font); font-weight: 800; }
.dfw-mini h4 a { color: #000; }
.dfw-mini h4 a:hover { color: var(--dfw-accent); }
.dfw-mini__meta { font-size: 12.5px; display: flex; gap: 10px; flex-wrap: wrap; }
.dfw-mini__meta .dfw-mini__cat { color: #0e6b8c; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.dfw-mini__meta time { color: #6b7280; }

/* ---------- "You May Have Missed" ---------- */
.dfw-missed { background: #fff; border-radius: 0; }
.dfw-missed__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 66px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.dfw-tile { position: relative; aspect-ratio: 9 / 10; border-radius: 18px; overflow: hidden; scroll-snap-align: start; background: var(--dfw-navy); }
.dfw-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dfw-tile:hover img { transform: scale(1.06); }
.dfw-tile .dfw-overlay { background: linear-gradient(180deg, rgba(10, 10, 30, .05) 0%, rgba(10, 10, 30, .55) 45%, rgba(10, 10, 30, .9) 100%); padding: 18px; }
.dfw-tile h3 { font-size: 19px; line-height: 1.3; }
.dfw-author { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13.5px; font-weight: 700; }
.dfw-author img { width: 26px; height: 26px; border-radius: 50%; }
.dfw-tile time { color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.dfw-tile time::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--dfw-pink); }

/* ---------- Category sections ---------- */
.dfw-catblock { margin-bottom: 40px; }
.dfw-catblock__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.dfw-catblock__lead { position: relative; border-radius: 18px; overflow: hidden; min-height: 360px; background: var(--dfw-navy); }
.dfw-catblock__lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dfw-catblock__list { display: flex; flex-direction: column; gap: 14px; }
.dfw-catblock__list .dfw-mini { background: #fff; border: 1px solid var(--dfw-line); border-radius: 14px; padding: 12px; grid-template-columns: 96px 1fr; }
.dfw-catblock__list .dfw-mini__img img { width: 96px; height: 72px; border-radius: 10px; }
.dfw-empty { background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px; padding: 24px; text-align: center; color: var(--dfw-muted); }

/* ---------- Single / page ---------- */
.dfw-article { background: #fff; border-radius: 20px; padding: 38px; border: 1px solid var(--dfw-line); }
.dfw-article__head h1 { font-size: 40px; letter-spacing: -1px; margin: 12px 0; }
.dfw-article__thumb { border-radius: 16px; overflow: hidden; margin: 22px 0 28px; }
.dfw-content h2 { font-size: 28px; margin-top: 1.6em; }
.dfw-content h3 { font-size: 22px; margin-top: 1.4em; }
.dfw-content a { color: #0e7490; text-decoration: underline; text-underline-offset: 3px; }
.dfw-content ul, .dfw-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.dfw-content li { margin-bottom: .4em; }
.dfw-content blockquote { margin: 1.5em 0; padding: 18px 22px; border-left: 4px solid var(--dfw-accent); background: #ecfeff; border-radius: 0 12px 12px 0; color: var(--dfw-ink); font-weight: 600; }
.dfw-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15.5px; }
.dfw-content th, .dfw-content td { border: 1px solid var(--dfw-line); padding: 10px 12px; text-align: left; }
.dfw-content th { background: #f1f5f9; color: var(--dfw-ink); }
.dfw-content img { border-radius: 12px; }
.dfw-content .wp-block-image { margin: 1.6em 0; }
.dfw-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.dfw-tags a { background: #f1f5f9; padding: 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.dfw-share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--dfw-line); font-weight: 700; color: var(--dfw-ink); }
.dfw-share a { padding: 7px 14px; border-radius: 8px; color: #fff; font-size: 13.5px; }
.dfw-share .fb { background: #1877f2; } .dfw-share .x { background: #000; } .dfw-share .in { background: #0a66c2; } .dfw-share .wa { background: #16a34a; }
.dfw-authorbox { display: grid; grid-template-columns: 80px 1fr; gap: 18px; align-items: center; margin-top: 28px; padding: 22px; border-radius: 16px; background: linear-gradient(135deg, #ecfeff, #f5f3ff); }
.dfw-authorbox img { border-radius: 50%; }
.dfw-authorbox h4 { margin: 0 0 4px; }
.dfw-authorbox p { margin: 0; font-size: 15px; }
.dfw-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.dfw-postnav a { display: block; background: #fff; border: 1px solid var(--dfw-line); border-radius: 14px; padding: 16px; font-weight: 700; }
.dfw-postnav span { display: block; font-size: 12.5px; color: var(--dfw-muted); text-transform: uppercase; letter-spacing: 1px; }
.dfw-postnav .next { text-align: right; }

/* ---------- Archive head ---------- */
.dfw-archive-head { position: relative; border-radius: 22px; overflow: hidden; margin: 26px 0 30px; padding: 46px 36px; color: #fff; background: linear-gradient(120deg, var(--dfw-navy), #312e81); }
.dfw-archive-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.dfw-archive-head > * { position: relative; }
.dfw-archive-head h1 { color: #fff; font-size: 40px; margin: 6px 0; }
.dfw-archive-head p { max-width: 700px; margin: 0; color: #e2e8f0; }
.dfw-breadcrumb { font-size: 13.5px; color: var(--dfw-muted); margin: 22px 0 0; }
.dfw-archive-head .dfw-breadcrumb { color: #cbd5e1; margin: 0; }
.dfw-archive-head .dfw-breadcrumb a { color: #fff; }

/* ---------- Pagination ---------- */
.dfw-pagination, .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 30px 0; }
.page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--dfw-line); font-weight: 700; }
.page-numbers.current, .page-numbers:hover { background: var(--dfw-ink); color: #fff; border-color: var(--dfw-ink); }

/* ---------- Forms ---------- */
.dfw-searchform { display: flex; gap: 8px; }
.dfw-searchform input[type="search"] { flex: 1; }
input[type="text"], input[type="email"], input[type="search"], input[type="url"], textarea, select { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--dfw-ink); }
input:focus, textarea:focus { outline: none; border-color: var(--dfw-accent); box-shadow: 0 0 0 4px rgba(6, 182, 212, .15); }
textarea { min-height: 160px; resize: vertical; }
button, input[type="submit"] { font: inherit; }

/* ---------- Contact page ---------- */
.dfw-contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; margin-bottom: 50px; }
.dfw-contact__info { background: linear-gradient(150deg, var(--dfw-navy), #312e81); color: #e2e8f0; border-radius: 20px; padding: 32px; }
.dfw-contact__info h2, .dfw-contact__info h3 { color: #fff; }
.dfw-contact__info a { color: #67e8f9; }
.dfw-contact__item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.dfw-contact__item:last-child { border-bottom: 0; }
.dfw-contact__icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; flex-shrink: 0; font-size: 18px; }
.dfw-form { background: #fff; border: 1px solid var(--dfw-line); border-radius: 20px; padding: 32px; }
.dfw-form .dfw-field { margin-bottom: 16px; }
.dfw-form label { display: block; font-weight: 700; color: var(--dfw-ink); margin-bottom: 6px; font-size: 15px; }
.dfw-form .dfw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dfw-hp { position: absolute; left: -9999px; }
.dfw-notice { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.dfw-notice--ok { background: #dcfce7; color: #166534; }
.dfw-notice--err { background: #fee2e2; color: #991b1b; }

/* ---------- Footer ---------- */
.dfw-newsletter { background: linear-gradient(120deg, var(--dfw-accent), var(--dfw-accent-2)); color: #fff; border-radius: 24px; padding: 34px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; margin-bottom: -60px; position: relative; z-index: 2; }
.dfw-newsletter h3 { color: #fff; font-size: 28px; margin-bottom: 6px; }
.dfw-newsletter p { margin: 0; }
.dfw-newsletter .dfw-btn { background: var(--dfw-navy); }
.dfw-footer { background: var(--dfw-navy); color: #94a3b8; padding: 110px 0 0; margin-top: 60px; font-size: 15px; }
.dfw-footer a { color: #cbd5e1; }
.dfw-footer a:hover { color: #fff; }
.dfw-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; }
.dfw-footer h4, .dfw-footer .widget-title { color: #fff; font-size: 17px; margin-bottom: 16px; }
.dfw-footer ul { list-style: none; margin: 0; padding: 0; }
.dfw-footer li { padding: 5px 0; }
.dfw-footer .dfw-site-title { color: #fff; }
.dfw-social { display: flex; gap: 8px; margin-top: 16px; }
.dfw-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.dfw-social a:hover { background: var(--dfw-accent); color: #fff; }
.dfw-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.dfw-footer__bottom ul { display: flex; gap: 18px; }
.dfw-totop { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--dfw-ink); color: #fff; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 40; border: 0; cursor: pointer; }
.dfw-totop.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Comments ---------- */
.dfw-comments { margin-top: 30px; background: #fff; border-radius: 20px; padding: 30px; border: 1px solid var(--dfw-line); }
.dfw-comments ol { list-style: none; padding: 0; }
.dfw-comments .children { list-style: none; padding-left: 26px; }
.dfw-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--dfw-line); }
.dfw-comments .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.dfw-comments .comment-meta { font-size: 13.5px; }
.dfw-comments .form-submit input { background: #111; color: #fff; border: 0; padding: 12px 28px; border-radius: 8px; font-weight: 800; cursor: pointer; }

/* WordPress core alignment */
.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; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--dfw-muted); text-align: center; margin-top: 6px; }
.sticky .dfw-row-post { border-color: var(--dfw-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.dfw-grid--5 { grid-template-columns: repeat(3, 1fr); }
	.dfw-nav a { padding: 8px 10px; font-size: 13.5px; }
}
@media (max-width: 980px) {
	.dfw-menu-toggle { display: grid; }
	.dfw-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--dfw-line); display: none; padding: 12px 20px 18px; box-shadow: var(--dfw-shadow); }
	.dfw-nav.is-open { display: block; }
	.dfw-nav ul { flex-direction: column; }
	.dfw-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding-left: 14px; }
	.dfw-header__actions { margin-left: auto; }
	.dfw-layout { grid-template-columns: 1fr; }
	.dfw-sidebar { position: static; }
	.dfw-grid--3, .dfw-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.dfw-grid--cats > .dfw-card { width: calc((100% - 22px) / 2); }
	.dfw-missed__track { grid-auto-columns: calc((100% - 22px) / 2); }
	.dfw-about, .dfw-welcome, .dfw-contact, .dfw-newsletter, .dfw-catblock__grid { grid-template-columns: 1fr; }
	.dfw-footer__grid { grid-template-columns: 1fr 1fr; }
	.dfw-mosaic, .dfw-mosaic--three { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 200px 200px; }
	.dfw-mosaic__item:first-child, .dfw-mosaic--three .dfw-mosaic__item:first-child { grid-column: span 2; grid-row: auto; }
	.dfw-mosaic--three .dfw-mosaic__item:nth-child(2) { grid-row: auto; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.dfw-topbar__links { display: none; }
	.dfw-site-desc { display: none; }
	.dfw-grid--2, .dfw-grid--3, .dfw-grid--4, .dfw-grid--5 { grid-template-columns: 1fr; }
	.dfw-grid--cats > .dfw-card { width: 100%; }
	.dfw-missed__track { grid-auto-columns: 82%; }
	.dfw-mosaic, .dfw-mosaic--three { grid-template-columns: 1fr; grid-template-rows: auto; }
	.dfw-mosaic__item { min-height: 230px; }
	.dfw-mosaic__item:first-child, .dfw-mosaic--three .dfw-mosaic__item:first-child { grid-column: auto; min-height: 320px; }
	.dfw-overlay h2 { font-size: 25px; }
	.dfw-row-post { grid-template-columns: 1fr; }
	.dfw-row-post__body { padding: 0 18px 18px; }
	.dfw-article { padding: 22px; }
	.dfw-article__head h1, .dfw-archive-head h1 { font-size: 30px; }
	.dfw-welcome { padding: 20px; }
	.dfw-welcome h1 { font-size: 32px; }
	.dfw-footer__grid { grid-template-columns: 1fr; }
	.dfw-form .dfw-two, .dfw-postnav, .dfw-stats { grid-template-columns: 1fr; }
	.dfw-section-head h2 { font-size: 23px; }
	.admin-bar .dfw-header { top: 0; }
}
.dfw-overlay .dfw-badge--soft { color: #be185d; }
@media (max-width: 640px) {
	.dfw-section-head h2 { white-space: normal; }
	.dfw-section-head::after { display: none; }
	.dfw-section-head .dfw-viewall { margin-left: auto; }
}
