:root {
  --deer-teal: #1e3a8a;
  --deer-teal-dark: #162d6b;
  --deer-teal-light: #e8ecff;
  --deer-gray: #4A5C5C;
  --bs-primary: var(--deer-teal);
  --accent-yellow: #ffc107;
}

.fa-bars {
  color: #000922 !important;
}

.how-we-work {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  overflow: hidden;
}

.how-we-work::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.03) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.we-work {
  position: relative;
  z-index: 2;
}

.work-card {
  background: white;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  border: 1px solid rgba(30, 58, 138, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  cursor: default;
}

.work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(30, 58, 138, 0.2);
  box-shadow: 0 20px 35px -12px rgba(30, 58, 138, 0.15);
}

.work-card .step {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(30, 58, 138, 0.06);
  transition: all 0.3s ease;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.work-card:hover .step {
  color: rgba(30, 58, 138, 0.12);
  transform: scale(1.05);
}

.work-card .step-icon {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, var(--deer-teal) 0%, var(--deer-teal-dark) 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 14px rgba(30, 58, 138, 0.2);
}

.work-card .step-icon i {
  font-size: 1.75rem;
  color: white;
}

.work-card:hover .step-icon {
  transform: scale(1.05);
  box-shadow: 0 12px 24px -8px rgba(30, 58, 138, 0.35);
}

.work-card h6 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1e293b;
  position: relative;
  display: inline-block;
}

.work-card h6::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--deer-teal), var(--deer-teal-dark));
  transition: width 0.3s ease;
}

.work-card:hover h6::after {
  width: 40px;
}

.work-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.work-card:hover p {
  color: #475569;
}

@media (min-width: 992px) {
  .work-card::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.5rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--deer-teal), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  
  .col-lg-3:not(:last-child) .work-card::before {
    opacity: 0.25;
  }
  
  .col-lg-3:hover .work-card::before {
    opacity: 0.5;
  }
}

@media (max-width: 768px) {
  .work-card {
    padding: 1.5rem 1.25rem;
  }
  
  .work-card .step {
    font-size: 2.5rem;
    top: 0.75rem;
    right: 1rem;
  }
  
  .work-card h6 {
    font-size: 1.1rem;
  }
}

@media (prefers-color-scheme: dark) {
  .how-we-work {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  }
  
  .work-card {
    background: #1e293b;
    border-color: rgba(30, 58, 138, 0.2);
  }
  
  .work-card h6 {
    color: #f1f5f9;
  }
  
  .work-card p {
    color: #94a3b8;
  }
  
  .work-card:hover p {
    color: #cbd5e1;
  }
}

.btn-infon {
  background: var(--deer-teal) !important;
  font-weight: 500;
  border-radius: 8px;
  padding: .6rem 1.8rem;
  transition: .2s;
  color: white !important;
}

.btn-infon:hover {
  background: var(--deer-teal-dark) !important;
  color: white !important;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  font-family: 'Figtree', sans-serif !important;
  color: #2D3E3E;
  background: #f4f6ff;
  margin-top: 90px;
  line-height: 1.6 !important;
}

h1 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-family: 'Montserrat';
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-family: 'Montserrat';
  color: #010f35 !important;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-family: 'Montserrat';
}

p {
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
}

.container-fluid {
  overflow-x: hidden;
  padding-left: clamp(1.2rem, 5vw, 4rem) !important;
  padding-right: clamp(1.2rem, 5vw, 4rem) !important;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.container {
  overflow-x: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(70px, 10vw, 100px) 20px;
  color: white;
  background: linear-gradient(#061336eb, #020d2be8), url('/static/images/affiliates-collaborating-high-end-workspace-determine-resource-allocation (1).jpg');
  background-size: cover;
  background-position: center;
  margin-top: 50px !important;
}

.section-header h1,
.section-header p {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  animation-delay: .3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#heroCarousel .carousel-item {
  margin-top: 90px !important;
  min-height: 100vh !important;
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
}

#heroCarousel .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#061336eb, #020d2be8);
}

#heroCarousel .carousel-item > .container {
  position: relative;
  z-index: 2;
}

#heroCarousel .carousel-item:nth-child(1) {
  background-image: url('/static/images/affiliates-collaborating-high-end-workspace-determine-resource-allocation (1).jpg');
}

#heroCarousel .carousel-item:nth-child(2) {
  background-image: url('/static/images/business-team-working-laptop (1).jpg');
}

#heroCarousel .carousel-item:nth-child(3) {
  background-image: url('/static/images/female-candidate-sitting-queue-receiving-cv-files-waiting-start-job-interview-about-career-opportunity-woman-getting-ready-attend-recruitment-meeting-with-hr-employee (1).jpg');
}

.navbar {
  position: sticky;
  top: 0;
  background: var(--deer-teal) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  z-index: 1100;
}

.navbar-brand {
  font-weight: 600;
  color: var(--deer-teal-dark) !important;
  max-width: 70%;
}

.navbar .nav-link {
  font-weight: 500;
  margin: 0 .25rem;
  transition: .2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--deer-teal-dark) !important;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.btn-deer {
  background: var(--deer-teal);
  color: white !important;
  font-weight: 500;
  border-radius: 8px;
  padding: .6rem 1.8rem;
  transition: .2s;
}

