@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,900");
@import url("fontawesome-all.min.css");

/*
	Aerial by HTML5 UP
	html5up.net | @ajlkn
	Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/
 
/* Custom navbar styles for overlay and mobile menu */
.navbar-blur {
    backdrop-filter: blur(8px);
    background: rgba(17, 24, 39, 0.85);
}
.navbar-shadow {
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
}
.navbar-link {
    transition: color 0.2s;
}
.navbar-link:hover, .navbar-link.active {
    color: #38bdf8;
}

/* Active underline indicator for nav links */
#tm-nav .nav-item .circle {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -6px;
    height: 2px;
    background: linear-gradient(90deg, #22d3ee, #a855f7, #ec4899);
    border-radius: 2rem;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease, opacity 200ms ease;
}

#tm-nav .nav-item:hover .circle,
#tm-nav .nav-item.active .circle {
    opacity: 0.8;
    transform: scaleX(1);
}

/* Scroll state styles injected by JS */
#tm-nav.navbar-blur {
    backdrop-filter: blur(8px);
    background: rgba(17, 24, 39, 0.9) !important;
}

#tm-nav.navbar-shadow {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Glassmorphism navbar */
.glass-nav {
    background: linear-gradient(
        120deg,
        rgba(17, 24, 39, 0.35) 0%,
        rgba(24, 24, 35, 0.35) 30%,
        rgba(32, 24, 48, 0.35) 100%
    ) !important;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 56px;
}

.glass-nav .navbar-brand {
    position: relative;
    color: #e5f8ff !important;
    letter-spacing: 0.3px;
    font-size: 1.25rem !important;
    font-weight: 600;
}

.glass-nav .navbar-brand::after {
    content: "";
    position: absolute;
    inset: -6px -8px -4px -8px;
    background: radial-gradient(60% 60% at 20% 50%, rgba(34,211,238,0.10), transparent 60%),
                radial-gradient(60% 60% at 80% 50%, rgba(168,85,247,0.10), transparent 60%);
    filter: blur(12px);
    z-index: -1;
}

