body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  font-family: sans-serif;
  overflow-y: auto; /* Enables scrolling */
}

.background_img {
  z-index: 0;
  /*width: 90%;
  margin-left: 65px;
  border-radius: 50px;*/
  height: 100%;
  overflow: hidden;
  position: relative;
  background-image: url("images/field.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  justify-content: center;
  animation: change 30s infinite ease-in-out;
}
.registration_bg {
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background-image: url("images/hotdude.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  justify-content: center;
}

.white_cover {
  z-index: 1;
  background-color: whitesmoke;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  pointer-events: none;
}
.benefits {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
  margin-right: 60px;
  margin-left: 10px;
  background-color: whitesmoke;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  width: 500px;
  height: 100px;
}
.benefits i {
  margin-top: 20px;
  color: grey;
  font-size: 30px;
}
.benefits p {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  padding: 15px;
  padding-left: 20px;
  padding-top: 0px;
}
.benefits p span {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 700;
  color: #000;
}

/* CARDS */

.cards {
  padding: 40px 20px;
  width: 100%;
  display: flex;
  height: 200px;
  background-color: #f4fcf7;
}
.cards-h2 {
  text-align: center;
  font-size: 36px;
  font-family: "Plus Jakarta Sans-ExtraBold", Helvetica;
  color: #0f1614;
  margin-bottom: 10px;
  padding: 50px;
  background-color: #f4fcf7;
}
/* Outer wrapper for the cards section */
.cards {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

/* Container for feature cards */
.feature-cards-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 3rem auto;
  max-width: 900px;
  width: 100%;
}

/* Individual feature card styling */
.feature-card {
  display: flex;
  flex-direction: column;

  flex: 1 1 calc(50% - 2rem);
  min-width: 280px;
  max-width: 400px;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #d8e8e2;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

.feature-content h3 {
  font-family: "Plus Jakarta Sans-Bold", Helvetica;
  font-weight: 700;
  color: #0f1614;
  font-size: 1.125rem;
  line-height: 1.2;
  margin: 0;
}

.feature-content p {
  font-family: "Plus Jakarta Sans-Regular", Helvetica;
  font-weight: 400;
  color: #5e8c7c;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Media Queries for Responsiveness */

/* For tablets and smaller desktops (e.g., 768px to 1024px) */
@media (max-width: 1024px) {
  .feature-cards-section {
    gap: 1.5rem;
    max-width: 768px;
    margin-bottom: 60px;
  }

  .feature-card {
    flex: 1 1 calc(50% - 1.5rem);
    max-width: calc(50% - 1.5rem);
  }
}

@media (max-width: 767px) {
  .feature-cards-section {
    gap: 1rem;
    margin: 2rem auto;
    max-width: 100%;
    padding: 0 0.5rem;
    margin-bottom: 60px;
  }

  .feature-card {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 0.75rem;
  }

  .feature-content h3 {
    font-size: 1rem;
  }

  .feature-content p {
    font-size: 0.875rem;
  }
}

.content {
  position: relative;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  justify-content: center;
  text-align: center;
  line-height: 45px;
}
.content h1 {
  font-size: 36px;
}
.content h3 {
  font-size: 24px;
}
.content h5 {
  font-size: 20px;
}
.switch {
  z-index: 2;
  position: relative;
  top: 50%;
  left: 53%;
  transform: translate(-60%, -53%);
  justify-content: center;
  text-align: center;
  width: 400px;
  height: 50px;
  border-radius: 25px;
}
.switch input {
  appearance: none;
  width: 400px;
  height: 50px;
  border-radius: 25px;
  background: #1e1e1e;
  outline: none;
}
.switch input::before,
.switch input::after {
  z-index: 3;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bolder;
}

.switch input::before {
  content: "Find a Worker";
  left: 70px;
}
.switch input::after {
  content: "Find Work";
  right: 70px;
}
.switch input:checked {
  background: black;
}
.switch label {
  z-index: 2;
  position: absolute;
  top: 10px;
  bottom: 4px;
  border-radius: 20px;
}
.switch input {
  transition: 0.25s;
}

.switch input:checked::after,
.switch input:checked::before {
  color: #fff;
  transition: color 0.5s;
}

.switch input:checked + label {
  left: 10px;
  right: 200px;
  background: #0cafe5;
  transition: left 0.5s, right 0.4s 0.2s;
}
.switch input:not(:checked) {
  background: #1e1e1e;
  transition: background 0.4s;
}

.switch input:not(:checked)::before {
  color: #ffffff;
  transition: color 0.5s;
}

.switch input:not(:checked)::after {
  color: #1e1e1e;
  transition: color 0.5s 0.2s;
}
.switch input:not(:checked) + label {
  left: 200px;
  right: 10px;
  background: #0cafe5;
  transition: left 0.4s 0.2s, right 0.5s, background 0.35s;
}
/* Styling for the main heading */
.about-h1 {
  text-align: center;
  font-size: 36px;
  font-family: "Plus Jakarta Sans-ExtraBold", Helvetica;
  color: #0f1614;
  margin-bottom: 60px;
  padding-top: 10px;
}

.about-h1 span {
  color: #00a86b;
}

.about-section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.about-story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 40px 80px;
}

.about-story-row.reverse-layout {
  grid-template-areas: "text-area image-area";
  background-color: #f8fcfb;
}

.about-story-row.reverse-layout .about-text-content {
  grid-area: text-area;
}

.about-story-row.reverse-layout .about-image-wrapper {
  grid-area: image-area;
}

.about-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.about-image-wrapper img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Styling for the text content within each story row */
.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.about-text-content h3 {
  font-family: "Plus Jakarta Sans-Bold", Helvetica;
  font-weight: 700;
  color: #0f1614;
  font-size: 28px;
  margin: 0;
}

.about-text-content p {
  font-family: "Plus Jakarta Sans-Regular", Helvetica;
  font-weight: 400;
  color: #0f1614;
  font-size: 18px;
  line-height: 1.7;
  text-align: left;
  margin: 0;
}

.hidden-until-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hidden-until-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments */

@media (max-width: 992px) {
  .about-story-row {
    gap: 2rem;
    padding: 30px 40px;
  }

  .about-image-wrapper img {
    width: 250px;
    height: 250px;
  }

  .about-text-content h3 {
    font-size: 24px;
  }
  .about-text-content p {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .about-story-row {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 1.5rem;
  }

  .about-story-row .about-image-wrapper {
    order: -1;
  }
  .about-story-row .about-text-content {
    order: 1;
  }

  .about-story-row.reverse-layout {
    grid-template-areas: none;
  }

  .about-image-wrapper img {
    width: 200px;
    height: 200px;
  }

  .about-h1 {
    font-size: 36px;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .about-text-content h3 {
    font-size: 22px;
  }
  .about-text-content p {
    font-size: 16px;
  }
}

.testimonials-section {
  padding: 80px 40px;
  padding-top: 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  background-color: #f8fcfb;
}

/* Heading for the testimonials section */
.testimonials-h2 {
  font-size: 36px;
  font-family: "Plus Jakarta Sans-ExtraBold", Helvetica;
  color: #0f1614;
  margin-bottom: 60px;
}

.testimonials-h2 span {
  color: #00a86b;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  justify-content: center;
  align-items: stretch;
}
.testimonial-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0ede8;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.testimonial-quote-icon {
  margin-bottom: 15px;
}

.testimonial-quote-icon .quote-svg {
  color: #00a86b;
}

.testimonial-text {
  font-family: "Plus Jakarta Sans-Regular", Helvetica;
  font-weight: 400;
  color: #333d3b;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Author information section */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: auto;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00a86b;
}

.author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.author-name {
  font-family: "Plus Jakarta Sans-Bold", Helvetica;
  font-weight: 700;
  color: #0f1614;
  font-size: 16px;
  margin: 0;
}

.author-role {
  font-family: "Plus Jakarta Sans-Regular", Helvetica;
  font-weight: 400;
  color: #5e8c7c;
  font-size: 14px;
  margin: 0;
}

.hidden-until-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hidden-until-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .testimonials-h2 {
    font-size: 40px;
  }
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .testimonial-card {
    padding: 25px;
  }
  .testimonial-text {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 60px 20px;
  }
  .testimonials-h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Section for the simple centered headline */
.simple-headline-section {
  padding: 80px 40px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.simple-centered-h1 {
  font-family: "Plus Jakarta Sans-ExtraBold", Helvetica;
  font-size: 36px;
  color: #092d49;
  line-height: 1.2;
  margin: 0;
}

.hidden-until-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hidden-until-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .simple-centered-h1 {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .simple-headline-section {
    padding: 60px 20px;
  }
  .simple-centered-h1 {
    font-size: 38px;
  }
}
/* Login Page */
.container {
  background-color: #fff;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  width: 768px;
  max-width: 100%;
  min-height: 480px;
}

.container p {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.3px;
  margin: 20px 20px;
}

.container span {
  font-size: 12px;
}

.container a {
  color: #333;
  font-size: 13px;
  text-decoration: none;
  margin: 15px 0 10px;
}

.container button {
  background-color: #2c5364;
  color: #fff;
  font-size: 12px;
  padding: 10px 45px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 10px;
  cursor: pointer;
}

.container button.hidden {
  background-color: transparent;
  border-color: #fff;
}

.container form {
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  height: 100%;
}

.container input {
  background-color: #eee;
  border: none;
  margin: 8px 0;
  padding: 10px 15px;
  font-size: 13px;
  border-radius: 8px;
  width: 100%;
  outline: none;
}

.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
}

.form-container sign-up span {
  font-size: 20px;
  text-align: center;
  text-shadow: #0f2027;
}

.sign-in {
  left: 0;
  width: 50%;
  z-index: 2;
}

.container.active .sign-in {
  transform: translateX(100%);
}

.sign-up {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}
.password {
  max-height: 20px;
  padding: 0;
}
.container.active .sign-up {
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
  animation: move 0.6s;
}

@keyframes move {
  0%,
  49.99% {
    opacity: 0;
    z-index: 1;
  }
  50%,
  100% {
    opacity: 1;
    z-index: 5;
  }
}

.toggle-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: all 0.6s ease-in-out;
  border-radius: 150px 0 0 100px;
  z-index: 1000;
}

.container.active .toggle-container {
  transform: translateX(-100%);
  border-radius: 0 150px 100px 0;
}

.toggle {
  background-color: rgb(233, 235, 162);
  height: 100%;
  background: linear-gradient(to right, #0f2027, #2c5364);
  color: #fff;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: all 0.6s ease-in-out;
}

.container.active .toggle {
  transform: translateX(50%);
}

.toggle-panel {
  position: absolute;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 0px;
  text-align: center;
  top: 0;
  transform: translateX(0);
  transition: all 0.6s ease-in-out;
}

.toggle-left {
  transform: translateX(-200%);
}

.container.active .toggle-left {
  transform: translateX(0);
}

.toggle-right {
  right: 0;
  transform: translateX(0);
}

.container.active .toggle-right {
  transform: translateX(200%);
}

/* Created Page*/
.created_container {
  background: linear-gradient(to right, #0f2027, #2c5364);
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  width: 768px;
  max-width: 100%;
  min-height: 480px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  font-family: "Segoe UI", sans-serif;
}
.created_container i {
  font-size: 64px;
  color: rgb(168, 165, 165);
  margin-bottom: 10px;
}
.created_container h1 {
  font-family: "Segoe UI", sans-serif;
  font-size: 35px;
  font-weight: 600;
  color: white;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 0;
}
.created_container p {
  font-family: "Segoe UI", sans-serif;
  font-size: 35px;
  font-weight: 600;
  color: white;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 0;
}
.created_container button {
  background-color: rgb(168, 165, 165);
  color: black;
  font-size: 20px;
  padding: 10px 25px;
  size: 2px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;

  margin-top: 30px;
  cursor: pointer;
}
.created_container button:hover {
  background-color: black;
  color: white;
}

/* Profile set up */

.profile_bg {
  z-index: -4;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  background-image: url("images/hotdude.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  justify-content: center;
}

.prof_container {
  margin-top: 15px;
  display: flex;
  max-width: 1000px;
  margin: auto;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.profile-sidebar {
  width: 30%;
  background: #f8f9fa;
  padding: 20px;
  text-align: center;
  border-right: 1px solid #ddd;
  margin-left: 35%;
}
.profile-sidebar p {
  color: red;
  font-size: 15px;
}

.profile-img {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  margin-top: 30px;
}

.profile-name {
  font-weight: bold;
  font-size: 18px;
}

.profile-email {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}
.expertise-section {
  margin-top: 20px;
}

#expertise-fields input {
  display: block;
  width: 100%;
  color: black;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.add-expertise {
  background-color: #007bff;
  color: white;
  font-size: 20px;
  padding: 5px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 320px;
}
.expertise-group {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.expertise-group input {
  flex: 1;
  padding: 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.plus-btn,
.remove-btn {
  margin-left: 8px;
  font-size: 18px;
  background-color: rgb(122, 121, 121);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 35px;
  height: 35px;
}

.remove-btn {
  background-color: rgb(122, 121, 121);
}

.upload-btn {
  background-color: #007bff;
  border: none;
  padding: 10px 15px;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}
.file-drop-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin: 20px 0;
}

.file-drop-area.dragover {
  background-color: #f0f8ff;
  border-color: #007bff;
}

.file-preview {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
}

.file-preview .preview-box {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
  font-size: 14px;
  word-wrap: break-word;
  background: #f9f9f9;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 120px;
}

.preview-box img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  display: block;
  margin-bottom: 5px;
}

.preview-box .document-icon {
  font-size: 50px;
  color: #666;
  margin-bottom: 5px;
  line-height: 1;
}

.file-box span {
  font-size: 12px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-file-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(255, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
  font-weight: bold;
  line-height: 1;
  padding-bottom: 1px;
}

.remove-file-btn:hover {
  background-color: red;
}

.preview-box {
  position: relative;

  padding-top: 25px;
}

.file-name-text {
  font-size: 12px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  padding: 0 5px;
}
.upload-icon {
  font-size: 40px;
  color: #888;
  margin-bottom: 10px;
}

.profile-main {
  width: 100%;
  padding: 80px;
  padding-top: 0px;
}

.profile-main h2 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #333;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group {
  display: flex;
  gap: 15px;
}

input,
select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  flex: 1;
  font-size: 15px;
}

input[disabled] {
  background-color: #eee;
  color: #777;
}
.profile-sidebar {
  pointer-events: none;
}

.upload-btn,
#uploadBtn {
  pointer-events: all;
}

/* Profile Page View*/
/* General Body and Container Styling */

.profile-container {
  background-color: #ffffff;
  border-radius: 12px; /* Softly rounded corners */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  width: 100%;
  max-width: 800px; /* Max width for larger screens */
  padding: 30px;
  box-sizing: border-box;
  margin-top: 20px; /* Space from top */
  margin-left: 20%;
}

/* Page Title */
.profile-container h1 {
  font-size: 2.2em;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

/* Profile Header Section (Image and Basic Info) */
.profile-header {
  display: flex;
  flex-direction: column; /* Stack on small screens */
  align-items: center;
  gap: 25px; /* Space between image and info */
  padding-bottom: 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid #eee; /* Separator line */
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%; /* Circular image */
  object-fit: cover; /* Ensures image fills the circle */
  border: 4px solid #4caf50; /* Green border for emphasis */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Shadow for depth */
}

.header-info {
  text-align: center;
  color: #555;
  line-height: 1.6;
}

.header-info p {
  margin: 5px 0;
  font-size: 1.05em;
}

.header-info p strong {
  color: #333;
  font-weight: 600;
}

/* Generic Profile Sections (About Me, Expertise, Certifications) */
.profile-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee; /* Separator line */
}

.profile-section:last-of-type {
  border-bottom: none; /* No border for the last section */
  margin-bottom: 0;
}

.profile-section h3 {
  font-size: 1.6em;
  color: #444;
  margin-bottom: 15px;
  position: relative;
  padding-left: 15px; /* Space for a potential icon/border */
}

/* Little accent for section titles */
.profile-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 80%;
  background-color: #4caf50; /* Green accent */
  border-radius: 3px;
}

.profile-section p {
  font-size: 1.1em;
  color: #666;
  line-height: 1.7;
  margin-bottom: 10px;
}

/* Lists (Expertise, Certifications) */
.profile-section ul {
  list-style: none; /* Remove default bullet points */
  padding: 0;
  margin: 0;
  display: flex; /* Use flexbox for horizontal layout */
  flex-wrap: wrap; /* Wrap items to next line */
  gap: 10px; /* Space between list items */
}

.profile-section ul li {
  background-color: #e8f5e9; /* Light green background for tags */
  color: #2e7d32; /* Darker green text */
  padding: 8px 15px;
  border-radius: 20px; /* Pill shape */
  font-size: 0.95em;
  font-weight: 500;
  border: 1px solid #a5d6a7; /* Subtle border */
  white-space: nowrap; /* Prevent wrapping of individual tags */
}

.profile-section ul li a {
  color: #2196f3; /* Blue for links */
  text-decoration: none;
  font-weight: 600;
}

.profile-section ul li a:hover {
  text-decoration: underline;
}

/* Edit Profile Button */
.profile-actions {
  text-align: center;
  margin-top: 30px;
}

.edit-profile-btn {
  display: inline-block;
  background-color: #2e7d32;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.edit-profile-btn:hover {
  background-color: #2e7d32;
  transform: translateY(-2px); /* Slight lift on hover */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (min-width: 600px) {
  .profile-header {
    flex-direction: row;
    text-align: left;
    justify-content: center;
  }

  .profile-pic {
    margin-right: 25px; /* Space to the right of image */
  }

  .header-info {
    text-align: left;
  }

  .profile-section ul {
    justify-content: flex-start; /* Align list items to start */
  }
}

@media (max-width: 768px) {
  .profile-container {
    padding: 20px;
    margin: 10px;
  }

  .profile-container h1 {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .profile-section h3 {
    font-size: 1.4em;
  }

  .profile-section p,
  .header-info p,
  .profile-section ul li {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  .profile-container {
    border-radius: 8px;
    padding: 15px;
    margin: 5px;
  }
  .profile-pic {
    width: 120px;
    height: 120px;
  }
  .profile-container h1 {
    font-size: 1.5em;
  }
  .edit-profile-btn {
    padding: 10px 20px;
    font-size: 1em;
  }
  .profile-section ul li {
    padding: 6px 12px;
  }
}

/* Client Dashboard */

.navbar {
  background-color: white;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 60px;
  box-sizing: border-box;
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-brand {
  font-size: 1.8em;
  font-weight: 700;
  color: #4caf50;
  text-decoration: none;
}

.navbar-btn {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1em;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.navbar-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-btn.logout-btn {
  background-color: #f44336;
}

.navbar-btn.logout-btn:hover {
  background-color: #d32f2f;
}

.top-section {
  background-color: #e3f2fd;
  padding: 40px 20px;
  text-align: center;
  margin-top: -1px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.welcome-message {
  font-size: 2.8em;
  color: #212121;
  margin-bottom: 10px;
  font-weight: 800;
}

.tagline {
  font-size: 1.3em;
  color: #555;
  margin-bottom: 30px;
}

.search-bars-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.search-input,
.search-select {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  width: 100%;
  max-width: 280px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus,
.search-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  outline: none;
}

.dashboard-content {
  flex-grow: 1;
  padding: 0 20px;
  max-width: 1200px;
  margin: 20px auto;
  box-sizing: border-box;
}

.dashboard-content {
  flex-grow: 1;
  padding: 30px 20px;
  max-width: 1200px;
  margin: 20px auto;
  box-sizing: border-box;
}

/* Error Messages */
.error-message {
  color: #d32f2f;
  background-color: #ffebee;
  border: 1px solid #ef9a9a;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 500;
}

.artisan-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

/* --- Individual Artisan Card Styling --- */
.artisan-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artisan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #66bb6a;
}

.card-name {
  font-size: 1.6em;
  color: #333;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600;
}

.card-expertise,
.card-location,
.card-years {
  font-size: 0.95em;
  color: #666;
  margin: 5px 0;
  line-height: 1.4;
}

/* --- View Profile Button on Card --- */
.artisan-card .view-profile-btn {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1em;
  font-weight: 600;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  width: 80%;
  max-width: 200px;
}

.artisan-card .view-profile-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* --- Main Footer Styling --- */
.main-footer {
  background-color: #333;
  color: #ddd;
  text-align: center;
  padding: 20px;
  margin-top: auto;
  font-size: 0.9em;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.contact-artisan-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: 15px;
  margin-left: 10px;
  margin-right: 10px;
  white-space: nowrap;
}

.contact-artisan-btn.whatsapp-btn {
  background-color: #25d366;
  color: white;
}

.contact-artisan-btn.whatsapp-btn:hover {
  background-color: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contact-artisan-btn.whatsapp-btn i {
  margin-right: 8px;
}

.profile-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 280px;
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  font-size: 1.2em;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  display: none;
  transition: color 0.2s ease;
  z-index: 2;
}

.clear-search-btn:hover {
  color: #555;
}

.search-input,
.search-select {
  padding-right: 35px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 20px;
    flex-direction: column;
    height: auto;
    gap: 10px;
  }
  .navbar-right {
    justify-content: center;
    width: 100%;
  }
  .navbar-btn {
    flex: 1;
    max-width: 150px;
    text-align: center;
  }
  .navbar-brand {
    font-size: 1.5em;
  }

  .top-section {
    padding: 30px 15px;
    margin-bottom: 20px;
  }
  .welcome-message {
    font-size: 2em;
  }
  .tagline {
    font-size: 1.1em;
  }
  .search-bars-container {
    flex-direction: column;
    max-width: 90%;
    gap: 10px;
  }
  .search-input,
  .search-select {
    max-width: 100%;
  }
}

.dashboard-content {
  padding: 20px 10px;
  margin: 15px auto;
}

.artisan-cards-container {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.artisan-card {
  padding: 20px;
}

.card-name {
  font-size: 1.4em;
}

@media (max-width: 480px) {
  .navbar {
    padding: 8px 10px;
  }
  .navbar-brand {
    font-size: 1.3em;
  }
  .navbar-btn {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  .top-section {
    padding: 20px 10px;
  }
  .welcome-message {
    font-size: 1.6em;
  }
  .tagline {
    font-size: 1em;
  }
  .dashboard-content {
    padding: 0 10px;
  }

  .dashboard-content {
    padding: 15px 5px;
    margin: 10px auto;
  }

  .artisan-cards-container {
    grid-template-columns: 1fr; /* Single column on very small screens */
    gap: 15px;
  }

  .artisan-card {
    padding: 15px;
    margin: 0 5px; /* Small horizontal margin */
  }

  .card-profile-pic {
    width: 80px;
    height: 80px;
  }

  .card-name {
    font-size: 1.2em;
  }

  .card-expertise,
  .card-location,
  .card-years {
    font-size: 0.85em;
  }

  .artisan-card .view-profile-btn {
    padding: 8px 15px;
    font-size: 0.9em;
    width: 90%;
  }
}

/* Post A Job */
/* Page Tagline */
p.tagline {
  text-align: center;
  font-size: 1.3em;
  color: #555;
  margin-top: 30px;
  margin-bottom: 25px;
  font-weight: 400;
}

/* Post Job Form Styling */
form.post_job_form {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 18px; /* Space between form elements */
  border: 1px solid #e0e0e0;
}

form.post_job_form label {
  font-weight: 600;
  color: #444;
  margin-bottom: 5px;
  display: block; /* Ensures label is on its own line */
}

form.post_job_form input[type="text"],
form.post_job_form input[type="number"],
form.post_job_form select,
form.post_job_form textarea {
  width: calc(100% - 22px); /* Account for padding and border */
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fcfcfc;
}

form.post_job_form input[type="text"]:focus,
form.post_job_form input[type="number"]:focus,
form.post_job_form select:focus,
form.post_job_form textarea:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
  outline: none;
}

form.post_job_form textarea {
  resize: vertical; /* Allow vertical resizing */
  min-height: 80px; /* Minimum height for description */
}

/* Checkbox specific styling */
form.post_job_form input[type="checkbox"] {
  width: auto; /* Override general input width */
  margin-right: 8px;
}

/* File Drop Area */
.file-drop-area {
  border: 2px dashed #a8a8a8;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px; /* Ensure enough space for drop area */
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.file-drop-area:hover {
  background-color: #f0f0f0;
  border-color: #4caf50;
}

.file-drop-message {
  color: #666;
  font-size: 1.1em;
}

.upload-icon {
  font-size: 3em; /* Larger icon */
  color: #4caf50;
  margin-bottom: 10px;
}

/* File Preview Area for Images */
.file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Space between preview images */
  margin-top: 15px;
  justify-content: center;
}

.file-preview img {
  width: 80px; /* Thumbnail size */
  height: 80px;
  object-fit: cover; /* Crop images nicely */
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Input Group for County/Sub-County */
.input-group {
  display: flex;
  gap: 15px; /* Space between county and sub-county selects */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.input-group select {
  flex: 1; /* Allows selects to grow and shrink */
  min-width: 180px; /* Minimum width for each select */
}

/* Submit Button */
.upload-btn {
  background-color: #28a745; /* A strong green for action */
  color: white;
  padding: 15px 25px;
  border: none;
  border-radius: 10px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
  margin-top: 20px;
  align-self: center; /* Center the button within the flex container */
  width: 80%; /* Make button wider */
  max-width: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.upload-btn:hover {
  background-color: #218838; /* Darker green on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  main.dashboard-content {
    padding: 15px;
    margin: 15px auto;
    border-radius: 8px;
  }

  .navbar {
    padding: 10px 15px;
    flex-direction: column;
    gap: 10px;
  }

  .navbar-right {
    width: 100%;
    justify-content: space-around;
  }

  .navbar-btn {
    padding: 6px 12px;
    font-size: 0.9em;
  }

  p.tagline {
    font-size: 1.1em;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  form.post_job_form {
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    gap: 15px;
  }

  form.post_job_form input[type="text"],
  form.post_job_form input[type="number"],
  form.post_job_form select,
  form.post_job_form textarea {
    padding: 10px;
    font-size: 0.95em;
    width: calc(100% - 20px); /* Adjust for smaller padding */
  }

  .input-group {
    flex-direction: column; /* Stack county/sub-county on small screens */
    gap: 10px;
  }

  .input-group select {
    width: 100%;
    min-width: unset; /* Remove min-width constraint */
  }

  .upload-btn {
    width: 90%;
    font-size: 1.1em;
    padding: 12px 20px;
  }
}

form.post_job_form input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  margin: 0;
  vertical-align: middle;
  padding: 0;
  border: initial;
  font-size: initial;
  box-shadow: none;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-top: -5px;
  gap: 8px;
  width: fit-content;
}
.checkbox-group label {
  margin: 0;
  font-weight: normal; /* Reset if previously bolded by other rules */
  color: #333;
}

@media (max-width: 480px) {
  .navbar-brand {
    font-size: 1.5em;
  }
  .navbar-btn {
    font-size: 0.8em;
    padding: 5px 10px;
  }
  .file-preview img {
    width: 60px;
    height: 60px;
  }
}

@keyframes change {
  0% {
    background-image: url("images/plumber.jpg");
  }
  20% {
    background-image: url("images/artisan.jpg");
  }
  40% {
    background-image: url("images/carpenter.jpg");
  }
  60% {
    background-image: url("images/laundry.jpg");
  }
  80% {
    background-image: url("images/paint.jpg");
  }
  100% {
    background-image: url("images/electrician.jpg");
  }
}
