.navbar {
    font-family:
        system-ui,
        -apple-system,
        "Inter",
        sans-serif;
}

.navbar-brand {
    letter-spacing: -0.4px;
}

.search-bar {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    min-width: 280px;
    cursor: pointer;
}

.search-bar:hover {
    background-color: #f3f4f6;
}

.btn-dark {
    border-radius: 10px;
}

.nav-link {
    font-size: 1rem;
}

.sidebar {
    width: 250px;
    height: 85vh; /* 🔥 key fix */
    flex-shrink: 0; /* prevents flex resize */
    background-color: #ffffff;
    font-family:
        system-ui,
        -apple-system,
        "Inter",
        sans-serif;
    position: sticky; /* optional but recommended */
    top: 0;
}

@media (max-width: 767px) {
    .sidebar {
        width: 80px;
    }

    .sidebar .nav-link {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
}
.sidebar .nav-link {
    color: #374151;
    font-size: 1rem;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.sidebar .nav-link:hover {
    background-color: #f3f4f6;
}

.sidebar .nav-link.active {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

#animatedText {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#animatedText.show {
    opacity: 1;
}

.main-content {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.mySwiper {
    width: 100%;
    overflow: hidden;
}

.mySwiper .swiper-slide {
    width: auto !important; /* KEY FOR RESPONSIVENESS */
}

.mySwiper a.btn {
    white-space: nowrap; /* Prevent text break */
    font-size: 14px;
}

@media (max-width: 576px) {
    .mySwiper a.btn {
        font-size: 13px;
        padding: 6px 12px;
    }
}

.gradient-border {
    background: linear-gradient(135deg, var(--bs-primary), #0e0f0fb0);
    padding: 1px; /* border thickness */
    border-radius: 1.5rem;
}

.fade-in {
    animation: fadeIn 0.7s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(13px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(13, 109, 253, 0.37), transparent 60%),
        radial-gradient(circle at bottom right, rgba(25, 135, 84, 0.212), transparent 60%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.search-glow {
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15);
}

.stat-chip {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.floating {
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
    100% {
        transform: translateY(0);
    }
}
