
:root{
  --red: #94311E;            
  --red-deep: #7A2818;       
  --red-rgb: 148,49,30;
  --ink: #111113;  --ink-rgb: 17,17,19;
  --ink-deep-rgb: 10,10,11; --ink-mid-rgb: 32,32,36;
  --navy: #111113; --navy-mid: #19191C; --navy-light: #26262A;
  --stone: #F4F2EE; --stone-2: #ECE9E3; --grey: #5E5E66;
  --accent-rgb: 148,49,30; --accent2-rgb: 148,49,30; --pale-rgb: 244,242,238;
  --gold: #94311E; --gold-dark: #7A2818; --gold-muted: #94311E; --gold-light: #7A2818; --gold-pale: #F4F2EE;
  --accent-text: #94311E;
  --btn-bg: #94311E; --btn-bg-hover: #7A2818;
  --accent-on-dark: #FFFFFF;
  --cream: #F4F2EE; --white: #FFFFFF; --text: #111113; --text-light: #4A4A52; --border: #E2DFD9;
  --hair: rgba(17,17,19,.12);
  --hf: 'Source Serif 4', 'Noto Serif Thai', 'Noto Serif SC', Georgia, serif;
  --bf: 'Public Sans', 'Noto Sans Thai', 'Noto Sans SC', sans-serif;
  --sheen-rgb: 148,49,30;
  --hdr-h: 106px;
}
html[lang="th"]{ --hf:'Noto Serif Thai','Source Serif 4',serif; --bf:'Noto Sans Thai','Public Sans',sans-serif; }
html[lang="zh-Hans"]{ --hf:'Source Serif 4','Noto Serif SC','Songti SC',serif; --bf:'Public Sans','Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif; }
body{ background:#fff; font-size:16.5px; color:var(--text); font-feature-settings:"kern","liga"; }
::selection{ background: rgba(var(--red-rgb), .16); }


a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible, summary:focus-visible{ outline: 2px solid var(--red); outline-offset: 3px; border-radius: 1px; }
.site-footer :focus-visible, .stats-banner :focus-visible, .access-section :focus-visible, .section-dark :focus-visible{ outline-color:#fff; }

.skip-to-content{ top:auto !important; left:12px; transform: translateY(-200%); background: var(--ink); color:#fff; padding: 12px 18px; font: 600 13px/1 var(--bf); letter-spacing:.08em; z-index: 2000; position: fixed; }
.skip-to-content:focus{ transform: translateY(12px); }


.site-header .logo-img{ content: url('/assets/logo-cacap-red.svg'); width: 54px; height: 54px; mix-blend-mode: normal; clip-path: none; }
.logo-area a{ gap: 14px; }
.logo-text{ font-family: var(--hf); text-transform: none; font-size: 17px; font-weight: 500; letter-spacing: .005em; line-height: 1.2; border-left: 1px solid rgba(var(--ink-rgb), .18); padding-left: 14px; color: var(--ink); }
.logo-text span{ font-family: var(--bf); font-size: 10px; font-weight: 600; letter-spacing: .32em; margin-top: 6px; color: var(--red); }
.site-header{ --hdr-a: .9; }
@media (max-width: 480px){
  .logo-text{ font-size: 12.5px; padding-left: 10px; line-height: 1.22; }
  html[lang="th"] .logo-text{ font-size: 11.5px; line-height: 1.3; }
  .logo-text span{ font-size: 8.5px; margin-top: 4px; }
  .site-header .logo-img{ width: 42px; height: 42px; }
  .logo-area a{ gap: 10px; }
}
.nav-link{ font-weight: 500; font-size: 12.5px; letter-spacing: .12em; }
.nav-link.active{ color: var(--ink); border-bottom-color: var(--red); }
.nav-dropdown{ border-top-color: var(--red); }
.header-right .btn-nom{ font-weight: 600; }


@media (min-width: 769px) and (max-width: 1180px){
  .nav-inner{ padding: 0 12px; justify-content: space-between; }
  .nav-link{ padding: 14px 8px; font-size: 11.5px; letter-spacing: .07em; gap: 4px; }
  .header-top{ padding-left: 20px; padding-right: 20px; gap: 12px; }
  .header-right{ gap: 8px; }
  .header-right .btn-nom{ padding: 9px 12px; font-size: 11px; letter-spacing: .08em; white-space: nowrap; }
  .header-right .lang-btn{ padding-left: 6px; padding-right: 6px; }
  .logo-text{ font-size: 15px; }
}
@media (min-width: 769px) and (max-width: 900px){
  .header-right .btn-nom[href*="lockbox"]{ display: none; }   
  .logo-text{ font-size: 13.5px; padding-left: 10px; }
  .site-header .logo-img{ width: 46px; height: 46px; }
  .nav-link{ padding: 14px 6px; font-size: 11px; letter-spacing: .05em; }
  .nav-link::after{ display:none; }
}
html, body{ overflow-x: clip; }


.btn-p{ background: var(--red) !important; color:#fff !important; border: 1px solid var(--red); font-weight: 600; }
.btn-p:hover{ background: var(--red-deep) !important; border-color: var(--red-deep); }
.btn-o{ background: transparent; border-color: rgba(255,255,255,.5); color:#fff; }
.btn-o:hover{ background:#fff; color: var(--ink); border-color:#fff; }
.btn-s{ background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-s:hover{ background: var(--ink); color:#fff; }
.btn-dark{ background: var(--ink); }
.access-btn{ background: var(--red) !important; color:#fff !important; border-radius: 2px !important; letter-spacing: .1em !important; text-transform: uppercase; font-size: 12.5px !important; padding: 15px 30px !important; }
.access-btn:hover{ background: var(--red-deep) !important; transform: none !important; box-shadow: none !important; }
.form-group input[type="file"]::file-selector-button{ background: var(--ink); color:#fff; border-radius: 2px; }
.rules-tab:hover, .rules-tab.active{ background: var(--ink) !important; color:#fff !important; }
.faq-label-q{ background: var(--red); color:#fff; }
.footer-social a:hover{ background:#fff; color: var(--ink); }


.stats-banner{ background: var(--ink); padding: 0 var(--sp-3); position: relative; }
.stats-banner::before{ content:''; position:absolute; left:0; right:0; top:0; height:3px; background: var(--red); }
.stats-banner::after{ display:none; }
.stats-inner{ gap: 0; }
.stat-item{ padding: 46px 22px 42px; border-left: 1px solid rgba(255,255,255,.14); text-align: left; }
.stat-item:first-child{ border-left: 0; }
.stat-number{ font-family: var(--hf); font-weight: 400; color:#fff; font-size: clamp(40px, 4.6vw, 60px); line-height: 1; margin-bottom: 12px; font-variant-numeric: lining-nums; }
.stat-label{ color: rgba(255,255,255,.76); font-weight: 600; letter-spacing: .16em; font-size: 11px; }
@media (max-width: 1024px){ .stat-item:nth-child(3){ border-left: 0; } .stat-item{ border-top: 1px solid rgba(255,255,255,.14); padding: 28px 16px; } }


.section-sub{ color: var(--red); font-weight: 600; letter-spacing: .24em; font-size: 11.5px; }
.section-title{ font-family: var(--hf); color: var(--ink); font-weight: 400; letter-spacing: -.015em; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1; text-wrap: balance; }
.section-dark .section-title{ color:#fff; }
.gold-line{ width: 100%; max-width: var(--mw); height: 1px; background: var(--border); margin: 28px 0 44px; position: relative; border-radius: 0; }
.gold-line::before{ content:''; position:absolute; left:0; top:-11px; width:4px; height:22px; background: var(--red); }
.gold-line::after{ content:''; position:absolute; left:10px; top:-5px; width:4px; height:10px; background: var(--red); }
.section-light{ background: var(--stone); }


.card, .accred-card{ --card-bg:#fff; border: 1px solid var(--hair) !important; border-radius: 0 !important; box-shadow: none !important; position: relative; }
.card{ padding: 38px 34px 34px; }
.card::before{ background: var(--red); height: 3px; width: 32px; left: 34px; right: auto; top: 0; transform: none !important; opacity: 1 !important; }
.card:hover, .accred-card:hover{ border-color: rgba(var(--ink-rgb), .45) !important; transform: none !important; }
.accred-card{ border-top: 3px solid var(--red) !important; }
.card:hover::before{ width: 64px; transition: width .35s ease; }
.card h3{ font-family: var(--hf); font-weight: 500; font-size: 24px; color: var(--ink); letter-spacing: -.005em; }
.card p{ color: var(--text-light); }
.card-link{ color: var(--red); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.card-link:hover{ color: var(--ink); }
.card-icon{ color: var(--ink); border-radius: 0; border-color: var(--hair); }
.svc-card, .sec-card, .how-step, .accred-card{ border-radius: 0 !important; box-shadow: none !important; }
.how-step{ border-top: 3px solid var(--red) !important; }
.how-step:hover{ transform: none !important; }
.how-step-num{ color: var(--red) !important; font-weight: 400 !important; }


.hero-sm, .hero-sm[class*="hero-"]{
  background: var(--stone) !important;
  min-height: 0; padding: 84px var(--sp-3) 72px; text-align: left; justify-content: flex-start; border-bottom: 1px solid var(--border); position: relative;
}
.hero-sm::before{ display:block !important; content:''; position:absolute; left:0; right:0; bottom:-1px; height:1px; background: var(--border); }
.hero-sm::after{ display:none !important; }
.hero-sm .hero-content{ max-width: var(--mw); margin: 0 auto; animation: none; }
.hero-sm .hero-content{ border-left: 3px solid var(--red); padding-left: 28px; }
.hero-sm h1{ font-family: var(--hf); font-weight: 400; color: var(--ink); font-size: clamp(34px, 4.8vw, 62px); letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
.hero-sm h1 .gold{ color: var(--red); font-style: italic; }
html[lang="zh-Hans"] .hero-sm h1, html[lang="th"] .hero-sm h1{ letter-spacing: 0; line-height: 1.3; font-weight: 500; }
html[lang="zh-Hans"] .hero-sm h1 .gold, html[lang="th"] .hero-sm h1 .gold{ font-style: normal; }
.hero-sm p{ color: var(--text-light); margin: 0; max-width: 720px; font-size: 18px; }
@media (max-width: 768px){ .hero-sm, .hero-sm[class*="hero-"]{ padding: 56px var(--sp-3) 48px; } }


.form-group label{ font-family: var(--bf); font-weight: 600; font-size: 13px; letter-spacing: .02em; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea, .access-form input{
  border: 1px solid #CFCBC4 !important; border-radius: 2px !important; background: #fff !important; color: var(--ink) !important;
  padding: 13px 14px; font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input:hover, .form-group select:hover, .form-group textarea:hover{ border-color: #9A958C !important; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .access-form input:focus{
  outline: none; border-color: var(--ink) !important; box-shadow: 0 0 0 3px rgba(var(--red-rgb), .22) !important;
}
.form-check input[type="checkbox"]{ accent-color: var(--red); }
.form-error{ color: #A3231B; }


.access-section{ background: var(--ink) !important; border-top: 3px solid var(--red); }
.access-section h2{ font-weight: 400 !important; font-size: clamp(28px, 3.4vw, 40px) !important; }
.access-form label{ color: rgba(255,255,255,.88) !important; letter-spacing: .04em; }
.error-msg{ color: #FFB4A8 !important; }
.upload-panel{ border-radius: 0 !important; }
.conf-notice{ border-radius: 0 !important; border-left: 3px solid var(--red) !important; }


.site-footer{ background: var(--ink); border-top: 3px solid var(--red); }
.site-footer img[src*="logo-white"]{ content: url('/assets/logo-cacap-white.svg'); }
.footer-col h4{ color:#fff; font-family: var(--bf); font-weight: 600; letter-spacing: .22em; font-size: 11.5px; }
.footer-col a{ color: rgba(255,255,255,.76); }
.footer-col a:hover, .footer-bottom a:hover{ color:#fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.5); }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.12); }
.site-footer .logo-text{ font-family: var(--hf); color: rgba(255,255,255,.86); border-left-color: rgba(255,255,255,.2); }
.site-footer .logo-text span{ color:#fff; }
.site-footer a[style*="--gold"]{ color:#fff !important; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.footer-bottom, .footer-bottom span{ color: rgba(255,255,255,.72); }
.footer-bottom a{ color: rgba(255,255,255,.86) !important; }
