/* =========================
   Root Variables
   ========================= */
:root {
  --nav-height: 80px;
  --break-tablet: 1024px;
  --break-mobile: 768px;

  /* Chatbot */
  --fab-size: 64px;
  --chatbot-w: 360px;
  --chatbot-h: 520px;
}

/* =========================
   Reset & Base
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  opacity: 1;
  transition: opacity 0.3s ease-in;
}
a {
  text-decoration: none;
}

/* =========================
   NAVBAR (desktop + mobile)
   ========================= */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
  animation: fadeIn 0.8s ease-out forwards;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LEFT - Logo + Brand */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.logo img {
  height: 60px;
}
.brand-text h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: #222;
}
.brand-text p {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  line-height: 1.2;
}

/* CENTER - Links */
.nav-links {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  color: #111;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background-color: #D9792B;
  transition: width 0.3s;
}
.nav-links li a:hover {
  color: #D9792B;
}
.nav-links li a:hover::after {
  width: 100%;
}

/* Logout button styled like a nav link */
.nav-link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #111;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
}

.nav-link-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background-color: #D9792B;
  transition: width 0.3s;
}

.nav-link-btn:hover {
  color: #D9792B;
}

.nav-link-btn:hover::after {
  width: 100%;
}


/* RIGHT - Contact Info */
.contact-info {
  flex: 1;
  text-align: right;
  font-size: 0.85rem;
  line-height: 1.4;
}
.contact-info .support-text {
  font-weight: 600;
  color: #111;
}
.contact-info a {
  color: #065f8d;
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
}
.contact-info a:hover {
  text-decoration: underline;
}

/* Hamburger (checkbox hidden) */
.nav-toggle {
  display: none; /* always hidden – we toggle via label */
}
.nav-toggle-label {
  display: none;  /* shown only on mobile */
  cursor: pointer;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  display: block;
  width: 25px;
  height: 3px;
  background-color: #111;
  border-radius: 2px;
  position: relative;
  transition: all 0.3s ease;
}
.nav-toggle-label span::before {
  position: relative;
  top: -8px;
}
.nav-toggle-label span::after {
  position: relative;
  top: 5px;
}

/* Tablet tweaks */
@media (max-width: 1024px) {
  .nav-links {
    gap: 20px;
  }
  .brand-text h1 { font-size: 1.3rem; }
  .brand-text p,
  .contact-info { font-size: 0.8rem; }
}

/* ===== Mobile Navbar ===== */
@media (max-width: 768px) {
  .navbar {
    height: auto;
  }

  .nav-container {
    padding: 0 16px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Logo shrink a bit */
  .logo img { height: 44px; }
  .brand-text h1 { font-size: 1.1rem; }
  .brand-text p { font-size: 0.75rem; }

  /* Show hamburger icon (label only) */
  .nav-toggle-label {
    display: block;
    margin-left: 8px;
  }

  /* Hide menu + contact by default */
  .nav-links,
  .contact-info {
    display: none;
  }

  /* When hamburger checked: show dropdowns */
  #nav-toggle:checked ~ .nav-links,
  #nav-toggle:checked ~ .contact-info {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px 8px;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .nav-links li a {
    white-space: nowrap;
    font-size: 0.95rem;
  }

  .contact-info {
    position: absolute;
    top: calc(var(--nav-height) + 220px); /* under links block */
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 16px 16px;
    background: rgba(255,255,255,0.97);
    text-align: left;
  }
}

/* Push page content below navbar */
main {
  padding-top: calc(var(--nav-height) + 20px);
}

/* =========================
   Landing / Home
   ========================= */
body.home {
  background: url('../assets/landing_bg.png') center/cover no-repeat fixed;
}

.landing-page {
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "image sidebar"
    "footnote sidebar";
  gap: 0;
  padding-top: 0;
  padding-bottom: 40px;
  width: 100vw;
}

