/* Import FontAwesome */
@import "~@fortawesome/fontawesome-free/css/all.css";

/* Global Reset and Defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #f9fafb;
}

a {
  text-decoration: none;
  cursor: pointer;
  color: #333;
}

/* Icon Style */
i {
  color: #1e3a8a;
  font-size: 1.3rem;
  margin-top: 0.2rem;
  padding: 0.5rem;
  cursor: pointer;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e3a8a;
  color: #fff;
  padding: 15px 30px;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.1);
}

.navbar .logo img {
  height: 70px;
}

.navbar .menu {
  list-style: none;
  display: flex;
}

.navbar .menu li {
  margin: 0 15px;
}

.navbar .menu li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar .menu li a:hover {
  color: #facc15;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero .slider {
  position: relative;
  display: flex;
  width: 100%;
  height: 500px;
}

.hero .slider img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero .overlay {
  position: absolute;
  background: rgb(0 0 0 / 0.7);
  color: #fff;
  text-align: center;
  display: flex;
  padding: 20px;
}

.hero .overlay .leftside,
.hero .overlay .rightSide {
  display: flex;
  flex-direction: column;
}

.hero .overlay .rightSide .search,
.hero .overlay .rightSide button,
.hero .overlay .rightSide input {
  border-radius: 15px;
  border: none;
}

.hero .overlay .rightSide .search input {
  margin-right: 10px;
}

.hero .overlay .leftside .num {
  color: #5d5dff;
}

.hero .overlay h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero .overlay h2 {
  font-size: 1.5rem;
}

.hero .overlay h2 span {
  color: #5d5dff;
  font-weight: 600;
}

/* Search Box */
.hero .search {
  display: flex;
  margin-top: 20px;
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
  align-items: center;
}

.hero .search input,
.hero .search select,
.hero .search button {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  margin-right: 10px;
}

.hero .search input {
  flex: 1;
}

.hero .search button {
  background: #e74c3c;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.3s ease;
  border: none;
  margin-right: 0;
}

.hero .search button:hover {
  background: #c0392b;
}

/* Slider Indicators */
.slider-indicators {
  position: absolute;
  bottom: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.slider-indicators button {
  width: 12px;
  height: 12px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.slider-indicators button.active {
  background: #5d5dff;
}

/* Sector Section */
.Sector {
  padding: 40px 20px;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
  border-radius: 12px;
  margin: 20px auto;
  max-width: 1200px;
}

.Sector h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #1e3a8a;
}

.Sector-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.Sector-list a {
  margin: 10px;
  padding: 15px 25px;
  background: #f0f4f8;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
}

.Sector-list a:hover {
  background: #e5e7eb;
  transform: translateY(-3px);
}

.Sector-list a span {
  background-color: #fbbf24;
  padding: 0.2rem 0.5rem;
  border-radius: 50%;
  margin-left: 10px;
}

/* Available Jobs */
.available-jobs {
  padding: 40px 20px;
  text-align: center;
  max-width: 1200px;
  margin: auto;
}

.available-jobs h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #1e3a8a;
}

/* Job Cards */
.job-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: stretch;
  padding: 20px 0;
}

.job-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 25px;
  width: 320px;
  min-height: 260px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.job-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgb(0 0 0 / 0.12);
}

.job-card h3 {
  margin-bottom: 8px;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 1.3rem;
  text-align: center;
}

.job-card p {
  margin-bottom: 10px;
  color: #555;
  font-size: 0.95rem;
  text-align: center;
}

.job-card .job-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.job-card .job-meta-info span {
  font-size: 0.9rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 5px;
}

.job-card .job-meta-info i {
  font-size: 1rem;
  color: #3498db;
}

.job-card .job-skills,
.job-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 15px;
}

.job-card .job-skills span,
.job-card .tag {
  background-color: #e9f5ff;
  color: #2980b9;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.job-card .view-details-button {
  background-color: #3498db;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  margin-top: 10px;
}

.job-card .view-details-button:hover {
  background-color: #2980b9;
}

.job-card .job-status-text {
  color: red;
  font-weight: 600;
  text-align: center;
}


@media (max-width: 768px) {
  .hero .search,
  .slider-indicators {
    display: none !important;
  }

  .hero .overlay {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 10px 10px 10px;
    background: rgb(20 20 40 / 0.85);
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
  }

  .hero .overlay .leftside,
  .hero .overlay .rightSide {
    width: 100%;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .hero .overlay h1.num {
    font-size: 2.2rem;
    color: #4f8cff;
  }

  .hero .overlay h1 {
    font-size: 1.7rem;
  }

  .hero .overlay h2 {
    font-size: 1.2rem;
    background: rgb(34 60 120 / 0.7);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
  }

  .Sector,
  .available-jobs {
    padding: 20px 10px;
  }

  .Sector h2,
  .available-jobs h2 {
    font-size: 1.5rem;
  }

  .Sector-list {
    flex-direction: column;
  }

  .Sector-list a {
    width: 100%;
    margin-bottom: 10px;
  }

  .job-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    padding: 20px 10px;
  }

  .job-card {
    padding: 20px;
    border-radius: 22px !important;
  }

  .job-card h3 {
    font-size: 1.2rem;
  }

  .job-card p {
    font-size: 0.9rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero .overlay {
      border-radius: 15px;
      top: 30%;
    margin-bottom: 1rem;
  }
  
  .hero .overlay .leftside,.hero .overlay .rightSide{
      display: flex;
      flex-direction: column;
      gap: 1rem;
  }

  .hero .overlay h1.num {
    font-size: 3rem;
  }

  .hero .overlay h1 {
    font-size: 2rem;
  }

  .hero .overlay h2 {
    font-size: 1.5rem;
  }

  .job-list {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .job-card {
    padding: 15px;
    max-width: 100%;
  }

  .job-card h3 {
    font-size: 1.1rem;
  }

  .job-card p {
    font-size: 0.85rem;
  }

  .job-card .job-meta-info span,
  .job-card .tags .tag {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .job-card .view-details-button {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}

/* Desktop Large */
@media (min-width: 769px) {
  .hero .search {
    display: block;
    max-width: 420px;
    margin-left: auto;
    margin-right: 0;
    box-shadow: 0 2px 16px rgb(0 0 0 / 0.1);
  }

  .slider-indicators {
    display: flex;
    margin-top: 1rem;
  }

  .hero .overlay {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 40px 48px;
    width: 80%;
    left: 10%;
    top: 35%;
    border-radius: 18px;
    text-align: left;
    transform: none;
  }

  .hero .overlay .leftside {
    width: 40%;
    align-items: flex-start;
    text-align: left;
  }

  .hero .overlay .rightSide {
    width: 60%;
    align-items: flex-end;
    text-align: right;
  }

  .hero .overlay .num {
    font-size: 3.5rem;
    color: #1e3a8a;
    margin-bottom: 12px;
  }

  .hero .overlay h1 {
    font-size: 2.5rem;
    margin: 10px 0;
  }

  .hero .overlay h2 {
    font-size: 1.7rem;
    margin: 8px 0;
  }

  .hero .overlay h2 span {
    color: #6366f1;
    font-size: 1.3rem;
  }
}
