#loading-screen {
  opacity: 1;
  transition: opacity 0.5s ease;
}
#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}


/* === Base Styles === */
body {
  margin: 0;
  background-image: url(../images/background.png);
  background-attachment: fixed;
  position: relative; /* Added for proper stacking context */
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  backdrop-filter: blur(10px);
  z-index: -1; 
}

/* Add this new pseudo-element for the dim effect */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1); /* Adjust the alpha value (0.5) for darkness level */
  z-index: -1;
}

.burger-btn {
  border: none;
  background: none;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease-in-out;
}


.burger-btn:hover {
  background-color: #999999;
  cursor: pointer;
}


/* CSS Styles */
.profile-container {
  display: flex;
  align-items: center;
}

.profile-icon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.profile-icon-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(13, 110, 253, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.profile-icon-circle i {
  font-size: 1.2rem;
  color: var(--bs-primary);
}

.profile-text {
  font-weight: 500;
  display: none;
}

.profile-icon:hover {
  transform: translateY(-2px);
}

.profile-icon:hover .profile-icon-circle {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  background-color: rgba(13, 110, 253, 0.2);
}





/* === Improved Job Cards Grid & Styling === */
.job-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  transition: all 0.3s ease;

}

.job-card .card {
  transition: all 0.3s ease;
  height: 100%;
  border-radius: 12px;
  border: 1px solid #e0e6ed;
  overflow: hidden;
  background-color: white;
}

/* Card content styling */
.card-body {
  padding: 20px;
  background-color: white;
  position: relative;
  z-index: 2;
}

.card-img-top {
  height: 140px;
  object-fit: contain;
  background-color: #f8f9fa;
  padding: 20px;
  transition: all 0.3s ease;
  border-bottom: 1px solid #e0e6ed;
}

.job-card .badge {
  font-size: 0.75rem;
  padding: 6px 10px;
  font-weight: 500;
  border-radius: 6px;
  background-color: #3498db;
  color: white;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #2c3e50;
  transition: all 0.3s ease;
}

.card-text {
  font-size: 0.9rem;
  color: #34495e;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.card-text i {
  color: #3498db;
  font-size: 1rem;
}

/* Hover effects */
.job-card:hover {
  transform: translateY(-5px);
}

.job-card:hover .card-img-top {
  transform: scale(1.02);
}

.job-card:hover .card-title {
  color: #3498db;
}

/* Button container - for apply button */
.apply-btn-container {
  position: absolute;
  bottom: -100px;
  left: 0;
  right: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  z-index: 10;
  transition: bottom 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  text-align: center;
}

.job-card:hover .apply-btn-container {
  bottom: 0;
  opacity: 1;
}

/* Button styling */
.apply-btn {
  width: 90%;
  padding: 10px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  background-color: #3498db;
  color: white;
}

.apply-btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
  .job-card .card-content {
    filter: none !important;
  }
  
  .apply-btn-container {
    position: relative;
    bottom: 0;
    opacity: 1;
    backdrop-filter: none;
    padding: 15px;
    background: white;
  }
  
  .apply-btn {
    width: 100%;
  }
  
  .job-card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
}


/* User Navigation Container */
.d-flex.gap-2.align-items-center {
  gap: 1rem !important; /* Increased gap for better spacing */
  position: relative;
  z-index: 1000;

}

/* Post Job Button - Enhanced */
.btn.post-job-btn {
  background-color: #2e7d32;
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

.btn.post-job-btn:hover {
  background-color: #1b5e20;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
  color: white;
}

.btn.post-job-btn:active {
  transform: translateY(0);
}

/* User dropdown */
.user-dropdown-btn {
  background-color: white !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.5rem 1rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
}

.user-dropdown-btn:hover, .user-dropdown-btn:focus {
  background-color: #e3f0ff !important;
}

.user-dropdown-btn .dropdown-toggle-arrow {
  color: #666;
}

.user-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background-color: #2600ff !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: bold !important;
  font-size: 0.9rem !important;
  overflow: hidden !important;
}