.landing-image {
  grid-area: image;
  max-height: 60vh;
  overflow: hidden;
  opacity: 0;
  animation: slideInLeft 1s ease-out forwards;
  animation-delay: 0.2s;
}
.landing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.landing-sidebar {
  grid-area: sidebar;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  border-radius: 8px;
  box-shadow: none;
  position: relative;
}
.landing-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assets/image.png') center/cover no-repeat;
  opacity: 0.3;
  z-index: -1;
}

.landing-logo {
  width: 280px;
  margin-bottom: 13px;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.6s;
}
.landing-title {
  font-size: 1.8rem;
  text-align: center;
  line-height: 1.3;
}

.landing-footnote {
  grid-area: footnote;
}
.landing-footnote p {
  font-style: italic;
  line-height: 1.5;
  color: #0c0c0c;
}

/* Landing responsive */
@media (max-width: 1024px) {
  .landing-page {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "sidebar"
      "footnote";
  }

  .landing-image img {
    max-height: 40vh;
    object-fit: cover;
  }

  .landing-logo { width: 200px; }
  .landing-title { font-size: 1.5rem; }
}

/* =========================
   Generic Sections
   ========================= */
section {
  padding: 60px 20px;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 2.25rem;
}

/* Section separator */
.section-separator {
  width: 100vw;
  overflow: hidden;
  line-height: 0;
  transform: translateY(-1px);
}
.section-separator svg {
  width: 100%;
  height: 40px;
}

/* =========================
   Acknowledgement
   ========================= */
.ack-page {
  background: #fff;
}
.ack-content {
  max-width: 900px;
  margin: auto;
  text-align: center;
}
.ack-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.ack-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: auto;
}
.highlight {
  color: inherit;
  font-weight: 600;
}

/* =========================
   Services
   ========================= */
#services {
  background: url('../assets/modern-gradient-background-picjumbo-com.jpg') center/cover no-repeat;
}
#services .section-header h2 {
  font-size: 3rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  justify-items: center;
}
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transition: transform .3s;
}
.service-card:hover {
  transform: translateY(-6px);
}
.service-card h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
  color: #D9792B;
}
.service-card p {
  font-size: 1.125rem;
  line-height: 1.6;
}

/* =========================
   About
   ========================= */
#about {
  background: #fff;
}
#about .section-header h2 {
  font-size: 3rem;
}
.team-member { text-align: center; }
.team-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #ddd;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  margin-bottom: 16px;
}
.team-name {
  font-size: 1.25rem;
  font-weight: 600;
}

/* About text */
#about .about-text p {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 16px;
  line-height: 1.65;
}
#about .about-text h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 22px 0 14px;
  text-align: center;
}
#about .about-text ul {
  max-width: 980px;
  margin: 0 auto 28px;
  padding-left: 1rem;
  list-style-type: disc;
  list-style-position: outside;
  line-height: 1.7;
}
#about .about-text ul li {
  margin-bottom: 6px;
}

/* About team photos hidden for now */
.about-team, .team-photo {
  display: none !important;
}

/* About intro lead paragraph */
#about .about-intro .lead {
  max-width: 900px;
  margin: 0 auto 22px;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #2b2b2b;
}
@media (min-width: 900px) {
  #about .about-intro .lead { font-size: 1.18rem; }
}

/* Divider */
.about-divider {
  height: 1px;
  max-width: 720px;
  margin: 18px auto 26px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.14), transparent);
  border-radius: 1px;
}

/* Core values grid */
.core-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto 42px;
  padding: 0 12px;
}
.core-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.core-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}
.core-card h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #D9792B;
  font-weight: 700;
}
.core-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #333;
}

/* =========================
   Recruitment
   ========================= */
