:root {
  --primary-orange: #99CA3C;
  --cloud-grey: #f0f0f0;
  --dark-blue: #003040;
  --teal: #006D72;
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--dark-blue);
  font-size: 1rem;
  line-height: 1.7;
}

.navbar-brand { color: var(--primary-orange) !important;  }

/* Navbar z-index for proper layering */
#mainNavbar {
  z-index: 1000;
}

.hero-bg {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255, 91, 5, 0.5) 0%, rgba(255, 91, 5, 0) 70%);
  border-radius: 50%; opacity: 0.8;
  position: absolute; right: 0; top: 40px; z-index: 0;
}
.intro-graphic {
  width: 160px; height: 160px;
  background: repeating-conic-gradient(from 0deg, var(--primary-orange) 0deg 10deg, #fff 10deg 20deg);
  border-radius: 50%; opacity: 0.7; margin: 0 auto;
}
.service-card {
  border: 1px solid var(--primary-orange);
  box-shadow: none;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
  position: relative;
  z-index: 10;
}

.service-card .card-title {
  transition: color 0.3s ease-in-out;
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  z-index: 10;
}

.service-card-link:hover {
  color: inherit;
  text-decoration: none;
}

.service-card-link:hover .service-card {
  transform: translateY(-6px) !important;
  box-shadow: 0 10px 20px rgba(36, 48, 54, 0.1) !important;
  border-color: transparent !important;
}

.service-card-link:hover .service-card .card-title {
  color: var(--primary-orange) !important;
}

/* Override any potential conflicts */
body:not(.menu-open) .service-card-link:hover .service-card {
  transform: translateY(-6px) !important;
  box-shadow: 0 10px 20px rgba(36, 48, 54, 0.1) !important;
  border-color: transparent !important;
}

body:not(.menu-open) .service-card-link:hover .service-card .card-title {
  color: var(--primary-orange) !important;
}

/* Ensure main content is above mobile overlay when not active */
body:not(.menu-open) .service-card-link {
  z-index: 20;
}

body:not(.menu-open) .service-card {
  z-index: 20;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
}

.btn, .btn-success, .btn-outline-light, .btn-outline-dark, .btn-ai, .btn-dark-outline, .callout-btn {
  font-size: clamp(1rem, 2vw, 1.15rem);
  padding: 0.75rem 2rem;
  min-width: 140px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 0.5rem;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s;
  box-shadow: 0 2px 8px rgba(39,48,54,0.06);
  border: 2px solid transparent;
  outline: none;
  display: inline-block;
  line-height: 1.2;
}

.btn-ai {
  background: var(--primary-orange);
  color: #003040;
  border: 2px solid var(--primary-orange);
}
.btn-ai:hover, .btn-ai:focus {
  background: var(--dark-blue);
  color: #fff;
  text-decoration: none;
}

.btn-dark-outline {
  background: #fff;
  color: var(--dark-blue);
  border: 2px solid var(--dark-blue);
}
.btn-dark-outline:hover, .btn-dark-outline:focus {
  background: var(--dark-blue);
  color: #fff;
  border: 2px solid var(--dark-blue);
}

.btn:hover, .btn:focus, .btn-success:hover, .btn-success:focus, .btn-outline-light:hover, .btn-outline-light:focus, .btn-outline-dark:hover, .btn-outline-dark:focus, .btn-ai:hover, .btn-ai:focus, .btn-dark-outline:hover, .btn-dark-outline:focus, .callout-btn:hover, .callout-btn:focus {
  box-shadow: 0 6px 18px rgba(36, 48, 54, 0.13);
  z-index: 2;
}

.btn:active, .btn-success:active, .btn-outline-light:active, .btn-outline-dark:active, .btn-ai:active, .btn-dark-outline:active, .callout-btn:active {
  box-shadow: 0 1px 4px rgba(39,48,54,0.10);
}

.nav-link {
  font-size: .900em;
  font-weight: 600;
  padding: 0.5rem 0 !important;
  margin: 0 1rem;
  position: relative;
  transition: color 0.3s ease;
  color: var(--dark-blue);
}

.nav-link:hover {
  color: var(--primary-orange) !important;
}

.navbar-nav .nav-link.active,
.navbar-nav .show > .nav-link {
  color: var(--primary-orange) !important;
}

.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
  background-color: var(--primary-orange);
}

