* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* Updated font-family declaration to properly use Raleway */
  font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #e8e9e3;
  margin: 0;
  padding: 0;
}

.top-nav {
  background: white;
  border-bottom: 1px solid #e5e5e5;
  padding: 0.75rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0066cc;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #0066cc;
}

.pnm-hero {
  background: #e8e9e3;
  padding: 5rem 0;
  border-bottom: 1px solid #e8e9e3;
}

.pnm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.main-title {
  font-size: 3rem;
  font-weight: 800;
  color: #333;
  text-align: center;
}

.btn-outline {
  background: none;
  border: 2px solid #0066cc;
  color: #0066cc;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
  background-color: #0066cc;
  color: white;
}

.btn-full-width {
  width: 100%;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
}

.sidebar {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  height: fit-content;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-links {
  list-style: none;
}

.nav-links li {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: block;
  padding: 1rem 0;
  color: #666;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
  color: #0066cc;
}

.content {
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section {
  margin-bottom: 3rem;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #333;
}

.candidate-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  background: white;
}

.candidate-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #0066cc;
}

.candidate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.candidate-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.candidate-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f8f9fa;
  border: 3px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #666;
  overflow: hidden;
}

.candidate-avatar .candidate-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.candidate-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.25rem;
}

.candidate-description {
  color: #666;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.candidate-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.cv-link {
  color: #0066cc;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  text-transform: uppercase;
}

.cv-link:hover {
  color: #004499;
}

.accordion-item {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: white;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 2rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background: #f8f9fa;
}

.accordion-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: #0066cc;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.open {
  max-height: 5000px;
  padding: 0 2rem 2rem;
}

.accordion-content p {
  margin-bottom: 1.5rem;
  color: #666;
  line-height: 1.7;
  font-size: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.modal-close:hover {
  background: #f8f9fa;
}

.modal-body {
  padding: 3rem;
}

.candidate-photo {
  text-align: center;
  margin-bottom: 1rem;
}

.candidate-photo .candidate-avatar {
  width: 220px;
  height: 220px;
  font-size: 1.5rem;
  margin: 0 auto;
  overflow: hidden;
  border: 4px solid #e5e5e5;
}

.modal-body h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #333;
}

.modal-body p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .pnm-hero {
    padding: 2.5rem 1rem;
  }

  .main-title {
    font-size: 2.25rem;
    line-height: 1.3;
    text-align: center;
    padding: 0 0.5rem;
  }

  .main-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .sidebar {
    order: -1;
    padding: 1.5rem;
  }

  .nav-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-links li {
    margin-bottom: 0;
  }

  .nav-link {
    padding: 0.5rem 0;
    font-size: 0.9rem;
  }

  .candidate-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .candidate-actions {
    width: 100%;
    justify-content: space-between;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-outline {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    width: auto;
    min-width: 200px;
  }

  .candidate-card {
    padding: 1.5rem;
  }

  .candidate-info {
    gap: 1rem;
  }

  .candidate-name {
    font-size: 1.1rem;
  }

  .candidate-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .pnm-hero {
    padding: 3rem 0.5rem;
  }

  .main-title {
    font-size: 1.875rem;
    padding: 0 0.25rem;
  }

  .main-container {
    padding: 1.5rem 0.5rem;
    gap: 1.5rem;
  }

  .sidebar {
    padding: 1rem;
  }

  .candidate-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .candidate-avatar {
    width: 80px;
    height: 80px;
  }

  .btn-outline {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    min-width: 180px;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-content {
    margin: 1rem;
    max-height: 90vh;
    overflow-y: auto;
  }
}
