/* Global Styles */

:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --primary-dark: #3f37c9;
    --secondary: #7209b7;
    --accent: #f72585;
    /* Changed to pink/purple as per image */
    --dark: #0f172a;
    --slate: #475569;
    --light: #f8fafc;
    --white: #ffffff;

    /* Premium Color Palette */
    --deep-navy: #050514;
    --glass-white: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Theme Utilities */
.section-primary {
    background-color: #ffffff;
}

.section-secondary {
    background-color: #f8fafc;
}

.text-heading {
    color: var(--dark) !important;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--slate);
    line-height: 1.6;
    background-color: #f1f5f9;
    /* Subtle mesh gradient background for entire body */
    background-image:
        radial-gradient(at 40% 20%, rgba(67, 97, 238, 0.05) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(76, 201, 240, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(247, 37, 133, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    letter-spacing: -0.03em;
}

/* Base Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Navbar Tuning - Ultimate Glass */
.z-9 {
    z-index: 9999;
}

.navbar {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.7rem;
    color: var(--dark) !important;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 600;
    color: var(--slate) !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Navbar Separation */
@media (min-width: 992px) {
    .navbar-mobile {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-desktop {
        display: none !important;
    }

    .navbar-mobile {
        position: sticky;
        top: 0;
        z-index: 1030;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

}

body.bg-light,
.section-secondary {
    background-color: #f1f5f9 !important;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1040;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
    padding: 0 10px;
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    flex: 1;
    transition: all 0.3s ease;
}

.mobile-bottom-nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.mobile-bottom-nav-item.active {
    color: var(--primary);
}

.mobile-bottom-nav-item:hover {
    color: var(--primary);
}

/* Center Action Button in Bottom Nav */
.mobile-bottom-nav-item.center-action {
    background: var(--primary);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
    flex: 0 0 50px;
}

.mobile-bottom-nav-item.center-action i {
    font-size: 1.6rem;
    margin-bottom: 0;
}

[data-bs-theme="dark"] .navbar-mobile {
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .mobile-bottom-nav {
    background: rgba(30, 41, 59, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .mobile-bottom-nav-item {
    color: #94a3b8;
}

[data-bs-theme="dark"] .mobile-bottom-nav-item.active {
    color: var(--primary-light);
}

/* Premium Buttons */
.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-warning {
    background: linear-gradient(135deg, #fce043, #fb7ba2);
    border: none;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(251, 123, 162, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 123, 162, 0.4);
    color: #fff !important;
}

/* Glass Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Business Card Specific */
.card-business {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.85);
}

.card-business:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 40px -10px rgba(67, 97, 238, 0.15) !important;
    border-color: rgba(67, 97, 238, 0.3) !important;
}

.card-business img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-business:hover img {
    transform: scale(1.05);
}

/* Hero Section Refined */
.hero-section {
    padding: 30px 0 100px;
    background-color: var(--deep-navy);
    background-image: radial-gradient(circle at 80% 20%, rgba(114, 9, 183, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(67, 97, 238, 0.15) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    position: relative;
    overflow: hidden;
    color: #ffffff;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

.hero-glow-title {
    font-weight: 800;
    font-size: 3rem;
    letter-spacing: -0.05em;
    line-height: 1.05;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-glow-title span {
    background: linear-gradient(to right, #7209b7, #f72585);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.popular-search-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.popular-search-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.hero-search-box .btn-search {
    background: #4361ee;
    color: #fff;
    border-radius: 100px;
    padding: 12px 30px;
    font-weight: 700;
    border: none;
}

/* Action Cards */
.action-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.action-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

/* How It Works Refined */
.how-it-works-connector {
    position: absolute;
    top: 40px;
    width: 100px;
    height: 2px;
    background-image: linear-gradient(to right, #cbd5e1 40%, transparent 40%);
    background-size: 10px 2px;
}

.hero-stats-bar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 20px 40px;
    margin-top: 20px;
    display: inline-flex;
    justify-content: center;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 30px;
}

.hero-stat-icon {
    font-size: 1.2rem;
    color: var(--accent);
}

/* Feature Step Icons */
.how-it-works-row {
    position: relative;
    padding-top: 20px;
}

.step-item-wrapper {
    position: relative;
    z-index: 1;
}

.how-it-works-connector {
    position: absolute;
    top: 40px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background-image: linear-gradient(to right, #cbd5e1 40%, transparent 40%);
    background-size: 10px 2px;
    z-index: 0;
}

.how-it-works-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #cbd5e1;
    border-right: 2px solid #cbd5e1;
    transform: rotate(45deg);
}

.step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
    position: relative;
    background: #f1f5f9;
    color: var(--primary);
    z-index: 1;
}

.step-number {
    position: absolute;
    top: 0;
    right: -10px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.cta-banner-wrapper {
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    border-radius: 40px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.cta-illustration-rocket {
    position: absolute;
    left: 40px;
    bottom: -20px;
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.15);
    transform: rotate(-15deg);
}

.cta-illustration-trophy {
    position: absolute;
    right: 40px;
    top: -20px;
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.15);
    transform: rotate(15deg);
}

/* Category Cards Premium */
.cat-card-premium {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #f1f5f9;
}

.cat-card-premium:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.cat-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

/* Featured Listing Premium */
.listing-card-premium {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
}

.listing-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.listing-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.listing-rating {
    position: absolute;
    bottom: 155px;
    right: 15px;
    background: #4ade80;
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Offcanvas */
@media (max-width: 991.98px) {
    .mobile-offcanvas {
        background: var(--white) !important; /* Use solid background for better readability */
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1) !important;
        border-left: none !important;
        width: 300px !important;
    }

    [data-bs-theme="dark"] .mobile-offcanvas {
        background: #14182e !important;
    }

    .mobile-offcanvas .list-group-item {
        transition: all 0.2s ease;
        font-weight: 500;
        color: var(--slate);
    }

    .mobile-offcanvas .list-group-item:hover,
    .mobile-offcanvas .list-group-item:active {
        background-color: rgba(67, 97, 238, 0.08) !important;
        color: var(--primary) !important;
        transform: translateX(5px);
    }

    [data-bs-theme="dark"] .mobile-offcanvas .list-group-item:hover {
        background-color: rgba(255, 255, 255, 0.05) !important;
        color: #fff !important;
    }
}

/* Call to Action Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
}

.cta-box h2,
.cta-box p {
    color: #ffffff !important;
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: #ffffff;
    color: var(--primary);
}

/* Badges */
.featured-badge {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #fff;
    font-weight: 700;
    font-size: 0.70rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border-radius: 9999px;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Icon Boxes */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(67, 97, 238, 0.1);
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--slate);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Footer Section */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer h5 {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #fff;
}

/* --- Dark Theme Overrides --- */
[data-bs-theme="dark"] {
    --dark: #f8fafc;
    --slate: #94a3b8;
    --light: #0f172a;
    --white: #1e293b;

    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] body {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .list-group-item,
[data-bs-theme="dark"] .bg-light {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6,
[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .fw-bold {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .prose p,
[data-bs-theme="dark"] .prose li {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .prose a {
    color: var(--primary-light) !important;
}

[data-bs-theme="dark"] .nav-link.text-dark {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .border {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .accordion-item {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .accordion-button {
    background-color: transparent !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .card-premium-plan {
    background: linear-gradient(135deg, #1e293b, #0f172a) !important;
}

[data-bs-theme="dark"] .section-primary {
    background-color: transparent;
}

[data-bs-theme="dark"] .section-secondary {
    background-color: rgba(255, 255, 255, 0.02);
}

[data-bs-theme="dark"] .text-heading {
    color: #f8fafc !important;
}

/* Global Utility Overrides for Dark Mode */
[data-bs-theme="dark"] .bg-white {
    background-color: rgba(30, 41, 59, 0.4) !important;
}

[data-bs-theme="dark"] .bg-light {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

[data-bs-theme="dark"] .cta-box {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.2), rgba(67, 97, 238, 0.05));
    border: 1px solid rgba(67, 97, 238, 0.3);
    box-shadow: 0 10px 40px rgba(67, 97, 238, 0.15) !important;
}

[data-bs-theme="dark"] .text-dark {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-start,
[data-bs-theme="dark"] .border-end {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .shadow-sm,
[data-bs-theme="dark"] .shadow,
[data-bs-theme="dark"] .shadow-lg {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
    background-color: #14182e;
}

[data-bs-theme="dark"] footer {
    background-color: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] body {
    background-color: #0f172a;
    background-image:
        radial-gradient(at 40% 20%, rgba(67, 97, 238, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(76, 201, 240, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(247, 37, 133, 0.1) 0px, transparent 50%);
}

[data-bs-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .navbar-brand {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .nav-link {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .card-business {
    background: rgba(30, 41, 59, 0.85);
}

[data-bs-theme="dark"] .hero-title {
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Fix for CKEditor/Dynamic content in dark mode */
[data-bs-theme="dark"] .prose,
[data-bs-theme="dark"] .prose p,
[data-bs-theme="dark"] .prose li,
[data-bs-theme="dark"] .prose h1,
[data-bs-theme="dark"] .prose h2,
[data-bs-theme="dark"] .prose h3,
[data-bs-theme="dark"] .prose h4 {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .bg-white {
    background-color: #1e293b !important;
}

[data-bs-theme="dark"] .card {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Plans page dark mode adjustments */
[data-bs-theme="dark"] .card-premium-plan {
    background: linear-gradient(135deg, #1e293b, #0f172a) !important;
}

[data-bs-theme="dark"] .text-secondary {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .nav-link.text-dark {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .list-group-item {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] select option {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

.box-badge {
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #3f37c9, #4895ef);
    color: #fff !important;
}

/* Listing Page Banner Utilities */
.mt-n5 {
    margin-top: -3rem !important;
}

.object-fit-cover {
    object-fit: cover;
}

.hover-up {
    transition: transform 0.3s ease;
}

.hover-up:hover {
    transform: translateY(-5px);
}

.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.02);
}

/* Category Carousel */
.category-carousel-wrapper {
    position: relative;
    padding: 10px 0;
}

.category-carousel-wrapper .carousel-nav-btn {
    opacity: 0;
    transition: opacity 0.3s;
}

.category-carousel-wrapper:hover .carousel-nav-btn {
    opacity: 1;
}

.category-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding-bottom: 20px;
    /* for shadow */
    margin-bottom: -20px;
    /* to offset padding */
}

.category-carousel::-webkit-scrollbar {
    display: none;
}

.category-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-slide {
    flex: 0 0 calc(25% - 1.125rem);
    scroll-snap-align: start;
}

@media (max-width: 991px) {
    .category-slide {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

@media (max-width: 767px) {
    .category-slide {
        flex: 0 0 calc(50% - 0.75rem);
    }

    .carousel-nav-btn {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .category-slide {
        flex: 0 0 85%;
    }
}

/* Radial Pattern Background */
.bg-pattern-radial {
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
}
[data-bs-theme="dark"] .bg-pattern-radial {
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) !important;
}