.dropdown-menu {
  border: 1px solid var(--cloud-grey) !important;
  box-shadow: 0 8px 16px rgba(36, 48, 54, 0.05);
  border-radius: 0.5rem;
}

.dropdown-item {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--primary-orange) !important;
  color: #fff !important;
}

.footer-logo { color: var(--primary-orange); font-weight: bold; font-size: 1.2em; }

.footer-link {
  color: var(--dark-blue);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
  line-height: 2;
  position: relative;
  display: inline-block;
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-orange);
  transform-origin: bottom center;
  transition: transform 0.3s ease-out;
}

.footer-link:hover {
  color: var(--primary-orange);
}

.footer-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom center;
}

.footer-social-icon {
  color: var(--dark-blue);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.footer-social-icon + .footer-social-icon {
  margin-left: 1.25rem;
}

.footer-link-small {
  color: var(--dark-blue);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-link-small:hover {
  color: var(--primary-orange);
  text-decoration: underline;
}

.footer-back-to-top {
  color: var(--dark-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.footer-back-to-top:hover {
  color: var(--primary-orange);
}

.bg-primary-orange {
  background-color: var(--primary-orange) !important;
}

.text-primary-orange {
  color: var(--primary-orange) !important;
}

h1, h2, h3, h4, h5, h6,
.display-4, .display-5,
.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
}

h1, .display-4 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.15;
}
h2, .display-5, .section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
}
h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}
h4, h5, h6 {
  font-size: 1.1rem;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero-bg { width: 180px; height: 180px; }
  .intro-graphic { width: 90px; height: 90px; }
}

.mvp-sheet-top {
  transition: transform 0.7s cubic-bezier(.4,1.4,.6,1);
  transform: rotate(0deg);
}
.mvp-sheet-top.tilt {
  transform: rotate(15deg);
}

.opacity-0 {
  opacity: 0;
}
.translate-y-40 {
  transform: translateY(40px);
}
.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.7s cubic-bezier(.4,1.4,.6,1), transform 0.7s cubic-bezier(.4,1.4,.6,1);
}

.academy-list-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  transition: background-color 0.3s ease;
}

.academy-list-item:last-child {
  margin-bottom: 0;
}

.academy-list-item .checkmark {
  color: var(--primary-orange);
  font-size: 1.3em;
  margin-right: 1rem;
  flex-shrink: 0;
}

.academy-list-item .item-text {
  flex-grow: 1;
}

.academy-list-item:hover {
  background-color: rgba(255, 91, 5, 0.05);
  border-radius: 0.5rem;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* Adjust based on actual navbar height */
}

.hero-section {
  background-color: #fff;
  color: var(--dark-blue);
  padding: 8rem 0;
  text-align: center;
}

.hero-section .display-4 {
  font-weight: 700;
  color: #111;
  margin-bottom: 0;
}

.hero-section h5 {
  font-family: var(--font-body);
  font-size:70px;
  font-weight: 400;
  color: #222;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

.hero-section .lead {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: #6c757d; /* Bootstrap's muted color */
  font-size: 30px;
  line-height: 1.6;
}

.hero-cta-bar {
  align-items: center;
}

.hero-phone-contact {
  font-size: 0.9rem;
}
.hero-phone-contact .small {
  font-size: 0.7rem;
  opacity: 0.8;
  display: block;
}

.hero-partners img {
  height: 30px;
  filter: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.hero-partners img:hover {
  opacity: 1;
}
.hero-partners .b-corp-logo {
  height: 40px;
}

.services-dropdown {
  position: static !important;
}

.dropdown-menu.mega-menu {
  width: 100%;
  left: 0;
  transform: none !important;
  padding: 2rem 1rem;
  margin-top: 0 !important;
  border-top: 3px solid var(--primary-orange) !important;
  border-radius: 0;
}

/* --- Desktop Hover for Mega Menu --- */
@media (min-width: 992px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
  }
}
/* ----------------------------------- */

.mega-menu-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 0.75rem;
  transition: background-color 0.3s ease;
  text-decoration: none;
  color: var(--dark-blue);
  height: 100%;
}

.mega-menu-item:hover {
  background-color: #f8f9fa;
  color: var(--primary-orange);
}

.mega-menu-item .img-box {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  margin-right: 1.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #f0f0f0;
}

