* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--ncer-font);
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
}

/* Header */
.header {
  background: #1e4a99;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  padding: 0.5rem 0;
}

.nav a:hover,
.nav a.active {
  color: #ffd700;
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffd700;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1e4a99 0%, #2d5aa8 100%);
  color: #fff;
  padding: 8rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 0;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
  color: white;
}

.hero p {
  font-size: 2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

/* Join Our Team Section */
.join-team-section {
  background: #f8f9fa;
  padding: 5rem 2rem;
  text-align: center;
  margin-top: 0;
}

.join-team-section h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2rem;
}

.join-team-content {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 1.5rem;
  line-height: 1.8;
  color: #333;
}

.join-team-content p {
  margin-bottom: 1.5rem;
}

/* Filter Section */
.filter-section {
  max-width: 1200px;
  margin: 5rem auto 3rem;
  padding: 0 2rem;
}

.filter-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #1e4a99;
}

.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid #e5e5e5;
  background: #fff;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  color: #333;
}

.filter-btn:hover {
  border-color: #1e4a99;
  color: #1e4a99;
}

.filter-btn.active {
  border-color: #1e4a99;
  background: #1e4a99;
  color: #fff;
}

/* Job Listings */
.jobs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.job-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1rem;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.job-card:hover {
  border-color: #1e4a99;
  box-shadow: 0 8px 20px rgba(30, 74, 153, 0.15);
}

.job-card.expired {
  opacity: 0.7;
  border-color: #ccc;
}

.job-card.expired:hover {
  border-color: #999;
  transform: none;
}

.expired-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #dc3545;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.job-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1e4a99;
}

.job-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.job-meta .deadline-expired {
  color: #dc3545;
  font-weight: 600;
}

.job-description {
  color: #4a4a4a;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.job-preview {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
  border-left: 3px solid #1e4a99;
}

.apply-btn {
  background: #1e4a99;
  color: #fff;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
  display: inline-block;
  text-decoration: none;
}

.apply-btn:hover {
  background: #163a7a;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(30, 74, 153, 0.3);
}

.apply-btn.disabled {
  background: #6c757d;
  cursor: not-allowed;
  pointer-events: none;
}

/* CTA Section */
.cta-section {
  background: #1e4a99;
  padding: 5rem 2rem;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.cta-section p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

/* The CV button is gone; the address is shown as plain text instead. */
.cta-email {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  word-break: break-word;
}

/* Footer */
.footer {
  background: #1e4a99;
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: #666;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1e4a99;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

.modal-header {
  background: linear-gradient(135deg, #1e4a99 0%, #2d5aa8 100%);
  color: #fff;
  padding: 3rem 3rem 2rem;
  border-radius: 16px 16px 0 0;
  position: relative;
}

.modal-header.expired {
  background: linear-gradient(135deg, #6c757d 0%, #999 100%);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.modal-meta {
  display: flex;
  gap: 2rem;
  font-size: 1rem;
  opacity: 0.95;
  flex-wrap: wrap;
}

.modal-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-body {
  padding: 3rem;
}

.modal-section {
  margin-bottom: 2.5rem;
}

.modal-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e4a99;
}

.modal-section p {
  color: #4a4a4a;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Modal section list styling */
.modal-section ul {
  list-style: none;
  padding: 0;
  color: #4a4a4a;
  line-height: 1.4;
}

.modal-section ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
}

.modal-section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #1e4a99;
  font-weight: 700;
  font-size: 1.5rem;
}

/* Sub-bullet list styling */
.modal-section ul .sub-list {
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  padding-left: 2rem;
  list-style: none;
}

.modal-section ul .sub-item {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
  color: #4a4a4a;
  line-height: 1.4;
}

.modal-section ul .sub-item::before {
  content: '◦';
  position: absolute;
  left: 0;
  color: #1e4a99;
  font-weight: 700;
  font-size: 1.5rem;
}

.modal-highlight {
  background: #f0f4ff;
  border-left: 4px solid #1e4a99;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.modal-highlight h4 {
  color: #1e4a99;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.modal-highlight ul {
  margin-top: 0.5rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  padding: 2rem 3rem;
  background: #f8f9fa;
  border-radius: 0 0 16px 16px;
}

.modal-apply-btn {
  flex: 1;
  background: #1e4a99;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
  display: block;
}

.modal-apply-btn:hover {
  background: #163a7a;
  box-shadow: 0 4px 12px rgba(30, 74, 153, 0.3);
}

.modal-apply-btn.expired {
  background: #dc3545;
  cursor: not-allowed;
  pointer-events: none;
}

.modal-apply-btn.expired:hover {
  transform: none;
  box-shadow: none;
}
.modal-highlight ul .sub-list {
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  padding-left: 2rem;
  list-style: none;
}

.modal-highlight ul .sub-item {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
  color: #4a4a4a;
  line-height: 1.4;
}

.modal-highlight ul .sub-item::before {
  content: '◦';
  position: absolute;
  left: 0;
  color: #1e4a99;
  font-weight: 700;
  font-size: 1.5rem;
}
/* Formatted text styling */
strong {
  font-weight: 700;
  color: #1e4a99;
}

em {
  font-style: italic;
  color: inherit;
}

.job-description strong,
.modal-section strong {
  color: #1e4a99;
}

.modal-section em {
  color: #333;
}

/* Underline styling */
u {
  text-decoration: underline;
  text-decoration-color: #1e4a99;
  text-decoration-thickness: 2px;
}

/* Deadline reminder box */
.modal-deadline-reminder {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  font-size: 1.5rem;
}

.modal-deadline-reminder strong {
  color: #856404;
  display: block;
  margin-bottom: 0.5rem;
}

.modal-deadline-reminder .days-left {
  color: #856404;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  .join-team-section h2 {
    font-size: 2rem;
  }

  .join-team-content {
    font-size: 1.1rem;
  }

  .job-header {
    flex-direction: column;
  }

  .nav {
    display: none;
  }

  .modal-content {
    margin: 1rem;
  }

  .modal-header,
  .modal-body,
  .modal-actions {
    padding: 2rem 1.5rem;
  }

  .modal-title {
    font-size: 2rem;
  }

  .modal-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}