#recruit {
  background: url('../assets/modern-gradient-background-picjumbo-com.jpg') center/cover no-repeat;
}
.recruit-hero h2 {
  font-size: 2.8rem;
  margin-bottom: .5rem;
}
.recruit-hero p {
  font-size: 1.125rem;
  margin-bottom: 60px;
}
.recruit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
  justify-content: center;
}
@media (max-width: 1200px) {
  .recruit-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.recruit-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .3s;
  cursor: pointer;
}
.recruit-card:hover {
  transform: translateY(-6px);
}
.card-image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  object-position: center 40%;
}
.card-header {
  padding: 20px;
  text-align: center;
}
.card-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.card-header h4 {
  font-size: 1rem;
  color: #555;
}
.card-details {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  opacity: 0;
  transition: max-height .4s ease, opacity .3s .1s, padding-bottom .4s .1s;
}
.recruit-card:hover .card-details {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 20px;
}
.card-details p,
.card-details ul li {
  font-size: .95rem;
  line-height: 1.5;
  color: #444;
  margin-bottom: 6px;
}
.card-details ul {
  list-style: disc inside;
  padding: 0;
}

.recruit-hero,
.recruit-cta {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* CTA Button */
.recruit-cta {
  text-align: center;
  margin-top: 40px;
}
.recruit-cta .btn-apply {
  display: inline-block;
  max-width: 320px;
  width: auto;
  padding: 16px 40px;
  background: #D9792B;
  color: #fff;
  font-size: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  text-decoration: none;
  transition: background .3s, transform .2s;
}
.recruit-cta .btn-apply:hover {
  background: #bf6f28;
  transform: translateY(-2px);
}

/* =========================
   Apply / Feedback Pages
   ========================= */
body.apply-page,
.feedback-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: url('../assets/modern-gradient-background-picjumbo-com.jpg') center/cover fixed no-repeat;
}

.apply-form-page {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
}

/* Apply Card */
.apply-card {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  margin: 30px auto;
  max-width: 1000px;
  width: 90%;
  animation: fadeInUp 0.8s ease both;
}
.apply-card h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  font-weight: 700;
  color: #222;
}

/* Form layout */
.apply-form {
  display: grid;
  gap: 24px;
}
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  color: #333;
}
.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
}

/* Inputs / selects */
.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"],
.apply-form input[type="number"],
.apply-form input[type="date"],
.apply-form input[type="file"],
.apply-form select {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.apply-form input:focus,
.apply-form select:focus {
  border-color: #6c63ff;
  outline: none;
  box-shadow: 0 0 6px rgba(108,99,255,0.3);
}

/* Slider group */
.slider-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.slider-group input[type="range"] {
  flex: 1;
}

/* Radio / checkbox groups */
.radio-group,
.checkbox-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Submit button */
.btn-apply {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #6c63ff, #4a47a3);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 10px;
}
.btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Extra certificate input row */
.cert-input-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.cert-input-group input { flex: 1; }
.cert-input-group button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #6c63ff;
  color: #fff;
  cursor: pointer;
}

/* =========================
   Footer (simple)
   ========================= */
.simple-footer {
  background: #1e293b;
  color: #cbd5e1;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}
.simple-footer .footer-container {
  max-width: 1100px;
  margin: auto;
}
.simple-footer .support-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #f8fafc;
}
.simple-footer .support-info i {
  color: #38bdf8;
  font-size: 1.2rem;
}
.simple-footer .footer-bottom p {
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: #94a3b8;
}
.simple-footer .credits {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  color: #cbd5e1;
}
.simple-footer .credits a {
  color: #f1f5f9;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.simple-footer .credits a:hover {
  color: #38bdf8;
}
.simple-footer .credits i {
  font-size: 1rem;
}