.mega-menu-item .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mega-menu-item:hover .img-box img {
  transform: scale(1.05);
}

.mega-menu-item .content-box {
  padding: 0;
}

.mega-menu-item .content-box h6 {
  font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--dark-blue);
    transition: color 0.3s ease;
    font-size: 0.900rem;
}

.mega-menu-item:hover .content-box h6 {
  color: var(--primary-orange);
}

.mega-menu-item .content-box p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #6c757d;
  margin-bottom: 0;
}

.footer-contact-block {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--dark-blue);
}
.footer-contact-title {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 600;
}
.footer-highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
}
.footer-highlight::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.1em;
  height: 0.5em;
  background: #FFD600;
  z-index: -1;
  border-radius: 0.2em;
}
.footer-dots {
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: #222;
  opacity: 0.6;
  font-family: var(--font-body);
}
.footer-address-underline {
  border-bottom: 2px solid #FFD600;
  padding-bottom: 0.3em;
  margin-bottom: 1em;
  font-size: 1.05rem;
}

.card-body {
  padding: 1.5rem 1.25rem;
}

@media (max-width: 991.98px) {
  .hero-section, .newsletter-section, .container.py-5, .container.my-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .service-card, .card {
    margin-bottom: 1.5rem;
  }
  .display-4, h1 {
    font-size: 2rem;
  }
  .section-title, h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section, .newsletter-section, .container.py-5, .container.my-5 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  .display-4, h1 {
    font-size: 1.5rem;
  }
  .section-title, h2 {
    font-size: 1.1rem;
  }
  .btn, .btn-ai, .btn-dark-outline {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    min-width: 110px;
  }
  .card-body {
    padding: 1rem 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section, .newsletter-section, .container.py-5, .container.my-5 {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  .display-4, h1 {
    font-size: 1.1rem;
  }
  .section-title, h2 {
    font-size: 1rem;
  }
  .btn, .btn-ai, .btn-dark-outline {
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
    min-width: 90px;
  }
  .card-body {
    padding: 0.75rem 0.5rem;
  }
}

.latest-insights-section {
  background: #fff;
}
.latest-insights-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-blue);
}
.latest-insights-section .btn-outline-dark {
  border: 2px solid var(--dark-blue);
  color: var(--dark-blue);
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}
.latest-insights-section .btn-outline-dark:hover {
  background: var(--dark-blue);
  color: #fff;
}
.blog-list {
  width: 100%;
}
.blog-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(39,48,54,0.06);
  padding: 1.5rem;
  align-items: center;
  transition: box-shadow 0.2s;
  min-height: 120px;
}
.blog-card:hover {
  box-shadow: 0 2px 12px rgba(39,48,54,0.06);
}
.blog-card:hover .blog-img {
  transform: scale(1.05);
  transition: transform 0.3s;
}
.blog-img {
  width: 180px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  background: #f0f0f0;
  transition: transform 0.3s;
}
.blog-category {
  font-size: 1rem;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #273036;
}
.blog-date {
  font-size: 1rem;
  color: #7a8a99;
  margin-top: 0.5rem;
}
@media (max-width: 991.98px) {
  .latest-insights-section .section-title {
    font-size: 2rem;
  }
  .blog-img {
    width: 120px;
    height: 80px;
  }
  .blog-card {
    padding: 1rem;
  }
}
@media (max-width: 767.98px) {
  .latest-insights-section .section-title {
    font-size: 1.5rem;
  }
  .blog-card {
    flex-direction: column;
    align-items: flex-start !important;
    padding: 1rem 0.5rem;
  }
  .blog-img {
    width: 100%;
    height: 120px;
    margin-bottom: 1rem;
  }
}

