/* ============================================
   DFI Training Academy - Professional Styles
   Government/Compliance Training Aesthetic
   ============================================ */

/* CSS Variables - Color System */
:root {
  /* Primary Colors */
  --color-navy: #1a2744;
  --color-navy-dark: #0f1729;
  --color-navy-light: #2a3a5a;
  
  /* Accent Colors */
  --color-red: #b22234;
  --color-red-dark: #8b1a28;
  --color-red-light: #d42d42;
  
  /* Neutral Colors */
  --color-charcoal: #3d4550;
  --color-gray-dark: #5a6270;
  --color-gray: #8a919c;
  --color-gray-light: #c5c9d0;
  --color-gray-lighter: #e8eaed;
  --color-gray-lightest: #f5f6f7;
  
  /* Background & Text */
  --color-white: #ffffff;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #4a4a4a;
  --color-text-muted: #6a6a6a;
  
  /* Phase Indicators */
  --color-phase-1: #1a2744;
  --color-phase-2: #3d4550;
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Container */
  --container-max: 1100px;
  --container-padding: 1.5rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  
  /* Shadows (subtle, no glow) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.1);
  
  /* Transitions (minimal) */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
}

/* ============================================
   Base Styles & Reset
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-md) 0;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-navy);
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-md) 0;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-red);
}

a:focus {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}

/* Lists */
ul, ol {
  margin: 0 0 var(--space-md) 0;
  padding-left: 1.5rem;
}

li {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

li:last-child {
  margin-bottom: 0;
}

/* ============================================
   Layout Components
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header */
header {
  background-color: var(--color-white);
  border-bottom: 2px solid var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  height: 56px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

nav a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-charcoal);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

nav a:hover {
  color: var(--color-navy);
  background-color: var(--color-gray-lightest);
  text-decoration: none;
}

nav a.active {
  color: var(--color-navy);
  background-color: var(--color-gray-lighter);
  font-weight: 600;
}

/* Main Content */
main {
  padding: var(--space-2xl) 0;
  min-height: calc(100vh - 200px);
}

/* Page Header */
.page-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-gray-lighter);
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

.page-subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  max-width: 600px;
}

/* ============================================
   Cards
   ============================================ */

.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-lighter);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.card:last-child {
  margin-bottom: 0;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-gray-lighter);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
}

.card-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* Card Variants */
.card--highlight {
  border-left: 4px solid var(--color-red);
}

.card--phase-1 {
  border-left: 4px solid var(--color-phase-1);
}

.card--phase-2 {
  border-left: 4px solid var(--color-phase-2);
}

.card--checklist {
  background-color: var(--color-gray-lightest);
  border-color: var(--color-gray-light);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  background-color: var(--color-gray-lightest);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn:focus {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}

/* Primary Button */
.btn--primary {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn--primary:hover {
  background-color: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  color: var(--color-white);
  text-decoration: none;
}

/* Secondary Button */
.btn--secondary {
  background-color: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--secondary:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
  text-decoration: none;
}

/* Accent Button */
.btn--accent {
  background-color: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.btn--accent:hover {
  background-color: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: var(--color-white);
  text-decoration: none;
}

/* Ghost Button */
.btn--ghost {
  background-color: transparent;
  color: var(--color-navy);
  border-color: transparent;
}

.btn--ghost:hover {
  background-color: var(--color-gray-lightest);
  text-decoration: none;
}

/* Button Sizes */
.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Button Group */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* ============================================
   Forms
   ============================================ */

.form-section {
  max-width: 640px;
  margin: 0 auto;
}

.form-intro {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.form-intro h1 {
  margin-bottom: var(--space-sm);
}

.form-intro p {
  color: var(--color-text-secondary);
}

.form-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-lighter);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

label .required {
  color: var(--color-red);
  margin-left: var(--space-xs);
}

label .optional {
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: var(--space-xs);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-primary);
  line-height: 1.5;
  color: var(--color-text-primary);
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-gray);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--color-gray-dark);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.1);
}

