:root{
  --green:#0e8f14;
  --green-dark:#0b7a10;
  --green-soft:#eaf7ec;
  --green-soft-2:#e1f4e4;
  --navy:#10275a;
  --navy-2:#173a7c;
  --blue-accent:#1c50a6;
  --blue-soft:#eaf1fc;
  --text:#3d4759;
  --text-light:#6b7686;
  --bg:#ffffff;
  --bg-soft:#f6f8fb;
  --border:#e4e8ef;
  --radius-lg:20px;
  --radius-md:14px;
  --radius-sm:10px;
  --shadow-card:0 10px 30px rgba(16,39,90,.07);
  --shadow-soft:0 4px 14px rgba(16,39,90,.05);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Open Sans",Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  font-style:normal;
}
img{max-width:100%;display:block}
.icon{width:20px;height:20px}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer}
h1,h2,h3{color:var(--navy);margin:0;font-weight:600;font-style:normal}
p{margin:0;line-height:1.7}
.container{max-width:clamp(1200px,calc(1200px + (100vw - 1440px)/2),1440px);margin:0 auto;padding:0 24px}

/* ---------- header ---------- */
.site-header{
  border-bottom:1px solid var(--border);
  position:sticky;top:0;background:#fff;z-index:50;
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  height:76px;gap:24px;
}
.logo{display:flex;align-items:center;flex-shrink:0}
.logo img{height:29px;width:auto}
.main-nav{
  display:flex;align-items:center;gap:28px;
  margin-inline-start:auto;margin-inline-end:32px;
  font-size:15px;
}
.main-nav a{color:var(--navy);font-weight:500;padding:6px 2px;position:relative;white-space:nowrap}
.main-nav a.active{color:var(--green)}
.main-nav a.active::after{
  content:"";position:absolute;right:0;left:0;bottom:-24px;height:2px;background:var(--green);
  border-radius:2px;
}
.main-nav a.nav-cta{
  border:1.5px solid var(--green);color:var(--green);
  border-radius:999px;padding:8px 18px;font-weight:600;
}
.main-nav a.nav-cta:hover{background:var(--green-soft)}
.header-actions{display:flex;align-items:center;gap:14px;flex-shrink:0}
.header-actions .plain{
  background:none;border:none;color:var(--navy);font-weight:500;font-size:14px;padding:6px 4px;
}
.header-actions .login{
  border:1px solid var(--border);border-radius:999px;padding:8px 18px;
}
.menu-toggle{
  display:none;background:none;border:none;color:var(--navy);padding:6px;
}
.menu-toggle .icon{width:26px;height:26px;display:block}
.mobile-nav{display:none}

/* ---------- page intro ---------- */
.page-intro{
  background:linear-gradient(180deg,var(--bg-soft),#fff 90%);
  padding:34px 0 40px;border-bottom:1px solid var(--border);
}
.breadcrumb{font-size:13.5px;color:var(--text-light);margin-bottom:14px}
.breadcrumb a{color:var(--text-light)}
.breadcrumb a:hover{color:var(--green)}
.breadcrumb span{margin:0 6px}
.page-intro h1{font-size:34px;margin-bottom:10px}
.page-intro p{color:var(--text-light);font-size:16px}
/* ---------- footer ---------- */
footer{background:var(--navy);color:rgba(255,255,255,.86);margin-top:0}
.footer-main{
  display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:32px;padding:52px 24px 32px;
}
.footer-brand .logo img{height:26px}
.footer-brand p{color:rgba(255,255,255,.6);font-size:13.5px;margin-top:14px;max-width:320px}
footer h3{color:#fff;font-size:15px;margin-bottom:16px}
footer .footer-main > div > a{
  display:block;color:rgba(255,255,255,.72);font-size:14px;padding:6px 0;
}
footer .footer-main > div > a:hover{color:var(--green)}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);display:flex;justify-content:space-between;
  padding:18px 24px;font-size:13px;color:rgba(255,255,255,.6);flex-wrap:wrap;gap:8px;
}

