/* Mobile Menu Container */
#mobile-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Just below navbar */
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 50;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(-20px);
    opacity: 0;
}

/* Show Menu */
#mobile-menu.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

/* Slide-in animation (optional) */
@keyframes slideInFromTop {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

#mobile-menu.animate-in {
    animation: slideInFromTop 0.3s ease forwards;
}

/* Mobile Menu Links */
#mobile-menu a {
    display: block;
    padding: 1rem 2rem;
    color: #1f2937; /* Gray-800 */
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

#mobile-menu a:hover {
    background-color: #f3f4f6; /* Gray-100 */
    color: #2563eb; /* Blue */
}

/* Mobile Menu Toggle Icon */
#mobile-menu-toggle i {
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    transition: transform 0.2s ease;
}

#mobile-menu-toggle i:hover {
    transform: scale(1.1);
}

/* Optional: Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Image to Text Padding - Recommended: 16px (1rem) */
/* Ensures consistent spacing between icons/images and adjacent text */
.icon-text-spacing img,
.icon-text-spacing svg,
.icon-text-spacing i[data-lucide] {
    margin-right: 1rem;
}

/* Right-aligned icons/images */
.icon-text-spacing-left img,
.icon-text-spacing-left svg,
.icon-text-spacing-left i[data-lucide] {
    margin-left: 1rem;
}

/* General image padding utility classes */
.img-text-pad {
    padding: 1rem;
}

.img-text-pad-sm {
    padding: 0.75rem;
}

.img-text-pad-lg {
    padding: 1.25rem;
}

/* Ensure icons in flex containers have proper spacing */
[class*="flex"] > i[data-lucide],
[class*="flex"] > svg,
[class*="flex"] > img {
    flex-shrink: 0;
}

/* Inline icon spacing for better text flow */
p i[data-lucide],
span i[data-lucide],
li i[data-lucide] {
    margin-inline: 0.5rem;
    vertical-align: middle;
}
