/* General Body Styles */
body.overflow-hidden {
    overflow: hidden;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40; /* Below the menu, above the content */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Adjusted Mobile Menu Styles */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 80%;
    max-width: 320px;
    background-color: white;
    z-index: 50;
    padding-top: 4rem; /* Add padding to clear header */
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Hide original mobile menu display logic */
@media (max-width: 767px) {
    #mobile-menu {
        max-height: none; /* Override old style */
        opacity: 1; /* Override old style */
    }
}

/* Active link styles */
header nav.hidden a.active {
  color: #0D47A1;
  font-weight: 600;
}
header nav.hidden a.active .underline-span {
  transform: scaleX(1);
}
 #mobile-menu a.active {
  background-color: #0D47A1;
  color: white;
  font-weight: 600;
}

/* Product Filter Styles */
.filter-btn.active {
  background-color: #0D47A1;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Timeline Styles */
.timeline-item {
    position: relative;
    padding-left: 2.5rem; /* 40px */
    padding-bottom: 2rem; /* 32px */
    border-left: 2px solid #E3F2FD; /* ec-blue-light */
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
    padding-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -1.125rem; /* -18px */
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem; /* 36px */
    height: 2.25rem; /* 36px */
    border-radius: 9999px;
    background-color: #0D47A1; /* ec-blue */
    color: white;
}

/* Team Card Styles */
.team-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#media-gallery audio {
    width: 100%;
    margin-top: 1.5rem; /* Add some space above the audio player */
}