.btn-deer:hover {
  background: var(--deer-teal-dark);
}

.btn-outline-deer {
  border: 2px solid var(--deer-teal);
  color: var(--deer-teal);
  font-weight: 500;
  border-radius: 8px;
}

.btn-outline-deer:hover {
  background: var(--deer-teal);
  color: white;
}

.hero-title {
  color: var(--accent-yellow);
}

.hero-highlight {
  color: var(--accent-yellow);
}

.hero-description {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: white;
}

.hero-pill {
  background: rgba(255, 193, 7, .9);
  color: #1e3a8a;
  padding: .5rem 1.2rem;
  border-radius: 40px;
  font-weight: 600;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: clamp(24px, 3vw, 32px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .05);
  transition: .3s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .08);
}

.icon-circle {
  width: 56px;
  height: 56px;
  background: rgba(30, 58, 138, .1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deer-teal);
  font-size: 22px;
}

.gallery-section {
  background: #f5f7ff;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(#061336eb, #020d2be8) !important;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  opacity: 0;
  transition: .4s;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.footer {
  position: relative;
  background: var(--deer-teal-dark);
  color: white;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#061336eb, #020d2be8), url("/static/images/business-team-working-laptop (1).jpg");
  background-size: cover;
  background-position: center;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer a {
  color: #cbd5ff;
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent-yellow);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: .8s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
  
  .navbar .dropdown-toggle::after {
    display: none;
  }
}

.brand-logo {
  height: clamp(32px, 4vw, 50px);
  width: auto;
}

.brand-text {
  font-weight: 600;
  font-size: clamp(1rem, 1.3vw, 1.4rem);
  white-space: nowrap;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(#061336f3, #020d2bf8), url("/static/images/business-team-working-laptop (1).jpg");
  background-size: cover;
  color: white;
  z-index: 1090;
  padding-top: 2rem;
  transition: right .35s ease;
  overflow-y: auto;
}

.mobile-sidebar .nav-link {
  color: white !important;
  font-weight: 500;
  padding: .75rem 1rem;
  display: block;
  border-radius: 6px;
  transition: .2s;
}

.mobile-sidebar .nav-link:hover {
  background: var(--accent-yellow);
  color: var(--deer-teal-dark) !important;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 1080;
}

.mobile-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
}

@media (max-width: 750px) {
  .extra {
    display: none !important;
  }
  
  #heroCarousel .carousel-item {
    margin-top: 60px !important;
    min-height: auto !important;
    height: auto !important;
    padding: 60px 0 !important;
  }
  
  .about {
    padding: 0rem !important;
  }
  
  .we-work {
    padding: 2rem !important;
  }
}

.testimonials-carousel {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  width: 100%;
  max-width: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testimonials-carousel::-webkit-scrollbar {
  display: none;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 24px;
  will-change: transform;
}

.testimonial-slide {
  flex: 0 0 auto;
  width: 350px;
  animation: fadeIn 0.5s ease-out;
}

@media (min-width: 768px) {
  .testimonial-slide {
    width: 400px;
  }
}

@media (min-width: 1200px) {
  .testimonial-slide {
    width: 450px;
  }
}

.badge-deer {
color: #2c7a7b;;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.fh {
  color: #2c7a7b;
}

.text-deer-teal,
{
  color: #2c7a7b;
  opacity: 0.6;
}

.rounded-circle {
  object-fit: cover;
  border: 2px solid #2c7a7b;
  padding: 2px;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 1px solid rgba(44, 122, 123, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav-btn:hover {
  background: #2c7a7b;
  color: white;
  border-color: #2c7a7b;
  box-shadow: 0 6px 16px rgba(44, 122, 123, 0.2);
}

.carousel-nav-btn.prev {
  left: 10px;
}

.carousel-nav-btn.next {
  right: 10px;
}

@media (min-width: 768px) {
  .carousel-nav-btn.prev {
    left: -20px;
  }
  
  .carousel-nav-btn.next {
    right: -20px;
  }
}

@media (max-width: 768px) {
  .carousel-nav-btn.prev {
    left: 5px;
  }
  
  .carousel-nav-btn.next {
    right: 5px;
  }
  
  .carousel-nav-btn {
    width: 36px;
    height: 36px;
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  width: 30px;
  border-radius: 5px;
  background: #2c7a7b;
}

.carousel-dot:hover {
  background: #2c7a7b;
}

.ck-content {
  line-height: 1.6;
}

.text-secondary {
  color: #4a5568 !important;
}

.bg-light {
  background-color: #f7fafc;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fix for dropdown visibility */
.navbar {
  position: sticky;
  top: 0;
  background: var(--deer-teal) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  z-index: 1100;
  overflow: visible !important;
}

.navbar .container,
.navbar .container-fluid {
  overflow: visible !important;
}

.navbar-collapse {
  overflow: visible !important;
}

.dropdown-menu {
  z-index: 1200;
  position: absolute;
}


@media (max-width: 991.98px) {
  .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: visible !important;
  }
}