 :root{
  --accent:#0b6efd;
  --muted:#666;
  --bg:#f7f8fb;
  --card:#fff;
  --max-width:1100px;
  --radius:8px;
}
/*Basic Reset*/
*{margin: 0; padding: 0; box-sizing:border-box;}


/* *{box-sizing:border-box} */
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;
  margin:0;
  background:var(--bg);
  color:#111;
  line-height:1.45;
}
/*Header*/
header{
  width: 100%;
  background: #0A2A43;
  color:#fff;
  display: flex;
  justify-content: space-between;
  align-self: center;
  padding: 15px;
  position: relative;
}
.logo{
  font-size:20px;
  font-weight:bold;
}


/* Logo container */
.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: auto;
}

.logo-text {
  font-size: 20px;
  font-weight: bold;
  color: white;
}






/*Navigation */
#navMenu ul {
  list-style: none;
  display:flex;
  gap:20px;
}
#navMenu ul li a {
  color:white;
  text-decoration: none;
}
/*hamburger ICON */
.hamburger {
  display:none;
  cursor:pointer;
  flex-direction: column;
  gap:5px;
  padding:15px;
}
.hamburger span {
  width: 30px;
  height:4px;
  background:white;
  border-radius:5px;
}

/* ---------------------------
   Slideshow (3-at-a-time)
---------------------------- */
.slideshow-container {
  width: 100%;
  overflow: hidden;
  margin: 1.8rem 0;
}

.slide-track {
  display: flex;
  gap: 15px;
/*  animation: scrollSlides 18s linear infinite; */

  animation: scrollSteps 60s steps(4) infinite; 
}

.slide-track img {
  width: calc(33.333% - 10px); /* 3 images visible */
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0px 3px 12px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

/*
@keyframes scrollSlides {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
*/

@keyframes scrollSteps {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-100%); }
  50%  { transform: translateX(-200%); }
  75%  { transform: translateX(-300%); }
  100% { transform: translateX(0); }
}


/* MOBILE: show 1 image */
@media (max-width: 600px) {
  .slide-track img {
    width: 85%; 
    margin-right: 10px;
  }
}




/*MOBILE VIEW */
@media (max-width:768px){

   .hamburger { display:flex; }
#navMenu{
  display:none;
  position:absolute;
  top:60px;
  right:0;
  width:200px;
  background: #0A2A43;
  padding:15px;
}
#navMenu ul {
  flex-direction: column;
  gap:15px;
}

#navMenu ul {
  list-style:none;
  display:flex;
  gap:20px;
}

#navMenu ul li a {
  color:white;
  text-decoration:none;
}


.hamburger {
  display:flex;
}


.hamburger-menu {
  display:flex;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}
}
#navMenu.show {
  display:block;
}

.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:1rem;
}

.site-header{
width: 100%;
color: white;
  padding: 15px;
  position: relative;
  background:#0A2A43;
  border-bottom:1px solid #003458;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Intro Image Gallery */

/*
.intro-gallery {
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.intro-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0px 4px 14px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-gallery img:hover {
  transform: scale(1.04);
box-shadow: 0px 6px 20px rgba(0,0,0,0.25);
}

*/




.brand{margin:0;color:var(--accent)}
nav a{margin-left:1rem;text-decoration:none;color:var(--muted)}

.page{padding:2rem 0}
.hidden{display:none}

.entry-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1rem;
  margin-top:1rem;
}
.card{
  background:var(--card);
  padding:1rem;
  border-radius:var(--radius);
  box-shadow:0 6px 18px rgba(11,110,253,0.06);
}
.card h3{margin-top:0}
.card button{
  background:var(--accent);
  color:#fff;
  border:0;
  padding:.6rem .8rem;
  border-radius:6px;
  cursor:pointer;
}



/* password styling */

.pw-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.pw-wrapper input {
  width: 100%;
  padding: 10px 40px 10px 10px; /* right padding so the eye doesn't overlap text */
  font-size: 1rem;
  box-sizing: border-box;
}

.togglePw {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
}


/*signin and signup styling */

.login-signup-panel {
  background: #f1f4f8;
  padding: 1.5rem 0;
}

.panel-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.login-card, .signup-card, .other-services-card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  flex: 1 1 250px;
  min-width: 220px;
}

