/* === CV SPECIFIC STYLES === */

.cv-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === CV HEADER === */
.cv-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e0e0e0;
}

.contact-info {
  margin-top: 16px;
}

.location {
  font-size: 1.1em;
  color: #666;
  margin-bottom: 8px;
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-details a {
  color: #00796b;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.contact-details a:hover {
  color: #004d40;
  text-decoration: underline;
}

/* === CV SECTIONS === */
.cv-section {
  margin-bottom: 40px;
}

.cv-section h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
  font-family: 'Roboto', 'Raleway', sans-serif;
}

/* === SUMMARY === */
.summary p {
  margin-bottom: 16px;
  text-align: justify;
}

/* === LISTS === */
.expertise-list,
.accomplishments-list,
.memberships-list,
.citizenships-list,
.interests-list {
  list-style: none;
  padding: 0;
}

.expertise-list li,
.accomplishments-list li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.expertise-list li::before,
.accomplishments-list li::before {
  content: '•';
  color: #00796b;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2em;
}

.memberships-list li,
.citizenships-list li,
.interests-list li {
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.memberships-list li::before,
.citizenships-list li::before,
.interests-list li::before {
  content: '•';
  color: #00796b;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* === ROLES === */
.role {
  margin-bottom: 32px;
  padding: 24px;
  background: #fafafa;
  border-radius: 8px;
  border-left: 4px solid #00796b;
}

.role-header {
  margin-bottom: 16px;
}

.role-header h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #222;
  margin: 0 0 4px 0;
  font-family: 'Roboto', 'Raleway', sans-serif;
}

.role-title {
  font-size: 1.1rem;
  font-weight: 400;
  color: #00796b;
  display: block;
  margin-bottom: 4px;
  font-style: italic;
}

.duration {
  font-size: 0.95rem;
  color: #666;
  font-weight: 400;
}

.role-description p {
  margin-bottom: 12px;
  text-align: justify;
}

.role-description h4 {
  font-size: 1.05rem;
  font-weight: 500;
  color: #333;
  margin: 16px 0 8px 0;
  font-family: 'Roboto', 'Raleway', sans-serif;
}

.role-description ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.role-description ul li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.role-description ul li::before {
  content: '→';
  color: #00796b;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* === EDUCATION === */
.education .degree {
  padding: 20px;
  background: #fafafa;
  border-radius: 8px;
  border-left: 4px solid #00796b;
}

.education .degree h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #222;
  margin: 0 0 4px 0;
  font-family: 'Roboto', 'Raleway', sans-serif;
}

.education .qualification {
  font-size: 1.05rem;
  color: #00796b;
  display: block;
  margin-bottom: 4px;
  font-style: italic;
}

.education .duration {
  font-size: 0.95rem;
  color: #666;
  display: block;
  margin-bottom: 12px;
}

.education p {
  margin: 0;
  text-align: justify;
}

/* === PRINT ACTIONS === */
.print-actions {
  text-align: center;
  margin: 40px 0;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.print-btn {
  --md-filled-button-container-color: #00796b;
  --md-filled-button-label-text-color: white;
  --md-filled-button-hover-state-layer-color: #004d40;
  --md-filled-button-focus-state-layer-color: #004d40;
  --md-filled-button-pressed-state-layer-color: #004d40;
  font-family: 'Roboto', 'Raleway', sans-serif;
}

.pdf-btn {
  --md-outlined-button-outline-color: #00796b;
  --md-outlined-button-label-text-color: #00796b;
  --md-outlined-button-hover-state-layer-color: #00796b;
  --md-outlined-button-focus-state-layer-color: #00796b;
  --md-outlined-button-pressed-state-layer-color: #00796b;
  font-family: 'Roboto', 'Raleway', sans-serif;
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
  .contact-details {
    flex-direction: column;
    gap: 8px;
  }
  
  .role {
    padding: 16px;
  }
  
  .cv-section h2 {
    font-size: 1.3rem;
  }
  
  .role-header h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .cv-content {
    padding: 0 8px;
  }
  
  .cv-section {
    margin-bottom: 32px;
  }
  
  .role {
    padding: 12px;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

/* === PRINT STYLES === */
@media print {
  /* Hide non-essential elements for printing */
  .back-nav,
  .print-actions,
  footer {
    display: none !important;
  }
  
  /* Optimise layout for print */
  #wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: white !important;
  }
  
  .cv-content {
    max-width: none !important;
  }
  
  /* Ensure proper page breaks */
  .cv-section {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  
  .role {
    page-break-inside: avoid;
    break-inside: avoid;
    background: white !important;
    border: 1px solid #ccc !important;
    margin-bottom: 16px !important;
  }
  
  /* Adjust typography for print */
  body {
    font-size: 12pt !important;
    line-height: 1.4 !important;
  }
  
  h1 {
    font-size: 24pt !important;
  }
  
  .cv-section h2 {
    font-size: 16pt !important;
  }
  
  .role-header h3 {
    font-size: 14pt !important;
  }
  
  .role-title {
    font-size: 12pt !important;
  }
  
  /* Adjust colours for print */
  .contact-details a {
    color: #333 !important;
  }
  
  .role-title {
    color: #333 !important;
  }
  
  /* Ensure good contrast */
  .expertise-list li::before,
  .accomplishments-list li::before,
  .memberships-list li::before,
  .citizenships-list li::before,
  .role-description ul li::before {
    color: #333 !important;
  }
  
  /* Remove borders that don't print well */
  .cv-header {
    border-bottom: 2px solid #333 !important;
  }
  
  .cv-section h2 {
    border-bottom: 1px solid #333 !important;
  }
  
  .role {
    border-left: 4px solid #333 !important;
  }
  
  .education .degree {
    border-left: 4px solid #333 !important;
  }
}