/* HỒI ỨC / KTWeb V3 scenic theme, version 1.0.3
   Overlay buttons keep the scenery visible. */
:root{--hoiuc-gold:#efd39a;--hoiuc-line:#8c6837;--hoiuc-paper:#fff1d6;--hoiuc-ink:#0a1624;--hoiuc-red:#9f3528}
html{scroll-behavior:smooth}
body.hoiuc-v3-theme{
  background-color:#071522;
  background-image:linear-gradient(180deg,rgba(3,12,21,.14) 0,rgba(5,16,26,.56) 42rem,#071522 100%),url('/assets/hoiuc-v1/hoiuc-scenery.jpg');
  background-position:top center,top center;background-repeat:no-repeat,no-repeat;
  background-size:cover,100% auto;color:#f1e3c8;
}
body.hoiuc-v3-theme,body.hoiuc-v3-theme input,body.hoiuc-v3-theme button,body.hoiuc-v3-theme select{
  font-family:Georgia,'Times New Roman',serif;
}
body.hoiuc-v3-theme a{color:#f1d49a}
body.hoiuc-v3-theme a:hover{color:#fff2cc}
body.hoiuc-v3-theme header,body.hoiuc-v3-theme .navbar,body.hoiuc-v3-theme nav{border-color:rgba(183,132,69,.48)}
body.hoiuc-v3-theme header{
  background:linear-gradient(90deg,rgba(5,13,24,.92),rgba(9,22,32,.84));
  backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)
}
body.hoiuc-v3-theme header a,body.hoiuc-v3-theme nav a{text-decoration:none}
body.hoiuc-v3-theme .card,body.hoiuc-v3-theme .panel,
body.hoiuc-v3-theme .box,body.hoiuc-v3-theme .section-card{
  border:1px solid rgba(176,129,70,.69);border-radius:12px;
  background:linear-gradient(145deg,rgba(11,24,34,.95),rgba(18,28,37,.88));
  box-shadow:0 15px 38px rgba(0,0,0,.28),inset 0 1px 0 rgba(243,206,136,.12);
}
body.hoiuc-v3-theme h1,body.hoiuc-v3-theme h2,body.hoiuc-v3-theme h3{color:#f3d49c;text-shadow:0 2px 8px rgba(0,0,0,.36)}
body.hoiuc-v3-theme button,body.hoiuc-v3-theme input[type='submit'],body.hoiuc-v3-theme .btn,body.hoiuc-v3-theme a.button{
  border-radius:8px;border:1px solid #bc8b4c;background:linear-gradient(180deg,#70301f,#4d2019);color:#fff0c7;
  box-shadow:0 2px 9px rgba(0,0,0,.22);cursor:pointer;transition:filter .2s,transform .2s;
}
body.hoiuc-v3-theme button:hover,body.hoiuc-v3-theme input[type='submit']:hover,body.hoiuc-v3-theme .btn:hover{filter:brightness(1.16)}
body.hoiuc-v3-theme button:focus-visible,body.hoiuc-v3-theme a:focus-visible,body.hoiuc-v3-theme input:focus-visible{outline:2px solid #ffdc8d;outline-offset:3px}
body.hoiuc-v3-theme input:not([type='checkbox']):not([type='radio']),body.hoiuc-v3-theme select,body.hoiuc-v3-theme textarea{
  border:1px solid rgba(184,146,86,.62);border-radius:7px;background:rgba(7,14,20,.75);color:#f3e9d7;
}
body.hoiuc-v3-theme input::placeholder{color:#cfbda5;opacity:1}
body.hoiuc-v3-theme table{border-collapse:collapse}
body.hoiuc-v3-theme th{color:#f3d5a2}
body.hoiuc-v3-theme tr{border-bottom:1px solid rgba(181,143,80,.23)}

/* Hero: keep scenery visible while buttons stay on the image */
body.hoiuc-v3-theme .hoiuc-hero{
  position:relative;isolation:isolate;width:min(1210px,calc(100% - 36px));
  min-height:370px;box-sizing:border-box;margin:22px auto 26px;
  border:1px solid rgba(241,192,109,.74);border-radius:15px;overflow:hidden;
  background:
    linear-gradient(180deg,rgba(4,12,23,.04),rgba(7,18,28,.10)),
    url('/assets/hoiuc-v1/hoiuc-scenery.jpg') center center/cover no-repeat;
  box-shadow:0 21px 60px rgba(0,0,0,.42),inset 0 0 0 4px rgba(248,200,109,.04);
}
body.hoiuc-v3-theme .hoiuc-hero:before{
 content:'';position:absolute;inset:0;z-index:-1;
 background:
   linear-gradient(180deg,rgba(6,16,26,.06) 0%,rgba(6,16,26,.10) 25%,rgba(6,16,26,.16) 55%,rgba(6,16,26,.24) 100%),
   linear-gradient(90deg,rgba(6,16,26,.10) 0%,rgba(7,17,27,.42) 38%,rgba(7,17,27,.16) 72%,rgba(6,16,26,.08) 100%);
}
body.hoiuc-v3-theme .hoiuc-hero-inner{
  max-width:660px;margin:0 10% 0 auto;padding:34px 42px 130px;text-align:center;
}
body.hoiuc-v3-theme .hoiuc-hero-kicker{font:600 12px system-ui,sans-serif;letter-spacing:.30em;color:#ecd1a0;text-shadow:0 2px 6px rgba(0,0,0,.42)}
body.hoiuc-v3-theme .hoiuc-hero-title{font-family:Georgia,'Times New Roman',serif;font-style:italic;line-height:1.02;font-size:clamp(50px,7vw,95px);font-weight:700;margin:10px 0;color:#f6dfb0;text-shadow:0 3px 1px #633d1f,0 9px 23px #000}
body.hoiuc-v3-theme .hoiuc-hero-sub{font-size:13px;letter-spacing:.28em;color:#f5ddb5;margin:5px 0 18px;text-shadow:0 2px 8px rgba(0,0,0,.45)}
body.hoiuc-v3-theme .hoiuc-hero-actions{
  position:absolute;left:50%;bottom:18px;transform:translateX(-50%);
  width:min(900px,calc(100% - 34px));display:flex;gap:14px;justify-content:center;flex-wrap:wrap;
}
body.hoiuc-v3-theme .hoiuc-hero-actions a{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:170px;flex:0 1 210px;padding:13px 18px;border-radius:12px;
  font-size:17px;font-weight:700;text-decoration:none;color:#ffe7b8;
  border:1px solid rgba(240,191,108,.85);
  background:linear-gradient(180deg,rgba(96,42,32,.52),rgba(27,16,18,.46));
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  box-shadow:inset 0 1px 0 rgba(255,233,172,.34),0 10px 26px rgba(0,0,0,.26);
}
body.hoiuc-v3-theme .hoiuc-hero-actions a:hover{
  background:linear-gradient(180deg,rgba(133,54,37,.64),rgba(34,19,21,.58));
  transform:translateY(-1px);
}
body.hoiuc-v3-theme .hoiuc-hero-actions a.hoiuc-secondary{
  background:linear-gradient(180deg,rgba(11,29,40,.48),rgba(8,20,31,.42));
}
body.hoiuc-v3-theme .hoiuc-hero-actions a.hoiuc-secondary:hover{
  background:linear-gradient(180deg,rgba(20,48,64,.58),rgba(9,24,37,.50));
}
body.hoiuc-v3-theme .hoiuc-hero-mini{
  font-size:12px;color:#ead8b5;margin-top:8px;text-shadow:0 2px 8px rgba(0,0,0,.48)
}

/* Preview-only composition */
.hoiuc-preview{margin:0;color:#f3e8d6;font-family:Georgia,serif;background:#071522 url('hoiuc-scenery.jpg') top center/100% auto no-repeat}
.hoiuc-preview *{box-sizing:border-box}
.hoiuc-preview a{color:inherit;text-decoration:none}
.hoiuc-preview .sitebar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:17px max(4%,calc((100% - 1240px)/2));background:rgba(4,14,23,.91);border-bottom:1px solid #a9824d}
.hoiuc-preview .brand{font-size:28px;color:#f1d49a;letter-spacing:.04em;font-weight:700;white-space:nowrap}
.hoiuc-preview .brand small{font-size:10px;background:#82362c;border:1px solid #b88b53;border-radius:4px;padding:4px;margin-left:9px;vertical-align:middle}
.hoiuc-preview .mainnav{display:flex;flex-wrap:wrap;gap:25px;font-size:15px}
.hoiuc-preview .mainnav a:hover{color:#ffd792}
.hoiuc-preview .preview-wrap{max-width:1240px;margin:auto;padding:22px 22px 45px}
.hoiuc-preview .preview-hero{min-height:325px;padding:39px 35px 20px;display:grid;grid-template-columns:1.3fr .7fr;gap:30px;background:linear-gradient(90deg,transparent,rgba(2,13,22,.44));border:1px solid rgba(204,162,92,.28);border-radius:14px}
.hoiuc-preview .hero-content{text-align:center;align-self:center;padding-left:30%}
.hoiuc-preview .hero-content h1{font-size:clamp(60px,6vw,90px);font-style:italic;color:#ffdfaa;text-shadow:0 5px 14px #000;margin:5px 0}
.hoiuc-preview .hero-content p{letter-spacing:.23em;font-size:13px}
.hoiuc-preview .hero-content .hero-tag{color:#ffe8b3;font:700 12px system-ui}
.hoiuc-preview .loginbox,.hoiuc-preview .theme-card{background:linear-gradient(155deg,rgba(11,20,29,.96),rgba(16,24,30,.93));border:1px solid #b6884c;border-radius:12px;box-shadow:0 8px 27px #0009,inset 0 0 0 3px #b6884c20}
.hoiuc-preview .loginbox{align-self:center;padding:25px;text-align:center}
.hoiuc-preview .loginbox h2{font-size:22px;color:#f4d39a;margin:4px 0 14px}
.hoiuc-preview .loginbox p{font-size:14px;color:#e1d5c3;line-height:1.6}
.hoiuc-preview .actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:19px 0 0}
.hoiuc-preview .action{display:inline-flex;justify-content:center;align-items:center;padding:13px 19px;min-width:130px;border-radius:8px;border:1px solid #dcb271;background:linear-gradient(180deg,#a5442e,#5d261f);color:#fff0cf;font-weight:bold;box-shadow:0 6px 20px #0009}
.hoiuc-preview .action.secondary{background:linear-gradient(180deg,#283742,#0c1e2b)}
.hoiuc-preview .action:hover{filter:brightness(1.17)}
.hoiuc-preview .quick{display:grid;grid-template-columns:repeat(5,1fr);gap:13px;margin:20px 0}
.hoiuc-preview .quick a{background:linear-gradient(160deg,#332920,#101b26);border:1px solid #a67943;border-radius:9px;padding:17px 9px;text-align:center;box-shadow:inset 0 1px 0 #ffe1a333;min-width:0;color:#f2d8a7;font-size:17px;font-weight:bold}
.hoiuc-preview .quick a:hover{background:#533324}
.hoiuc-preview .quick .lead{background:linear-gradient(160deg,#9d4628,#55201d)}
.hoiuc-preview .three{display:grid;grid-template-columns:.85fr 1.35fr .85fr;gap:17px}
.hoiuc-preview .theme-card{min-height:260px;padding:23px}
.hoiuc-preview .theme-card h2{margin:0 0 18px;font-size:22px;color:#f2d59e;border-bottom:1px solid #ad835149;padding-bottom:12px}
.hoiuc-preview .theme-card p{font-size:15px;line-height:1.75;color:#e0d1b7}
.hoiuc-preview .news-card{background:linear-gradient(135deg,rgba(252,235,205,.97),rgba(229,201,157,.95));color:#352820}
.hoiuc-preview .news-card h2{color:#783b29}
.hoiuc-preview .news-card p{color:#4b392c}
.hoiuc-preview .mini-link{display:block;border-top:1px solid #ad835149;padding:12px 0;color:#f0d09a;font-size:15px}
.hoiuc-preview .news-card .mini-link{color:#682f22}
.hoiuc-preview footer{text-align:center;padding:22px;border-top:1px solid #ad835149;color:#e0c293;font-size:13px}
.hoiuc-preview .preview-notice{color:#e3d0b6;font:13px system-ui;padding:12px;border:1px dashed #b18852;border-radius:7px;background:#071522d9;text-align:center;margin-bottom:15px}
@media(max-width:900px){
 body.hoiuc-v3-theme{background-size:cover,auto 650px}
 body.hoiuc-v3-theme .hoiuc-hero{min-height:390px}
 body.hoiuc-v3-theme .hoiuc-hero-inner{margin:0 auto;padding:28px 26px 138px}
 body.hoiuc-v3-theme .hoiuc-hero-title{font-size:clamp(44px,10vw,74px)}
 body.hoiuc-v3-theme .hoiuc-hero-actions{width:calc(100% - 28px);gap:10px}
 .hoiuc-preview .mainnav{gap:11px}
 .hoiuc-preview .preview-hero{grid-template-columns:1fr}.hoiuc-preview .hero-content{padding-left:0}
 .hoiuc-preview .quick{grid-template-columns:repeat(3,1fr)}.hoiuc-preview .three{grid-template-columns:1fr 1fr}.hoiuc-preview .three>:last-child{grid-column:1/-1}
}
@media(max-width:600px){
 body.hoiuc-v3-theme .hoiuc-hero{width:calc(100% - 20px);min-height:340px}
 body.hoiuc-v3-theme .hoiuc-hero-inner{margin:0;padding:26px 16px 132px}
 body.hoiuc-v3-theme .hoiuc-hero-sub{letter-spacing:.11em;font-size:11px}
 body.hoiuc-v3-theme .hoiuc-hero-actions{bottom:14px;gap:8px}
 body.hoiuc-v3-theme .hoiuc-hero-actions a{flex:1 1 calc(50% - 8px);min-width:135px;padding:11px 14px;font-size:15px}
 .hoiuc-preview .sitebar{display:block;text-align:center;padding:12px}.hoiuc-preview .mainnav{margin-top:14px;justify-content:center}
 .hoiuc-preview .preview-wrap{padding:12px}
 .hoiuc-preview .preview-hero{padding:15px}.hoiuc-preview .hero-content h1{font-size:53px}
 .hoiuc-preview .quick{grid-template-columns:repeat(2,1fr)}.hoiuc-preview .three{grid-template-columns:1fr}.hoiuc-preview .three>:last-child{grid-column:auto}
 .hoiuc-preview .loginbox{padding:17px}
}
@media(max-width:420px){
 body.hoiuc-v3-theme .hoiuc-hero-actions a{flex-basis:100%;min-width:0}
}
@media(prefers-reduced-motion:reduce){.hoiuc-preview *,body.hoiuc-v3-theme *{transition:none!important;scroll-behavior:auto!important}}


/* V4 fixes: remove large blank gap, unify scenic background on download page, cleaner brand */
body.hoiuc-v3-theme.hoiuc-home-tight #hoiuc-v3-hero{margin-bottom:14px}
body.hoiuc-v3-theme .hoiuc-hidden-gap{display:none!important}
body.hoiuc-v3-theme .hoiuc-subhero{
  position:relative;isolation:isolate;width:min(1210px,calc(100% - 36px));
  min-height:220px;box-sizing:border-box;margin:22px auto 18px;
  border:1px solid rgba(241,192,109,.66);border-radius:15px;overflow:hidden;
  background:
    linear-gradient(180deg,rgba(4,12,23,.10),rgba(7,18,28,.22)),
    url('/assets/hoiuc-v1/hoiuc-scenery.jpg') center center/cover no-repeat;
  box-shadow:0 18px 48px rgba(0,0,0,.38),inset 0 0 0 4px rgba(248,200,109,.04);
}
body.hoiuc-v3-theme .hoiuc-subhero:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(6,16,26,.18) 0%,rgba(7,17,27,.48) 42%,rgba(7,17,27,.18) 100%)}
body.hoiuc-v3-theme .hoiuc-subhero-inner{max-width:760px;margin:0 auto;padding:34px 26px 26px;text-align:center}
body.hoiuc-v3-theme .hoiuc-subhero-kicker{font:600 12px system-ui,sans-serif;letter-spacing:.28em;color:#ecd1a0;text-shadow:0 2px 6px rgba(0,0,0,.42)}
body.hoiuc-v3-theme .hoiuc-subhero-title{font-family:Georgia,'Times New Roman',serif;font-style:italic;line-height:1.04;font-size:clamp(38px,5vw,62px);font-weight:700;margin:10px 0;color:#f6dfb0;text-shadow:0 3px 1px #633d1f,0 9px 23px #000}
body.hoiuc-v3-theme .hoiuc-subhero-sub{font-size:13px;letter-spacing:.20em;color:#f5ddb5;margin:4px 0 18px;text-shadow:0 2px 8px rgba(0,0,0,.45)}
body.hoiuc-v3-theme .hoiuc-subhero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
body.hoiuc-v3-theme .hoiuc-subhero-actions a{display:inline-flex;align-items:center;justify-content:center;min-width:170px;flex:0 1 220px;padding:12px 16px;border-radius:12px;font-size:16px;font-weight:700;text-decoration:none;color:#ffe7b8;border:1px solid rgba(240,191,108,.82);background:linear-gradient(180deg,rgba(96,42,32,.50),rgba(27,16,18,.42));backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:inset 0 1px 0 rgba(255,233,172,.34),0 10px 26px rgba(0,0,0,.26)}
body.hoiuc-v3-theme .hoiuc-subhero-actions a:hover{background:linear-gradient(180deg,rgba(133,54,37,.64),rgba(34,19,21,.58));transform:translateY(-1px)}
body.hoiuc-v3-theme .hoiuc-subhero-actions a.hoiuc-secondary{background:linear-gradient(180deg,rgba(11,29,40,.48),rgba(8,20,31,.42))}
body.hoiuc-v3-theme .hoiuc-subhero-actions a.hoiuc-secondary:hover{background:linear-gradient(180deg,rgba(20,48,64,.58),rgba(9,24,37,.50))}
body.hoiuc-v3-theme .hoiuc-subhero-mini{font-size:12px;color:#ead8b5;margin-top:12px;text-shadow:0 2px 8px rgba(0,0,0,.48)}
@media(max-width:600px){body.hoiuc-v3-theme .hoiuc-subhero{width:calc(100% - 20px);min-height:190px}body.hoiuc-v3-theme .hoiuc-subhero-inner{padding:25px 16px 18px}body.hoiuc-v3-theme .hoiuc-subhero-title{font-size:42px}body.hoiuc-v3-theme .hoiuc-subhero-actions a{flex:1 1 calc(50% - 8px);min-width:135px;padding:11px 14px;font-size:15px}}
@media(max-width:420px){body.hoiuc-v3-theme .hoiuc-subhero-actions a{flex-basis:100%;min-width:0}}