.callout-section {
  background: #0d3936;
  color: #fff;
}
.callout-title {
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1.15;
  font-family: var(--font-heading);
}
.callout-btn {
  min-width: 200px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.9rem 2rem;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.btn-success.callout-btn {
  background: #a3d64c;
  border: 2px solid #a3d64c;
  color: #0d3936;
}
.btn-success.callout-btn:hover {
  background: #8bc53f;
  border-color: #8bc53f;
  color: #0d3936;
}
.btn-outline-light.callout-btn {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}
.btn-outline-light.callout-btn:hover {
  background: #fff;
  color: #0d3936;
}
@media (max-width: 991.98px) {
  .callout-title {
    font-size: 2rem;
  }
  .callout-btn {
    min-width: 150px;
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
  }
}
@media (max-width: 767.98px) {
  .callout-title {
    font-size: 1.3rem;
  }
  .callout-section .row {
    text-align: left;
  }
  .callout-btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  .callout-section .col-md-5 {
    text-align: left !important;
  }
}

.about-stats-row {
  margin-top: 3rem !important;
}
.about-stat-number {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  position: relative;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  opacity: 1;
  transform: none;
  transition: color 0.25s;
}
.odometer {
  display: inline-flex;
  align-items: flex-end;
  overflow: hidden;
  height: 4.5rem;
}
.odometer-digit {
  display: inline-block;
  width: 2.2rem;
  height: 4.5rem;
  font-size: 4.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-align: center;
  position: relative;
  transition: transform 0.5s cubic-bezier(.4,1.4,.6,1);
  will-change: transform;
}
.about-stat-label {
  font-size: 1.35rem;
  color: #b0b0b0;
  font-weight: 400;
  line-height: 1.3;
}
@media (max-width: 991.98px) {
  .odometer {
    height: 2.8rem;
  }
  .odometer-digit {
    width: 1.4rem;
    height: 2.8rem;
    font-size: 2.8rem;
  }
}
@media (max-width: 767.98px) {
  .odometer {
    height: 2rem;
  }
  .odometer-digit {
    width: 1rem;
    height: 2rem;
    font-size: 2rem;
  }
}

/* About stats microinteraction */
.about-stats-row .col-6:hover .about-stat-number, .about-stats-row .col-md-3:hover .about-stat-number {
  color: #a3d64c;
  transition: color 0.25s;
}

.contact-cards-bg {
  background: none;
  color: inherit;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}
.contact-card {
  background: none;
  border-radius: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: none;
  transition: none;
  align-items: flex-start;
  padding: 0 0 1.5rem 0;
}
.contact-card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}
.contact-icon {
  font-size: 1.5rem;
  color: #7a8a99;
  flex-shrink: 0;
  margin-right: 1.2rem;
  margin-top: 0;
}
.contact-label {
  font-size: 1rem;
  color: #7a8a99;
  font-weight: 500;
  display: flex;
  align-items: center;
}
.contact-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #273036;
  word-break: break-all;
}
@media (max-width: 767.98px) {
  .contact-value {
    font-size: 1rem;
  }
  .contact-icon {
    font-size: 1.1rem;
    margin-right: 0.7rem;
  }
}

section, .hero-section, .about-section, .latest-insights-section, .callout-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
@media (max-width: 991.98px) {
  section, .hero-section, .about-section, .latest-insights-section, .callout-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
@media (max-width: 767.98px) {
  section, .hero-section, .about-section, .latest-insights-section, .callout-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

h1, h2, h3, h4, h5, h6, .display-4, .display-5, .section-title {
  margin-bottom: 2rem;
}

p, .lead, .about-desc, .about-stat-label, .blog-date, .card-text {
  margin-bottom: 1.25rem;
}

.btn, .btn-ai, .btn-dark-outline, .btn-success, .btn-outline-dark, .callout-btn {
  border-radius: 0.5rem;
  font-size: .900rem;
  padding: 0.75rem 2rem;
  min-width: 140px;
  letter-spacing: 0.02em;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s;
  box-shadow: 0 2px 8px rgba(39,48,54,0.06);
  outline: none;
  display: inline-block;
  line-height: 1.2;
}
@media (max-width: 767.98px) {
  .btn, .btn-ai, .btn-dark-outline, .btn-success, .btn-outline-dark, .callout-btn {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    min-width: 110px;
  }
}


.contact-card {
  margin-bottom: 1.5rem;
  box-shadow: none;
  transition: none;
  align-items: flex-start;
  padding: 1.5rem 1.25rem;
}
.contact-card:last-child {
  margin-bottom: 0;
}

/* Mobile Overlay Menu */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 48, 64, 0.98);
  backdrop-filter: blur(10px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  pointer-events: none;
  display: none;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  display: block;
}

.mobile-overlay-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  max-width: 100%;
}

.mobile-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
  min-height: 50px;
  width: 100%;
  flex-shrink: 0;
}

