/* ========================
   GLOBAL STYLES
   ======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========================
   HEADER STYLES
   ======================== */
.worker-header {
  background: #f5f5f5;
  padding: 10px 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-bottom: 1px solid #dcdcdc;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  /* Allow logo to shrink if needed on small screens */
  flex-shrink: 1; 
  min-width: 0;
}

.logo-img {
  height: 45px;
  width: 45px;
}

.logo-text {
  font-size: 26px;
  font-weight: 700;
  color: black;
  margin-left: 10px;
  /* Prevent text from breaking into two lines */
  white-space: nowrap; 
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.desktop-nav a {
  margin-left: 24px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: #1d1d1f;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav a:hover {
  color: #0071e3;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}
.search-icon {
    font-size: 18px;
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: bold;
}
.search-icon:hover {
    color: #0071e3;
}


/* ===================================
   HAMBURGER & MOBILE MENU STYLES
   =================================== */
#hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1002; 
  background: transparent;
  border: none;
}
#hamburger-btn .bar {
  height: 4px; 
  width: 100%;
  background-color: #333;
  border-radius: 10px;
}

#mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 280px;
  box-shadow: 4px 0 15px rgba(0,0,0,0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1001;
  padding: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    border-bottom: 1px solid #e8e8e8;
}
.sidebar-logo-img {
    height: 35px;
    width: 35px;
}
.sidebar-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: black;
    margin-left: 10px;
    flex-grow: 1;
}
#close-btn {
    font-size: 32px;
    font-weight: 400;
    color: #6e6e73;
    cursor: pointer;
    padding: 0 10px;
}

#mobile-menu a {
  color: #1d1d1f;
  text-decoration: none;
  font-size: 18px;
  padding: 15px 30px;
  width: 100%;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#mobile-menu a:hover {
  background-color: #e8e8e8;
}

#mobile-menu.show {
  transform: translateX(0);
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#overlay.show {
    display: block;
}

/* ========================
   MAIN CONTENT STYLES
   ======================== */
.wrapper { text-align: center; padding: 60px 20px; flex: 1; }
.wrapper h1 { font-size: 36px; font-weight: 700; margin-bottom: 10px; }
.wrapper p { font-size: 18px; color: #6e6e73; margin-bottom: 40px; }

.card-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.card { 
  background: #ffffff; 
  width: 100%; /* Make card flexible */
  max-width: 280px; /* But not larger than 280px */
  padding: 30px; 
  text-align: center; 
  border-radius: 18px; 
  border: 1px solid rgba(0, 0, 0, 0.1); 
  text-decoration: none; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,0.12); }
.card i { margin-bottom: 20px; color: #0071e3; font-size: 3em; }
.card h2 { font-size: 22px; margin-bottom: 8px; color: #1d1d1f; }
.card p { font-size: 16px; color: #6e6e73; line-height: 1.5; }

.jobs-section-title {
    text-align: left;
    max-width: 1240px;
    margin: 0 auto 40px auto;
    font-size: 32px;
}
.section-spacer {
    margin-top: 60px;
}

/* ========================
   FOOTER
   ======================== */
footer { background: #fff; padding: 20px 0; text-align: center; font-size: 14px; color: #6e6e73; border-top: 1px solid #e0e0e0; }

/* ===================================
   RESPONSIVE DESIGN (For Mobile Phones)
   =================================== */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }
    #hamburger-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
  .logo-text { font-size: 20px; } /* Adjusted logo text size for better fit */
  .logo-img { height: 40px; width: 40px; }
  .worker-header { padding: 10px 15px; } /* Reduced padding for more space */
  .header-controls { gap: 15px; } /* Reduced gap between icons */
  .wrapper { padding: 40px 15px; }
  .wrapper h1 { font-size: 28px; }
  .jobs-section-title { text-align: center; }
  .card-container { gap: 20px; }
}