:root {
  --primary-color: #1a1a1a;
  --secondary-color: #2c3e50;
  --accent-color: #0066cc;
  --text-color: #333;
  --light-gray: #e8e8e8;
  --border-color: #ccc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  max-width: 850px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fff;
}

/* Header - Name and Title */
h1 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
  font-weight: 700;
  text-align: center;
}

/* Subtitle - CSPO */
h2 {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-align: center;
}

/* Contact info paragraph */
body > p:first-of-type {
  text-align: center;
  font-size: 0.95rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid var(--accent-color);
}

/* Main section headers (Profile, Experience, Education) */
h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-gray);
  font-weight: 600;
}

/* Job titles */
h4 {
  font-size: 1.15rem;
  color: var(--secondary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Paragraphs */
p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Lists - achievements and responsibilities */
ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style-type: disc;
}

li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

/* Nested lists */
ul ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  margin-left: 2.5rem;
  list-style-type: circle;
}

ul ul li {
  margin-bottom: 0.4rem;
}

/* Links */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #004499;
  text-decoration: underline;
}

/* Strong/bold text */
strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Print styles */
@media print {
  body {
    max-width: 100%;
    padding: 0.5in 0.75in;
    font-size: 11pt;
  }
  
  h1 {
    font-size: 1.8rem;
    page-break-after: avoid;
  }
  
  h2 {
    font-size: 1rem;
    page-break-after: avoid;
  }
  
  h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    page-break-after: avoid;
  }
  
  h4 {
    font-size: 1rem;
    margin-top: 1rem;
    page-break-after: avoid;
  }
  
  body > p:first-of-type {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }
  
  ul {
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
  
  li {
    margin-bottom: 0.3rem;
    line-height: 1.5;
  }
  
  ul ul li {
    margin-bottom: 0.2rem;
  }
  
  /* Remove link styling for print */
  a {
    color: var(--text-color);
    text-decoration: none;
  }
  
  /* Ensure sections don't break awkwardly */
  h3, h4 {
    page-break-after: avoid;
  }
  
  h4 + ul {
    page-break-before: avoid;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  body {
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  h4 {
    font-size: 1.05rem;
  }
  
  body > p:first-of-type {
    font-size: 0.9rem;
  }
  
  ul {
    margin-left: 1.2rem;
  }
}
