/*
Theme Name: DF World
Theme URI: https://digitalfactworld.com/
Author: Digital Fact World
Description: Clean, colourful magazine theme for Digital Fact World. Homepage sections follow the categories in the Header Menu.
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: dfworld
*/
:root{--ink:#0f172a;--ink2:#334155;--mute:#64748b;--line:#e2e8f0;--bg:#f5f7fb;--card:#fff;--navy:#0b1426;--teal:#06b6d4;--violet:#7c3aed;--r:18px;--sh:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.06);--hf:"Space Grotesk","Plus Jakarta Sans",system-ui,sans-serif;--bf:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--bf);font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}
h1,h2,h3,h4{font-family:var(--hf);line-height:1.2;margin:0;letter-spacing:-.01em}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.screen-reader-text:focus{clip:auto;width:auto;height:auto;z-index:99;background:#fff;padding:8px 12px;top:8px;left:8px}
.df-wrap{max-width:1200px;margin:0 auto;padding:0 20px}
/* top bar */
.df-top{background:var(--navy);color:#cbd5e1;font-size:14px}
.df-top .df-wrap{display:flex;justify-content:space-between;align-items:center;min-height:40px;gap:12px}
.df-date{display:flex;align-items:center;gap:8px}.df-date:before{content:"";width:10px;height:10px;border-radius:50%;background:var(--teal);box-shadow:0 0 0 3px rgba(6,182,212,.25)}
.df-top nav{display:flex;gap:20px}.df-top nav a:hover{color:#fff}
.df-top ul{list-style:none;margin:0;padding:0;display:flex;gap:20px}
/* header */
.df-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.admin-bar .df-header{top:32px}
.df-head{display:flex;align-items:center;gap:20px;min-height:76px}
.df-brand{display:flex;align-items:center;gap:12px;flex-shrink:0}
.df-badge{width:44px;height:44px;border-radius:12px;background:#0f172a;color:#fff;display:grid;place-items:center;font:700 16px var(--hf)}
.df-name{font:700 22px/1.1 var(--hf);color:var(--ink)}.df-name span{color:var(--teal)}
.df-tag{display:block;font-size:12.5px;color:var(--mute);margin-top:3px}
.custom-logo{max-height:48px;width:auto}
.df-nav{margin-left:auto}.df-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:2px;flex-wrap:nowrap}
.df-nav a{display:flex;align-items:center;gap:7px;padding:9px 12px;border-radius:999px;font-weight:600;font-size:14.5px;white-space:nowrap;color:var(--ink2);transition:.15s}
.df-nav a:hover{background:var(--s,#f1f5f9);color:var(--d,var(--ink))}
.df-nav .current-menu-item>a,.df-nav a.df-home-on{background:var(--ink);color:#fff}
.df-dot{width:8px;height:8px;border-radius:50%;background:var(--c,#94a3b8)}
.df-icon{width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:#fff;display:grid;place-items:center;cursor:pointer;color:var(--ink)}
.df-icon:hover{border-color:var(--ink)}.df-menu-btn{display:none}
.df-search{display:none;border-top:1px solid var(--line);background:#fff}.df-search.open{display:block}
.df-search form{max-width:1200px;margin:0 auto;padding:14px 20px;display:flex;gap:10px}
.df-search input{flex:1;padding:12px 18px;border:1px solid #cbd5e1;border-radius:999px;font:inherit}
.df-btn{display:inline-flex;align-items:center;gap:8px;background:var(--ink);color:#fff;border:0;border-radius:12px;padding:12px 20px;font:700 15px var(--bf);cursor:pointer}
.df-btn:hover{background:#1e293b}
/* hero */
.df-main{padding:28px 0 56px}
.df-hero{display:grid;grid-template-columns:1.55fr 1fr;gap:24px;margin-bottom:40px}
.df-feature{position:relative;border-radius:22px;overflow:hidden;min-height:440px;display:flex;align-items:flex-end;background:#1e293b;box-shadow:var(--sh)}
.df-feature img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.df-feature:hover img{transform:scale(1.03)}
.df-feature:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,20,38,0) 30%,rgba(11,20,38,.85) 100%)}
.df-feature .in{position:relative;z-index:1;padding:28px;color:#fff}
.df-feature h2{font-size:clamp(24px,3vw,34px);margin:10px 0 8px}
.df-feature p{margin:0;color:#e2e8f0;max-width:620px}
.df-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;font-size:12.5px;font-weight:700;background:var(--s,#e0f2fe);color:var(--d,#075985);letter-spacing:.02em}
.df-feature .df-pill{background:var(--c,#06b6d4);color:#fff}
.df-meta{font-size:13.5px;color:var(--mute)}.df-feature .df-meta{color:#cbd5e1;margin-top:10px;display:block}
.df-panel{background:var(--card);border-radius:22px;padding:22px;box-shadow:var(--sh);border:1px solid var(--line)}
.df-panel-t{font:700 13px var(--hf);letter-spacing:.12em;text-transform:uppercase;color:var(--violet);display:flex;align-items:center;gap:8px;margin-bottom:8px}
.df-panel-t:before{content:"";width:18px;height:3px;border-radius:3px;background:linear-gradient(90deg,#06b6d4,#7c3aed)}
.df-row{display:grid;grid-template-columns:84px 1fr;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.df-row:last-child{border-bottom:0}
.df-row .th{width:84px;height:68px;border-radius:12px;overflow:hidden;background:linear-gradient(135deg,var(--s,#e0f2fe),#fff)}
.df-row .th img{width:100%;height:100%;object-fit:cover}
.df-row .k{font-size:12px;font-weight:700;color:var(--c,#0891b2)}
.df-row .t{display:block;font:600 15.5px/1.35 var(--hf);color:var(--ink)}
.df-row:hover .t{color:var(--c,#0891b2)}
/* category tiles */
.df-tiles-h{display:flex;justify-content:space-between;align-items:end;margin-bottom:16px}
.df-tiles-h h2{font-size:26px}
.df-tiles{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-bottom:48px}
.df-tile{position:relative;border-radius:18px;padding:18px;background:var(--s);color:var(--d);border:1px solid rgba(15,23,42,.05);overflow:hidden;transition:.2s}
.df-tile:hover{transform:translateY(-3px);box-shadow:var(--sh)}
.df-tile .ic{width:40px;height:40px;border-radius:12px;background:var(--c);color:#fff;display:grid;place-items:center;font:700 15px var(--hf);margin-bottom:14px}
.df-tile b{display:block;font:700 17px/1.25 var(--hf);color:var(--ink)}
.df-tile span{font-size:13px}
.df-tile:after{content:"";position:absolute;right:-24px;bottom:-24px;width:80px;height:80px;border-radius:50%;background:var(--c);opacity:.12}
/* sections */
.df-sec{margin-bottom:52px}
.df-sec-h{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.df-sec-h h2{display:flex;align-items:center;gap:12px;font-size:26px}
.df-sec-h h2 .sq{width:14px;height:14px;border-radius:4px;background:var(--c);transform:rotate(45deg)}
.df-all{font-weight:700;font-size:14px;color:var(--d);background:var(--s);padding:8px 14px;border-radius:999px}
.df-all:hover{background:var(--c);color:#fff}
.df-subs{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 18px}
.df-subs a{font-size:13px;font-weight:600;color:var(--ink2);border:1px solid var(--line);background:#fff;padding:5px 12px;border-radius:999px}
.df-subs a:hover{border-color:var(--c);color:var(--d)}
.df-card{display:flex;flex-direction:column;background:var(--card);border-radius:var(--r);overflow:hidden;border:1px solid var(--line);box-shadow:var(--sh);transition:.2s;height:100%}
.df-card:hover{transform:translateY(-3px)}
.df-card .im{aspect-ratio:16/10;overflow:hidden;background:linear-gradient(135deg,var(--s,#e0f2fe),#fff)}
.df-card .im img{width:100%;height:100%;object-fit:cover}
.df-card .bd{padding:16px 18px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.df-card h3{font-size:18px;line-height:1.3}
.df-card:hover h3{color:var(--d)}
.df-card p{margin:0;color:var(--ink2);font-size:14.5px}
.df-card .df-meta{margin-top:auto}
.df-lay-a{display:grid;grid-template-columns:1.25fr 1fr;gap:20px}
.df-lay-a .df-card.big .im{aspect-ratio:16/9}.df-lay-a .df-card.big h3{font-size:23px}
.df-lay-a .side{display:flex;flex-direction:column;gap:14px}
.df-h{display:grid;grid-template-columns:150px 1fr;background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:var(--sh);transition:.2s}
.df-h:hover{transform:translateX(3px)}
.df-h .im{background:linear-gradient(135deg,var(--s),#fff);min-height:110px}.df-h .im img{width:100%;height:100%;object-fit:cover}
.df-h .bd{padding:12px 16px;display:flex;flex-direction:column;gap:6px;justify-content:center}
.df-h h3{font-size:16px;line-height:1.3}.df-h:hover h3{color:var(--d)}
.df-lay-b{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.df-lay-b.n3{grid-template-columns:repeat(3,1fr)}.df-lay-b.n2{grid-template-columns:repeat(2,1fr)}.df-lay-b.n1{grid-template-columns:1fr}
.df-lay-b.n1 .df-card{display:grid;grid-template-columns:1.15fr 1fr}.df-lay-b.n1 .df-card .im{aspect-ratio:auto;min-height:280px}.df-lay-b.n1 .df-card .bd{padding:28px;justify-content:center}.df-lay-b.n1 .df-card h3{font-size:26px}@media(max-width:700px){.df-lay-b.n1 .df-card{display:flex}.df-lay-b.n1 .df-card .im{aspect-ratio:16/10;min-height:0}}
.df-empty{padding:26px;border:2px dashed var(--line);border-radius:var(--r);color:var(--mute);text-align:center;background:#fff}
/* single */
.df-single{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:32px;padding:28px 0 56px}
.df-article{min-width:0}
.df-crumbs{font-size:13.5px;color:var(--mute);display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.df-crumbs a:hover{color:var(--ink)}
.df-title{font-size:clamp(30px,4vw,44px);margin:14px 0 12px}
.df-excerpt{font-size:18.5px;color:var(--ink2);margin:0 0 18px}
.df-byline{display:flex;align-items:center;gap:12px;font-size:14px;color:var(--mute);padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:22px}
.df-byline img{border-radius:50%}.df-byline b{display:block;color:var(--ink)}
.df-share{margin-left:auto;display:flex;gap:6px}
.df-share a{width:36px;height:36px;border-radius:50%;background:#fff;border:1px solid var(--line);display:grid;place-items:center;font-size:12px;font-weight:700;color:var(--ink2)}
.df-share a:hover{background:var(--ink);color:#fff}
.df-feat-img{border-radius:22px;overflow:hidden;margin-bottom:26px;box-shadow:var(--sh)}
.df-content{background:#fff;border-radius:22px;padding:32px 36px;border:1px solid var(--line);font-size:17.5px;line-height:1.8;color:#1e293b}
.df-content>*:first-child{margin-top:0}
.df-content h2{font-size:28px;margin:38px 0 14px;scroll-margin-top:110px}
.df-content h3{font-size:21px;margin:28px 0 10px}
.df-content a{color:#0e7490;text-decoration:underline;text-underline-offset:3px}
.df-content img{border-radius:14px}
.df-content table{width:100%;border-collapse:collapse;font-size:15.5px}
.df-content th,.df-content td{border:1px solid var(--line);padding:10px 12px;text-align:left}
.df-content blockquote{margin:24px 0;padding:16px 20px;border-left:4px solid var(--teal);background:#ecfeff;border-radius:0 14px 14px 0}
.df-toc{margin:22px 0 28px;padding:20px 22px;border-radius:18px;background:linear-gradient(135deg,#ecfeff,#f5f3ff);border:1px solid #e0e7ff;font-family:var(--bf)}
.df-toc .tt{font:700 13px var(--hf);letter-spacing:.12em;text-transform:uppercase;color:var(--violet)}
.df-toc ol{margin:10px 0 0;padding-left:22px;columns:2;column-gap:28px}
.df-toc li{margin:0 0 6px;font-size:15.5px;line-height:1.45;break-inside:avoid}
.df-content .df-toc a{color:var(--ink);text-decoration:none}.df-content .df-toc a:hover{color:#0e7490}
.df-tags{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.df-tags a{font-size:13px;background:#fff;border:1px solid var(--line);padding:5px 12px;border-radius:999px}
.df-related{margin-top:36px}.df-related h2{font-size:24px;margin-bottom:16px}
.df-related .df-lay-b{grid-template-columns:repeat(3,1fr)}
.df-aside{display:flex;flex-direction:column;gap:20px}
.df-aside .df-panel{position:static}
.df-sticky{position:sticky;top:110px;display:flex;flex-direction:column;gap:20px}
.df-catlink{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);font-weight:600}
.df-catlink:last-child{border-bottom:0}.df-catlink span{display:flex;align-items:center;gap:10px}
.df-catlink em{font-style:normal;font-size:12px;background:var(--s);color:var(--d);padding:2px 9px;border-radius:999px}
/* archive */
.df-arch{padding:30px 0 56px}
.df-arch-h{background:#fff;border:1px solid var(--line);border-radius:22px;padding:26px 28px;margin-bottom:26px;position:relative;overflow:hidden}
.df-arch-h:before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--c,var(--teal))}
.df-arch-h h1{font-size:34px}.df-arch-h p{margin:8px 0 0;color:var(--ink2)}
.df-pages{display:flex;gap:8px;justify-content:center;margin-top:30px}
.df-pages .page-numbers{padding:9px 15px;border-radius:12px;background:#fff;border:1px solid var(--line);font-weight:600}
.df-pages .current{background:var(--ink);color:#fff}
.df-page{max-width:860px;margin:0 auto;padding:30px 20px 56px}
/* footer */
.df-footer{background:var(--navy);color:#cbd5e1;margin-top:20px}
.df-foot{display:grid;grid-template-columns:1.4fr 1fr 1.3fr 1fr;gap:32px;padding:48px 20px 32px;max-width:1200px;margin:0 auto}
.df-foot h4{color:#fff;font-size:16px;margin-bottom:14px}
.df-foot a{display:block;padding:4px 0;font-size:14.5px}.df-foot a:hover{color:#fff}
.df-foot p{font-size:14.5px;margin:12px 0 0}
.df-foot .df-name{color:#fff}
.df-foot ul{list-style:none;margin:0;padding:0}
.df-copy{border-top:1px solid rgba(255,255,255,.08);text-align:center;font-size:13.5px;padding:18px 20px;color:#94a3b8}
/* responsive */
@media(max-width:1080px){.df-tiles{grid-template-columns:repeat(3,1fr)}.df-lay-b{grid-template-columns:repeat(2,1fr)}.df-single{grid-template-columns:1fr}.df-sticky{position:static}}
@media(max-width:1180px){.df-tag{display:none}.df-nav a{padding:8px 9px;font-size:14px}}
@media(max-width:900px){.df-menu-btn{display:grid}.df-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);padding:10px 16px}.df-nav.open{display:block}.df-nav ul{flex-direction:column}.df-head{position:relative}.df-icon.df-search-btn{margin-left:auto}.df-hero,.df-lay-a{grid-template-columns:1fr}.df-feature{min-height:340px}.df-foot{grid-template-columns:1fr 1fr}.df-related .df-lay-b{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.df-wrap{padding:0 16px}.df-top nav,.df-top ul{display:none}.df-tag{display:none}.df-tiles{grid-template-columns:repeat(2,1fr)}.df-lay-b,.df-lay-b.n3,.df-lay-b.n2,.df-related .df-lay-b{grid-template-columns:1fr}.df-h{grid-template-columns:110px 1fr}.df-content{padding:22px 18px;font-size:17px}.df-toc ol{columns:1}.df-foot{grid-template-columns:1fr}.df-sec-h h2,.df-tiles-h h2{font-size:22px}.df-share{display:none}}

/* v1.1 homepage (demo layout) */
.df-home{padding-bottom:40px}
.df-intro{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding-top:48px;padding-bottom:28px}
.df-eyebrow{font:700 13px var(--hf);letter-spacing:.12em;text-transform:uppercase;color:#0e7490}
.df-intro h1{font-size:clamp(32px,5vw,52px);max-width:820px}
.df-intro>p{margin:0;font-size:18px;color:#475569;max-width:640px}
.df-hsearch{display:flex;gap:8px;width:100%;max-width:560px;margin-top:6px}
.df-hsearch input{flex:1;min-width:0;padding:14px 20px;border:1px solid #cbd5e1;border-radius:999px;font:inherit;background:#fff}
.df-hsearch .df-btn{border-radius:999px}
.df-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:10px}
.df-chip{display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:14px;background:var(--s);color:var(--d);font-weight:700;font-size:14px;transition:.15s}
.df-chip:hover{transform:translateY(-2px)}
.df-chip .ic,.df-catcard .ic{width:26px;height:26px;border-radius:8px;background:var(--c);color:#fff;display:grid;place-items:center;font:700 12px var(--hf)}
.df-latest{display:grid;grid-template-columns:2fr 1fr;gap:20px;padding-top:12px;padding-bottom:40px}
.df-lead{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:var(--sh)}
.df-lead .im{aspect-ratio:16/8;background:var(--s);overflow:hidden}.df-lead .im img{width:100%;height:100%;object-fit:cover}
.df-lead .bd{padding:22px 24px;display:flex;flex-direction:column;gap:10px}
.df-lead h2{font-size:clamp(22px,2.6vw,30px)}.df-lead:hover h2{color:var(--d)}
.df-lead p{margin:0;color:#475569}
.df-pill.solid{align-self:flex-start;background:var(--c);color:#fff}
.df-num{display:flex;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid #eef2f7}
.df-num:last-child{border-bottom:0}
.df-num .n{font:700 22px var(--hf);color:#cbd5e1;width:28px;flex-shrink:0}
.df-num .k{display:block;font-size:12px;font-weight:700;color:var(--d)}
.df-num .t{display:block;font:600 15.5px/1.35 var(--hf)}.df-num:hover .t{color:var(--d)}
.df-catrow{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:44px}
.df-catcard{flex:1 1 260px;max-width:100%;background:var(--s);border-radius:22px;padding:26px;display:flex;flex-direction:column;gap:12px}
.df-catcard .ic{width:48px;height:48px;border-radius:14px;font-size:18px}
.df-catcard h2{font-size:26px}.df-catcard p{margin:0;color:var(--d);font-size:15px}
.df-see{margin-top:auto;align-self:flex-start;padding:10px 16px;border-radius:999px;background:#fff;color:var(--d);font-weight:700;font-size:14px}
.df-see:hover{background:var(--c);color:#fff}
.df-catposts{flex:999 1 640px;min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}.df-catposts .df-empty{grid-column:1/-1}@media(max-width:1000px){.df-catposts{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.df-catposts{grid-template-columns:1fr}}
.df-catposts .df-card .im{aspect-ratio:16/10}
.df-catposts .df-empty{display:grid;place-items:center;min-height:180px}
@media(max-width:900px){.df-latest{grid-template-columns:1fr}}