/* Legacy footer bottom ribbon (if used) */
.footer-bottom {
  background-color: #1d2733;
  color: #ccc;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 25px 40px;
  position: relative;
  z-index: 5;
}
.footer-left p {
  margin: 5px 0;
  font-size: 1rem;
}
.footer-left .feedback-link,
.footer-left .privacy-link {
  color: #ffcc66;
  text-decoration: none;
  font-weight: 500;
  margin-left: 8px;
}
.footer-left .feedback-link:hover,
.footer-left .privacy-link:hover {
  color: #fff;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  padding-right: 60px;
}
.footer-right a {
  color: #ccc;
}
.footer-right a:hover { color: #fff; }
.footer-right i { margin-right: 4px; }
.social-icons {
  display: flex;
  gap: 15px;
  margin-left: 20px;
  font-size: 1.4rem;
}
.social-icons i {
  color: #ccc;
  cursor: pointer;
}
.social-icons i:hover { color: #fff; }

/* =========================
   Chatbot Widget
   ========================= */
#chatbot-container {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  left: auto !important;
  z-index: 10000;
}

/* Floating Action Button */
#chatbot-toggle {
  all: unset;
  position: relative;
  width: var(--fab-size);
  height: var(--fab-size);
  display: grid;
  place-items: center;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.15), transparent 40%),
    linear-gradient(135deg, #ff7a18 0%, #ff3d77 40%, #845ec2 100%);
  box-shadow:
    0 12px 24px rgba(132, 94, 194, .35),
    0 4px 10px rgba(0,0,0,.15);
  transition: transform .25s ease, box-shadow .25s ease, filter .35s ease;
  animation: fab-float 3.5s ease-in-out infinite;
}
#chatbot-toggle::before {
  content:"";
  position:absolute; inset:-8px;
  border-radius:inherit;
  background: conic-gradient(from 0deg, #ffb703, #ff3d77, #845ec2, #22c55e, #ffb703);
  filter: blur(18px);
  opacity:.55;
  transition: opacity .3s ease;
  z-index:-1;
}
#chatbot-toggle i { font-size:26px; }
#chatbot-toggle:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 36px rgba(132,94,194,.45), 0 8px 16px rgba(0,0,0,.18);
}
#chatbot-toggle:hover::before { opacity:.9; }
#chatbot-toggle:active { transform: translateY(-1px) scale(.98); }
@keyframes fab-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}

/* Tooltip */
#chatbot-toggle[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 78px;
  bottom: 50%;
  transform: translateY(12px);
  padding: 8px 10px;
  font-size: 12px;
  white-space: nowrap;
  color:#0f172a;
  background:#fff;
  border-radius:8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  opacity:0;
  pointer-events:none;
  transition: opacity .25s, transform .25s;
}
#chatbot-toggle:hover::after {
  opacity:1;
  transform: translateY(0);
}

/* Tiny unread dot */
#chatbot-toggle.has-unread::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 1px;
  width: 0.3px;
  height: 0.1px;
  background: #f57c00;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: none;
  z-index: 2;
}

/* Chat frame */
#chatbot-frame {
  display:none; /* JS sets to flex */
  position: fixed;
  bottom: calc(24px + var(--fab-size) + 12px);
  right: 24px;
  width: var(--chatbot-w);
  max-width: calc(100vw - 32px);
  height: var(--chatbot-h);
  max-height: calc(100vh - 120px);
  background: url('../assets/chatbot_bg.png') center/cover no-repeat;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: bottom right;
  transform: scale(.98) translateY(8px);
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
}
#chatbot-frame[style*="display: flex"] {
  opacity:1;
  transform: scale(1) translateY(0);
}

/* Chat parts */
#chat-header {
  background-color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 18px;
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}
#chat-messages {
  flex: 1;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(3px);
  -webkit-overflow-scrolling: touch;
}
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  word-break: break-word;
  white-space: pre-line;
}
.chat-bubble.user {
  align-self: flex-end;
  background:#f57c00;
  color:#fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble.bot {
  align-self: flex-start;
  background:#eeeeee;
  color:#333;
  border-bottom-left-radius: 4px;
}
#chat-input {
  display:flex;
  padding:12px;
  background:rgba(255,255,255,.95);
  border-top:1px solid #ccc;
}
#chat-input input {
  flex:1;
  padding:10px;
  border-radius:8px;
  border:1px solid #ccc;
  outline:none;
  font-size:14px;
}
#chat-input button {
  margin-left:8px;
  padding:10px 16px;
  background:#f57c00;
  border:none;
  border-radius:8px;
  color:#fff;
  font-size:14px;
  cursor:pointer;
  transition:background-color .2s;
}
#chat-input button:hover { background:#ef6c00; }
#chat-input button:disabled { opacity:.6; cursor:not-allowed; }

