/* Truehost Cloud — Campus Ambassador Programme (standalone page, Truehost brand) */
@font-face { font-family: "Outfit"; font-weight: 400 800; font-display: swap; src: url(/fonts/outfit-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400 700; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2"); }

:root {
  --th-orange: #FFA500;
  --th-yellow: #FFB81C;
  --th-yellow-deep: #F29E00;
  --th-blue: #2D63D5;
  --th-blue-deep: #1C3DA7;
  --th-navy: #0F2969;
  --th-navy-2: #091F53;
  --th-mint: #06ECA9;
  --th-cream: #FAF8F3;
  --th-sky: #DBEAFE;
  --ink: #0E1726;
  --ink-2: #4B5563;
  --line: #E5E7EB;
  --white: #fff;
  --err: #C2410C;
  --head: Outfit, system-ui, sans-serif;
  --body: Inter, system-ui, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
@media (max-width: 540px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: 12px; top: -60px; background: var(--th-yellow); color: var(--th-navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 10; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.th-top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.th-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.th-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.th-logo img { height: 28px; width: auto; }
.th-logo span { font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--th-navy); padding-left: 12px; border-left: 1px solid var(--line); }
@media (max-width: 480px) { .th-logo span { display: none; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 13px 22px; font-family: var(--head); font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; white-space: nowrap; }
.btn-yellow { background: var(--th-yellow); color: var(--th-navy); }
.btn-yellow:hover { background: var(--th-yellow-deep); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- hero ---------- */
.th-hero { background: linear-gradient(135deg, var(--th-blue-deep) 0%, var(--th-blue) 60%, #3B82F6 100%); color: var(--white); padding: 76px 0 84px; position: relative; overflow: hidden; }
.th-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255,184,28,.28), transparent 65%); }
.th-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.eyebrow b { width: 8px; height: 8px; border-radius: 50%; background: var(--th-mint); }
.th-hero h1 { font-family: var(--head); font-weight: 800; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 18px; }
.th-hero h1 em { font-style: normal; color: var(--th-yellow); }
.th-hero p { font-size: 18px; color: rgba(255,255,255,.9); max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-cta small { color: rgba(255,255,255,.8); font-size: 14px; }
.hero-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 18px; padding: 26px; backdrop-filter: blur(6px); }
.hero-card h2 { font-family: var(--head); font-size: 18px; margin-bottom: 14px; }
.hero-card ul { list-style: none; display: grid; gap: 12px; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,.92); }
.hero-card li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--th-yellow); margin-top: 1px; }
@media (max-width: 860px) { .th-hero .wrap { grid-template-columns: 1fr; } .th-hero { padding: 54px 0 60px; } }

/* ---------- sections ---------- */
.band { padding: 76px 0; }
.band-cream { background: var(--th-cream); }
.label { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--th-blue); margin-bottom: 10px; }
.sec-title { font-family: var(--head); font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; color: var(--th-navy-2); margin-bottom: 12px; }
.sec-title em { font-style: normal; color: var(--th-blue); }
.sec-sub { color: var(--ink-2); font-size: 16.5px; max-width: 640px; }
.sec-head { margin-bottom: 38px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(15,41,105,.35); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--th-sky); color: var(--th-blue-deep); display: grid; place-items: center; margin-bottom: 16px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-family: var(--head); font-size: 19px; color: var(--th-navy-2); margin-bottom: 6px; }
.card p { color: var(--ink-2); font-size: 15px; }
.gain { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .gain { grid-template-columns: 1fr; } }
.gain div { border-left: 4px solid var(--th-yellow); background: var(--white); border-radius: 0 12px 12px 0; padding: 16px 18px; }
.gain b { display: block; font-family: var(--head); font-size: 17px; color: var(--th-navy-2); }
.gain span { color: var(--ink-2); font-size: 14.5px; }
.roles { display: flex; flex-wrap: wrap; gap: 10px; }
.roles span { font-family: var(--head); font-weight: 600; font-size: 14.5px; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid #C7D7F8; color: var(--th-blue-deep); }

/* ---------- application form ---------- */
.apply-form { background: var(--white); border-radius: 18px; padding: 32px; border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgba(15,41,105,.35); border-top: 5px solid var(--th-yellow); }
.apply-form fieldset { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 28px; }
.apply-form legend { grid-column: 1 / -1; font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--th-navy-2); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); width: 100%; }
.af { display: flex; flex-direction: column; gap: 6px; }
.af.wide { grid-column: 1 / -1; }
.af label, .af .lbl { font-weight: 600; font-size: 14.5px; }
.lbl-note { font-weight: 400; color: var(--ink-2); font-size: 13px; margin-left: 4px; }
.af input, .af select, .af textarea { width: 100%; padding: 12px 14px; border: 1px solid #D1D5DB; border-radius: 10px; background: var(--white); font-size: 15.5px; }
.af input:focus, .af select:focus, .af textarea:focus { outline: 3px solid rgba(45,99,213,.22); border-color: var(--th-blue); }
.af [aria-invalid="true"] { border-color: var(--err); outline: 2px solid rgba(194,65,12,.2); }
.af small, .apply-form > small { color: var(--err); font-weight: 600; font-size: 13px; }
.af-checks, .af-radios { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 14px; }
.af-checks label, .af-radios label { display: flex; gap: 9px; align-items: center; font-weight: 500; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.af-checks label:has(input:checked), .af-radios label:has(input:checked) { border-color: var(--th-blue); background: #EEF4FF; }
.af-checks input, .af-radios input { width: auto; accent-color: var(--th-blue); }
.af-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.af-consent input { margin-top: 3px; accent-color: var(--th-blue); flex-shrink: 0; width: 18px; height: 18px; }
.af-consent a { color: var(--th-blue); font-weight: 600; }
.af-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.af-submit p { font-size: 14.5px; color: var(--err); font-weight: 600; }
.apply-done { background: var(--white); border-radius: 18px; padding: 44px 30px; text-align: center; border-top: 5px solid var(--th-mint); border: 1px solid var(--line); }
.apply-done h3 { font-family: var(--head); font-size: 26px; color: var(--th-navy-2); margin-bottom: 8px; }
.apply-done p { color: var(--ink-2); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 600px) { .apply-form { padding: 22px 18px; } .apply-form fieldset { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.th-foot { background: var(--th-navy-2); color: rgba(255,255,255,.8); padding: 36px 0; font-size: 14px; }
.th-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.th-foot img { height: 24px; width: auto; }
.th-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.th-foot a { color: rgba(255,255,255,.85); text-decoration: none; }
.th-foot a:hover { color: var(--th-yellow); }
.af .lbl-note { color: var(--ink-2); font-weight: 400; }
.band-sky { background: #EEF4FF; }
.gain-cards .card { border-color: #D6E2FB; }
.gain-cards .card .ic { background: #FFF3D6; color: #B36B00; }

.ts-slot { margin-top: 18px; }