.mobile-header-left {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 40px;
  flex: 1;
  max-width: calc(100% - 60px);
  overflow: hidden;
}

.mobile-logo {
  max-height: 40px;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  flex-shrink: 0;
}

.mobile-header-submenu {
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 2;
  flex-wrap: nowrap;
  overflow: hidden;
}

.mobile-header-submenu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
}

.mobile-back-btn-header {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
  min-width: 40px;
  max-width: 40px;
}

.mobile-back-btn-header:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-back-btn-header i {
  font-size: 16px;
}

.mobile-header-title {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  flex: 1;
  text-align: center;
  min-width: 0;
  line-height: 1.2;
}

.mobile-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
  margin-left: auto;
  min-width: 44px;
  max-width: 44px;
}

.mobile-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Multi-Level Menu Container */
.mobile-menu-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.mobile-menu-level {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
}

.mobile-menu-level.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-level.slide-out {
  transform: translateX(-100%);
}

/* Submenu Header */
.mobile-submenu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
  min-height: 50px;
  width: 100%;
  flex-shrink: 0;
}

.mobile-back-btn {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
  min-width: 80px;
}

.mobile-back-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-back-btn i {
  font-size: 14px;
}

.mobile-submenu-title {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  flex: 1;
  text-align: center;
  min-width: 0;
  line-height: 1.2;
}

.mobile-close-btn-submenu {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
  min-width: 40px;
  max-width: 40px;
}

.mobile-close-btn-submenu:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
  flex: 1;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  margin-bottom: 5px;
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 15px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.mobile-nav-link:hover {
  color: var(--primary-orange);
  padding-left: 10px;
}

.mobile-nav-link i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.mobile-submenu-trigger:hover i {
  transform: translateX(3px);
}

.mobile-overlay-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
}

.mobile-contact-info {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
}

.mobile-contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  padding: 15px;
  font-size: 14px;
  text-align: center;
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.mobile-contact-item i {
  font-size: 20px;
  color: var(--primary-orange);
  margin-bottom: 8px;
  width: auto;
  text-align: center;
}

.mobile-contact-item span {
  flex: none;
  text-align: center;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
}

/* Animation for menu items */
.mobile-nav-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.mobile-menu-level.active .mobile-nav-item {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-level.active .mobile-nav-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-level.active .mobile-nav-item:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-level.active .mobile-nav-item:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-level.active .mobile-nav-item:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu-level.active .mobile-nav-item:nth-child(5) { transition-delay: 0.5s; }
.mobile-menu-level.active .mobile-nav-item:nth-child(6) { transition-delay: 0.6s; }

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .mobile-nav-link {
    font-size: 16px;
    padding: 12px 0;
  }
  
  .mobile-overlay-content {
    padding: 15px;
  }
  
  .mobile-overlay-header {
    padding: 0;
    margin-bottom: 20px;
  }
  
  .mobile-submenu-title {
    font-size: 18px;
  }
  
  .mobile-header-title {
    font-size: 16px;
    max-width: 150px;
  }
  
  .mobile-back-btn-header {
    width: 36px;
    height: 36px;
  }
  
  .mobile-close-btn {
    width: 40px;
    height: 40px;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  .mobile-nav-link {
    font-size: 20px;
    padding: 18px 0;
  }
  
  .mobile-submenu-title {
    font-size: 22px;
  }
  
  .mobile-header-title {
    font-size: 20px;
    max-width: 250px;
  }
}

/* Services Page Styles */
.services-header {
  background: var(--dark-blue);
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.back-btn {
  background: none;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.back-btn i {
  font-size: 18px;
}

.services-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  font-family: var(--font-heading);
}

.placeholder {
  width: 80px;
}

.services-content {
  padding: 40px 0;
  background: #f8f9fa;
  min-height: calc(100vh - 80px);
}

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

.service-card-full {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card-full:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card-full:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 25px;
  position: relative;
}

.service-icon {
  position: absolute;
  top: -25px;
  left: 25px;
  width: 50px;
  height: 50px;
  background: var(--primary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(153, 202, 60, 0.3);
}

.service-card-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-blue);
  margin: 15px 0 15px 0;
  font-family: var(--font-heading);
}

.service-card-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 15px;
}

.service-link {
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: var(--dark-blue);
  gap: 12px;
}

.service-link i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(4px);
}