input:disabled,
select:disabled,
textarea:disabled {
  background-color: var(--color-gray-lightest);
  cursor: not-allowed;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233d4550' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Form Help Text */
.form-help {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Form Note */
.form-note {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-gray-lighter);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* Cohort Info Box */
.cohort-info {
  background-color: var(--color-gray-lightest);
  border: 1px solid var(--color-gray-lighter);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.cohort-info-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.cohort-info-title::before {
  content: "ℹ";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: var(--color-navy);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.cohort-info p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ============================================
   Document Portal Styles
   ============================================ */

.document-portal {
  max-width: 900px;
}

/* Phase Separator */
.phase-separator {
  display: flex;
  align-items: center;
  margin: var(--space-2xl) 0 var(--space-xl);
  gap: var(--space-md);
}

.phase-separator::before,
.phase-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gray-light), transparent);
}

.phase-separator-text {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray);
  padding: var(--space-xs) var(--space-md);
  background-color: var(--color-gray-lightest);
  border-radius: var(--radius-sm);
}

/* Phase Header */
.phase-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  background-color: var(--color-navy);
  border-radius: var(--radius-sm);
}

.phase-badge--2 {
  background-color: var(--color-charcoal);
}

.phase-title-group {
  flex: 1;
}

.phase-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
}

.phase-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* Document Section */
.document-section {
  margin-bottom: var(--space-xl);
}

.document-section:last-child {
  margin-bottom: 0;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-dark);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-gray-lighter);
}

/* Document List */
.document-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.document-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-gray-lighter);
}

.document-item:last-child {
  border-bottom: none;
}

.document-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gray-lightest);
  border-radius: var(--radius-md);
  font-size: 1.125rem;
}

.document-content {
  flex: 1;
  min-width: 0;
}

.document-link {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-navy);
  text-decoration: none;
  line-height: 1.4;
}

.document-link:hover {
  color: var(--color-red);
  text-decoration: underline;
}

.document-meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.document-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-navy);
  background-color: var(--color-gray-lightest);
  border-radius: var(--radius-sm);
  margin-left: var(--space-sm);
}

.document-tag--external {
  color: var(--color-red);
  background-color: rgba(178, 34, 52, 0.08);
}

/* Core Documents - Special Styling */
.core-documents {
  background-color: var(--color-navy);
  color: var(--color-white);
  border: none;
}

.core-documents .card-title {
  color: var(--color-white);
}

.core-documents .document-link {
  color: var(--color-white);
}

.core-documents .document-link:hover {
  color: #ffccd1;
}

.core-documents .document-icon {
  background-color: rgba(255, 255, 255, 0.1);
}

.core-documents .section-label {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
}

.core-documents .document-item {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-gray-lighter);
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-checkbox {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  margin-top: 2px;
}

.checklist-text {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-primary);
}

/* ============================================
   Status/Alert Messages
   ============================================ */

.alert {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.alert--success {
  background-color: #f0f9f4;
  border: 1px solid #c8e6d5;
  color: #1e5f3e;
}

.alert--error {
  background-color: #fdf2f2;
  border: 1px solid #f5c6cb;
  color: var(--color-red-dark);
}

.alert--info {
  background-color: #f0f4f9;
  border: 1px solid #c5d5e8;
  color: var(--color-navy);
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-small {
  font-size: 0.875rem;
}

.text-large {
  font-size: 1.125rem;
}

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* ============================================
   Footer
   ============================================ */

footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  margin-top: var(--space-2xl);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo img {
  height: 40px;
  width: auto;
  opacity: 0.9;
}

.footer-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }
  
  h1 {
    font-size: 1.625rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
  
  .logo img {
    height: 44px;
  }
  
  nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: var(--space-xs);
  }
  
  nav a {
    padding: var(--space-sm);
    font-size: 0.875rem;
  }
  
  .hero {
    padding: var(--space-xl) var(--space-md);
  }
  
  .hero h1 {
    font-size: 1.875rem;
  }
  
  .card {
    padding: var(--space-lg);
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .phase-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  
  .document-item {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .document-icon {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .card {
    padding: var(--space-md);
  }
  
  .form-card {
    padding: var(--space-lg);
  }
  
  .phase-separator {
    margin: var(--space-xl) 0 var(--space-lg);
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  header,
  footer,
  .btn,
  button {
    display: none !important;
  }
  
  .card {
    border: 1px solid #ccc;
    box-shadow: none;
    break-inside: avoid;
  }
  
  a {
    text-decoration: none;
    color: #000;
  }
  
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.75rem;
    color: #666;
  }
}

/* =========================================================
   OVERRIDE PATCH — Sharper, more premium "academy" feel
   Paste at END of file (after existing CSS)
   Keeps responsive behavior intact.
   ========================================================= */

/* 1) Softer site background so whitespace feels intentional */
body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(26,39,68,.08), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(178,34,52,.06), transparent 55%),
    var(--color-gray-lightest);
}

/* 2) Header: add a modern accent stripe, soften heavy border */
header {
  border-bottom: 1px solid var(--color-gray-lighter);
}

header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-red));
}

