/* === 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(71, 71, 71, 0.13); /* Adjust the alpha value (0.5) for darkness level */
  z-index: -1;
}

#loading-screen {
  opacity: 1;
  transition: opacity 0.5s ease;
}
#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

/* PROFILE ICON */
.profile-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.profile-icon:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
/* PROFILE ICON */

/* === Header Styles === */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: #006eff88;
  box-shadow: 0 10px 5px #006eff88;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.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;
}









/* === Load More Style === */
.filter-btn {
  background-color: #0080ff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  
}
.filter-btn:hover {
  background-color: #16314d;
}

/* === 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 - Modern Styling */
.btn.user-dropdown-btn {
  border: 1px solid rgba(46, 125, 50, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: white;
  color: #333;
}

.btn.user-dropdown-btn:hover {
  background-color: #00b7ff;
  border-color: #00b7ff;
}

/* 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;
  }
}











/* === Top Filter Bar === */
.top-filter-bar {
  background-color: #e0f7fa; /* Match job card background */
  padding: 15px 30px;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin: 20px auto;
  max-width: 1200px;
}



/* === 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;
  }
}

/* === Back Button === */
.back-btn {
  display: inline-block;
  margin-left: 10px;
  margin-top: 20px;
  padding: 12px 20px;
  background-color: #e2e8f0;
  color: #1e3a8a;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  transition: background-color 0.2s ease;
}

.back-btn:hover {
  background-color: #cbd5e1;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
.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: 30px 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;
}