.login-card form input, .login-card form button,
.signup-card button, .other-services-card button {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.signup-card button, .other-services-card button {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
}

.signup-card button:hover, .other-services-card button:hover {
  opacity: 0.9;
}






/* forms */
form{background:#fff;padding:1rem;border-radius:8px;box-shadow:0 6px 18px rgba(0,0,0,0.03)}
label{display:block;margin-bottom:.6rem;font-size:.95rem}
input[type="text"],input[type="email"],input[type="tel"],input[type="number"],select,input[type="password"]{
  display:block;width:100%;padding:.5rem;border:1px solid #ddd;border-radius:6px;margin-top:.25rem;
}
fieldset{border:1px solid #eee;padding:1rem;margin-bottom:1rem;border-radius:6px}
legend{font-weight:600}
.form-actions{display:flex;gap:.5rem}
.form-actions button{padding:.6rem 1rem;border-radius:6px;border:0;background:var(--accent);color:#fff;cursor:pointer}

.site-footer{padding:1rem 0;text-align:center;color:#777}




/* ────────────────────────────────────────────────
   UNIVERSAL PAGE SECTION STYLING
────────────────────────────────────────────────── */
.page h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #333;
  font-weight: 700;
}

/* Only center introductory text at top of the page if needed */
.page-intro {
  text-align: center;
  margin-bottom: 1rem;
}


.page p {
  text-align: left;
  color: #555;
  margin-bottom: 1.2rem;
}

/* ────────────────────────────────────────────────
   FORM BOX
────────────────────────────────────────────────── */
.page form {
  width: 95%;
  max-width: 650px;
  margin: 0 auto;
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* ────────────────────────────────────────────────
   FIELDSET & LEGEND
────────────────────────────────────────────────── */
.page fieldset {
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.page legend {
  font-weight: 600;
  padding: 0 .4rem;
  color: #222;
}

/* ────────────────────────────────────────────────
   LABELS & INPUT FIELDS
────────────────────────────────────────────────── */
.page label {
  display: block;
  margin-bottom: .6rem;
  font-size: .95rem;
  color: #444;
}

.page input,
.page select,
.page textarea {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: .25rem;
  font-size: 1rem;
  transition: border-color .3s ease;
}

.page input:focus,
.page select:focus,
.page textarea:focus {
  border-color: #007bff;
  outline: none;
}

/* ────────────────────────────────────────────────
   TEXTAREA
────────────────────────────────────────────────── */
.page textarea {
  resize: vertical;
  min-height: 100px;
}

/* ────────────────────────────────────────────────
   BUTTONS
────────────────────────────────────────────────── */
.page .form-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.page .form-actions button {
  min-width: 120px;
}

.page button {
  padding: .8rem 1.4rem;
  background: #007bff;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .3s ease;
}

.page button:hover {
  background: #0056b3;
}

/* Back link */
.page .back {
  text-align: center;
  margin-top: 1.2rem;
}

.page .back a {
  color: #007bff;
  text-decoration: none;
  font-size: 0.95rem;
}

.page .back a:hover {
  text-decoration: underline;
}

.page .form-desc {
  text-align: left;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #555;
}





/* ────────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .page form {
    padding: 1.2rem;
  }
}


.dashboard-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0A2A43;
  color: white;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.dashboard-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.dashboard-nav ul li a {
  color: white;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

.dashboard-nav ul li a:hover {
  background: rgba(255,255,255,0.2);
}

.dashboard-main {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.dashboard-section {
  margin-bottom: 2rem;
}

.dashboard-section h3 {
  margin-bottom: 1rem;
  color: #0b6efd;
}

.dashboard-section button {
  background: #0b6efd;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.dashboard-section button:hover {
  opacity: 0.9;
}

.hidden { display: none !important; }



.profile-pic-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0;
}

.profile-pic-wrapper img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 0.5rem;
}

.profile-pic-wrapper p {
  font-weight: 600;
  color: #333;
}

#photoPreviewWrapper {
  margin-top: 0.5rem;
  text-align: center;
}

#photoPreview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* =========================
   DASHBOARD LAYOUT
========================= */

.dashboard-container {
  padding: 20px;
  background: #f5f6fa;
  min-height: 100vh;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.dashboard-header h2 {
  font-size: 24px;
  font-weight: 600;
}

.dashboard-nav ul {
  display: flex;
  gap: 18px;
}

.dashboard-nav a {
  text-decoration: none;
  padding: 8px 14px;
  background: #007bff;
  color: white;
  border-radius: 6px;
  transition: 0.3s;
}

.dashboard-nav a:hover {
  background: #005bb5;
}


/* GRID LAYOUT */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 20px;
}

.dash-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


/* =========================
   DASHBOARD CARDS
========================= */

.dash-card {
  background: white;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.dash-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
  color: #333;
}


/* =========================
   PROFILE PICTURE
========================= */

.profile-pic-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #007bff;
}

.profile-pic-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#editProfileBtn.full {
  width: 100%;
  margin-top: 15px;
}


/* =========================
   QUALIFICATIONS LIST
========================= */

#qualification-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#qualification-list li {
  padding: 10px;
  background: #eef3ff;
  border-left: 4px solid #007bff;
  margin-bottom: 8px;
  border-radius: 6px;
  font-size: 14px;
}


/* =========================
   JOB ACTIVITY TABLE
========================= */

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dash-table th, .dash-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #ddd;
}

.dash-table th {
  background: #007bff;
  color: white;
  text-align: left;
}

.status {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.status.pending {
  background: #ffea9e;
  color: #856404;
}

.status.approved {
  background: #c7ffcf;
  color: #155724;
}

.mini-btn {
  padding: 5px 10px;
  border: none;
  background: #28a745;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.mini-btn:hover {
  background: #1e7e34;
}


/* =========================
   JOB ADVERTS SECTION
========================= */

.job-adverts {
  max-height: 350px;
  overflow: hidden;
  position: relative;
}

.job-scroller {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: scrollJobs 10s linear infinite;
}

.job-ad {
  background: #fff7e0;
  padding: 12px;
  border-left: 4px solid #e0a800;
  border-radius: 6px;
  font-size: 14px;
}

/* Scrolling animation */
@keyframes scrollJobs {
  0% { transform: translateY(0); }
  100% { transform: translateY(-40%); }
}


/* =========================
   RESPONSIVENESS
========================= */

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.form-message {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-weight: bold;
}

.form-message.error {
  background: #ffdddd;
  color: #b30000;
}

.form-message.success {
  background: #ddffdd;
  color: #0f8b00;
}


.form-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Small loading spinner inside message box */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: rgba(0,0,0,0.6);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 6px;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Optional: style for message box */
.form-message {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}
.form-message.loading { background: #fff3cd; color: #856404; }
.form-message.success { background: #d4edda; color: #155724; }
.form-message.error { background: #f8d7da; color: #721c24; }


/* Spinner for login message */
#login-msg-box .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 6px;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.role-toggle {
  margin: 15px 0 20px 0;
  padding: 15px;
  border-radius: 8px;
  background: #f5f5f5;
  text-align: center;
}

.toggle-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.toggle-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.role-btn {
  padding: 8px 15px;
  border-radius: 5px;
  border: 1px solid #aaa;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.role-btn.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}
