@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap');

:root {
  --main-font: "Rubik", sans-serif;
}

body {
  font-family: var(--main-font);
}

.owl-theme .owl-dots .owl-dot.active span {
  background: #ffffff;
}

.testimonial-carousel {
  position: relative;
}

.testimonial-carousel .owl-stage-outer {
  padding: 0.5rem 0;
}

.testimonial-carousel .owl-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.testimonial-carousel .owl-nav button.owl-prev,
.testimonial-carousel .owl-nav button.owl-next {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  font-size: 18px !important;
}

.testimonial-carousel .owl-nav .owl-prev {
  left: -1rem;
}

.testimonial-carousel .owl-nav .owl-next {
  right: -1rem;
}

.testimonial-carousel .owl-nav button:hover {
  background: rgba(255, 255, 255, 0.22) !important;
}

/* Override Owl's img width:100% for specific elements */
.testimonial-carousel img.director-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 9999px;
  object-fit: cover;
  display: inline-block;
}

@media (min-width: 768px) {
  .testimonial-carousel img.director-avatar {
    width: 52px !important;
    height: 52px !important;
  }
}

.testimonial-carousel img.company-logo {
  height: 26px !important;
  width: auto !important;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

@media (min-width: 768px) {
  #testimonial-carousel img.company-logo {
    height: 28px !important;
  }
}

/* Solving Real Problems section hover effects */
.group:hover {
  background: linear-gradient(135deg,
      #ffffff 0%,
      #fffddd 100%) !important;
}

.consultation-bullet {
  list-style-image: url(/assets/consultation-bullet.webp);
  padding: 0;
  margin-left: 20px;
  gap: 20px;
}

.button-shadow {
  filter: drop-shadow(0 0px 8px rgba(0, 0, 0));
}

@media screen and (min-width: 480px) {
  .section-padding {
    padding: 120px 100px;
  }
}


.site-header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-navigation {
  position: relative;
  z-index: 100;
}

.nav-link {
  transition: color 0.2s ease-in-out;
}

.nav-link:hover {
  color: #16a085;
}

/* Mega Menu Dropdown Styles */
.mega-menu {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding-top: 1.5rem;
  transition: visibility 0.2s, opacity 0.3s ease-in-out;
  max-width: none;
}

.mega-menu.show {
  visibility: visible;
  opacity: 1;
}

.mega-menu-content {
  background-color: white;
  padding: 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  max-width: 1280px;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: flex-start;
}

.mega-menu-content .main-content {
  grid-column: span 4 / span 4;
}

.mega-menu-content .grid-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.mega-menu-content .industries-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mega-menu-content .promo-section {
  grid-column: span 3 / span 3;
  padding-left: 2rem;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mega-menu-content .promo-section .promo-image {
  border-radius: 0.5rem;
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mega-menu-content .promo-section h5 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2c3e50;
}

.mega-menu-content .promo-section a {
  color: #16a085;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.mega-menu-column h4 {
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mega-menu-column .icon-placeholder {
  width: 1.25rem;
  height: 1.25rem;
  background-color: #16a085;
  border-radius: 9999px;
  display: inline-block;
}

.mega-menu-column a {
  display: block;
  color: #555;
  padding: 0.4rem 0;
  transition: color 0.2s ease-in-out;
  font-size: 0.9rem;
}

.mega-menu-column a:hover {
  color: #16a085;
}

/* Mobile Sidebar Styles */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background-color: #fff;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease-in-out;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.mobile-sidebar.show {
  left: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 90;
  display: none;
}

.sidebar-overlay.show {
  display: block;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333;
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.sidebar-list li {
  width: 100%;
  border-bottom: 1px solid #f3f4f6;
}

.sidebar-list a,
.sidebar-link-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  width: 100%;
  font-size: 1rem;
  font-weight: 500;
  color: #2c3e50;
}

.sidebar-list .sub-menu {
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
}

.sidebar-list .sub-menu.show {
  display: flex;
}

.sidebar-list .sub-menu li a {
  padding: 0.5rem 2rem;
  font-weight: 400;
}

.sidebar-contact {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
}

.sidebar-contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sidebar-contact-icon {
  color: #16a085;
  font-size: 1.25rem;
}

.sidebar-contact-details {
  display: flex;
  flex-direction: column;
}

.sidebar-contact-title {
  font-weight: 600;
  color: #2c3e50;
}

.sidebar-contact-desc {
  font-size: 0.875rem;
  color: #6b7280;
}

.chevron {
  transition: transform 0.3s ease-in-out;
}

.rotate-180 {
  transform: rotate(180deg);
}

#primary-menu>li>ul.sub-menu {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  border-radius: 0.5rem;
  z-index: 1000;
  width: 100%;
  left: 0;
  top: 60px;
  /* display: grid; */
  grid-template-columns: 1.4fr 1.4fr 2fr;
  /* 2 menu cols + 1 promo col */
  gap: 20px;
  align-items: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;              
}

#primary-menu>li>ul.sub-menu>li.mega-menu-right {
  grid-column: 3;
  /* always in 3rd column */
  grid-row: 1 / span 3;
  /* span exactly 3 rows */
  align-self: stretch;
  /* fill the vertical space */

}

#primary-menu li:hover>ul.sub-menu {
  display: grid;
}


#primary-menu li ul.sub-menu a {
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

#primary-menu li ul.sub-menu a svg {
  display: none;
}

#primary-menu li ul.sub-menu ul a {
  font-weight: 400;
  display: block;
  color: #555;
  padding-bottom: 0.4rem;
  margin-bottom: 0rem;
  transition: color 0.2s ease-in-out;
  font-size: 0.9rem;
}

#primary-menu li>ul.sub-menu li ul {
  position: static;
  /* display: none; */
}

.promo-section {
  grid-column: span 3 / span 3;
  padding-left: 2rem;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.promo-image {
  border-radius: 0.5rem;
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mega-menu-content .promo-section h5 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2c3e50;
}

.promo-section a {
  color: #16a085;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

@media screen and (max-width: 1024px) {
  #primary-menu>li>ul.sub-menu {
    position: static;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0;
  }

  #primary-menu>li>ul.sub-menu>li.mega-menu-right {
    grid-column: span 1 / span 1;
    grid-row: auto;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 1rem;
  }

  .promo-section {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
  }

}