*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: "Segoe UI", Arial, sans-serif;
    background:#f5f7fb;
    color:#333;
    padding:25px;
}

/* NAVBAR */ .navbar {
  position:sticky;
  top:0;
  z-index:999;
  background:white;
  height:75px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 50px;
  box-shadow:0 2px 15px rgba(0,0,0,.08);
}

.logo {
  font-size:34px;
  font-weight:700;
  color:#0d6efd;
}

.logo span {
  color:#222;
}

nav {
  display:flex;
  gap:35px;
}

nav a {
  text-decoration:none;
  color:#444;
  font-weight:500;
}

nav a:hover {
  color:#0d6efd;
}

.nav-right {
  display:flex;
  gap:15px;
  align-items:center;
}

.nav-right select {
  padding:10px 15px;
  border-radius:8px;
  border:1px solid #ddd;
}

.post-btn {
  background:#0d6efd;
  color:white;
  border:none;
  padding:12px 22px;
  border-radius:8px;
  font-weight:600;
  cursor:pointer;
}

/*Hero-Search Section */
.hero-search {
  background:#f6f8fb;
  padding:35px;
}

.search-box {
  max-width:950px;
  margin:auto;
  background:white;
  border-radius:60px;
  display:flex;
  align-items:center;
  overflow:hidden;
  box-shadow:0 10px 35px rgba(0,0,0,.08);
}

.search-input {
  flex:2;
  display:flex;
  align-items:center;
  padding:0 25px;
}

.search-input input {
  width:100%;
  border:none;
  outline:none;
  padding:22px;
  font-size:18px;
}

.search-location {
  flex:1;
  display:flex;
  align-items:center;
  padding:0 20px;
}

.search-location select {
  width:100%;
  border:none;
  outline:none;
  font-size:17px;
}
.divider {
  width:1px;
  height:45px;
  background:#ddd;
}

.search-btn {
  background:#0d6efd;
  color:white;
  border:none;
  padding:22px 45px;
  font-size:18px;
  cursor:pointer;
  font-weight:600;
}

#app{
    display:flex;
    gap:25px;
    align-items:flex-start;
}

/* LEFT */

#job-list{
    width:38%;
    height:88vh;
    overflow-y:auto;
    padding-right:8px;
}

/* Nice scrollbar */

#job-list::-webkit-scrollbar{
    width:8px;
}

#job-list::-webkit-scrollbar-thumb{
    background:#d5d9e0;
    border-radius:20px;
}

/* CARD */

.job-card{
    background:white;
    border-radius:12px;
    padding:18px;
    margin-bottom:15px;
    border:1px solid #e5e7eb;
    transition:.25s;
    cursor:pointer;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
}

.job-card:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 24px rgba(0,0,0,.08);
    border-color:#1976d2;
}

.job-card.selected{border-left:6px solid #1976d2; background:#eef6ff; }

.job-card h3{
    font-size:18px;
    color:#1e293b;
    margin-bottom:10px;
}

.job-card hr{
    border:none;
    border-top:1px solid #ececec;
    margin:12px 0;
}

.company{
    font-weight:600;
    color:#1976d2;
    margin-bottom:4px;
}

.location{ color:#666; font-size:14px; }

/* BACK BUTTON */
.back-btn{
    display:none;
    margin-bottom:20px;
    background:none;
    border:none;
    color:#1976d2;
    font-size:18px;
    cursor:pointer;
    font-weight:600;
}

/* RIGHT PANEL */

#job-detail{
    width:62%;
    background:white;
    border-radius:15px;
    padding:30px;
    box-shadow:0 5px 25px rgba(0,0,0,.08);
    position:sticky;
    top:20px;
    max-height:88vh;
    overflow:auto;
}

#job-detail h2{
    font-size:30px;
    margin-bottom:10px;
    color:#222;
}

#job-detail p{
    margin:12px 0;
    line-height:1.7;
}

#job-detail strong{
    color:#1976d2;
}

#job-detail hr{
    border:none;
    border-top:1px solid #eee;
    margin:22px 0;
}