.glass-nav .navbar-nav .nav-link {
    color: rgba(255,255,255,0.86) !important;
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid transparent;
    transition: all 200ms ease;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.glass-nav .navbar-nav .nav-link:hover {
    color: #fff !important;
    border-color: rgba(153,255,102,0.2);
    background: linear-gradient(120deg, rgba(17,24,39,0.55), rgba(32,24,48,0.55));
    box-shadow: 0 2px 8px rgba(153,255,102,0.08), inset 0 0 6px rgba(255,255,255,0.03);
}

.glass-nav .navbar-nav .nav-link.active {
    color: #0b0f1a !important;
    background: linear-gradient(90deg, #99FF66, #22d3ee);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(34,211,238,0.2), 0 1px 4px rgba(153,255,102,0.2);
}

/* Hide legacy underline when using pill style */
.glass-nav .nav-item .circle { display: none; }

/* Responsive improvements */
@media (max-width: 992px) {
    .glass-nav .navbar-nav { gap: 4px !important; }
    .glass-nav .navbar-nav .nav-link { padding: 6px 10px; }
    .glass-nav .navbar-brand { font-size: 1.1rem !important; }
}

/* Compact container spacing */
.glass-nav .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Reduce gap between nav items */
.glass-nav .navbar-nav {
    gap: 3px !important;
}

/* Sleek toggle button */
.glass-nav .navbar-toggler {
    padding: 3px 5px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    background: rgba(255,255,255,0.05);
}

.glass-nav .navbar-toggler:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}
.navbar-mobile-menu {
    transition: max-height 0.3s ease;
    overflow: hidden;
}
@media (max-width: 768px) {
    .site-title {
        margin-top: 2.5rem;
    }
}
 
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    @keyframes gradient {
        0% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
        100% {
            background-position: 0% 50%;
        }
    }
    
    @keyframes float {
        0% {
            transform: translateY(0px) rotate(0deg);
        }
        50% {
            transform: translateY(-20px) rotate(180deg);
        }
        100% {
            transform: translateY(0px) rotate(360deg);
        }
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.8; }
    }
    
    @keyframes ping {
        75%, 100% {
            transform: scale(2);
            opacity: 0;
        }
    }
    
    body {
        min-height: 100vh;
        min-width: 1024px;
        background-color: #111827;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4rem;
        overflow-x: auto;
        position: relative;
    }

    /* Offset page content below fixed navbar */
    .page-offset {
        padding-top: 80px; /* equal/larger than navbar height */
    }
    
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            45deg,
            rgba(34, 211, 238, 0.1),
            rgba(168, 85, 247, 0.1),
            rgba(236, 72, 153, 0.1)
        );
        background-size: 400% 400%;
        animation: gradient 15s ease infinite;
        z-index: -2;
    }
    
    .floating-shapes {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: -1;
        overflow: hidden;
    }
    
    .shape {
        position: absolute;
        background: linear-gradient(45deg, rgba(34, 211, 238, 0.1), rgba(168, 85, 247, 0.1));
        border-radius: 50%;
        animation: float 20s infinite;
    }
    
    .shape:nth-child(1) {
        width: 300px;
        height: 300px;
        top: 10%;
        left: 10%;
        animation-delay: 0s;
    }
    
    .shape:nth-child(2) {
        width: 200px;
        height: 200px;
        top: 60%;
        right: 15%;
        animation-delay: -5s;
        animation-duration: 25s;
    }
    
    .shape:nth-child(3) {
        width: 150px;
        height: 150px;
        top: 30%;
        right: 30%;
        animation-delay: -10s;
        animation-duration: 30s;
    }
    
    .site-title {
        text-align: center;
        position: relative;
        margin-bottom: 2rem;
    }
    
    .title {
        font-size: 3rem;
        font-weight: bold;
        background: linear-gradient(to right, #22d3ee, #a855f7, #ec4899);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: pulse 2s infinite;
        white-space: nowrap;
    }
    
    .subtitle {
        color: rgba(255, 255, 255, 0.7);
        margin-top: 0.5rem;
        font-size: 1.125rem;
    }
    
    .title-glow {
        position: absolute;
        inset: -0.25rem;
        background: linear-gradient(to right, #22d3ee, #a855f7, #ec4899);
        opacity: 0.3;
        filter: blur(1rem);
        z-index: -1;
    }
    
    .cards-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 2.5rem;
        width: fit-content;
        margin: 0 auto;
        padding: 0;
        white-space: normal;
        flex-wrap: wrap;
        align-items: stretch;
    }
    
    .card {
        position: relative;
        width: 280px;
        height: 320px;
        background: rgba(17, 24, 39, 0.8);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 1rem;
        cursor: pointer;
        overflow: hidden;
        transition: all 0.3s ease;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .card:hover {
        transform: translateY(-5px);
        border-color: rgba(153, 255, 102, 0.3);
        box-shadow: 0 8px 24px rgba(153, 255, 102, 0.2);
    }
    
    .card-glow {
        position: absolute;
        inset: 0;
        opacity: 0.15;
        transition: opacity 0.3s;
        background: radial-gradient(circle at 50% 50%, 
            rgba(153, 255, 102, 0.4), 
            transparent 70%);
        filter: blur(20px);
    }
    
    .card:hover .card-glow {
        opacity: 0.3;
    }
    
    .card-content {
        position: relative;
        padding: 1.75rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        text-align: center;
        z-index: 1;
    }
    
    .card-icon {
        font-size: 2.5rem;
        color: #99FF66;
        margin-bottom: 0.5rem;
        filter: drop-shadow(0 0 8px rgba(153, 255, 102, 0.4));
        transition: all 0.3s ease;
    }
    
    .card:hover .card-icon {
        transform: scale(1.1);
        filter: drop-shadow(0 0 12px rgba(153, 255, 102, 0.6));
    }
    
    .card-title {
        font-size: 1.35rem;
        font-weight: 600;
        color: white;
        margin: 0.5rem 0;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }
    
    .card:hover .card-title {
        color: #99FF66;
        text-shadow: 0 0 8px rgba(153, 255, 102, 0.4);
    }
    
    .card-description {
        font-size: 0.95rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.85);
        max-width: 90%;
        margin: 0 auto;
        transition: all 0.3s ease;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        padding-bottom: 1rem;
    }
    
    .card:hover .card-description {
        color: rgba(255, 255, 255, 0.95);
    }

    /* Card styles from index.html - refined to prevent overflow */
    .card {
        height: 320px !important;
        width: 300px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        background: rgba(17, 24, 39, 0.7) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(153, 255, 102, 0.1) !important;
        border-radius: 1rem !important;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
        transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, border-color 220ms ease !important;
        will-change: transform, box-shadow;
    }

    .card:hover {
        border-color: rgba(153, 255, 102, 0.3) !important;
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34), 0 0 24px rgba(153, 255, 102, 0.2) !important;
        transform: translateY(-6px) scale(1.02) !important;
    }

    .card-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 1.5rem !important;
        height: 100% !important;
        justify-content: space-between !important;
        position: relative !important;
        z-index: 1 !important;
        gap: 0.5rem !important;
    }

    .card-icon {
        font-size: 2.25rem !important;
        margin-bottom: 0.75rem !important;
        color: #99FF66 !important;
        transition: all 0.3s ease !important;
        filter: drop-shadow(0 0 8px rgba(153, 255, 102, 0.4)) !important;
    }

    .card:hover .card-icon {
        transform: scale(1.1) !important;
        filter: drop-shadow(0 0 12px rgba(153, 255, 102, 0.6)) !important;
    }

    .card-title {
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        margin-bottom: 0.75rem !important;
        color: #ffffff !important;
        text-shadow: 0 0 10px rgba(153, 255, 102, 0.35), 0 0 6px rgba(34, 211, 238, 0.2) !important;
        letter-spacing: 0.5px !important;
        white-space: normal !important;
    }

    .card:hover .card-title {
        color: #99FF66 !important;
        text-shadow: 0 0 15px rgba(153, 255, 102, 0.4) !important;
    }

    .card-description {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
        color: rgba(255, 255, 255, 0.9) !important;
        max-width: 240px !important;
        margin: 0 auto !important;
        padding: 0 0.5rem !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
        text-shadow: 0 0 8px rgba(153, 255, 102, 0.25), 0 0 6px rgba(34, 211, 238, 0.18) !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        min-height: 4.2em !important;
        white-space: normal !important;
    }

    .card:hover .card-description {
        color: rgba(255, 255, 255, 0.96) !important;
        text-shadow: 0 0 12px rgba(153, 255, 102, 0.3), 0 0 10px rgba(34, 211, 238, 0.22) !important;
    }

    /* Ensure paragraph margins are reset */
    .card-description p {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Add subtle gradient glow to card */
    .card::after {
        content: '' !important;
        position: absolute !important;
        inset: 0 !important;
        background: radial-gradient(
            circle at 50% 0%,
            rgba(153, 255, 102, 0.15),
            transparent 70%
        ) !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease !important;
        pointer-events: none !important;
    }

    .card:hover::after {
        opacity: 1 !important;
    }

    /* Add subtle light beam effect */
    .card::before {
        content: '' !important;
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(
            45deg,
            transparent,
            rgba(153, 255, 102, 0.1),
            transparent
        ) !important;
        background-size: 200% 100% !important;
        background-position: -100% 0 !important;
        transition: background-position 0.5s ease !important;
    }

    .card:hover::before {
        background-position: 200% 0 !important;
    }

    /* Additional glow effect for content */
    .card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 50% 0%, 
            rgba(153, 255, 102, 0.1), 
            transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .card:hover::before {
        opacity: 1;
    }
    
    .card:hover .card-description {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .card-overlay {
        position: absolute;
        inset: 0;
        background: rgba(17, 24, 39, 0.9);
        backdrop-filter: blur(4px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
    }
    
    .card-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    .card-overlay-content {
        color: rgba(255, 255, 255, 0.9);
        text-align: center;
    }
    
    .video-section {
        width: 100%;
        max-width: 48rem;
        position: relative;
        cursor: pointer;
        margin-top: 2rem;
    }
    
    .video-container {
        position: relative;
        aspect-ratio: 16/9;
        border-radius: 0.75rem;
        overflow: hidden;
        backdrop-filter: blur(0.75rem);
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .video-placeholder {
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom right, #111827, #1f2937);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .play-button {
        position: relative;
        width: 4rem;
        height: 4rem;
        color: rgba(255, 255, 255, 0.8);
        transition: color 0.3s;
    }
    
    .video-container:hover .play-button {
        color: white;
    }
    
    .play-button-ping {
        position: absolute;
        inset: 0;
        animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
    }
    
    .video-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, #22d3ee, #a855f7, #ec4899);
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .video-container:hover .video-overlay {
        opacity: 0.3;
    }
    
    .video-text {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1.5rem;
        background: linear-gradient(to top, rgba(17, 24, 39, 0.9), transparent);
    }
    
    .video-title {
        font-size: 1.25rem;
        font-weight: bold;
        color: white;
        margin-bottom: 0.5rem;
    }
    
    .video-description {
        color: rgba(255, 255, 255, 0.7);
    }
 

/* ========================= */
/* Enhanced AI Navbar Styles */
/* ========================= */

.ai-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(17,24,39,0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transition: background 200ms ease, box-shadow 200ms ease;
    z-index:  0;
    min-height: 64px;
}

/* Ensure inner container respects consistent navbar height */
.ai-navbar .flex.items-center.justify-between {
    min-height: 64px;
}

/* Ensure screen-reader-only text is visually hidden even if Tailwind is not loaded */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Reset mobile toggle button so it doesn't appear as a large white block */
#navbar-toggle {
    background: transparent !important;
    border: none !important;
    padding: 4px !important;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    box-shadow: none !important;
}

#navbar-toggle svg {
    width: 24px;
    height: 24px;
}

.ai-navbar.scrolled {
    background: rgba(11,18,32,0.98);
    box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}

.ai-navbar-title { letter-spacing: 0.2px; color: #e5e7eb; text-shadow: none; }

.ai-navbar-title-gradient {
    background: linear-gradient(90deg, #22d3ee 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: hueShift 6s linear infinite;
}

.ai-logo-glow {
    position: absolute;
    width: 40px; height: 40px;
    border-radius: 90rem;
    background: radial-gradient(60% 60% at 50% 50%, rgba(153,255,102,0.45) 0%, rgba(34,211,238,0.25) 60%, rgba(168,85,247,0.15) 100%);
    filter: blur(14px);
    transform: translate(-6px, 4px);
    opacity: 0.7;
    pointer-events: none;
}

.ai-logo-img { filter: none; transition: transform 200ms ease; }

.ai-navbar .group:hover .ai-logo-img {
    transform: translateY(-1px) scale(1.03);
    filter: drop-shadow(0 4px 12px rgba(168,85,247,0.45));
}

.ai-navbar-link {
    position: relative;
    color: rgba(255,255,255,0.92);
    background: transparent;
    border: none;
    box-shadow: none;
}

.ai-navbar-link::after { display: none !important; }

.ai-navbar-link:hover { color: #ffffff; }

.ai-navbar-link:hover::after { transform: scaleX(1); }

.ai-navbar-link .ai-navbar-link-icon {
    display:inline-flex;
    align-items: center;
    margin-right: 10px;
    opacity: 0.1;
    transition: transform 200ms ease, opacity 200ms ease;
}

.ai-navbar-link:hover .ai-navbar-link-icon { opacity: 1; transform: translateY(-1px) scale(1.05); }

.ai-navbar-link.active { color: #99FF66; }

.ai-navbar-mobile-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 64px; /* matches navbar height */
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    background: rgba(11,18,32,0.98);
    max-height: 0; /* collapsed by default */
    overflow-y: auto;
}

/* Scroll progress accent under the navbar */
/* Remove strong animated underline from full navbar for a cleaner look */
.ai-navbar::after { display: none; }

/* Align link spacing and states with existing template styles */
.ai-navbar .ai-navbar-link,
.ai-navbar-mobile-menu .ai-navbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    line-height: 1.1;
    font-size: 0.95rem;
}

.ai-navbar .ai-navbar-link:hover,
.ai-navbar-mobile-menu .ai-navbar-link:hover {
    color: #3CF;
    border-bottom-color: #3CF;
}

.ai-navbar .ai-navbar-link.active,
.ai-navbar-mobile-menu .ai-navbar-link.active {
    color: #99FF66;
    border-bottom-color: #99FF66;
}

/* Mobile-first adjustments for responsiveness */
@media (max-width: 768px) {
    body { min-width: 0; padding: 1rem; }
    .page-offset { padding-top: 68px; }
    .ai-navbar { min-height: 56px; }
    .ai-navbar .flex.items-center.justify-between { min-height: 56px; }
    .ai-navbar-mobile-menu { top: 56px; }
    .ai-navbar-title { font-size: 1rem; }
    .ai-navbar .ai-navbar-link { font-size: 1rem; padding: 12px 8px; border-bottom: none; }
    .ai-navbar-mobile-menu .ai-navbar-link { font-size: 1.1rem; display: block; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.06); }
}

/* Animations */
@keyframes hueShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes gradientSlide {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Index Page Navbar Icon Spacing Fix - Enhanced */
#tm-nav .navbar-nav .nav-item {
    margin: 0 0.75rem !important;
}

#tm-nav .navbar-link {
    padding: 0.75rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    position: relative !important;
}

#tm-nav .navbar-link i {
    margin-right: 0.5rem !important;
    font-size: 0.9em !important;
    z-index: 2 !important;
    position: relative !important;
}

/* Active state styling for index page */
#tm-nav .navbar-link.active {
    color: #99FF66 !important;
    background: rgba(153, 255, 102, 0.1) !important;
    border-radius: 0.5rem !important;
    border: 1px solid rgba(153, 255, 102, 0.3) !important;
    box-shadow: 0 0 15px rgba(153, 255, 102, 0.2) !important;
}

#tm-nav .navbar-link.active i {
    color: #99FF66 !important;
    filter: drop-shadow(0 0 5px rgba(153, 255, 102, 0.5)) !important;
    opacity: 1 !important;
    z-index: 3 !important;
}

/* Ensure proper spacing on mobile */
@media (max-width: 768px) {
    #tm-nav .navbar-nav .nav-item {
        margin: 0 0.5rem !important;
    }
    
    #tm-nav .navbar-link {
        padding: 0.5rem 0.75rem !important;
    }
}

@media (max-width: 576px) {
    #tm-nav .navbar-nav .nav-item {
        margin: 0 0.3rem !important;
    }
    
    #tm-nav .navbar-link {
        padding: 0.4rem 0.6rem !important;
    }
}