/* 3) Main: slightly tighter top/bottom spacing */
main {
  padding: 2.5rem 0;
}

/* 4) Hero: less “template”, more academy portal */
.hero {
  text-align: left;
  padding: 2.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f2f5fb 100%);
  border: 1px solid var(--color-gray-lighter);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: var(--space-sm);
}

.hero p {
  font-size: 1.0625rem;
  max-width: 72ch;
  margin: 0 0 var(--space-lg);
}

/* 5) Cards: more depth + cleaner shape */
.card,
.form-card {
  border-radius: 14px;
  border: 1px solid rgba(197, 201, 208, 0.9);
  box-shadow: var(--shadow-md);
}

.card:hover,
.form-card:hover {
  box-shadow: var(--shadow-lg);
}

/* 6) Section label: more “portal” */
.section-label {
  border-bottom: 2px solid rgba(26,39,68,.12);
}

/* 7) Document items: convert flat list to “clickable rows” */
.document-item {
  border: 1px solid var(--color-gray-lighter);
  border-radius: 12px;
  background: #fff;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.document-item:last-child {
  margin-bottom: 0;
}

.document-item:hover {
  border-color: rgba(26,39,68,.25);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.document-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--color-gray-lighter);
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
  font-size: 1rem;
}

/* 8) Buttons: slightly more premium */
.btn {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.btn--secondary {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

/* 9) Core Documents card: keep the strong look but soften contrast edges */
.core-documents {
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

/* 10) Mobile: preserve Kimi’s responsive behavior + tighten hero padding */
@media (max-width: 768px) {
  .hero {
    padding: 1.5rem;
  }
  .hero h1 {
    font-size: 1.875rem;
  }
}

/* ===== Home Page “Welcome / Start here” enhancements ===== */

.callout {
  margin-top: 1rem;
  border-left: 5px solid var(--color-navy);
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--color-gray-lighter);
  box-shadow: var(--shadow-sm);
}

.hero--split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.hero-graphic {
  width: 100%;
  max-width: 460px;
  height: auto;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--color-gray-lighter);
  border-radius: 14px;
  background: #fff;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, var(--color-navy), var(--color-navy-dark));
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.step-title {
  margin: 0 0 6px 0;
}

.step-text {
  margin: 0 0 8px 0;
  color: var(--color-text-secondary);
}

.step-link a {
  text-decoration: none;
  font-weight: 600;
}

.step-link a:hover {
  text-decoration: underline;
}

/* Responsive: stack hero columns on mobile */
@media (max-width: 768px) {
  .hero--split {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 1.5rem;
  }
}

/* ===== Header refinement (academy feel) ===== */

.logo {
  align-items: center;
}

.logo img {
  height: 52px;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-navy);
}

.logo-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-dark);
}

nav a {
  font-weight: 600;
}

nav a.active {
  background-color: rgba(26,39,68,0.08);
  border-radius: 10px;
}

/* ===== Subtle Blueprint Grid Background (Hero only) ===== */

.hero {
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* Two layered subtle grids */
  background-image:
    linear-gradient(rgba(26,39,68,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,39,68,0.06) 1px, transparent 1px);

  background-size: 34px 34px;   /* grid spacing */
  opacity: 0.40;                /* VERY subtle */
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
}
/* Fix Core Documents mini-card text visibility */

.core-documents .document-item {
  background-color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
}

.core-documents .document-link {
  color: var(--color-navy);
}

.core-documents .document-link:hover {
  color: var(--color-red);
}

.core-documents .document-meta {
  color: var(--color-gray-dark);
}