/* PAGINATION */

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    padding:20px 0;
}

.pagination button{
    background:#1976d2;
    color:white;
    border:none;
    padding:10px 22px;
    border-radius:8px;
    cursor:pointer;
    transition:.2s;
    font-weight:600;
}

.pagination button:hover{
    background:#0f5eb4;
}

.pagination button:disabled{
    background:#bfc8d8;
    cursor:not-allowed;
}

.pagination span{
    font-weight:600;
    color:#444;
}

#apply-btn{
    width:100%;
    padding:14px;
    border:none;
    background:#2557a7;
    color:#fff;
    font-size:16px;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
}

#apply-btn:hover{
    background:#1b4b94;
}

.modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.5);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.modal.show{
    display:flex;
}

.modal-box{
    width:420px;
    background:white;
    padding:25px;
    border-radius:12px;
    position:relative;
}

#close-modal{
    position:absolute;
    right:18px;
    top:12px;
    font-size:28px;
    cursor:pointer;
}

/*Modal call and whatsapp button styling */

.contact-buttons{
    display:flex;
    gap:12px;
    margin-top:15px;
}

.call-btn,
.whatsapp-btn{
    flex:1;
    text-align:center;
    text-decoration:none;
    padding:12px 18px;
    border-radius:8px;
    font-weight:600;
    color:#fff;
}

.call-btn{
    background:#2557a7;
}

.whatsapp-btn{
    background:#25D366;
}

.call-btn:hover{
    background:#1d4b8f;
}

.whatsapp-btn:hover{
    background:#1fa855;
}

/* Mobile */

/* === */ /* TABLET */ /* === */ @media (max-width:1024px) {
  .navbar {
    padding:0 25px;
  }

  nav {
    gap:18px;
  }

  .logo {
    font-size:28px;
  }

  .search-box {
    max-width:100%;
  }

  .search-btn {
    padding:20px 28px;
  }
}

/* === */ /* MOBILE */ /* === */ @media (max-width:768px) {
  /* NAVBAR */ .navbar {
    height:auto;
    flex-direction:column;
    align-items:stretch;
    padding:15px;
    gap:15px;
  }

  .logo {
    text-align:center;
    font-size:30px;
  }

  nav {
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
  }

  .nav-right {
    width:100%;
    flex-direction:column;
    gap:10px;
  }

  .nav-right select, .post-btn {
    width:100%;
  }

  /* SEARCH */ .hero-search {
    padding:20px 15px;
  }

  .search-box {
    flex-direction:column;
    border-radius:18px;
    overflow:hidden;
  }

  .search-input, .search-location {
    width:100%;
    padding:0 18px;
  }

  .search-input input {
    padding:18px 10px;
    font-size:16px;
  }

  .search-location {
    border-top:1px solid #eee;
  }

  .search-location select {
    padding:18px 0;
    font-size:16px;
  }

  .divider {
    display:none;
  }

  .search-btn {
    width:100%;
    border-radius:0;
    padding:18px;
    font-size:18px;
  }

  /* FILTERS */ .filters {
    justify-content:flex-start;
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:10px;
  }

  .filters::-webkit-scrollbar {
    display:none;
  }

  .filters button {
    white-space:nowrap;
    flex-shrink:0;
  }

  /* JOB SECTION */ #app {
    flex-direction:column;
  }

  #job-list {
    width:100%;
    height:auto;
    max-height:none;
  }

  #job-detail {
    width:100%;
    position:relative;
    top:auto;
    max-height:none;
    margin-top:20px;
  }
  .back-btn{display:block;}
}

/* === */ /* VERY SMALL MOBILE */ /* === */ @media (max-width:480px) {
  body {
    padding:10px;
  }

  .logo {
    font-size:26px;
  }

  nav {
    font-size:14px;
    gap:15px;
  }

  .job-card {
    padding:14px;
  }
  .job-card h3 {
    font-size:16px;
  }
  #job-detail {
    padding:18px;
  }
  #job-detail h2 {
    font-size:24px;
  }
}


