.latest-section {
  background: #0b0b0b;
  color: #fff;
}

.job-card,
.app-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.job-card:hover,
.app-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

.badge {
  background: #1e1e1e !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-dark.btn-sm {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 6px;
}

#jobPostsContainer {
  display: flex;
  width: 100%;
  flex-direction: row;
}

.job-card {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.job-card:hover {
  transform: translateY(-5px);
}

/* @keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */

.logout-btn {
  background: none;
  border: none;
  outline: none;
  color: white;
}

.jobdetailmodal,
.jobcreatemodal,
.jobeditmodal,
.jobcreatemodal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  min-width: 1000px;
  width: 100%;
  max-height: 90%;
  overflow-y: auto;
}
.modal-content p {
  color: rgb(89, 89, 89);
}
@media (max-width: 1268px) {
  .modal-content {
    width: 100%;
    max-width: 800px;
    min-width: 700px;
    padding: 1.5rem;
  }
}
@media (max-width: 768px) {
  .modal-content {
    width: 100%;
    max-width: 600px;
    min-width: 100px;
    padding: 1.5rem;
  }
}
.close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 25px;
  cursor: pointer;
  color: #444;
}

/* Tag Input Styles */
.tag-input {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid #ccc;
  padding: 8px;
  border-radius: 8px;
  cursor: text;
  color: black;
}
.tag {
  background-color: #000000;
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  margin: 5px;
  display: flex;
  align-items: center;
}
.tag span {
  margin-left: 8px;
  cursor: pointer;
}
#skillInput {
  border: none;
  outline: none;
  flex: 1;
  min-width: 120px;
  margin: 5px;
}

/* Modal Background */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Modal Content Box */
.modal-content {
  background: rgba(255, 255, 255, 0.9); /* translucent white */
  backdrop-filter: blur(0.5px); /* frosted glass blur */
  -webkit-backdrop-filter: blur(0.5px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.25); /* subtle border for contrast */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  color: #111; /* Dark text for visibility */
  padding: 2rem;
  border-radius: 15px;
  width: 500px;
  max-width: 90%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  position: relative;
}

/* Form Fields */
.modal-content input,
.modal-content textarea,
.modal-content select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  background-color: #f9f9f9;
  color: #000; /* Ensure black text */
  transition: border-color 0.3s;
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
  color: #555;
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
  outline: none;
  border-color: #000000;
  background-color: #fff;
}

/* Labels */
.modal-content label {
  display: block;
  font-weight: 600;
  margin-top: 12px;
  color: #222;
}

/* Submit Button */
.modal-content button {
  margin-top: 20px;
  width: 100%;
  background: #ff8400;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.createBtn {
  background: #ff8400;
  color: #fff;
}

.modal-content button:hover {
  background: #ffa200;
}

/* Job Cards Container */
.openings {
  max-width: 1500px;
  margin: 0 auto;
  padding: 60px 20px;
}

#job-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

/* Individual Job Card */
.job-card {
  background: var(--color-main-grad);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.job-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Job Title */
.job-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-font);
  line-height: 1.3;
}

/* Job Details */
.job-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.job-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.job-detail-label {
  font-weight: 600;
  color: var(--color-font);
  min-width: 120px;
  font-size: 14px;
}

.job-detail-value {
  color: var(--color-font);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

/* Description Container */
.job-description {
  position: relative;
}

.job-description-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

.job-description-text.expanded {
  -webkit-line-clamp: unset;
  display: block;
}

.show-more-btn {
  background: none;
  border: none;
  color: #6366f1;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 0;
  margin-top: 8px;
  font-size: 14px;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.show-more-btn:hover {
  color: #8b5cf6;
}

.show-more-btn::after {
  content: "↓";
  transition: transform 0.3s ease;
}

.show-more-btn.expanded::after {
  transform: rotate(180deg);
}

/* Skills Tags */
.job-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* Deadline Badge */
.job-deadline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.job-deadline::before {
  content: "📅";
}

/* Location Badge */
.job-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.job-location-badge::before {
  content: "📍";
}

/* Apply Button */
.apply-btn {
  width: 100%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.apply-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.apply-btn:active {
  transform: scale(0.98);
}

/* No Openings Message */
#no-openings {
  font-size: 24px;
  color: var(--color-font);
  padding: 60px 20px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  #job-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .job-card {
    padding: 24px;
  }

  .job-card h3 {
    font-size: 20px;
  }

  .job-detail-label {
    min-width: 100px;
    font-size: 13px;
  }

  .job-detail-value {
    font-size: 13px;
  }
}

.newsletter-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.newsletter-wrapper {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Dark mode support */
body.dark .newsletter-wrapper {
  background: rgba(30, 30, 40, 0.95);
}

/* Newsletter Content */
.newsletter-content {
  text-align: center;
  margin-bottom: 40px;
}

.newsletter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  margin-bottom: 24px;
  animation: pulse 2s infinite;
}

.newsletter-icon svg {
  color: white;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(102, 126, 234, 0);
  }
}

.newsletter-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 16px;
  line-height: 1.3;
}

body.dark .newsletter-title {
  color: #f7fafc;
}

.newsletter-description {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

body.dark .newsletter-description {
  color: #cbd5e0;
}

/* Newsletter Form */
.newsletter-form-container {
  position: relative;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  gap: 12px;
  background: white;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

body.dark .input-group {
  background: #2d3748;
}

.input-group:focus-within {
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

.newsletter-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-size: 16px;
  color: #1a202c;
  background: transparent;
  font-family: inherit;
}

body.dark .newsletter-input {
  color: #f7fafc;
}

.newsletter-input::placeholder {
  color: #a0aec0;
}

.newsletter-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.newsletter-btn:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.newsletter-btn:active {
  transform: translateX(2px);
}

.btn-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.newsletter-btn:hover .btn-icon {
  transform: translateX(4px);
}

.newsletter-privacy {
  text-align: center;
  font-size: 14px;
  color: #718096;
  margin: 0;
}

body.dark .newsletter-privacy {
  color: #a0aec0;
}

/* Success Message */
.newsletter-success {
  text-align: center;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  display: inline-flex;
  margin-bottom: 24px;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-title {
  font-size: 28px;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 16px;
}

.success-message {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 24px;
}

body.dark .success-message {
  color: #cbd5e0;
}

.close-success-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.close-success-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.close-success-btn:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .newsletter-section {
    padding: 60px 20px;
  }

  .newsletter-wrapper {
    padding: 40px 24px;
  }

  .newsletter-title {
    font-size: 24px;
  }

  .newsletter-description {
    font-size: 14px;
  }

  .input-group {
    flex-direction: column;
    gap: 8px;
  }

  .newsletter-btn {
    width: 100%;
    justify-content: center;
  }

  .success-title {
    font-size: 22px;
  }

  .success-message {
    font-size: 14px;
  }
}
