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

body {
  font-family: Arial, sans-serif;
  font-size: 10.5pt;
  line-height: 1.5;
  color: #000;
  background-color: #4a4a4a;
  padding: 20px;
  /* font-weight: 400; */
}

/* PDF Paper Container */
#container--main {
  max-width: 816px;
  margin: 0 auto;
  background-color: #fff;
  padding: 45px 65px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  min-height: 1056px;
  text-align: justify;
}

/* Header Section */
.header-section {
  text-align: center;
  margin-bottom: 25px;
}

#user--name {
  font-family: Arial, sans-serif;
  font-size: 14pt;
  font-weight: 700;
  color: #000;
  line-height: 1.15;
  margin-bottom: 2px;
}

.contact-line {
  font-family: Arial, sans-serif;
  font-size: 12pt;
  font-weight: 400;
  color: #000;
  line-height: 1.15;
  margin-bottom: 0;
}

.contact-line a {
  color: #1155cc;
  text-decoration: none;
  font-weight: 400;
}

.contact-line a:hover {
  text-decoration: underline;
}

.contact-item {
  display: inline;
}

.contact-separator {
  display: inline;
  margin: 0 4px;
}

.location {
  font-family: Arial, sans-serif;
  font-size: 12pt;
  font-weight: 400;
  color: #000;
  line-height: 1.15;
}

/* Section Styling */
.section--page {
  margin-bottom: 18px;
}

.section--page h2 {
  font-family: Arial, sans-serif;
  font-size: 10.5pt;
  font-weight: 700;
  color: #000;
  margin-bottom: 6px;
  padding-bottom: 0;
  border: none;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.5;
}

/* Work History */
.job-entry {
  margin-bottom: 12px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0;
}

.job-title {
  font-family: Arial, sans-serif;
  font-size: 10.5pt;
  font-style: italic;
  color: #000;
  font-weight: 530;
  line-height: 1.5;
}

.job-date {
  font-family: Arial, sans-serif;
  font-size: 10.5pt;
  font-style: italic;
  color: #000;
  font-weight: 530;
  white-space: nowrap;
  line-height: 1.5;
}

.job-entry ul {
  margin: 0;
  padding-left: 40px;
  list-style-type: disc;
}

.job-entry li {
  font-family: Arial, sans-serif;
  font-size: 10.5pt;
  color: #000;
  font-weight: 530;
  margin-bottom: 5px;
  line-height: 1.5;
  text-align: justify;
}

.job-entry li:last-child {
  margin-bottom: 0;
}

/* Education */
.education-entry {
  margin-bottom: 8px;
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0;
}

.education-school {
  font-family: Arial, sans-serif;
  font-size: 10.5pt;
  font-style: normal;
  color: #000;
  font-weight: 530;
  line-height: 1.5;
}

.education-date {
  font-family: Arial, sans-serif;
  font-size: 10.5pt;
  font-style: normal;
  color: #000;
  font-weight: 530;
  line-height: 1.5;
}

.education-entry ul {
  margin: 0;
  padding-left: 40px;
  list-style-type: disc;
}

.education-entry li {
  font-family: Arial, sans-serif;
  font-size: 10.5pt;
  color: #000;
  font-weight: 530;
  line-height: 1.5;
}

/* Tech Stack / Skills */
.skills-list {
  font-family: Arial, sans-serif;
  font-size: 10.5pt;
  color: #000;
  line-height: 1.5;
  margin: 0;
  padding-left: 40px;
  list-style-type: disc;
}

.skills-list li {
  font-family: Arial, sans-serif;
  font-size: 10.5pt;
  color: #000;
  font-weight: 530;
  line-height: 1.5;
  margin-bottom: 0;
}

.skills-list li strong {
  font-weight: 700;
  color: #000;
}

/* Print Styles */
@media print {
  body {
    background: none;
    padding: 0;
  }

  #container--main {
    box-shadow: none;
    padding: 0.5in 0.75in;
    max-width: 100%;
    min-height: auto;
  }

  .contact-line a {
    color: #1155cc;
  }
}

/* Responsive - Tablet */
@media (max-width: 850px) {
  body {
    padding: 10px;
  }

  #container--main {
    padding: 40px 30px;
  }

  .job-header,
  .education-header {
    flex-direction: column;
    gap: 0;
  }

  .job-date,
  .education-date {
    font-size: 10pt;
  }

  .job-entry ul,
  .education-entry ul,
  .skills-list {
    padding-left: 25px;
  }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
  body {
    padding: 8px;
    background-color: #fff;
  }

  #container--main {
    padding: 20px 16px;
    box-shadow: none;
    min-height: auto;
    text-align: left;
  }

  /* Header adjustments for mobile */
  .header-section {
    margin-bottom: 20px;
  }

  #user--name {
    font-size: 18pt;
    margin-bottom: 8px;
  }

  .contact-line {
    font-size: 10pt;
    line-height: 1.6;
    word-break: break-word;
  }

  .location {
    font-size: 10pt;
    margin-top: 4px;
  }

  /* Stack contact items vertically on mobile */
  .contact-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 0;
  }

  .contact-item {
    display: inline-block;
  }

  .contact-separator {
    display: inline;
    margin: 0 6px;
    color: #888;
  }

  /* Section headers */
  .section--page {
    margin-bottom: 24px;
  }

  .section--page h2 {
    font-size: 12pt;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd;
  }

  /* Job entries - better spacing */
  .job-entry {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
  }

  .job-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .job-header {
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
  }

  .job-title {
    font-size: 11pt;
    font-weight: 600;
    line-height: 1.4;
  }

  .job-date {
    font-size: 9.5pt;
    color: #555;
    font-weight: 400;
  }

  .job-entry ul {
    padding-left: 20px;
    margin-top: 8px;
  }

  .job-entry li {
    font-size: 10pt;
    margin-bottom: 10px;
    line-height: 1.6;
    text-align: left;
    font-weight: 400 !important;
  }

  /* Education entries */
  .education-entry {
    margin-bottom: 16px;
  }

  .education-header {
    flex-direction: column;
    gap: 2px;
  }

  .education-school {
    font-size: 11pt;
    font-weight: 600;
  }

  .education-date {
    font-size: 9.5pt;
    color: #555;
    font-weight: 400;
  }

  .education-entry ul {
    padding-left: 20px;
  }

  .education-entry li {
    font-size: 10pt;
    line-height: 1.6;
  }

  /* Skills list */
  .skills-list {
    padding-left: 20px;
  }

  .skills-list li {
    font-size: 10pt;
    line-height: 1.6;
    margin-bottom: 6px;
  }
}

/* Responsive - Small Mobile */
@media (max-width: 400px) {
  #container--main {
    padding: 16px 12px;
  }

  #user--name {
    font-size: 16pt;
  }

  .contact-line {
    font-size: 9pt;
  }

  .location {
    font-size: 9pt;
  }

  .job-title,
  .education-school {
    font-size: 10.5pt;
  }

  .job-entry li,
  .education-entry li,
  .skills-list li {
    font-size: 9.5pt;
    font-weight: 400 !important;
  }
}