.user-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Dropdown Menu - Modern */
.dropdown-menu {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  margin-top: 0.5rem;
  min-width: 200px;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin: 0.15rem 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dropdown-item:hover {
  background-color: #f0fff4;
  color: #2e7d32;
}

.dropdown-divider {
  border-color: rgba(46, 125, 50, 0.1);
}

/* Login/Signup Buttons - Mobile */
.d-md-none .btn {
  border-radius: 8px;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.d-md-none .btn-outline-primary {
  color: #00b7ff;
}

.d-md-none .btn-outline-primary:hover {
  background-color: #00b7ff;
}

.d-md-none .btn-primary {
  background-color: #0011ff2c;
  border-color: #0804ff;
}

.d-md-none .btn-primary:hover {
  background-color: #00b7ff;
}

/* Login/Signup Buttons - Desktop */
.d-none.d-md-flex .btn {
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.d-none.d-md-flex .btn-outline-primary {
  border-color: #00b7ff;
  color: rgb(0, 174, 255);
}

.d-none.d-md-flex .btn-outline-primary:hover {
  background-color: #00b7ff;
  color: white;
}

.d-none.d-md-flex .btn-primary {
  background-color: #00b7ff;
  border-color:#00b7ff;
}

.d-none.d-md-flex .btn-primary:hover {
  background-color: #00d9ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(46, 125, 50, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .d-flex.gap-2.align-items-center {
      gap: 0.75rem !important;
  }
  
  .btn.post-job-btn {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
  }
  
  .btn.user-dropdown-btn {
      padding: 0.5rem 0.75rem;
  }
  
  .user-avatar {
      width: 28px;
      height: 28px;
      font-size: 0.8rem;
  }
}

.job-card-wrapper {
  text-decoration: none;
  color: inherit;
}
.not-clickable {
  pointer-events: none;
  cursor: default;
}




/* === Responsive Grid === */
@media (max-width: 992px) {
  .job-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .job-cards {
    grid-template-columns: 1fr;
  }

  .right-section {
    display: none;
  }

  .burger {
    display: flex;
  }
  
  .profile-text {
    display: inline;
}

.profile-icon-circle {
    width: 2.75rem;
    height: 2.75rem;
}

.profile-icon-circle i {
    font-size: 1.3rem;
}
}

@media (min-width: 1200px) {
  .profile-icon-circle {
      width: 3rem;
      height: 3rem;
  }
  
  .profile-icon-circle i {
      font-size: 1.5rem;
  }
}

.filter-sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  height: 100%;
  width: 250px;
  background-color: #ffffff;
  box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 1000;
  transition: left 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.filter-sidebar .sidebar-footer {
  border-top: 1px solid #ddd;
  padding-top: 10px;
  font-size: 14px;
}

.filter-sidebar .list-group-item {
  font-size: 16px;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  }

.filter-sidebar .list-group-item:hover {
  background-color: #f1f1f1;
  }
.navbar-toggler {
  border: none;
  }
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-section {
  padding: 60px 0;
}



.footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 40px 0;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Post Job Button */
.post-job-btn {
  background: linear-gradient(135deg, #4e54c8, #8f94fb);
  border: none;
  color: white;
  font-weight: 600;
  margin-left: 10px;
}
.post-job-btn:hover {
  background: linear-gradient(135deg, #434190, #7b83eb);
  color: white;
}

/* User dropdown */
.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 160px;
  z-index: 1;
  border-radius: 5px;
  padding: 10px 0;
}
.user-dropdown a {
  padding: 8px 16px;
  text-decoration: none;
  display: block;
}
.user-dropdown a:hover {
  background-color: #f1f1f1;
}
.user-avatar {
  cursor: pointer;
  position: relative;
}
.show-dropdown {
  display: block;
}

/* Loading screen */
#loading-screen {
  position: fixed;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* === Header Styles === */
.hero-section {
  background: linear-gradient(135deg, #3d84ff, #3d84ff); /* Deep blue gradient */
  padding: 100px 0;
  color: white;
  position: relative;
  overflow: hidden;
  animation: fadeIn 2s ease-in-out;
}
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.hero-section h1,
.hero-section p {
  color: white;
}

.hero-section .form-control {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
}

.hero-section .form-control::placeholder {
  color: #e0e0e0;
}

.hero-section .form-control:focus {
  background-color: rgba(255, 255, 255, 0.3);
  color: rgb(255, 255, 255);
}

.hero-section .btn-primary {
  color: #3498db;
  border: none;
}

.hero-section .btn-primary:hover {
  color: #0d2247;
}