/*
Theme Name: UniverseEdu
Theme URI: https://universeedu.uk/
Author: UniverseEdu
Description: Clean, modern UK education publishing theme for information-first websites. Includes six education categories, responsive article layouts, transparent branding assets and optional ad widget areas.
Version: 1.4.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: universeedu
*/
:root{--navy:#061f4b;--navy2:#0a2e69;--blue:#1457c9;--gold:#efa900;--gold2:#ffc126;--text:#0c2048;--muted:#60708d;--line:#e3e9f3;--bg:#f7faff;--soft:#eef5ff;--white:#fff;--radius:18px;--shadow:0 14px 36px rgba(9,38,85,.09)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:#fff;line-height:1.65;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}svg{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.container{width:min(1240px,calc(100% - 44px));margin-inline:auto}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.site-topbar{background:linear-gradient(90deg,#062353,#082d65);color:#fff;font-size:12px}.topbar-inner{height:34px;display:flex;align-items:center;justify-content:space-between}.uk-label{display:flex;align-items:center;gap:7px}.top-points{display:flex;gap:0}.top-points span+span:before{content:"•";color:var(--gold);margin:0 13px}
.site-header{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.97);border-bottom:1px solid rgba(220,228,240,.85);box-shadow:0 5px 22px rgba(7,31,74,.04);backdrop-filter:blur(14px)}.header-inner{height:86px;display:flex;align-items:center;gap:30px}.brand-lockup{display:inline-flex;align-items:center;gap:9px;flex:0 0 auto}.brand-mark{width:70px;height:58px;object-fit:contain}.brand-copy{display:flex;flex-direction:column;line-height:1}.brand-copy strong{font-size:31px;font-weight:850;letter-spacing:-1.5px;color:var(--navy);white-space:nowrap}.brand-copy strong span{color:var(--gold)}.brand-copy small{font-size:10px;font-weight:650;color:#4d5d7a;margin-top:6px;letter-spacing:.01em}.custom-brand-logo .custom-logo-link{display:block}.custom-brand-logo img{max-height:64px;width:auto}.main-nav{margin-left:auto}.nav-list{display:flex;align-items:center;gap:25px;list-style:none;margin:0;padding:0}.nav-list a{font-size:13px;font-weight:760;white-space:nowrap;position:relative}.nav-list a:after{content:"";position:absolute;left:0;right:100%;bottom:-10px;height:2px;background:var(--gold);transition:.2s}.nav-list a:hover{color:var(--navy2)}.nav-list a:hover:after{right:0}.header-search{width:43px;height:43px;border:1px solid var(--line);border-radius:14px;display:grid;place-items:center;color:var(--navy);box-shadow:0 5px 14px rgba(12,34,76,.04)}.header-search svg{font-size:21px}.mobile-toggle{display:none;margin-left:auto;width:42px;height:42px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px}.mobile-toggle>span:not(.screen-reader-text){display:block;height:2px;background:var(--navy);margin:4px 0;border-radius:9px}
.hero{background:linear-gradient(115deg,#fff 0%,#f8fbff 53%,#edf5ff 100%);overflow:hidden}.hero-grid{min-height:450px;display:grid;grid-template-columns:1.13fr .87fr;align-items:stretch}.hero-copy{padding:55px 38px 50px 0;display:flex;flex-direction:column;justify-content:center;position:relative;z-index:2}.eyebrow,.section-kicker{text-transform:uppercase;letter-spacing:.09em;font-size:12px;font-weight:850;color:var(--navy2)}.eyebrow:before{content:"";display:inline-block;width:26px;height:2px;background:var(--gold);margin-right:10px;vertical-align:middle}.hero h1{font-size:clamp(44px,5.1vw,68px);line-height:1.03;letter-spacing:-.045em;margin:13px 0 18px;color:var(--navy);max-width:760px}.hero h1 span{color:var(--gold)}.hero p{font-size:17px;color:#435572;max-width:720px;margin:0 0 24px}.hero-visual{min-height:450px;background:url('assets/images/hero-london.jpg') center/cover no-repeat;position:relative;isolation:isolate}.hero-visual:before{content:"";position:absolute;inset:0 auto 0 0;width:28%;background:linear-gradient(105deg,#fff 0%,rgba(255,255,255,.94) 30%,rgba(255,255,255,0) 74%);clip-path:polygon(0 0,100% 0,33% 100%,0 100%)}.hero-visual:after{content:"";position:absolute;left:4%;bottom:0;width:13px;height:100%;background:linear-gradient(var(--gold),#2b69d9);transform:skewX(-21deg);transform-origin:bottom;opacity:.92;z-index:-1}.search-panel{max-width:785px;background:#fff;border:1px solid #dce4ef;border-radius:17px;padding:7px;display:grid;grid-template-columns:minmax(280px,1fr) 175px 118px;gap:7px;box-shadow:0 14px 35px rgba(17,49,97,.11)}.search-input-wrap{display:flex;align-items:center;gap:10px;padding-left:14px}.search-input-wrap svg{font-size:22px;color:var(--navy2);flex:0 0 auto}.search-panel input,.search-panel select{border:0;outline:0;background:transparent;min-height:50px;font:inherit;color:var(--text)}.search-panel input{width:100%;font-size:14px}.search-panel select{border-left:1px solid var(--line);padding:0 16px;font-size:13px}.search-btn{border:0;border-radius:12px;background:var(--navy2);color:#fff;font-weight:800;font-size:14px;cursor:pointer}.search-btn:hover{background:#0d3d8b}.trending{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:17px;font-size:12px}.trending strong{color:var(--navy)}.trending a{background:#fff;border:1px solid #e8eef6;border-radius:999px;padding:7px 12px;color:#2858b3;font-weight:650}.trending a:hover{border-color:#bfd0ed;background:#f8fbff}
.categories-section{padding:28px 0 20px;background:#fff}.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.cat-card{min-height:194px;border:1px solid var(--line);border-radius:17px;padding:21px 17px 18px;background:#fff;box-shadow:0 8px 24px rgba(8,39,83,.05);display:flex;flex-direction:column;align-items:center;text-align:center;transition:.22s}.cat-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.cat-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;margin-bottom:13px;background:#eef5ff;color:#0a4eb7}.cat-icon svg{font-size:27px}.cat-2 .cat-icon{background:#fff4dc;color:#aa6000}.cat-3 .cat-icon{background:#eaf8ef;color:#168445}.cat-4 .cat-icon{background:#f6eaff;color:#8a2dbb}.cat-5 .cat-icon{background:#ffeaf1;color:#d61b60}.cat-6 .cat-icon{background:#fff0e6;color:#b74d12}.cat-card h3{font-size:16px;margin:0 0 6px}.cat-card p{font-size:12.5px;line-height:1.5;color:var(--muted);margin:0}.card-arrow{margin-top:auto;width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#f0f5fc;color:var(--blue);font-weight:900}
.optional-ad{padding:8px 0}.ue-widget{max-width:970px;margin:auto}.guides-section{padding:28px 0 55px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:19px}.section-head h2{font-size:28px;letter-spacing:-.02em;margin:3px 0 0}.view-link{font-size:13px;color:#134fba;font-weight:750}.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.post-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 8px 24px rgba(8,38,81,.05)}.post-media{display:block;background:#edf4ff;overflow:hidden}.post-media img{width:100%;aspect-ratio:16/9;object-fit:cover;transition:.3s}.post-card:hover .post-media img{transform:scale(1.025)}.post-placeholder{aspect-ratio:16/9;display:grid;place-items:center;background:linear-gradient(135deg,#f4f8ff,#e7f0ff);color:#1a57bd}.post-placeholder svg{font-size:58px}.post-body{padding:16px}.post-tag{font-size:10px;text-transform:uppercase;letter-spacing:.05em;font-weight:850;color:#164eae;background:#edf4ff;border-radius:99px;padding:5px 8px}.post-card h2,.post-card h3{font-size:18px;line-height:1.34;margin:10px 0 7px}.post-card p{font-size:13px;color:var(--muted);margin:0 0 12px}.post-meta{font-size:11.5px;color:#7e8ba0}.empty-guides{border:1px solid var(--line);border-radius:18px;background:#f9fbfe;min-height:150px;display:flex;align-items:center;gap:20px;padding:28px}.empty-icon{width:66px;height:66px;border-radius:18px;background:#edf4ff;color:#1757bb;display:grid;place-items:center;flex:0 0 auto}.empty-icon svg{font-size:33px}.empty-guides h3{margin:0 0 4px}.empty-guides p{margin:0;color:var(--muted);font-size:14px}.trust-strip{margin-top:30px;background:linear-gradient(90deg,#f7faff,#fbfdff);border:1px solid var(--line);border-radius:18px;padding:22px 20px;display:grid;grid-template-columns:repeat(4,1fr)}.trust-item{display:flex;align-items:center;gap:12px;padding:0 18px;border-left:1px solid var(--line)}.trust-item:first-child{border-left:0}.trust-icon{width:39px;height:39px;border:2px solid #b8c9e5;border-radius:50%;display:grid;place-items:center;font-weight:900;color:var(--navy)}.trust-item strong{display:block;font-size:13px}.trust-item small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.site-footer{background:linear-gradient(105deg,#061d46,#08275a);color:#fff}.footer-main{padding:42px 0 36px;display:grid;grid-template-columns:1.35fr repeat(4,1fr);gap:34px}.footer-lockup .brand-copy strong{color:#fff;font-size:27px}.footer-lockup .brand-copy small{color:#cdd9ec}.footer-brand p{max-width:300px;color:#cbd7e9;font-size:13px;margin:15px 0 0}.footer-col h4{font-size:14px;margin:4px 0 12px}.footer-col ul{list-style:none;margin:0;padding:0}.footer-col li{margin:7px 0}.footer-col a{font-size:12.5px;color:#d8e2f1}.footer-col a:hover{color:#fff}.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:16px 0 18px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:11.5px;color:#bdcce1}
.archive-head{padding:52px 0 28px;background:linear-gradient(130deg,#f7faff,#fff)}.archive-head h1{font-size:43px;letter-spacing:-.03em;margin:4px 0 7px}.archive-head p,.archive-description{color:var(--muted);max-width:760px}.listing-section{padding:34px 0 58px}.pagination{margin-top:30px}.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap}.pagination .page-numbers{border:1px solid var(--line);border-radius:10px;padding:8px 12px;font-size:13px}.pagination .current{background:var(--navy2);color:#fff;border-color:var(--navy2)}
.article-wrap{padding:48px 0 62px}.article-grid{display:grid;grid-template-columns:minmax(0,820px) 300px;gap:46px}.breadcrumb{font-size:12px;color:#708099;margin-bottom:18px}.breadcrumb span{margin:0 7px}.article-header h1{font-size:clamp(38px,4.4vw,58px);line-height:1.08;letter-spacing:-.04em;margin:8px 0 13px}.article-meta{font-size:13px;color:#748299}.article-featured{margin:27px 0}.article-featured img{border-radius:20px;width:100%}.article-content{font-size:17px;color:#273a59}.article-content p{margin:0 0 20px}.article-content h2{font-size:30px;margin:38px 0 12px}.article-content h3{font-size:23px;margin:28px 0 10px}.article-content a{color:#1456bd;text-decoration:underline;text-underline-offset:3px}.article-content ul,.article-content ol{padding-left:24px}.article-content blockquote{border-left:4px solid var(--gold);background:#fbfcff;padding:16px 20px;margin:24px 0;border-radius:0 12px 12px 0}.article-widget-area{margin:30px 0}.aside-card{position:sticky;top:122px;border:1px solid var(--line);border-radius:17px;padding:20px;background:#fff;box-shadow:0 8px 22px rgba(7,36,77,.04)}.aside-card h3{margin:0 0 10px;font-size:16px}.aside-card ul{list-style:none;margin:0;padding:0}.aside-card li{border-top:1px solid var(--line)}.aside-card li:first-child{border-top:0}.aside-card a{display:flex;justify-content:space-between;padding:10px 0;font-size:13px;font-weight:650}.policy-page{padding:54px 0 70px}.page-content{max-width:880px;margin:auto}.page-content h1{font-size:46px;letter-spacing:-.035em;margin:5px 0 25px}.page-content{font-size:17px;color:#2b3e5c}.page-content h2{color:var(--text);margin-top:35px}.site-search-form{display:flex;gap:8px}.site-search-form label{flex:1}.site-search-form input{width:100%;height:46px;border:1px solid var(--line);border-radius:10px;padding:0 13px}.site-search-form button{border:0;background:var(--navy2);color:#fff;padding:0 18px;border-radius:10px;font-weight:750}
@media(max-width:1080px){.nav-list{gap:16px}.nav-list a{font-size:12px}.category-grid{grid-template-columns:repeat(3,1fr)}.footer-main{grid-template-columns:repeat(4,1fr)}.footer-brand{grid-column:1/-1}.article-grid{grid-template-columns:1fr}.article-aside{display:none}}
@media(max-width:900px){.main-nav{position:absolute;left:20px;right:20px;top:82px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:8px 18px;box-shadow:var(--shadow);display:none}.main-nav.is-open{display:block}.nav-list{display:block}.nav-list li{border-top:1px solid var(--line)}.nav-list li:first-child{border-top:0}.nav-list a{display:block;padding:12px 2px}.nav-list a:after{display:none}.mobile-toggle{display:block}.header-search{margin-left:auto}.hero-grid{grid-template-columns:1fr}.hero-copy{padding-right:0}.hero-visual{min-height:300px}.search-panel{grid-template-columns:1fr 170px 110px}.post-grid{grid-template-columns:repeat(2,1fr)}.trust-strip{grid-template-columns:repeat(2,1fr);gap:18px}.trust-item{border-left:0;padding:0}.footer-main{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.container{width:min(100% - 24px,1240px)}.site-topbar{display:none}.header-inner{height:74px;gap:9px}.brand-mark{width:52px;height:43px}.brand-copy strong{font-size:23px;letter-spacing:-1px}.brand-copy small{font-size:8px;margin-top:4px}.header-search{width:39px;height:39px}.mobile-toggle{width:39px;height:39px}.main-nav{top:70px;left:12px;right:12px}.hero-copy{padding:37px 0 30px}.hero h1{font-size:43px}.hero p{font-size:15px}.hero-visual{min-height:235px}.search-panel{grid-template-columns:1fr;padding:6px}.search-panel select{border-left:0;border-top:1px solid var(--line);padding:0 14px}.search-btn{min-height:48px}.trending a{padding:6px 9px}.categories-section{padding-top:20px}.category-grid{grid-template-columns:repeat(2,1fr);gap:10px}.cat-card{min-height:176px;padding:17px 12px}.cat-card p{font-size:11.5px}.post-grid{grid-template-columns:1fr}.section-head{align-items:center}.section-head h2{font-size:24px}.trust-strip{grid-template-columns:1fr}.footer-main{grid-template-columns:1fr 1fr;gap:28px 20px}.footer-brand{grid-column:1/-1}.footer-bottom{display:block}.footer-bottom span{display:block;margin:4px 0}.empty-guides{display:block}.empty-icon{margin-bottom:14px}.archive-head h1{font-size:36px}.article-wrap{padding-top:35px}.page-content h1{font-size:38px}}
