/*
Theme Name: Beyond Horizon
Theme URI: https://beyondhorizonsolutions.com/
Author: Beyond Horizon
Description: Lightweight theme matching the coded homepage: Resources listing, category and search pages, single posts with chat bubbles, FAQ accordion, table of contents and CTA. Replaces the Elementor header, footer and post templates without changing any content.
Version: 1.0.5
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: beyond-horizon
*/

:root{--bg:#141417;--surface:#1B1B1F;--surface2:#212127;--border:rgba(255,255,255,.10);--border2:rgba(255,255,255,.16);
--text:#F5F5F4;--muted:#9A9AA1;--ember:#F2600D;--ember-soft:rgba(242,96,13,.14);--shadow:0 40px 80px -30px rgba(0,0,0,.7)}
.light{--bg:#F8F8F7;--surface:#FFFFFF;--surface2:#F0F0EE;--border:rgba(20,18,16,.13);--border2:rgba(20,18,16,.22);
--text:#141210;--muted:#635D54;--ember-soft:rgba(242,96,13,.12);--shadow:0 24px 50px -24px rgba(40,38,35,.22);background:var(--bg);color:var(--text)}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;background:#141417}
body{background:var(--bg);color:var(--text);font-family:'Inter',system-ui,sans-serif;-webkit-font-smoothing:antialiased;line-height:1.5;overflow-x:hidden}
::selection{background:var(--ember);color:#fff}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.eyebrow{font-size:12px;font-weight:600;letter-spacing:.18em;color:var(--ember);text-transform:uppercase}
h1,h2,h3{letter-spacing:-.02em;font-weight:700}
.hl{color:#fff;background:var(--ember);padding:0 .22em .05em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.btn{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:15px;padding:13px 22px;border-radius:10px;border:1px solid transparent;transition:.2s;cursor:pointer}
.btn-ember{background:var(--ember);color:#fff;box-shadow:0 8px 30px -8px rgba(242,96,13,.6)}
.btn-ember:hover{transform:translateY(-1px);box-shadow:0 12px 36px -8px rgba(242,96,13,.75)}
.btn-ghost{border-color:var(--border2);color:var(--text)}
.btn-ghost:hover{border-color:var(--ember);color:var(--ember)}
/* nav — same as homepage, solid on inner pages */
nav.top{position:sticky;top:0;z-index:50;background:rgba(20,20,23,.92);backdrop-filter:blur(14px);border-bottom:1px solid rgba(255,255,255,.10)}
.nav-in{display:flex;align-items:center;justify-content:space-between;height:68px}
.brand{font-weight:700;font-size:17px;letter-spacing:-.01em;color:#F5F5F4}
.brand i{color:var(--ember);font-style:normal}
.nav-links{display:flex;gap:36px;font-size:14px;color:#fff}
.nav-links a:hover,.nav-links a.on{color:var(--ember)}
.nav-cta{display:flex;align-items:center;gap:14px}
.hamb{display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;padding:8px}
.hamb span{width:22px;height:2px;background:#F5F5F4;border-radius:2px}
.mobile-menu{display:none;flex-direction:column;padding:8px 24px 18px;background:rgba(10,10,11,.97);border-bottom:1px solid rgba(255,255,255,.1)}
.mobile-menu a{padding:12px 0;color:#9A9AA1;border-bottom:1px solid rgba(255,255,255,.1)}
.mobile-menu.open{display:flex}
/* footer — same as homepage */
footer{border-top:1px solid var(--border);padding:52px 0 34px;background:#141417;color:#F5F5F4}
.foot{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px}
.foot h5{font-size:13px;font-weight:600;margin-bottom:14px;color:#9A9AA1}
.foot a{display:block;font-size:13px;color:#9A9AA1;margin-bottom:10px}
.foot a:hover{color:var(--ember)}
.copy{font-size:13px;color:#9A9AA1;margin-top:14px;max-width:260px}
.foot-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:36px;padding-top:22px;font-size:12px;color:#9A9AA1}
.wa-float{position:fixed;right:30px;bottom:30px;z-index:60;width:58px;height:58px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 30px -6px rgba(0,0,0,.45)}
.wa-float svg{width:30px;height:30px;fill:#fff}
/* cards */
.card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden;transition:.25s;box-shadow:0 16px 36px -22px rgba(40,38,35,.30)}
.card:hover{border-color:rgba(242,96,13,.45);box-shadow:0 22px 46px -18px rgba(242,96,13,.30);transform:translateY(-3px)}
.card .ph{aspect-ratio:16/10;overflow:hidden;background:var(--surface2)}
.card .ph img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.card:hover .ph img{transform:scale(1.04)}
.card .cb{padding:20px 20px 22px;display:flex;flex-direction:column;gap:10px;flex:1}
span.tag{display:inline-block;align-self:flex-start;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ember);background:var(--ember-soft);border:1px solid rgba(242,96,13,.28);padding:4px 9px;border-radius:20px}
.card h3{font-size:18px;line-height:1.3}
.card p{font-size:14px;color:var(--muted);line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.card .meta{margin-top:auto;padding-top:6px;font-size:12px;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
/* CTA band */
.cta-band{background:#141417;color:#F5F5F4;position:relative;overflow:hidden}
.cta-band .glow{position:absolute;width:520px;height:520px;border-radius:50%;filter:blur(90px);opacity:.45;background:radial-gradient(circle,rgba(242,96,13,.55),transparent 70%);top:-220px;right:-120px;pointer-events:none}
.cta-in{position:relative;display:grid;grid-template-columns:1.3fr 1fr;gap:40px;align-items:center;padding:84px 24px}
.cta-in h2{font-size:clamp(28px,3.4vw,40px);line-height:1.15;margin:14px 0}
.cta-in p{color:#9A9AA1;font-size:16px;max-width:520px}
.cta-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:900px){
 .nav-links{display:none}.hamb{display:flex}
 .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .foot{grid-template-columns:1fr 1fr}
 .cta-in{grid-template-columns:1fr;padding:64px 24px}.cta-actions{justify-content:flex-start}
}
@media(max-width:600px){
 .grid{grid-template-columns:1fr}.foot{grid-template-columns:1fr}
 .wa-float{right:20px;bottom:20px;width:52px;height:52px}
 .nav-cta .btn{padding:9px 14px!important;font-size:14px}
}

.r-hero{position:relative;overflow:hidden;padding:84px 0 64px}
.r-hero .glow{position:absolute;border-radius:50%;filter:blur(90px);opacity:.5;pointer-events:none}
.r-hero .g1{width:520px;height:520px;background:radial-gradient(circle,rgba(242,96,13,.5),transparent 70%);top:-200px;left:-120px}
.r-hero .g2{width:460px;height:460px;background:radial-gradient(circle,rgba(70,90,200,.35),transparent 70%);top:-80px;right:-140px}
.r-hero .wrap{position:relative}
.r-hero h1{font-size:clamp(34px,4.6vw,56px);line-height:1.12;margin:14px 0 18px;max-width:17ch}
.r-hero p{color:var(--muted);font-size:17px;max-width:560px}
.bh-search{margin-top:28px;display:flex;max-width:520px;background:var(--surface);border:1px solid var(--border2);border-radius:12px;overflow:hidden}
.bh-search input{flex:1;background:none;border:0;color:var(--text);font:inherit;font-size:15px;padding:14px 16px;outline:none}
.bh-search button{background:var(--ember);color:#fff;border:0;font:inherit;font-weight:600;padding:0 20px;cursor:pointer}
.r-body{padding:56px 0 90px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:34px}
.chip{font-size:13px;font-weight:600;padding:8px 14px;border-radius:999px;border:1px solid var(--border2);background:var(--surface);color:var(--muted);cursor:pointer;transition:.2s}
.chip span{opacity:.6;margin-left:4px;font-weight:500}
.chip:hover{border-color:var(--ember);color:var(--ember)}
.chip.on{background:#141417;border-color:#141417;color:#fff}
.feat{display:grid;grid-template-columns:1.15fr 1fr;background:var(--surface);border:1px solid var(--border);border-radius:20px;overflow:hidden;margin-bottom:40px;box-shadow:0 24px 50px -28px rgba(40,38,35,.35);transition:.25s}
.feat:hover{border-color:rgba(242,96,13,.45)}
.feat .ph{min-height:340px;overflow:hidden}.feat .ph img{width:100%;height:100%;object-fit:cover}
.feat .cb{padding:40px;display:flex;flex-direction:column;justify-content:center;gap:14px}
.feat h2{font-size:clamp(24px,2.6vw,32px);line-height:1.2}
.feat p{color:var(--muted);font-size:15px;line-height:1.6}
.feat .more{color:var(--ember);font-weight:600;font-size:14px;margin-top:6px}
.sec-h{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:20px}
.sec-h h2{font-size:22px}
.sec-h span{font-size:13px;color:var(--muted)}
.more-wrap{text-align:center;margin-top:40px}
.hide{display:none!important}
@media(max-width:900px){.feat{grid-template-columns:1fr}.feat .ph{min-height:0;aspect-ratio:16/9}.feat .cb{padding:26px}}

.p-head{padding-top:56px}
.crumbs{font-size:13px;color:var(--muted);margin-bottom:18px}
.crumbs a:hover{color:var(--ember)}
.p-head h1{font-size:clamp(32px,4.4vw,52px);line-height:1.12;max-width:20ch;margin:14px 0 18px}
.p-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:14px;color:var(--muted)}
.p-meta .av{width:30px;height:30px;border-radius:50%;background:#141417;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.p-meta b{color:var(--text);font-weight:600}
.p-hero{margin-top:34px;border-radius:20px;overflow:hidden;aspect-ratio:21/9;box-shadow:var(--shadow)}
.p-hero img{width:100%;height:100%;object-fit:cover}
.p-body{display:grid;grid-template-columns:minmax(0,720px) 280px;gap:64px;justify-content:center;padding:56px 24px 90px}
article{font-size:18px;line-height:1.75;color:#2B2824}
article>*+*{margin-top:1.1em}
article h2{font-size:28px;line-height:1.25;color:var(--text);margin-top:2.1em;scroll-margin-top:90px;position:relative;padding-top:18px}
article h2::before{content:"";position:absolute;top:0;left:0;width:36px;height:4px;border-radius:2px;background:var(--ember)}
article h3{font-size:21px;line-height:1.3;color:var(--text);margin-top:1.7em}
article a{color:var(--ember);font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
article ul,article ol{padding-left:0;list-style:none}
article li{position:relative;padding-left:28px;margin-top:.55em}
article ul li::before{content:"";position:absolute;left:4px;top:.62em;width:10px;height:10px;border-radius:50%;background:var(--ember-soft);border:1.5px solid var(--ember)}
article strong{color:var(--text)}
article .lead{font-size:21px;line-height:1.6;color:var(--text)}
.bubble{background:#E7F8EC;border:1px solid #BFE8CB;border-radius:16px 16px 16px 4px;padding:14px 18px;font-size:16px;line-height:1.55;color:#123d22;max-width:560px;position:relative;margin-left:44px}
.bubble::before{content:"AI";position:absolute;left:-44px;top:4px;width:32px;height:32px;border-radius:50%;background:#25D366;color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;font-style:normal}
.bubble.them{background:var(--surface);border-color:var(--border);color:var(--text);border-radius:16px 16px 4px 16px;margin-left:auto;margin-right:0}
.bubble.them::before{content:"";display:none}
.faq{display:flex;flex-direction:column;gap:10px;margin-top:1.2em}
.faq details{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:0 18px}
.faq summary{cursor:pointer;list-style:none;font-weight:600;font-size:17px;color:var(--text);padding:16px 30px 16px 0;position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:0;top:12px;font-size:22px;color:var(--ember);font-weight:500}
.faq details[open] summary::after{content:"–"}
.faq details p{font-size:16px;padding-bottom:18px;margin:0;color:#3a3631}
.bottom-line{background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--ember);border-radius:12px;padding:22px 24px}
.bottom-line h2{margin-top:0;padding-top:0;font-size:20px}.bottom-line h2::before{display:none}
.bottom-line p{margin-top:8px}
.p-cta{background:#141417;color:#F5F5F4;border-radius:18px;padding:32px;position:relative;overflow:hidden;margin-top:2em}
.p-cta::after{content:"";position:absolute;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,rgba(242,96,13,.45),transparent 70%);filter:blur(60px);top:-140px;right:-80px}
.p-cta>*{position:relative;z-index:1}
.p-cta h3{color:#fff;font-size:24px;margin:10px 0 8px}
.p-cta p{color:#9A9AA1;font-size:16px;margin-bottom:20px}
.p-cta a.btn{color:#fff;text-decoration:none}
aside .stick{position:sticky;top:96px;display:flex;flex-direction:column;gap:18px}
.toc{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:20px}
.toc h4{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.toc a{display:block;font-size:14px;color:var(--muted);padding:7px 0 7px 12px;border-left:2px solid var(--border);line-height:1.35}
.toc a:hover,.toc a.on{color:var(--text);border-left-color:var(--ember)}
.side-cta{background:#141417;color:#F5F5F4;border-radius:14px;padding:22px}
.side-cta b{display:block;font-size:17px;margin-bottom:6px}
.side-cta p{font-size:13px;color:#9A9AA1;margin-bottom:14px}
.related{padding:0 0 90px}
.related h2{font-size:26px;margin-bottom:22px}
.progress{position:fixed;top:0;left:0;height:3px;background:var(--ember);z-index:70;width:0}
@media(max-width:1000px){.p-body{grid-template-columns:minmax(0,720px);gap:0}aside{display:none}}
@media(max-width:600px){article{font-size:17px}.p-hero{aspect-ratio:16/10;border-radius:14px}.bubble{margin-left:40px}.p-cta{padding:24px}}

/* ---- WordPress extras ---- */
.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:100;background:#fff;color:#000;padding:10px 14px;border-radius:8px;width:auto;height:auto;clip:auto}
article figure{margin:1.6em 0}
article figure img{border-radius:14px;height:auto}
article figcaption{font-size:13px;color:var(--muted);margin-top:8px;text-align:center}
article img{height:auto}
article blockquote{border-left:4px solid var(--ember);padding:4px 0 4px 20px;color:var(--text);font-size:19px}
article table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.5;display:block;overflow-x:auto}
article th,article td{border:1px solid var(--border);padding:10px 12px;text-align:left;vertical-align:top}
article th{background:var(--surface2);font-weight:600;color:var(--text)}
article hr{border:0;border-top:1px solid var(--border);margin:2em 0}
article ol{counter-reset:li}
article ol>li::before{counter-increment:li;content:counter(li) ".";position:absolute;left:0;font-weight:700;color:var(--ember)}
article code{background:var(--surface2);padding:2px 6px;border-radius:6px;font-size:.9em}
.aligncenter{margin-left:auto;margin-right:auto}
.page-wrap{padding:56px 24px 90px;max-width:820px;margin:0 auto}
.page-wrap h1{font-size:clamp(30px,4vw,46px);line-height:1.15;margin-bottom:24px}
.page-elementor{color:var(--text)}
.empty{padding:40px;border:1px dashed var(--border2);border-radius:16px;text-align:center;color:var(--muted)}
.e404{padding:120px 24px;text-align:center}
.e404 h1{font-size:clamp(34px,5vw,56px);margin:14px 0}
.e404 p{color:var(--muted);margin-bottom:26px}
a.chip{display:inline-block}
.admin-bar nav.top{top:32px}
@media(max-width:782px){.admin-bar nav.top{top:46px}}
@media(max-width:600px){.admin-bar nav.top{top:0}}
/* ---- Guards: win over plugin / Elementor kit styles that target body, headings, inputs and buttons ---- */
html body.bh{background:#141417;color:#F5F5F4;font-family:'Inter',system-ui,sans-serif;font-size:16px;line-height:1.5}
body.bh .r-hero,body.bh .cta-band,body.bh nav.top,body.bh footer,body.bh .e404{background-color:#141417;color:#F5F5F4}
body.bh main.light{background:#F8F8F7;color:#141210}
body.bh h1,body.bh h2,body.bh h3,body.bh h4,body.bh h5{color:inherit;font-family:inherit;font-weight:700;letter-spacing:-.02em;text-transform:none}
body.bh article h2,body.bh article h3,body.bh .card h3,body.bh .feat h2{color:#141210}
body.bh .p-cta h3,body.bh .cta-in h2{color:#fff}
body.bh .bh-search input{background:transparent;border:0;box-shadow:none;color:#F5F5F4;font-family:inherit;border-radius:0;min-height:0}
body.bh .bh-search button,body.bh button.chip,body.bh .btn{font-family:inherit;text-transform:none;letter-spacing:normal;line-height:1.2}
body.bh .bh-search button{background:#F2600D;color:#fff;border-radius:0}
body.bh a{text-decoration:none}
body.bh article.entry a{text-decoration:underline}
body.bh article.entry a.btn{text-decoration:none}
/* ---- Legal pages (Privacy Policy, Terms of Service): denser than blog posts ---- */
body.bh article.entry-page{font-size:16px;line-height:1.7}
body.bh article.entry-page h2{font-size:22px;margin-top:1.8em;padding-top:14px}
body.bh article.entry-page h2#bahasa-malaysia{font-size:30px;margin-top:2.4em}
body.bh article.entry-page hr{margin:3em 0 0}
body.bh article.entry-page table{font-size:14px}
body.bh .page-wrap a{color:var(--ember)}
body.bh .hamb,body.bh .hamb:hover,body.bh .hamb:focus{background:none;border:0;box-shadow:none;padding:8px;border-radius:0}
body.bh .foot h5{color:#9A9AA1;font-weight:600;letter-spacing:normal}
