/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: #222; }

a { color: inherit; text-decoration: none; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fffdf8;
  border-bottom: 1px solid #eee3c6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.logo img { height: 36px; width: auto; border-radius: 6px; }

/* Hamburger button */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: #222;
  transition: transform .3s ease;
}

/* Links container */
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link, .dropbtn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
}

.link:hover, .dropbtn:hover { background: #f5f2ea; }

.btn {
  background: #0ea5e9;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
}

.dropdown {
  position: relative;
}

.dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropbtn .chev {
  display: inline-block;
  transition: transform .25s ease;
}

/* Mega menu panel */
.dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 14px;
  min-width: 520px;
  padding: 16px;
  background: #fff;
  border: 1px solid #eee3c6;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

/* Desktop open on hover */
.dropdown:hover > .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.box {
  background: #fffdf8;
  border: 1px solid #eee3c6;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  place-items: start;
  gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  background: #fff9ef;
}
.box i { font-size: 22px; }
.box h4 { margin: 0; font-size: 14px; font-weight: 700; }
.box p { margin: 0; font-size: 12px; color: #6b7280; }

/* ---------- Hero ---------- */
/* ---------- Hero Section ---------- */
.hero {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero p {
  color: #555;
  margin-bottom: 30px;
  font-size: 18px;
}

/* Search bar */
.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.search-bar input,
.search-bar select {
  flex: 1;
  padding: 12px 14px;
  border: none;
  outline: none;
  font-size: 15px;
}

.search-bar select {
  min-width: 150px;
}

.search-bar input:first-child {
  border-right: 1px solid #eee;
}
.search-bar select {
  border-right: 1px solid #eee;
}
.search-bar input:last-of-type {
  border-right: 1px solid #eee;
}

.demo-btn {
  background: #0ea5e9;
  color: #fff;
  padding: 12px 18px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.demo-btn:hover {
  background: #0284c7;
}

/* Hero actions */
.hero {
  padding: 80px 20px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  color: #fff; /* make text visible on image */
  
  /* Background image */
  background: url("images/Bg\ Medical.jpeg") no-repeat center center/cover;
  position: relative;
}

/* Dark overlay for readability */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}

/* Put text and buttons above overlay */
.hero h1,
.hero p,
.search-bar,
.hero-actions {
  position: relative;
  z-index: 1;
}
.hero p{
  color: white;
}

.hero-actions {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.action-btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.upload-btn {
  background: #f59e0b;
  color: #fff;
}
.upload-btn:hover {
  background: #d97706;
}

.find-btn {
  background: #10b981;
  color: #fff;
}
.find-btn:hover {
  background: #059669;
}

/* Responsive */
@media (max-width: 768px) {
  .search-bar {
    flex-direction: column;
  }
  .search-bar input,
  .search-bar select,
  .search-bar button {
    width: 100%;
    border: none !important;
  }
}

/* ---------- Mobile (<= 900px) ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .nav-links {
    position: fixed;
    inset: 60px 0 0 0;
    background: #fff;
    border-top: 1px solid #eee3c6;
    padding: 12px 12px 40px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    gap: 8px;
  }
  .nav-links.open { display: flex; }

  .dropdown { width: 100%; }
  .dropbtn {
    width: 100%;
    justify-content: space-between;
    background: #fffdf8;
    border: 1px solid #eee3c6;
    border-radius: 12px;
  }

  /* On mobile, dropdown-content becomes an accordion panel */
  .dropdown-content {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: 0;
    border-top: 1px dashed #eee3c6;
    border-radius: 0 0 12px 12px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 10px;
  }
  .dropdown:not(.open) > .dropdown-content { display: none; }

  .dropbtn .chev { transition: transform .2s ease; }
  .dropdown.open .dropbtn .chev { transform: rotate(180deg); }
}
/* ---------- Login & Register ---------- */
.login-panel {
  display: flex;
  flex-direction: column;
  min-width: 200px;
  gap: 6px;
}

.login-option {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f9f9f9;
  transition: background 0.2s;
  font-size: 14px;
}

.login-option:hover {
  background: #eee;
}

.register-btn {
  background: #0ea5e9;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-block;
}

.register-btn:hover {
  background: #0284c7;
}


/* Stats Section */
.stats-section {
  text-align: center;
  margin: 80px auto;
}

.stats-heading {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  background: linear-gradient(90deg, #4b0082, #6a0dad, #4169e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-box {
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  width: 220px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateX(-100px);
  animation: slideIn 1s ease forwards;
  animation-iteration-count: infinite;   /* loop animation */
  animation-delay: 0s;
  animation-duration: 3s;                /* repeat every 3 sec */
}

.stat-box:nth-child(1) { animation-delay: 0s; }
.stat-box:nth-child(2) { animation-delay: 0.3s; }
.stat-box:nth-child(3) { animation-delay: 0.6s; }

.stat-box i {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}

.stat-box h2 {
  font-size: 28px;
  margin-bottom: 6px;
  color: #4b0082; /* royal indigo */
}

.stat-box p {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* Hover effect */
.stat-box:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  50% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 10; /* fade out for loop */
    transform: translateX(100px);
  }
}

/* Featured Departments */
.departments {
  text-align: center;
  padding: 80px 20px;
  background: #f9f9ff;
}

.dept-heading {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 50px;
  background: linear-gradient(90deg, #6a0dad, #4b0082);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.dept-card {
  background: #fff;
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dept-card i {
  font-size: 45px;
  color: #6a0dad;
  margin-bottom: 15px;
}

.dept-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
}

.dept-card ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
  color: #555;
}

.dept-card ul li {
  margin-bottom: 6px;
}

/* Hover effect */
.dept-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* Animated glowing border */
.dept-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 2px solid transparent;
  background: linear-gradient(45deg, #6a0dad, #4169e1, #00c6ff, #6a0dad);
  background-size: 300% 300%;
  z-index: -1;
  animation: glowingBorder 6s linear infinite;
  opacity: 0;
}

.dept-card:hover::before {
  opacity: 1;
}

@keyframes glowingBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.employers {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  background:  
              url('images/Medical.jpeg') no-repeat center center/cover;
  background-attachment: fixed; /* parallax effect */
}

.employers-heading {
  font-size: 32px;
  margin-bottom: 30px;
  color: #6a0dad; /* Royal color */
  font-weight: bold;
}

.employers-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.employer-track {
  display: flex;
  gap: 20px;
  animation: scrollLeft 20s linear infinite;
}

.employer-card {
  min-width: 180px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.employer-card:hover {
  transform: scale(1.05);
  background: #f0e6ff;
}

.employer-card i {
  font-size: 40px;
  color: #6a0dad;
  margin-bottom: 10px;
}

.employer-card p {
  margin: 0;
  font-weight: bold;
  color: #333;
}

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

/* Pause on hover */
.employers-carousel:hover .employer-track {
  animation-play-state: paused;
}


/* Articles Section */
.articles {
  padding: 60px 20px;
  text-align: center;
  background: #f8f8ff;
}

.articles-heading {
  font-size: 32px;
  margin-bottom: 40px;
  color: #6a0dad;
  font-weight: bold;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.article-card {
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  color: white;
  overflow: hidden;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.article-content {
  background: rgba(0,0,0,0.65);
  padding: 20px;
  width: 100%;
  border-radius: 0 0 15px 15px;
  text-align: left;
}

.article-content i {
  font-size: 28px;
  color: #ffd700;
  margin-bottom: 10px;
}

.article-content h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.article-content p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.full-text {
  display: none;
}

.continue-btn {
  color: #ffd700;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
}

/* Show All Button */
.show-all {
  margin-top: 40px;
}

.show-all-btn {
  background: #6a0dad;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.show-all-btn:hover {
  background: #530b9b;
}


.how-it-works {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f9f9ff, #f0e6ff);
  text-align: center;
}

.how-heading {
  font-size: 36px;
  color: #6a0dad;
  font-weight: bold;
  margin-bottom: 10px;
}

.how-sub {
  color: #555;
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.step-card {
  position: relative;
  background: white;
  padding: 40px 20px;
  border-radius: 20px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  background: #fdf8ff;
}

.icon-circle {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #6a0dad;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  transition: background 0.3s ease;
}

.step-card:hover .icon-circle {
  background: #9152d3;
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

.step-card p {
  font-size: 15px;
  color: #666;
}

.step-num {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 40px;
  font-weight: bold;
  color: rgba(106, 13, 173, 0.15);
  pointer-events: none;
}


.testimonials {
  padding: 80px 20px;
  background: #f9f9ff;
  text-align: center;
}

.section-title {
  font-size: 32px;
  color: #6a0dad;
  margin-bottom: 40px;
}

.testimonial-wrapper {
  overflow: hidden;
  position: relative;
}

.testimonial-container {
  display: flex;
  gap: 20px;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

.testimonial-card {
  min-width: 300px;
  max-width: 320px;
  flex: 0 0 auto;
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.4s;
}

.testimonial-card:hover {
  transform: translateY(-10px);
}

.client-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #6a0dad;
}

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

.testimonial-card p {
  font-size: 15px;
  color: #555;
  margin-bottom: 15px;
}

.stars {
  color: #FFD700;
  font-size: 18px;
}


.subscribe-section {
  background: linear-gradient(135deg, #6a0dad, #9c27b0);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.subscribe-content h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.subscribe-content p {
  font-size: 16px;
  margin-bottom: 30px;
  color: #f3e5f5;
}

.subscribe-box {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  margin: 0 auto 30px;
  background: white;
  border-radius: 50px;
  padding: 5px;
}

.subscribe-box input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 50px 0 0 50px;
  outline: none;
  font-size: 16px;
}

.subscribe-btn {
  background: #ff9800;
  border: none;
  padding: 15px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
}

.subscribe-btn:hover {
  background: #e68900;
}

.news-btn {
  background: #ffffff;
  color: #6a0dad;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  transition: transform 0.3s, background 0.3s;
}

.news-btn:hover {
  background: #f3e5f5;
  transform: translateY(-5px);
}


.footer {
  background: #1a1a1a;
  color: #ddd;
  padding: 60px 20px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h3 {
  color: #ff9800;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #ff9800;
  margin-top: 5px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin: 10px 0;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s, padding-left 0.3s;
}

.footer-col ul li a:hover {
  color: #ff9800;
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: #bbb;
}

.contact-info i {
  color: #ff9800;
}

/* Social Icons */
.social-icons {
  margin-top: 15px;
}

.social-icons a {
  display: inline-block;
  margin-right: 12px;
  color: #ccc;
  font-size: 18px;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: #ff9800;
  transform: scale(1.2);
}

/* Review Button */
.review-btn {
  text-align: center;
  margin: 30px 0;
}

.review-btn button {
  background: #ff9800;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 30px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.review-btn button:hover {
  background: #e68900;
  transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 20px;
  padding-top: 15px;
  font-size: 14px;
}

.footer-bottom span {
  color: #ff9800;
}