/* Typing indicator */
.typing-bubble {
  align-self:flex-start;
  background:#eeeeee;
  color:#333;
  border-radius:16px;
  padding:10px 14px;
  max-width:60%;
  display:inline-flex;
  gap:6px;
}
.typing-bubble .dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#999;
  animation: blink 1s infinite;
}
.typing-bubble .dot:nth-child(2){ animation-delay:.2s; }
.typing-bubble .dot:nth-child(3){ animation-delay:.4s; }
@keyframes blink {
  0%,80%,100% { opacity:.2; transform:translateY(0); }
  40%        { opacity:1; transform:translateY(-2px); }
}

/* =========================
   Animations
   ========================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
} 


/* =========================
   Why Choose MedNest (replaces Core Values block)
   ========================= */

.whychoose-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 14px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: start;
}

.whychoose-kicker{
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
  color: #0f766e;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.whychoose-title{
  font-size: 3.2rem;
  line-height: 1.05;
  margin: 0 0 14px;
  color: #0b0b0b;
  font-weight: 800;
}

.whychoose-lead{
  max-width: 720px;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 22px;
  text-align: left;
}

.whychoose-points{
  display: grid;
  gap: 18px;
  margin-top: 10px;
}

.whychoose-point{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.whychoose-icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef2f7;
  font-size: 18px;
}

.whychoose-point-title{
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.whychoose-point-text{
  color: #64748b;
  line-height: 1.6;
  font-size: .98rem;
}

.whychoose-card{
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.whychoose-card-title{
  margin: 4px 0 18px;
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
}

.whychoose-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.whychoose-list li{
  position: relative;
  padding-left: 30px;
  color: #334155;
  line-height: 1.55;
}

.whychoose-list li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #0f766e;
  background: rgba(15,118,110,0.12);
}

.whychoose-badge{
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f3f7f6;
  border: 1px solid rgba(15,118,110,0.15);
  display: flex;
  gap: 14px;
  align-items: center;
}

.whychoose-badge-icon{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #0f766e;
  color: #fff;
  font-weight: 900;
}

.whychoose-badge-title{
  font-weight: 800;
  color: #0f172a;
}

.whychoose-badge-sub{
  color: #64748b;
  font-size: .95rem;
}

/* Responsive */
@media (max-width: 1024px){
  .whychoose-wrap{
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .whychoose-title{
    font-size: 2.4rem;
  }
}

/* =========================
   ACKNOWLEDGEMENT (Lovable-style)
   ========================= */

.ack-page{
  position: relative;
  background: #ffffff;
  padding: 72px 16px;
  overflow: hidden;
}

/* Top rainbow strip */
.ack-page::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 10px;
  background: linear-gradient(90deg,
    #111 0%,
    #b79a00 20%,
    #f39c12 45%,
    #e74c3c 70%,
    #b00020 100%
  );
}

/* Bottom green → blue strip */
.ack-page::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 10px;
  background: linear-gradient(90deg,
    #0f8a3b 0%,
    #14a86a 35%,
    #18b3a8 65%,
    #1e88ff 100%
  );
}