/* Responsive Design for Services Page */
@media (max-width: 768px) {
  .services-header-content {
    flex-direction: row;
    align-items: center;
  }
  
  .services-title {
    font-size: 20px;
  }
  
  .placeholder {
    width: 60px;
  }
  
  .services-content {
    padding: 20px 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  
  .service-card-content {
    padding: 20px;
  }
  
  .service-card-content h3 {
    font-size: 18px;
    margin: 10px 0 10px 0;
  }
  
  .service-icon {
    width: 45px;
    height: 45px;
    font-size: 18px;
    top: -22px;
    left: 20px;
  }
}

@media (max-width: 480px) {
  .services-header {
    padding: 15px 0;
  }
  
  .back-btn {
    font-size: 14px;
    padding: 6px 10px;
  }
  
  .services-title {
    font-size: 18px;
  }
  
  .services-grid {
    padding: 0 10px;
  }
  
  .service-card-image {
    height: 180px;
  }
}

/* Responsive adjustments for mobile header */
@media (max-width: 480px) {
  .mobile-overlay-header {
    min-height: 45px;
    margin-bottom: 20px;
  }
  
  .mobile-header-left {
    max-width: calc(100% - 50px);
  }
  
  .mobile-header-title {
    font-size: 16px;
    max-width: 150px;
  }
  
  .mobile-back-btn-header {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
  }
  
  .mobile-close-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
  }
}

@media (max-width: 360px) {
  .mobile-header-title {
    font-size: 14px;
    max-width: 120px;
  }
  
  .mobile-back-btn-header {
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
  }
  
  .mobile-close-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
  }
}

/* Hide main mobile header in submenu mode */
.mobile-overlay.submenu-active .mobile-overlay-header {
  display: none;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1002;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--dark-blue);
  margin: 3px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Sidebar Menu for Tablet */
.tablet-sidebar {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 1001;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.tablet-sidebar.active {
  right: 0;
}

.tablet-sidebar-content {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tablet-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.tablet-logo {
  max-height: 40px;
  filter: brightness(0) invert(1);
}

.tablet-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.tablet-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.tablet-nav {
  flex: 1;
}

.tablet-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tablet-nav-item {
  margin-bottom: 10px;
}

.tablet-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  text-decoration: none;
  padding: 15px 0;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.tablet-nav-link:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding-left: 10px;
}

.tablet-nav-link i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.tablet-submenu-trigger:hover i {
  transform: translateX(5px);
}

.tablet-sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tablet-contact-info {
  margin-top: 20px;
}

.tablet-contact-item {
  display: flex;
  align-items: center;
  color: white;
  margin-bottom: 15px;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.tablet-contact-item:hover {
  color: rgba(255, 255, 255, 0.8);
  padding-left: 10px;
}

.tablet-contact-item i {
  width: 20px;
  margin-right: 15px;
  font-size: 16px;
}

.tablet-contact-item span {
  font-size: 14px;
}

/* Tablet Submenu Styles */
.tablet-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 2;
}

.tablet-submenu.active {
  transform: translateX(0);
}

.tablet-submenu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.tablet-back-btn {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
}

.tablet-back-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.tablet-back-btn i {
  font-size: 14px;
}

.tablet-submenu-title {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.tablet-close-btn-submenu {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.tablet-close-btn-submenu:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Overlay for tablet sidebar */
.tablet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tablet-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive breakpoints */
@media (min-width: 768px) and (max-width: 991px) {
  .mobile-menu-toggle {
    display: block !important;
  }
  
  .mobile-overlay {
    display: none;
  }
  
  .tablet-sidebar {
    display: block;
  }
}

@media (max-width: 767px) {
  .tablet-sidebar {
    display: none;
  }
  
  .mobile-overlay {
    display: block;
  }
  
  .tablet-overlay {
    display: none;
  }
}

/* Main content isolation */
main, .container, .row, .col-md-6, .col-lg-8 {
  isolation: isolate;
}

/* Service section specific isolation */
.services-section {
  isolation: isolate;
  position: relative;
  z-index: 1;
}

/* Service cards with higher priority when menu is not open */
body:not(.menu-open) .services-section {
  z-index: 100;
}

body:not(.menu-open) .service-card-link {
  z-index: 101;
}

body:not(.menu-open) .service-card {
  z-index: 101;
}
