/*
Theme Name: Hianhoon
Theme URI: https://hianhoon.com
Author: Hianhoon
Description: Custom WordPress theme for hianhoon.com, built from the Hianhoon investing prototype with article slider, Lao typography, DCA calculator, and XM guide page.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: hianhoon
*/

:root{
  --hh-navy:#0F1B2D;
  --hh-deep:#0a121e;
  --hh-blue:#16294a;
  --hh-gold:#E3A94D;
  --hh-gold-soft:#F0C070;
  --hh-paper:#FBF8F1;
  --hh-cream:#f8f4ec;
  --hh-border:#eadfca;
  --hh-muted:#5a6b7e;
  --hh-text:#14213a;
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:radial-gradient(1200px 600px at 50% -10%,#132741,var(--hh-deep) 60%);
  color:var(--hh-text);
  font-family:"Noto Sans Lao",sans-serif;
}
body.admin-bar .hh-header{top:32px}
@media (max-width:782px){body.admin-bar .hh-header{top:46px}}
a{color:inherit}
img{max-width:100%;height:auto}

.hh-wrap{max-width:1180px;margin:0 auto;padding:0 18px}
.hh-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(10,18,30,.88);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #1c2c44;
}
.hh-header__inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:14px 18px}
.hh-brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.hh-brand__mark{width:32px;height:32px;border-radius:10px;background:linear-gradient(135deg,var(--hh-gold),var(--hh-gold-soft));display:flex;align-items:center;justify-content:center}
.hh-brand__name{font-weight:800;color:#f4ede0;font-size:16px;line-height:1.1}
.hh-brand__name span{color:var(--hh-gold)}
.hh-brand__tag{font-family:Inter,sans-serif;font-size:10px;color:#6d809b;letter-spacing:.08em;margin-top:4px}
.hh-nav{display:flex;align-items:center;gap:8px;overflow-x:auto;max-width:100%;scrollbar-width:none}
.hh-nav::-webkit-scrollbar{display:none}
.hh-nav li{list-style:none;margin:0;padding:0}
.hh-nav a{
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  font-size:13px;
  font-weight:700;
  padding:9px 13px;
  border-radius:999px;
  color:#d8e2f0;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}
.hh-nav a:hover,.hh-nav .current-menu-item>a{color:#0F1B2D;background:linear-gradient(135deg,var(--hh-gold),var(--hh-gold-soft))}

.hh-main{max-width:1280px;margin:0 auto;padding:30px 22px 70px}
.hh-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;cursor:pointer;background:linear-gradient(135deg,var(--hh-gold),var(--hh-gold-soft));color:#0F1B2D;font-weight:800;font-size:15px;padding:14px 20px;border-radius:13px;border:0}
.hh-btn--dark{background:#0F1B2D;color:#fff}
.hh-pill{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:12px;line-height:1;padding:6px 12px;border-radius:999px;color:#fff;background:var(--hh-gold)}

.hh-hero{position:relative;overflow:hidden;border-radius:30px;background:linear-gradient(155deg,#0F1B2D,#13233a);padding:38px 34px;border:1px solid #233650;box-shadow:0 30px 80px rgba(0,0,0,.25)}
.hh-hero__curve{position:absolute;inset:0;opacity:.42;width:100%;height:100%}
.hh-hero__grid{position:relative;display:grid;grid-template-columns:1fr;gap:30px;align-items:center}
.hh-eyebrow{display:inline-flex;font-size:12px;color:var(--hh-gold);background:rgba(227,169,77,.12);border:1px solid rgba(227,169,77,.28);padding:6px 12px;border-radius:999px;margin-bottom:16px}
.hh-hero h1{margin:0 0 14px;font-size:clamp(34px,5vw,68px);line-height:1.25;font-weight:800;color:#f7f1e5;max-width:1040px}
.hh-hero p{margin:0 0 22px;max-width:620px;font-size:16px;line-height:1.9;color:#a9bcd4;font-family:"Noto Serif Lao",serif}

.hh-feature{border-radius:26px;background:rgba(255,255,255,.04);border:1px solid #21344f;padding:24px;box-shadow:0 20px 50px rgba(0,0,0,.25);width:100%}
.hh-feature__top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.hh-feature__label{font-size:12px;color:var(--hh-gold);font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.hh-feature__title{font-size:clamp(24px,3vw,40px);line-height:1.35;color:#f7f1e5;font-weight:800;margin-top:6px}
.hh-feature__nav{display:flex;gap:8px;flex:none}
.hh-feature__nav button{cursor:pointer;width:36px;height:36px;border-radius:11px;background:rgba(255,255,255,.06);border:1px solid #2a3f5e;color:#f4ede0;font-size:20px}
.hh-feature__card{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(360px,.65fr);text-decoration:none;border-radius:22px;overflow:hidden;background:#fff;border:1px solid #efe8d7;min-height:430px}
.hh-feature__image{position:relative;display:block;min-height:430px;background:#16294a}
.hh-feature__image img{width:100%;height:100%;object-fit:cover;display:block}
.hh-feature__body{display:flex;flex-direction:column;justify-content:center;padding:28px 30px}
.hh-feature__body p{margin:0 0 18px;font-size:17px;line-height:1.9;color:#5a6b7e;font-family:"Noto Serif Lao",serif}
.hh-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-family:Inter,sans-serif;font-size:12px;color:#93a1b1}
.hh-dot{width:3px;height:3px;border-radius:50%;background:#c3ccd6}
.hh-slide-dots{display:flex;gap:8px;padding-top:12px}
.hh-slide-dots button{width:22px;height:7px;border-radius:999px;border:0;background:#40546f;cursor:pointer}
.hh-slide-dots button.is-active{width:34px;background:var(--hh-gold)}

.hh-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px}
.hh-stat{background:rgba(255,255,255,.05);border:1px solid #21344f;border-radius:18px;padding:16px}
.hh-stat strong{display:block;font-family:Inter,sans-serif;font-size:26px;font-weight:900;color:var(--hh-gold-soft)}
.hh-stat span{font-size:12.5px;line-height:1.75;color:#b7c6da}

.hh-categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;padding:54px 0 18px}
.hh-category-card{display:flex;align-items:center;gap:13px;text-decoration:none;padding:18px 20px;border-radius:18px;background:#fff;border:1px solid #ece5d4;box-shadow:0 2px 8px rgba(15,27,45,.04)}
.hh-category-card:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(15,27,45,.08)}
.hh-category-card__icon{width:38px;height:38px;border-radius:13px;display:flex;align-items:center;justify-content:center}
.hh-category-card strong{font-size:15px;color:#17263a}
.hh-category-card span{display:block;font-family:Inter,sans-serif;font-size:12px;color:#8a97a6;margin-top:4px}

.hh-home-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:28px;padding-top:42px}
.hh-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.hh-section-title{display:flex;align-items:center;gap:10px}
.hh-section-title i{width:5px;height:20px;border-radius:3px;background:var(--hh-gold)}
.hh-section-title h2,.hh-section-title h1{margin:0;font-size:24px;color:#f4ede0;font-weight:800}
.hh-link{font-size:14px;color:var(--hh-gold);font-weight:800;text-decoration:none}

.hh-post-list{display:grid;gap:16px}
.hh-post-row{display:grid;grid-template-columns:minmax(110px,170px) minmax(0,1fr);gap:14px;text-decoration:none;background:#fff;border:1px solid #efe8d7;border-radius:18px;padding:12px;box-shadow:0 3px 10px rgba(15,27,45,.05)}
.hh-post-row__image{position:relative;min-height:122px;border-radius:14px;overflow:hidden;background:#16294a}
.hh-post-row__image img,.hh-card__image img{width:100%;height:100%;object-fit:cover;display:block}
.hh-post-row h3{margin:10px 0 8px;font-size:18px;line-height:1.55;color:#17263a;font-weight:800}
.hh-post-row p,.hh-card p{margin:0 0 10px;font-size:14px;line-height:1.8;color:#5a6b7e;font-family:"Noto Serif Lao",serif}

.hh-tool-card{border-radius:22px;background:linear-gradient(160deg,#0F1B2D,#16294a);border:1px solid #26384f;box-shadow:0 12px 34px rgba(15,27,45,.25);overflow:hidden}
.hh-tool-card__content{padding:20px 20px 8px}
.hh-tool-card h3{margin:8px 0;font-size:20px;color:#f4ede0;font-weight:800;line-height:1.5}
.hh-tool-card p{margin:0;font-size:13px;line-height:1.8;color:#9db0c7;font-family:"Noto Serif Lao",serif}

.hh-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:22px}
.hh-card{display:block;text-decoration:none;background:#fff;border:1px solid #efe8d7;border-radius:18px;overflow:hidden;box-shadow:0 3px 10px rgba(15,27,45,.05)}
.hh-card__image{position:relative;display:block;height:238px;background:#16294a}
.hh-card__body{padding:16px 18px 18px}
.hh-card h3{margin:0 0 8px;font-size:19px;line-height:1.5;color:#15233a;font-weight:800}

.hh-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:18px 0 24px;padding:34px 0 10px}
.hh-page-head small{font-size:12px;color:var(--hh-gold);font-weight:800}
.hh-page-head h1{margin:8px 0 0;font-size:clamp(28px,4vw,42px);line-height:1.35;color:#f4ede0}
.hh-page-head p{margin:12px 0 0;max-width:720px;font-size:15px;line-height:1.85;color:#a9bcd4;font-family:"Noto Serif Lao",serif}
.hh-article-count{font-family:Inter,sans-serif;font-size:13px;color:#93a1b1;white-space:nowrap}
.hh-filter-tabs{display:flex;gap:10px;overflow-x:auto;padding-bottom:28px;scrollbar-width:none}
.hh-filter-tabs::-webkit-scrollbar{display:none}
.hh-filter-tabs a{white-space:nowrap;text-decoration:none;font-size:13px;font-weight:800;padding:10px 14px;border-radius:999px;color:#d8e2f0;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}
.hh-filter-tabs a.is-active{background:linear-gradient(135deg,var(--hh-gold),var(--hh-gold-soft));color:#0F1B2D}
.hh-archive-section-head{margin-top:6px;margin-bottom:20px}

.hh-breadcrumb{display:flex;gap:10px;align-items:center;color:#c5d0df;font-size:13px;margin-bottom:18px;flex-wrap:wrap}
.hh-breadcrumb a{text-decoration:none}
.hh-breadcrumb span:last-child{color:var(--hh-gold)}
.hh-article{background:var(--hh-paper);border-radius:28px;overflow:hidden;border:1px solid #eadfca;box-shadow:0 20px 70px rgba(0,0,0,.18)}
.hh-article__hero{position:relative;height:320px;background:#16294a}
.hh-article__hero img{width:100%;height:100%;object-fit:cover;display:block}
.hh-article__title{max-width:860px;margin:0 auto;padding:28px 22px 8px}
.hh-article__title h1{margin:0 0 16px;font-size:clamp(28px,4vw,46px);line-height:1.45;color:#14213a;font-family:"Noto Serif Lao",serif}
.hh-author{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid #eee4d0}
.hh-author__avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,var(--hh-gold),var(--hh-gold-soft));display:flex;align-items:center;justify-content:center;color:#0F1B2D;font-weight:800;font-family:Inter,sans-serif}
.hh-content{max-width:860px;margin:0 auto;padding:14px 22px 12px;font-family:"Noto Serif Lao",serif;color:#2c3644;font-size:16px;line-height:2}
.hh-content h2,.hh-content h3{font-family:"Noto Sans Lao",sans-serif;color:#14213a;line-height:1.45}
.hh-content h2{margin:28px 0 12px;font-size:24px}
.hh-content p{margin:0 0 18px}
.hh-content figure{margin:20px 0 18px;border-radius:18px;overflow:hidden;border:1px solid #eadfca;background:#fff}
.hh-content figcaption{padding:10px 14px;font-family:"Noto Sans Lao",sans-serif;font-size:12.5px;line-height:1.7;color:#6d7988;background:#fff}
.hh-content table{width:100%;min-width:560px;border-collapse:collapse;background:#fff;font-family:"Noto Sans Lao",sans-serif;font-size:14px}
.hh-content .wp-block-table{overflow-x:auto;border-radius:18px;border:1px solid #eadfca;box-shadow:0 12px 34px rgba(15,27,45,.06)}
.hh-content th{background:#14213a;color:#fff;text-align:left;padding:12px 14px}
.hh-content td{border-top:1px solid #f0e5d2;padding:12px 14px}
.hh-note,.hh-risk{max-width:860px;margin:0 auto 16px;padding:0 22px}
.hh-note__box{border-radius:18px;background:#fbf3e0;border:1px solid #f0dcae;border-left:5px solid var(--hh-gold);padding:20px 22px}
.hh-risk__box{border-radius:16px;background:#fbeeee;border:1px solid #f2cfcf;border-left:5px solid #c85a5a;padding:18px 20px}
.hh-note strong,.hh-risk strong{display:block;font-family:"Noto Sans Lao",sans-serif;font-weight:800;font-size:16px;margin-bottom:10px}
.hh-note strong{color:#8a5e12}.hh-risk strong{color:#a03c3c}
.hh-note p,.hh-risk p{margin:0;font-family:"Noto Serif Lao",serif;font-size:15px;line-height:1.9;color:#5c4a24}
.hh-risk p{font-size:14px;color:#8a4a4a}

.hh-xm-hero{position:relative;overflow:hidden;border-radius:28px;background:linear-gradient(155deg,#17152f,#233a63);padding:32px 24px;border:1px solid #31486e;box-shadow:0 24px 70px rgba(0,0,0,.22)}
.hh-xm-grid{position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px;align-items:center}
.hh-xm-hero h1{margin:0 0 12px;font-size:clamp(28px,4vw,46px);line-height:1.4;color:#f7f1e5}
.hh-xm-hero p{margin:0 0 18px;font-size:15px;line-height:1.9;color:#c8d4e3;font-family:"Noto Serif Lao",serif}
.hh-xm-benefit{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.09);border-radius:18px;padding:16px 18px;color:#e8eef7;font-size:14px;line-height:1.8}
.hh-two-col{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:24px;padding-top:24px}
.hh-panel{background:#fff;border:1px solid #ece5d4;border-radius:24px;padding:22px}
.hh-step{display:flex;gap:14px;border:1px solid #ece5d4;border-radius:18px;padding:16px;margin-bottom:14px}
.hh-step__no{width:34px;height:34px;flex:none;border-radius:11px;background:#0F1B2D;color:#F0C070;font-family:Inter,sans-serif;font-size:14px;font-weight:900;display:flex;align-items:center;justify-content:center}
.hh-step strong{display:block;font-size:16px;color:#17263a;margin-bottom:6px}
.hh-step span{font-size:14px;line-height:1.85;color:#5a6b7e;font-family:"Noto Serif Lao",serif}

.hh-calc-shell{max-width:980px;margin:0 auto;border-radius:28px;overflow:hidden;background:#f8f4ec;border:1px solid #e7decb;box-shadow:0 24px 70px rgba(0,0,0,.18)}
.hh-calc-head{background:linear-gradient(135deg,#0F1B2D,#163051);padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#fff}
.hh-calc-body{padding:28px 20px 26px;background:radial-gradient(900px 300px at 0% 0%,#fff8ea,#f8f4ec 58%)}
.hh-calc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:28px;align-items:start}
.hh-calc-form{display:grid;gap:22px;background:#fff;border:1px solid #e7decb;border-radius:24px;padding:20px;box-shadow:0 8px 24px rgba(15,27,45,.05)}
.hh-input-group label{display:block;font-size:14px;font-weight:800;color:#6b7480;margin-bottom:6px}
.hh-input-group input,.hh-input-group select{width:100%;border:none;border-bottom:2px solid #d6c9ae;background:transparent;padding:10px 4px;font-family:Inter,"Noto Sans Lao",sans-serif;font-size:22px;color:#14213a;outline:none}
.hh-currency-toggle{display:flex;gap:4px;background:#f4efe2;border:1px solid #eadfca;border-radius:12px;padding:4px}
.hh-currency-toggle button{flex:1;border:0;border-radius:9px;padding:11px 10px;background:transparent;color:#5b6458;font-weight:900;cursor:pointer}
.hh-currency-toggle button.is-active{background:#5b9d3f;color:#fff}
.hh-presets{display:flex;gap:7px;margin-top:12px;flex-wrap:wrap}
.hh-presets button{border:1px solid #d9d9d9;background:#fff;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:800;color:#666;cursor:pointer}
.hh-calc-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.hh-calc-actions button{text-align:center;padding:16px 14px;border-radius:12px;border:1px solid #d7dde6;font-size:15px;font-weight:900;cursor:pointer}
.hh-calc-actions button:last-child{background:linear-gradient(135deg,var(--hh-gold),var(--hh-gold-soft));border-color:#d4a75a;color:#0F1B2D}
.hh-chart-card{background:linear-gradient(160deg,#0F1B2D,#16294a);border:1px solid #21344f;border-radius:24px;padding:18px 16px 12px}
.hh-result-card{border-radius:20px;background:#fff;border:1px solid #e7decb;padding:18px 20px;display:grid;gap:12px}
.hh-result-row{display:flex;justify-content:space-between;gap:14px;font-size:16px;font-weight:800;color:#6b7480}
.hh-result-row strong{color:#0F1B2D}
.hh-result-row .gold{color:#c68a2a}

.hh-footer{border-top:1px solid #1c2c44;background:#080f19;color:#8192a8;padding:26px 18px}
.hh-footer .hh-wrap{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:13px}

@media (max-width:760px){
  .hh-main{padding:18px 12px 44px}
  .hh-header__inner{padding:12px}
  .hh-hero{border-radius:22px;padding:24px 18px}
  .hh-feature{padding:16px;border-radius:22px}
  .hh-feature__card{grid-template-columns:1fr;min-height:0}
  .hh-feature__image{height:245px;min-height:0}
  .hh-feature__body{padding:18px}
  .hh-feature__body p{font-size:15px}
  .hh-feature__title{font-size:22px}
  .hh-home-grid,.hh-two-col{grid-template-columns:1fr}
  .hh-post-row{grid-template-columns:1fr}
  .hh-post-row__image{height:180px}
  .hh-card__image{height:210px}
  .hh-page-head{padding-top:18px;margin-bottom:18px}
  .hh-article__hero{height:230px}
  .hh-article{border-radius:22px}
  .hh-content{font-size:15px}
  .hh-calc-head{align-items:flex-start;flex-direction:column}
}

@media (min-width:761px) and (max-width:980px){
  .hh-feature__card{grid-template-columns:1fr;min-height:0}
  .hh-feature__image{height:320px;min-height:0}
  .hh-feature__body{padding:22px}
}