.ack-content{
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

/* Serif / editorial heading */
.ack-content h1{
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: clamp(34px, 4vw, 54px);
  color: #1f1f1f;
  text-transform: none; /* keep your casing */
}

/* Center card */
.ack-card{
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 34px 36px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

/* Left vertical gradient accent bar */
.ack-card::before{
  content:"";
  position:absolute;
  left: 18px;
  top: 22px;
  bottom: 22px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #b00020 0%, #f39c12 50%, #e74c3c 100%);
}

.ack-card p{
  margin: 0;
  color: #444;
  line-height: 1.65;
  font-size: 16px;
  text-align: center;
  padding-left: 10px; /* slight spacing from the bar */
}

/* Optional: highlight style you already use */
.ack-card .highlight{
  font-weight: 700;
  color: #1f1f1f;
}


/* =========================
   RECRUITMENT (new roles cards)
   ========================= */

.recruit-page {
  padding: 90px 0;
  /* keep your existing gradient if recruit-page already has one */
}

.recruit-page .recruit-hero {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 44px;
  padding: 0 18px;
}

.recruit-page .recruit-hero h2 {
  margin: 0 0 12px;
}

.recruit-page .recruit-hero p {
  margin: 0 auto;
  max-width: 760px;
  color: rgba(0,0,0,0.65);
  line-height: 1.6;
}

/* FORCE 4x2 grid (for 8 roles) */
.recruit-page .roles-grid {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 26px !important;
  align-items: stretch;
}

/* Responsive */
@media (max-width: 1100px) {
  .recruit-page .roles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 620px) {
  .recruit-page .roles-grid {
    grid-template-columns: 1fr !important;
  }
}


/* Card */
.recruit-page .role-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 26px 26px 22px;
  box-shadow: 0 12px 30px rgba(20, 20, 20, 0.10);
  transition: transform 180ms ease, box-shadow 180ms ease;
  min-height: 190px;
}

.recruit-page .role-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 44px rgba(20, 20, 20, 0.16);
}

/* =========================
   THEME ORANGE VARS (keep once)
   ========================= */
:root{
  --mn-orange: #ff7a2f;
  --mn-orange-soft: rgba(255, 122, 47, 0.14);
}

/* =========================
   WHY CHOOSE — FORCE ORANGE (final)
   ========================= */

/* The green "WHY CHOOSE MEDNEST" kicker */
.about-page .whychoose-kicker{
  color: var(--mn-orange) !important;
  letter-spacing: 0.12em;
}

/* Badge circle "M" */
.about-page .whychoose-badge-icon{
  background: var(--mn-orange) !important;
  color: #fff !important;
}

.about-page .whychoose-badge{
  border-color: rgba(255, 122, 47, 0.25) !important;
}

/* If your list uses a pseudo-element tick */
.about-page .whychoose-list li::before{
  background: var(--mn-orange-soft) !important;
  border-color: rgba(255, 122, 47, 0.25) !important;
  color: var(--mn-orange) !important;
}

/* If your list uses icons instead (FontAwesome / svg) */
.about-page .whychoose-list i,
.about-page .whychoose-list svg{
  color: var(--mn-orange) !important;
  fill: var(--mn-orange) !important;
  stroke: var(--mn-orange) !important;
}


/* =========================
   SERVICES — Lovable-style layout + hover lift
   ========================= */

:root{
  --mn-orange: #ff7a2f;
}

/* section spacing */
.services-page{
  padding: 90px 24px;
  text-align: center;
}

/* big heading like your screenshot */
.services-page .services-hero h2{
  margin: 0 0 44px;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: -0.02em;
}

/* 3 cards layout */
.services-page .services-grid{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

/* card */
.services-page .service-card{
  text-align: left;
  background: rgba(255,255,255,0.92);
  border-radius: 22px;
  padding: 34px 34px 32px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

/* hover float */
.services-page .service-card:hover{
  transform: translateY(-10px);
  box-shadow: 0 22px 44px rgba(0,0,0,0.14);
}

/* headings */
.services-page .service-card h3{
  margin: 0 0 14px;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--mn-orange);
}

/* body text */
.services-page .service-card p{
  margin: 0;
  color: rgba(0,0,0,0.70);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* responsive */
@media (max-width: 980px){
  .services-page .services-grid{
    grid-template-columns: 1fr;
  }
  .services-page .service-card{
    text-align: left;
  }
}


/* subtitle + bottom line */
.services-page .services-subtitle{
  max-width: 820px;
  margin: 14px auto 44px;
  color: rgba(255,255,255,0.90);
  font-size: 1.05rem;
  line-height: 1.6;
}

.services-page .services-footnote{
  margin: 42px auto 0;
  max-width: 820px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