.desktop-only{display:inline-flex}

.desktop-only{display:inline-flex}
@media (max-width:1024px){
  .main-nav{display:none}
  .menu-toggle{display:inline-flex}
  .desktop-only{display:none}
  .header-inner{height:64px}
  .footer-main{grid-template-columns:1fr 1fr}
  .footer-brand{grid-column:1/-1}
  .mobile-nav[hidden]{display:none}
  .mobile-nav{display:flex;flex-direction:column;border-top:1px solid var(--border);padding:8px 24px 16px;background:#fff}
  .mobile-nav a{padding:12px 0;border-bottom:1px solid var(--border);font-weight:500;color:var(--navy)}
  .mobile-nav a.active{color:var(--green)}
  .mobile-nav button{margin-top:14px;border:1px solid var(--border);border-radius:999px;padding:12px;background:none;font-weight:600;color:var(--navy)}
}
@media (max-width:480px){
  .container{padding:0 16px}
  .footer-main{grid-template-columns:1fr;padding:36px 20px 24px}
  .footer-bottom{flex-direction:column;padding:16px 20px}
  .header-inner{height:58px}
  .logo img{height:22px}
}

/* ---------- academy ---------- */
.eyebrow{display:inline-block;color:var(--green);font-weight:600;font-size:13px;margin-bottom:8px}
.ac-hero{background:linear-gradient(180deg,var(--bg-soft),#fff 95%);padding:40px 0 34px;border-bottom:1px solid var(--border)}
.ac-hero h1{font-size:36px;margin-bottom:10px}
.ac-hero .lead{color:var(--text-light);font-size:16.5px;max-width:560px}
.ac-search{position:relative;max-width:560px;margin-top:22px}
.ac-search input{
  width:100%;height:52px;border:1px solid var(--border);border-radius:999px;background:#fff;
  padding:0 20px 0 52px;font:inherit;font-size:15px;color:var(--navy);box-shadow:var(--shadow-soft);
}
.ac-search input:focus{outline:none;border-color:var(--green)}
.ac-search .icon{position:absolute;left:18px;top:16px;color:var(--green);pointer-events:none}
.ac-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:30px 0 26px}
.ac-tabs button{
  border:1px solid var(--border);background:#fff;color:var(--navy);font-weight:600;font-size:14.5px;
  padding:9px 20px;border-radius:999px;
}
.ac-tabs button:hover{border-color:var(--green);color:var(--green)}
.ac-tabs button.on{background:var(--green);border-color:var(--green);color:#fff}
.ac-main{padding-bottom:56px}
.ac-feature{
  display:grid;grid-template-columns:1.15fr 1fr;background:#fff;border:1px solid var(--border);
  border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-card);margin-bottom:34px;
}
.ac-feature .ph{min-height:300px;background-size:cover;background-position:center}
.ac-feature .body{padding:34px;display:flex;flex-direction:column;justify-content:center;gap:14px;align-items:flex-start}
.ac-feature h2{font-size:25px;line-height:1.5}
.ac-feature p{color:var(--text-light);font-size:15px}
.ac-tag{
  display:inline-flex;align-items:center;font-size:12.5px;font-weight:600;padding:4px 12px;border-radius:999px;
  background:var(--green-soft);color:var(--green-dark);
}
.ac-tag.k{background:var(--blue-soft);color:var(--blue-accent)}
.ac-tag.i{background:#fff3e0;color:#a85d00}
.ac-meta{font-size:13px;color:var(--text-light)}
.ac-more{display:inline-flex;align-items:center;gap:8px;color:var(--green);font-weight:600;font-size:15px}
.ac-more .icon{width:18px;height:18px}
.ac-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.ac-card{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;
  box-shadow:var(--shadow-soft);display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .2s ease;
}
.ac-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-card)}
.ac-card[hidden]{display:none}
.ac-card .thumb{height:180px;background-size:cover;background-position:center;position:relative;overflow:hidden}
.ac-card .cbody{padding:18px 20px 20px;display:flex;flex-direction:column;gap:10px;flex:1;align-items:flex-start}
.ac-card h3{font-size:16.5px;line-height:1.6}
.ac-card p{color:var(--text-light);font-size:14px;line-height:1.7;flex:1}
.ac-empty{text-align:center;color:var(--text-light);padding:40px 0;font-size:15.5px}
.thumb.info{background:linear-gradient(135deg,#eaf1fc,#eaf7ec);display:flex;align-items:center;justify-content:center;gap:12px;padding:20px}
.thumb.info .col{flex:1;background:#fff;border-radius:12px;padding:12px;box-shadow:var(--shadow-soft);text-align:center}
.thumb.info .col b{display:block;font-size:13px;color:var(--navy);margin-bottom:8px}
.thumb.info .col i{display:block;height:7px;border-radius:4px;background:var(--border);margin:6px 0}
.thumb.info .col.g{background:var(--green)}
.thumb.info .col.g b{color:#fff}
.thumb.info .col.g i{background:rgba(255,255,255,.55)}
.thumb.doc{background:linear-gradient(135deg,var(--navy),var(--navy-2));display:flex;align-items:center;justify-content:center}
.thumb.doc .sheet{width:96px;height:124px;background:#fff;border-radius:8px;padding:14px 12px;transform:rotate(4deg);box-shadow:0 10px 24px rgba(0,0,0,.25)}
.thumb.doc .sheet i{display:block;height:6px;border-radius:3px;background:var(--border);margin-bottom:9px}
.thumb.doc .sheet i:first-child{background:var(--green);width:60%}
.thumb.doc .sheet i:last-child{width:70%}
.ac-cta{
  background:linear-gradient(120deg,var(--navy),var(--navy-2));border-radius:var(--radius-lg);
  margin:0 auto 60px;padding:40px 44px;display:flex;align-items:center;justify-content:space-between;
  gap:24px;flex-wrap:wrap;color:#fff;max-width:1200px;
}
.ac-cta h2{color:#fff;font-size:24px;margin-bottom:6px}
.ac-cta p{color:rgba(255,255,255,.82);font-size:15px}
.ac-cta .btns{display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:14px 26px;font-weight:600;font-size:15px;border:1.5px solid transparent;white-space:nowrap}
.btn .icon{width:18px;height:18px}
.btn.white{background:#fff;color:var(--navy)}
.btn.white:hover{background:var(--green-soft);color:var(--green-dark)}
.btn.ghost{border-color:rgba(255,255,255,.7);color:#fff}
.btn.ghost:hover{background:rgba(255,255,255,.12)}
@media (max-width:1024px){
  .ac-grid{grid-template-columns:repeat(2,1fr)}
  .ac-feature{grid-template-columns:1fr}
  .ac-feature .ph{min-height:220px}
}
@media (max-width:640px){
  .ac-grid{grid-template-columns:1fr}
  .ac-hero{padding:26px 0}
  .ac-hero h1{font-size:27px}
  .ac-feature .body{padding:22px 20px}
  .ac-feature h2{font-size:20px}
  .ac-cta{flex-direction:column;align-items:flex-start;padding:28px 22px;margin-bottom:40px;border-radius:var(--radius-md)}
  .ac-cta .btns{width:100%;flex-direction:column}
  .ac-cta .btn{justify-content:center}
}

.ac-feature[hidden]{display:none}

/* English: logo size (theme.css resets it to auto for pages it does not list) */
html[lang="en"][data-page="academy"] .logo img,html[lang="en"][data-page="article"] .logo img{height:38px}
@media (max-width:480px){html[lang="en"][data-page="academy"] .logo img,html[lang="en"][data-page="article"] .logo img{height:26px}}

/* English logo has a white background: give it a neat chip on the navy footer */
html[lang="en"] footer .logo img{background:#fff;padding:6px 10px;border-radius:8px}

html[lang="en"]:not(.ptm-open) .ptm-drawer{box-shadow:none}
