:root {
  /* Colors */
  --color-primary: #d2a84c;
  --color-dark: #333;
  --color-light: #fff;
  --color-border: #464443;
  
  /* Typography */
  --font-family-base: "Montserrat", sans-serif;
  --font-size-base: 1rem;
  --font-size-small: 0.875rem;
  --font-size-large: 1.25rem;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  
  /* Layout */
  --container-width: 1140px;
  --header-height: 286px;
}

/* Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  position: relative;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  color: var(--color-dark);
}

#template {
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -512px;
    display: none;
}

#template img {
    width: 1024px;
    margin: 0 auto;
}

.light-font {
    font-weight: 300;
}

/* Layout */
.content-wrapper {
  width: var(--container-width);
  margin: 0 auto;
}

/* Header Styles */
#dark-header {
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-dark);
  padding: 83px 0 0 0;
  margin-bottom: 42px;
  color: var(--color-light);
  text-align: center;
}

#dark-header h1 {
  border: 2px solid var(--color-primary);
  display: inline;
  font-size: 42px;
  margin-left: -5px;
  letter-spacing: 4px;
  padding: 7px 40px;
  line-height: 70px;
}

#dark-header h2 {
  margin: 24px 0;
  letter-spacing: 4px;
  font-size: 20px;
}

#info-wrapper {
  font-size: var(--font-size-small);
  margin-top: 26px;
  letter-spacing: 1.48px;
  color: var(--color-primary);
}

#info-wrapper .info-content {
  padding: 0 12px;
  color: var(--color-light);
  text-decoration: none;
}

a.info-content:hover {
  text-decoration: underline;
}

#info-wrapper .info-content:first-child {
  padding-left: 0;
}

/* Resume Sections */
.resume-col {
  border-left: 1px solid var(--color-border);
  color: var(--color-dark);
}

.resume-col:first-child {
  border-left: none;
}

.resume-section {
  border: 0;
}

.resume-section .card-title {
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  line-height: 66px;
}

/* Summary */
.summary-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-dark);
  margin: 0;
}

/* Skills Tags */
.skill-group {
  margin-bottom: 0.75rem;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.tags-list > div {
  border: 2px solid var(--color-primary);
  border-radius: 10px;
  margin: 4px 2px;
  padding: 2px 8px;
  text-align: center;
  display: inline-block;
  font-size: 0.85rem;
}

/* References */
.ref-note {
  font-style: italic;
  color: #888;
  font-size: 0.85rem;
}

/* Experience Section */
.event-title,
.event-subtitle {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-dark);
}

.exp-desc {
  margin-bottom: 2.2rem;
}

.exp-desc:last-of-type {
  margin-bottom: 0;
}

/* Print Button */
#print-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--color-dark);
  color: var(--color-light);
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  padding: 10px 18px;
  font-family: var(--font-family-base);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 100;
  transition: background-color 0.2s;
}

#print-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-dark);
}

/* Responsive Design */
@media only screen and (max-width: 750px) {
  #dark-header {
    height: auto;
    padding: 60px 0 20px;
  }

  #dark-header h1 {
    font-size: 28px;
    padding: 12px 30px;
  }

  #dark-header h2 {
    font-size: 14px;
  }

  #info-wrapper span[aria-hidden] {
    display: none;
  }

  #info-wrapper .info-content {
    display: block;
  }

  .content-wrapper {
    width: 100%;
  }

  .row.my-3 {
    display: flex;
    flex-direction: column;
  }

  .edu-col {
    order: 2;
  }

  .exp-col {
    order: 1;
  }
}

@media only screen and (min-width: 751px) and (max-width: 970px) {
  #dark-header {
    height: auto;
    padding-bottom: 20px;
  }

  #info-wrapper span[aria-hidden] {
    display: none;
  }

  #info-wrapper .info-content {
    display: block;
  }

  .content-wrapper {
    width: 100%;
  }
}

@media only screen and (min-width: 971px) and (max-width: 1170px) {
  .content-wrapper {
    width: 100%;
  }
}

/* Print Styles */
@media print {
  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-size: 11px;
  }

  #dark-header {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    height: auto;
    padding: 40px 0 16px;
    margin-bottom: 0;
  }

  #dark-header h1 {
    font-size: 28px;
  }

  #dark-header h2 {
    font-size: 14px;
    margin: 12px 0;
  }

  #print-btn {
    display: none;
  }

  .resume-section .card-title {
    line-height: 40px;
  }

  .exp-desc {
    margin-bottom: 1rem;
  }

  .content-wrapper {
    width: 100%;
  }

  .resume-col {
    break-inside: avoid;
  }
}
