/*
Theme Name: Philomaniac
Author: Philomaniac Trust
Description: Course-first Philomaniac WordPress theme with an isolated homepage header.
Version: 5.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: philomaniac
*/
:root{--pn:#12243a;--pr:#b31f2b;--pc:#f7f3ec;--pi:#18202a;--pm:#667180;--pl:#e4e8ed;--ps:#f8fafb;--mw:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0!important;font-family:Arial,Helvetica,sans-serif;color:var(--pi);line-height:1.6;background:#fff}
.phil-shell{width:min(100% - 40px,var(--mw));margin-inline:auto}
.phil-header{display:block!important;visibility:visible!important;opacity:1!important;width:100%!important;height:84px!important;min-height:84px!important;max-height:84px!important;background:#fff!important;border-bottom:1px solid var(--pl)!important;position:relative!important;z-index:999999!important;box-shadow:0 1px 8px rgba(18,36,58,.06)!important}
.phil-header-inner{width:min(100% - 40px,var(--mw));height:84px!important;min-height:84px!important;margin:auto;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important}
.phil-brand{display:flex!important;align-items:center!important;gap:10px!important;flex:0 0 auto!important;text-decoration:none!important}.phil-brand img{display:block!important;width:215px!important;height:70px!important;max-width:215px!important;max-height:70px!important;object-fit:fill!important;object-position:center!important;margin:0!important;padding:0!important;border:0!important}.phil-brand span{display:none}
.phil-main-menu{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:25px!important;flex:1 1 auto!important;white-space:nowrap!important;flex-wrap:nowrap!important;margin:0!important;padding:0!important}.phil-main-menu>a,.phil-main-menu li>a{display:inline-flex!important;align-items:center!important;color:var(--pn)!important;font-size:15px!important;font-weight:600!important;line-height:1!important;padding:10px 0!important;margin:0!important;text-decoration:none!important}.phil-main-menu>a:hover,.phil-main-menu li>a:hover,.phil-main-menu .active{color:var(--pr)!important}.phil-main-menu ul,.phil-wp-menu{display:flex!important;align-items:center!important;gap:25px!important;list-style:none!important;margin:0!important;padding:0!important}.phil-main-menu li{list-style:none!important;margin:0!important;padding:0!important}.phil-register{background:var(--pr)!important;color:#fff!important;padding:11px 17px!important;border-radius:8px!important}
.phil-menu-toggle{display:none!important}
.phil-hero{min-height:575px!important;display:flex!important;align-items:center!important;background:linear-gradient(90deg,rgba(18,36,58,.98) 0%,rgba(18,36,58,.88) 48%,rgba(18,36,58,.32) 100%),url('assets/images/hero.jpg') center/cover no-repeat!important;color:#fff!important}.phil-hero-copy{max-width:760px;padding:72px 0}.phil-eyebrow{color:#f4b9be;font-size:13px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;margin-bottom:14px}.phil-red{color:var(--pr)}.phil-hero h1{font-family:Georgia,'Times New Roman',serif!important;color:#fff!important;font-size:clamp(48px,6vw,76px)!important;line-height:1.02!important;letter-spacing:-1.5px!important;margin:0 0 22px!important;text-shadow:0 2px 12px rgba(0,0,0,.22)!important}.phil-hero h1 span{color:#fff!important}.phil-hero p{color:#fff!important;font-size:18px!important;max-width:720px!important;margin:0 0 30px!important}.phil-actions{display:flex;gap:12px;flex-wrap:wrap}.phil-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;background:var(--pr)!important;color:#fff!important;border:1px solid var(--pr)!important;border-radius:9px!important;padding:13px 20px!important;font-weight:700!important;text-decoration:none!important;cursor:pointer}.phil-btn-outline{background:transparent!important;color:#fff!important;border-color:rgba(255,255,255,.6)!important}
.phil-course-strip{background:var(--pc);border-bottom:1px solid #e8e0d4}.phil-course-strip .phil-shell{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:20px}.phil-course-strip strong{color:var(--pr)}.phil-course-strip a{color:var(--pn);font-weight:600}.phil-section{padding:82px 0}.phil-cream{background:var(--pc)}.phil-soft{background:var(--ps)}.phil-section-head{max-width:720px;margin-bottom:38px}.phil-section-head h2,.phil-panel h2{font-family:Georgia,'Times New Roman',serif;color:var(--pn);font-size:42px;line-height:1.15;margin:0 0 13px}.phil-section-head p{color:var(--pm);margin:0}.phil-course{display:grid;grid-template-columns:1.1fr .9fr;background:#fff;border:1px solid var(--pl);border-radius:20px;overflow:hidden;box-shadow:0 16px 45px rgba(18,36,58,.08)}.phil-course-main{padding:46px}.phil-course-main h3{font-family:Georgia,serif;color:var(--pn);font-size:36px;line-height:1.15;margin:0 0 14px}.phil-course-main>p{color:var(--pm)}.phil-meta{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:26px 0}.phil-meta div{border:1px solid var(--pl);border-radius:11px;padding:14px}.phil-meta b{display:block;color:var(--pn);font-size:13px}.phil-meta span{font-size:13px;color:var(--pm)}.phil-course-side{padding:46px;background:var(--pn);color:#fff;display:flex;flex-direction:column;justify-content:center}.phil-course-side h4{font-family:Georgia,serif;font-size:30px;line-height:1.15;margin:0 0 12px}.phil-course-side p{color:#cad6e0}.phil-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.phil-card{padding:28px;border:1px solid var(--pl);border-radius:15px;background:#fff}.phil-icon{width:44px;height:44px;border-radius:11px;background:#f3e2e4;color:var(--pr);display:grid;place-items:center;font-weight:700;margin-bottom:17px}.phil-card h3{color:var(--pn);font-size:20px;margin:0 0 8px}.phil-card p{color:var(--pm);margin:0}.phil-split{display:grid;grid-template-columns:.9fr 1.1fr;gap:60px;align-items:center}.phil-list{display:grid;gap:16px;margin-top:26px}.phil-list>div{display:flex;gap:12px}.phil-list i{width:25px;height:25px;border-radius:50%;background:#edd0d3;color:var(--pr);display:grid;place-items:center;flex:0 0 25px;font-size:12px;font-weight:700;font-style:normal}.phil-panel{background:var(--pn);border-radius:20px;padding:44px;color:#fff}.phil-panel h2{color:#fff}.phil-panel p{color:#cad6e0}.phil-footer{background:var(--pn);color:#cbd6e1;padding:52px 0 20px}.phil-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:30px}.phil-footer h3{color:#fff;font-size:15px;margin:0 0 12px}.phil-footer a{display:block;color:#cbd6e1;font-size:14px;margin:7px 0}.phil-footer p{font-size:14px;margin:0 0 8px;color:#aebdca}.phil-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:38px;padding-top:17px;font-size:12px;color:#93a4b3}.phil-content{padding:80px 0}.phil-content h1,.phil-content h2,.phil-content h3{font-family:Georgia,serif;color:var(--pn)}
@media(max-width:1100px){.phil-main-menu{gap:17px}.phil-main-menu ul,.phil-wp-menu{gap:17px}.phil-main-menu>a,.phil-main-menu li>a{font-size:14px}.phil-brand img{width:175px;max-width:175px}}
@media(max-width:850px){.phil-header,.phil-header-inner{height:72px!important;min-height:72px!important;max-height:72px!important}.phil-header-inner{width:min(100% - 28px,var(--mw))}.phil-brand img{width:165px!important;max-width:165px!important;height:52px!important}.phil-main-menu{display:none!important}.phil-menu-toggle{display:inline-flex!important;border:1px solid var(--pl)!important;background:#fff!important;color:var(--pn)!important;border-radius:8px!important;padding:9px 12px!important;font-weight:700!important}.phil-main-menu.mobile-open{display:flex!important;position:absolute!important;top:72px!important;left:0!important;right:0!important;background:#fff!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:14px 20px!important;border-bottom:1px solid var(--pl)!important;box-shadow:0 10px 25px rgba(18,36,58,.08)!important}.phil-main-menu.mobile-open>a{padding:12px 0!important}.phil-hero{min-height:570px!important}.phil-hero-copy{padding:65px 0}.phil-hero h1{font-size:48px!important}.phil-course,.phil-split{grid-template-columns:1fr}.phil-course-side{min-height:240px}.phil-grid{grid-template-columns:1fr}.phil-footer-grid{grid-template-columns:1fr 1fr}.phil-course-strip .phil-shell{align-items:flex-start;flex-direction:column;padding:12px 0}}
@media(max-width:520px){.phil-shell{width:min(100% - 28px,var(--mw))}.phil-section{padding:64px 0}.phil-hero h1{font-size:43px!important}.phil-hero p{font-size:16px!important}.phil-course-main,.phil-course-side,.phil-panel{padding:30px}.phil-course-main h3{font-size:30px}.phil-meta{grid-template-columns:1fr}.phil-footer-grid{grid-template-columns:1fr}.phil-section-head h2,.phil-panel h2{font-size:35px}}

/* V4 wide Philomaniac lockup */
.p-header .p-logo img{width:198px!important;height:auto!important;max-height:62px!important;object-fit:contain!important;border-radius:0!important;display:block!important}
.p-header .p-register,.p-header .p-register:visited{color:#fff!important}
@media(max-width:850px){.p-header .p-logo img{width:165px!important;max-height:54px!important}}

/* V5 fixes: complete lockup + force white Register text */
header.phil-header .phil-main-menu a.phil-register, header.phil-header .phil-main-menu a.phil-register:visited, header.phil-header .phil-main-menu a.phil-register:hover, header.phil-header .phil-main-menu a.phil-register:focus { color:#fff!important; -webkit-text-fill-color:#fff!important; text-decoration:none!important; text-shadow:none!important; }
@media(max-width:1100px){.phil-brand img{width:190px!important;max-width:190px!important;height:64px!important;max-height:64px!important}}
@media(max-width:850px){.phil-brand img{width:175px!important;max-width:175px!important;height:60px!important;max-height:60px!important}}
