/*
Theme Name: EMK Global 2026
Theme URI: https://emkglobal.com.au
Author: EMK Global
Description: Lightweight black & yellow theme for EMK Global Education & Migration. Mobile-first, no page builder.
Version: 1.2.0
Requires at least: 6.4
Text Domain: emk2026
*/
:root{--y:#FFCC00;--k:#111111;--k2:#0B0B0B;--w:#fff;--y2:#FFF6CC;--g:#555}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--k);background:#fff;line-height:1.55;font-size:16px}
img{max-width:100%;height:auto}
a{color:var(--k)}
h1,h2,h3,h4{font-family:Montserrat,Inter,sans-serif;line-height:1.15}
.emk-wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
/* top bar */
.emk-top{background:var(--y);font-size:13px;font-weight:600}
.emk-top .emk-wrap{display:flex;flex-wrap:wrap;gap:6px 20px;justify-content:space-between;padding-top:8px;padding-bottom:8px}
.emk-top a{text-decoration:none}
.emk-lang{display:inline-flex;gap:4px;list-style:none;margin:0;padding:0}
.emk-lang a{padding:2px 8px;border-radius:999px;text-decoration:none}
.emk-lang .current-lang a,.emk-lang a[aria-current]{background:var(--k);color:var(--y)}
/* header */
.emk-header{background:var(--k2);border-bottom:1px solid #222;position:sticky;top:0;z-index:50}
.emk-header .emk-wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:12px;padding-bottom:12px}
.emk-logo{display:inline-flex;background:#fff;border-radius:12px;padding:6px 12px}
.emk-logo img{height:40px;width:auto;display:block}
.emk-nav ul{list-style:none;margin:0;padding:0}
.emk-nav>ul{display:flex;gap:4px;align-items:center}
.emk-nav>ul>li{position:relative}
.emk-nav>ul>li>a{display:inline-flex;align-items:center;gap:4px;color:#fff;text-decoration:none;font-weight:600;font-size:14px;padding:8px 10px;border-radius:999px;white-space:nowrap}
.emk-nav>ul>li.menu-item-has-children>a::after{content:"";width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:-3px 0 0 4px}
.emk-nav>ul>li:hover>a,.emk-nav>ul>li:focus-within>a,.emk-nav>ul>li.current-menu-item>a,.emk-nav>ul>li.current-menu-ancestor>a{background:var(--y);color:var(--k)}
.emk-nav .sub-menu{position:absolute;left:0;top:100%;min-width:280px;background:#fff;border-radius:0 0 18px 18px;box-shadow:0 24px 48px rgba(0,0,0,.2);padding:12px;display:none;z-index:60}
.emk-nav li:hover>.sub-menu,.emk-nav li:focus-within>.sub-menu{display:block}
.emk-nav .sub-menu a{display:block;padding:9px 12px;border-radius:10px;text-decoration:none;font-weight:600;font-size:14px;color:var(--k)}
.emk-nav .sub-menu a:hover{background:var(--y2)}
.emk-nav .sub-menu .sub-menu{position:static;box-shadow:none;display:block;padding:0 0 0 12px;min-width:0}
.emk-cta{background:var(--y);color:var(--k);font-weight:800;padding:12px 18px;border-radius:999px;text-decoration:none;white-space:nowrap}
.emk-burger{display:none;background:var(--y);border:0;border-radius:12px;width:46px;height:46px;cursor:pointer}
.emk-burger span{display:block;width:22px;height:2px;background:var(--k);margin:5px auto}
/* content */
.emk-main{min-height:40vh}
.emk-page-default .emk-wrap{padding-top:40px;padding-bottom:56px}
.emk-entry{font-size:17px;line-height:1.75}
.emk-entry>*{max-width:860px}
.emk-entry .alignfull,.emk-entry>.emk-full{max-width:none}
.emk-hero-simple{background:var(--y);padding:36px 0 40px}
.emk-hero-simple h1{margin:0;font-weight:900;font-size:clamp(32px,5vw,52px);letter-spacing:-.03em}
.emk-crumbs{font-size:13px;font-weight:600;margin-bottom:12px}
.emk-crumbs a{color:var(--k)}
/* news */
.emk-posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;padding:40px 0 56px}
.emk-card{display:flex;flex-direction:column;gap:10px;text-decoration:none;color:var(--k)}
.emk-card img,.emk-card .emk-ph{aspect-ratio:16/9;width:100%;object-fit:cover;border-radius:14px;background:var(--k)}
.emk-card time{font-size:13px;color:var(--g);font-weight:600}
.emk-card h2{font-size:18px;margin:0;font-weight:800}
.emk-pager{display:flex;gap:8px;justify-content:center;padding-bottom:56px}
.emk-pager .page-numbers{width:40px;height:40px;border-radius:50%;border:2px solid var(--k);display:inline-flex;align-items:center;justify-content:center;font-weight:800;text-decoration:none}
.emk-pager .current{background:var(--k);color:var(--y)}
/* footer */
.emk-footer{background:var(--k2);color:#B8C0C8;font-size:13px;line-height:1.5}
.emk-footer .emk-cols{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:28px;padding:36px 24px 20px}
.emk-footer strong.h{color:#fff;font-size:13px;letter-spacing:.08em;text-transform:uppercase;display:block;margin-bottom:6px}
.emk-footer a{color:#B8C0C8}
.emk-footer .row{display:flex;gap:8px;align-items:flex-start;margin:4px 0}
.emk-footer .row svg{flex:none;margin-top:2px}
.emk-footer .emk-bottom{border-top:1px solid #222;display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between;padding:14px 24px 22px;font-size:12px}
.emk-social{display:flex;gap:8px;align-items:center}
.emk-social a{width:34px;height:34px;border-radius:50%;border:1px solid #2E2E2E;display:inline-flex;align-items:center;justify-content:center}
.emk-legal{display:flex;flex-wrap:wrap;gap:6px 18px}
.emk-legal a{text-decoration:none}
.emk-chat{position:fixed;right:20px;bottom:20px;z-index:40;display:inline-flex;gap:10px;align-items:center;background:var(--k);color:#fff;border:2px solid var(--y);border-radius:999px;padding:12px 18px;font-weight:700;text-decoration:none;box-shadow:0 12px 30px rgba(0,0,0,.3)}
/* ---------- tablet & phone ---------- */
@media (max-width:1100px){
 .emk-burger{display:block}
 .emk-nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--k2);max-height:calc(100vh - 70px);overflow:auto;padding:12px 16px 24px;border-top:1px solid #222}
 .emk-nav.open{display:block}
 .emk-nav>ul{flex-direction:column;align-items:stretch;gap:2px}
 .emk-nav>ul>li>a{display:flex;justify-content:space-between;font-size:16px;padding:12px 14px}
 .emk-nav .sub-menu{position:static;display:none;box-shadow:none;border-radius:12px;margin:4px 0 8px;min-width:0}
 .emk-nav li.open>.sub-menu{display:block}
 .emk-nav li:hover>.sub-menu{display:none}.emk-nav li.open:hover>.sub-menu{display:block}
 .emk-header .emk-cta{display:none}
 .emk-footer .emk-cols{grid-template-columns:1fr 1fr}
 .emk-posts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
 body{font-size:15px}
 .emk-wrap{padding:0 16px}
 .emk-top .emk-wrap>span:first-child{display:none}
 .emk-logo img{height:34px}
 .emk-footer .emk-cols{grid-template-columns:1fr;padding:28px 16px 16px}
 .emk-posts{grid-template-columns:1fr}
 .emk-chat{right:12px;bottom:12px;padding:10px 14px}
 /* responsive overrides for designed page sections (inline-styled HTML blocks) */
 .emk-entry [style*="max-width: 1240px"]{padding-left:16px!important;padding-right:16px!important}
 .emk-entry [style*="grid-template-columns"]{grid-template-columns:1fr!important}
 .emk-entry [style*="grid-column"]{grid-column:auto!important}
 .emk-entry [style*="flex: 999"],.emk-entry [style*="flex: 1 1"]{flex-basis:100%!important}
 .emk-entry [style*="display: flex"]{flex-wrap:wrap}
 .emk-entry h1{font-size:34px!important}
 .emk-entry h2{font-size:26px!important}
 .emk-entry [style*="font-size: 52px"],.emk-entry [style*="font-size: 56px"],.emk-entry [style*="font-size: 64px"]{font-size:36px!important}
 .emk-entry [style*="padding: 32px"],.emk-entry [style*="padding: 56px 48px"]{padding:20px!important}
 .emk-entry [style*="min-width: 640px"],.emk-entry [style*="min-width: 720px"],.emk-entry [style*="min-width: 760px"]{min-width:560px!important}
 .emk-entry [style*="position: sticky"]{position:static!important}
 .emk-entry table{font-size:13px}
 .emk-entry [style*="overflow-x: auto"]{flex-wrap:nowrap!important}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* ===== v2: designed pages, converted content, forms ===== */
.emk-full-page>*{max-width:none}
.emk-d{font-family:Inter,system-ui,sans-serif;line-height:1.5}
.emk-d h1,.emk-d h2,.emk-d h3{line-height:1.1}
.emk-d details>summary{list-style:none}.emk-d details>summary::-webkit-details-marker{display:none}
.emk-hero{background:var(--y)}
.emk-hero .emk-wrap{display:flex;flex-wrap:wrap;gap:24px 40px;align-items:center;padding-top:36px;padding-bottom:44px}
.emk-hero .t{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:14px}
.emk-hero h1{margin:0;font-weight:900;font-size:clamp(32px,4.6vw,52px);letter-spacing:-.035em}
.emk-hero p{margin:0;font-size:18px;font-weight:500;max-width:720px}
.emk-kick{align-self:flex-start;background:var(--k);color:var(--y);font-weight:800;font-size:12px;letter-spacing:.1em;text-transform:uppercase;padding:6px 12px;border-radius:999px}
.emk-btns{display:flex;flex-wrap:wrap;gap:12px}
.emk-btn,.wpcf7 .emk-btn,.emk-btn-k{display:inline-block;font:inherit;font-weight:800;padding:14px 22px;border-radius:999px;text-decoration:none;border:0;cursor:pointer}
.emk-btn{background:var(--k);color:var(--y)}
.emk-btn-o{border:2px solid var(--k);color:var(--k);font-weight:800;padding:12px 20px;border-radius:999px;text-decoration:none}
.emk-two{display:flex;flex-wrap:wrap;gap:40px;align-items:flex-start;padding-top:44px;padding-bottom:56px}
.emk-two>.m{flex:999 1 640px;min-width:0}
.emk-two>aside{flex:1 1 300px;min-width:0;position:sticky;top:96px;display:flex;flex-direction:column;gap:14px}
.emk-toc{border:2px solid var(--k);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:8px;font-size:14px;background:#fff}
.emk-toc b{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--g)}
.emk-toc a{text-decoration:none;font-weight:600}
.emk-cta-box{background:var(--k);color:#fff;border-radius:22px;padding:24px;display:flex;flex-direction:column;gap:12px}
.emk-cta-box strong{font-family:Montserrat,sans-serif;font-size:22px;line-height:1.15}
.emk-cta-box span{color:#CFCFCF;font-size:14px}
.emk-cta-box a.b{align-self:flex-start;background:var(--y);color:var(--k);font-weight:800;padding:12px 18px;border-radius:999px;text-decoration:none}
.emk-cta-box a.p{color:var(--y);font-weight:700}
.emk-converted{font-size:16.5px;line-height:1.75;color:#222}
.emk-converted h2{font-size:clamp(22px,2.4vw,28px);font-weight:900;letter-spacing:-.02em;margin:36px 0 12px;scroll-margin-top:100px}
.emk-converted h2:first-child{margin-top:0}
.emk-converted h3{font-size:19px;font-weight:800;margin:24px 0 8px}
.emk-converted ul,.emk-converted ol{padding-left:22px}
.emk-converted li{margin:6px 0}
.emk-converted table{width:100%;border-collapse:collapse;border:2px solid var(--k);border-radius:14px;overflow:hidden;display:block;overflow-x:auto;font-size:15px}
.emk-converted th{background:var(--k);color:var(--y);text-align:left;padding:10px 12px}
.emk-converted td{border-top:1px solid #e3e3e3;padding:10px 12px;vertical-align:top}
.emk-converted img{border-radius:16px}
.emk-converted a{font-weight:600}
.emk-faq,.emk-converted .emk-faq{display:flex;flex-direction:column;gap:10px}
.emk-converted details{border:2px solid var(--k);border-radius:16px;padding:14px 18px;background:#fff}
.emk-converted summary{font-family:Montserrat,sans-serif;font-weight:800;cursor:pointer}
.emk-converted details h2{font-size:18px;margin:12px 0 6px}
.emk-note{border:2px solid var(--k);background:var(--y2);border-radius:16px;padding:14px 18px;font-size:14px;margin-top:28px}
/* Contact Form 7 */
.wpcf7 form{margin:0}
.wpcf7 .emk-f{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.wpcf7 .emk-f4{grid-template-columns:repeat(4,minmax(0,1fr))}
.wpcf7 .emk-f label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700}
.wpcf7 .emk-f label.full{grid-column:1/-1}
.wpcf7 .wpcf7-form-control-wrap{display:block}
.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 input[type=tel],.wpcf7 input[type=date],.wpcf7 select,.wpcf7 textarea{font:inherit;font-weight:400;font-size:15px;width:100%;padding:11px 12px;border:2px solid var(--k);border-radius:10px;background:#fff;color:var(--k);min-height:46px}
.wpcf7 textarea{min-height:70px;resize:vertical}
.wpcf7 .emk-consent{display:flex;flex-direction:column;gap:8px;margin:14px 0}
.wpcf7 .emk-consent .wpcf7-list-item{margin:0;display:block;border:1px solid var(--y);border-radius:12px;padding:8px 12px;font-size:12.5px;line-height:1.45;background:rgba(255,255,255,.06)}
.wpcf7 .emk-consent label{display:flex;gap:10px;align-items:flex-start;cursor:pointer}
.wpcf7 .emk-consent input{width:18px;height:18px;flex:none;margin-top:1px;accent-color:var(--y)}
.wpcf7 .emk-consent a{color:inherit}
.wpcf7 .emk-btn{background:var(--y);color:var(--k);width:100%;margin-top:6px}
.emk-formbox[class*=" s"] .wpcf7 .emk-btn{background:var(--y);color:var(--k)}
.wpcf7 .emk-inline{display:flex;flex-wrap:wrap;gap:10px}
.wpcf7 .emk-inline .wpcf7-form-control-wrap{flex:1 1 220px}
.wpcf7 .emk-inline .emk-btn{width:auto;margin:0;background:var(--k);color:var(--y)}
.wpcf7 .emk-note{border:0;background:none;padding:0;margin:8px 0 0;font-size:12px}
.wpcf7-not-valid{border-color:#B00020!important}
.wpcf7-not-valid-tip{color:#ff6b6b;font-size:12px;font-weight:600;margin-top:4px}
.wpcf7 form .wpcf7-response-output{margin:14px 0 0;border-radius:14px;padding:14px 16px;font-weight:600;border:2px solid var(--y)}
.wpcf7 form.sent .wpcf7-response-output{background:var(--y);color:var(--k);border-color:var(--k)}
.emk-quick .wpcf7 .emk-btn,.emk-light .wpcf7 .emk-btn{background:var(--k);color:var(--y)}
@media (max-width:720px){
 .wpcf7 .emk-f,.wpcf7 .emk-f4{grid-template-columns:1fr}
 .emk-two>aside{position:static}
 .emk-hero p{font-size:16px}
}

/* v3 */
.qlwapp{display:none!important}
.emk-d h1,.emk-d h2,.emk-d h3,.emk-d h4,.emk-converted h1,.emk-converted h2,.emk-converted h3{color:inherit}
.emk-nav .sub-menu>li.menu-item-has-children>a{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--g);padding-top:12px}
@media (min-width:1101px){
 .emk-nav>ul>li:hover>.sub-menu:has(.sub-menu),.emk-nav>ul>li:focus-within>.sub-menu:has(.sub-menu){display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:0 12px;min-width:720px;left:50%;transform:translateX(-50%)}
 .emk-nav>ul>li>.sub-menu{max-height:calc(100vh - 140px);overflow:auto}
 .emk-nav>ul>li:first-child>.sub-menu{display:none;grid-template-columns:repeat(2,minmax(180px,1fr))}
 .emk-nav>ul>li:first-child:hover>.sub-menu,.emk-nav>ul>li:first-child:focus-within>.sub-menu{display:grid}
}
