/* CAH portal chrome — header/footer shared by intro + entry pages */
:root {
  --primary: #0D8EBB;
  --primary-dark: #0A7AA3;
  --primary-light: #E8F4F8;
  --navy: #0F1729;
  --navy-light: #1A2E4D;
  --text-dark: #1A2332;
  --text-body: #4A5568;
  --text-light: #718096;
  --card-bg: #FAFCFF;
  --card-border: #DCE9F3;
  --card-fill: #F7FBFE;
  --stat-blue-from: #0A85B8;
  --stat-blue-to: #0D8EBB;
  --cta-from: #0A85B8;
  --cta-to: #0D8EBB;
  --footer-bg: #0F1E36;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px rgba(13,142,187,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 30px rgba(13,142,187,0.14);
  --max-width: 1200px;
  --header-height: 72px;
}

  /* ===== HEADER (shared) ===== */

  .header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--primary);
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 60px;
  }
  .header-inner {
    width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo {
    display: flex; align-items: center; gap: 10px;
    color: #fff; font-size: 20px; font-weight: 700; letter-spacing: 1px;
  }
  .logo-icon {
    display: none;
  }
  .nav {
    display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center;
  }
  .nav a {
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
  }
  .nav a.active {
    font-weight: 600;
  }
  .nav a.active::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0; right: 0;
    height: 3px;
    background: #fff;
    border-radius: 2px;
  }
  .header-actions {
    display: flex; align-items: center; gap: 12px;
  }
  .btn-header-login {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 20px;
    transition: background 0.2s;
  }
  .btn-header-login:hover { background: rgba(255,255,255,0.12); }
  .btn-header-register {
    background: #fff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .btn-header-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }



  /* ===== FOOTER (shared) ===== */
  .footer {
    clear: both;
    background: var(--footer-bg);
    padding: 56px 60px 32px;
    color: rgba(255,255,255,0.65);
  }
  .footer-inner { width: var(--max-width); margin: 0 auto; }
  .footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-left: 60px;
    padding-right: 0;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .footer-brand .logo { margin-bottom: 16px; }
  .footer-brand p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.5); }
  .footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 10px; }
  .footer-col a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
  .footer-col a:hover { color: #fff; }
  .footer-contact-item { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 10px; color: rgba(255,255,255,0.5); }
  .footer-contact-item svg { flex-shrink: 0; }
  .footer-contact-item strong { color: rgba(255,255,255,0.85); }
  .qr-code {
    width: 128px; height: 128px; background: #fff; border-radius: var(--radius-sm);
    margin-top: 14px; display: block;
    padding: 6px;
    box-sizing: border-box;
  }
  .footer-bottom {
    display: flex; justify-content: center; align-items: center;
    padding-top: 24px; font-size: 12px; color: rgba(255,255,255,0.35);
    text-align: center; line-height: 2;
  }
  .footer-links a { color: rgba(255,255,255,0.35); margin-left: 20px; transition: color 0.2s; }
  .footer-links a:hover { color: rgba(255,255,255,0.7); }



/* Chrome link colors — scoped to header/footer only (safe on Bootstrap pages) */
.header a { text-decoration: none; cursor: pointer; }
.header .nav a,
.header .nav a:link,
.header .nav a:visited {
  color: rgba(255, 255, 255, 0.88);
}
.header .nav a:hover,
.header .nav a.active,
.header .nav a.active:visited {
  color: #fff;
}
.header .btn-header-login,
.header .btn-header-login:link,
.header .btn-header-login:visited {
  color: rgba(255, 255, 255, 0.9);
}
.header #per-fun a,
.header #per-fun a:link,
.header #per-fun a:visited {
  color: #1A2332;
  text-decoration: none;
}
.footer a { text-decoration: none; cursor: pointer; }
.footer a,
.footer a:link,
.footer a:visited {
  color: rgba(255, 255, 255, 0.5);
}
.footer a:hover {
  color: #fff;
}
.footer .footer-contact-item,
.footer .footer-contact-item strong {
  color: rgba(255, 255, 255, 0.85);
}
.footer .footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer img.qr-code {
  display: block;
}
