:root {
  --bg-section: #f8f8f8;
  --bg-main: white;
  --accent-color: #2c5282; /* Professional navy blue */
  --spacing-xs: 0.375rem;   /* 6px */
  --spacing-sm: 0.75rem;    /* 12px */
  --spacing-md: 1.25rem;    /* 20px */
  --spacing-lg: 1.875rem;   /* 30px */
  --spacing-xl: 2.5rem;     /* 40px */
  --max-content-width: 50rem; /* 800px */
}

html {
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  max-width: var(--max-content-width);
  margin: auto;
  background: var(--bg-main);
  padding: var(--spacing-md);
}

p {
  margin: var(--spacing-xs) auto;
  padding: 0 var(--spacing-lg);
  text-align: left;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: var(--accent-color);
}

h1 + div,
h1 + section {
  background: var(--bg-section);
  padding: var(--spacing-xs) 0;
}

/* CSS for Top Title Bar of Resume */
#resume_head {
  background: var(--bg-section);
  padding: 0.625rem; /* 10px */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;

  div {
    display: flex;
    align-items: flex-end;
  }

  h1 {
    margin: 0;
    font-size: 2.5rem;
    color: var(--accent-color);
    font-weight: 700;
  }

  .linkedin-link {
    margin-left: var(--spacing-sm);
    align-self: center;
  }

  .linkedin-logo {
    width: 32px;
    height: 32px;
    display: block;
  }

  p {
    margin: var(--spacing-sm) var(--spacing-sm) 0 var(--spacing-sm);
    padding: 0;
    font-size: 125%;
    font-weight: 600;
    font-style: italic;
  }
}

.main_section_heading {
  margin: var(--spacing-xl) auto var(--spacing-xs) auto;
  color: var(--accent-color);
  font-weight: 600;
}

/* CSS for Professional Experience Section */
.job_title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-weight: bold;
  margin-top: var(--spacing-sm);
  padding: 0 var(--spacing-md) 0 var(--spacing-sm);

  span:nth-child(2) {
    text-align: end;
  }
}

div.job_title ~ ul {
  margin-top: 0;
}

/* CSS for Technical Skills */
.skill_name {
  font-weight: bold;
}

/* CSS for Education Section */
.no_list_style {
  list-style-type: none;
  padding-left: 0;
  margin-left: -1.125rem; /* -18px */
}

h2 {
  margin: auto var(--spacing-sm);
}

h2 + ul {
  margin: 0.5rem auto 1rem; /* 8px auto 16px */
}

h3 {
  font-size: 1.0em;
  font-weight: normal;
  font-style: italic;
  margin: 0.5rem auto var(--spacing-xs) var(--spacing-lg); /* 8px auto 6px 30px */
  padding-bottom: 0;
}

h3 + p {
  margin: auto 1.5rem; /* auto 24px */
}

summary {
  cursor: pointer;
}

li {
  list-style-type: disc;
  padding: 0 var(--spacing-sm) 0 0;
}
