:root {
            --primary-color: #2563eb;
            --primary-dark: #1e40af;
            --primary-light: #dbeafe;
            --secondary-color: #64748b;
            --success-color: #10b981;
            --danger-color: #ef4444;
            --warning-color: #f59e0b;
            --info-color: #06b6d4;
            --light-color: #f8fafc;
            --dark-color: #0f172a;
            --gray-50: #f9fafb;
            --gray-100: #f3f4f6;
            --gray-200: #e5e7eb;
            --gray-300: #d1d5db;
            --gray-600: #4b5563;
            --gray-700: #374151;
            --gray-800: #1f2937;
            --gray-900: #111827;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background-color: #ffffff;
            color: var(--gray-900);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .navbar {
            transition: all 0.3s ease;
            border-bottom: 1px solid var(--gray-100);
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
        }

        .navbar-brand {
            font-weight: 700;
            font-size: 1.5rem;
            letter-spacing: -0.02em;
        }

        .nav-link {
            font-weight: 500;
            color: var(--gray-700);
            transition: color 0.2s ease;
        }

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

        .hero-section {
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 50%, rgba(51, 65, 85, 0.85) 100%), 
                        url('https://images.unsplash.com/photo-1556741533-411cf82e4e2d');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            padding: 90px 0 110px;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
            opacity: 1;
        }

        .hero-section::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                repeating-linear-gradient(
                    0deg,
                    transparent,
                    transparent 2px,
                    rgba(255, 255, 255, 0.02) 2px,
                    rgba(255, 255, 255, 0.02) 4px
                );
            opacity: 0.5;
        }

        .hero-section .container {
            position: relative;
            z-index: 1;
        }

        .hero-section h1 {
            font-weight: 800;
            font-size: 3.75rem;
            letter-spacing: -0.04em;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        }

        .hero-section .subtitle {
            font-size: 1.35rem;
            font-weight: 400;
            opacity: 0.95;
            line-height: 1.6;
            max-width: 600px;
            margin: 0 auto 3rem;
        }

        .hero-stats {
            display: flex;
            justify-content: center;
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .hero-stat {
            text-align: center;
        }

        .hero-stat-number {
            font-size: 2rem;
            font-weight: 700;
            display: block;
            margin-bottom: 0.25rem;
        }

        .hero-stat-label {
            font-size: 0.9rem;
            opacity: 0.9;
        }

        @media (max-width: 768px) {
            .hero-section {
                padding: 50px 0 70px;
            }
            
            .hero-section h1 {
                font-size: 2rem;
            }
            
            .hero-section .subtitle {
                font-size: 1rem;
            }
            
            .hero-stats {
                gap: 1.5rem;
                flex-wrap: wrap;
            }
            
            .hero-stat-number {
                font-size: 1.5rem;
            }

            .search-box {
                padding: 0.75rem;
            }

            .search-box .form-control,
            .search-box .form-select,
            .search-box .btn-primary {
                height: 50px;
                font-size: 0.9rem;
            }
        }

        .search-box {
            background: white;
            border-radius: 16px;
            padding: 1.25rem;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
            backdrop-filter: blur(10px);
        }

        .search-box .form-control,
        .search-box .form-select {
            border: 1px solid var(--gray-200) !important;
            background-color: var(--gray-50) !important;
            box-shadow: none !important;
            height: 56px;
            font-size: 0.95rem;
            font-weight: 400;
            color: var(--gray-900);
            border-radius: 8px !important;
            transition: all 0.2s ease;
        }

        .search-box .form-control:focus,
        .search-box .form-select:focus {
            outline: none !important;
            border-color: var(--primary-color) !important;
            background-color: white !important;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
        }

        .search-box .form-control::placeholder {
            color: var(--gray-500);
            font-weight: 400;
        }

        .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray-500);
            font-size: 1.1rem;
            z-index: 10;
            pointer-events: none;
        }

        .search-box .btn-primary {
            height: 56px;
            padding: 0 1.5rem;
            font-size: 1rem;
            font-weight: 600;
            border-radius: 8px !important;
            background: var(--primary-color) !important;
            border: none !important;
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
            transition: all 0.2s ease !important;
        }

        .search-box .btn-primary:hover {
            background: var(--primary-dark) !important;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
            transform: translateY(-1px);
        }

        .popular-searches {
            margin-top: 1.5rem;
            font-size: 0.9rem;
        }

        /* Refined Form Styling */
        .form-control, 
        .form-select {
            border: 1px solid var(--gray-300) !important;
            border-radius: 8px !important;
            padding: 0.75rem 1rem !important;
            font-size: 0.95rem !important;
            font-weight: 400 !important;
            background-color: var(--gray-50) !important;
            transition: all 0.2s ease !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
        }

        .form-control:focus, 
        .form-select:focus {
            border-color: var(--primary-color) !important;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
            outline: none !important;
            background-color: #ffffff !important;
        }

        .form-control:hover:not(:focus), 
        .form-select:hover:not(:focus) {
            border-color: var(--gray-400) !important;
            background-color: #ffffff !important;
        }

        .form-label {
            font-weight: 600 !important;
            color: var(--gray-800) !important;
            margin-bottom: 0.5rem !important;
            font-size: 0.9rem !important;
        }

        .form-label .text-danger {
            color: var(--danger-color) !important;
            font-weight: 700 !important;
        }

        textarea.form-control {
            min-height: 120px !important;
            resize: vertical !important;
        }

        /* Refined Section Styling */
        .form-section {
            background: var(--gray-50) !important;
            border-radius: 12px !important;
            padding: 1.75rem !important;
            margin-bottom: 1.5rem !important;
            border: 1px solid var(--gray-200) !important;
        }

        .section-title {
            color: var(--gray-800) !important;
            font-weight: 600 !important;
            font-size: 1.1rem !important;
            margin-bottom: 1.25rem !important;
            padding-bottom: 0.5rem !important;
            border-bottom: 1px solid var(--gray-200) !important;
            display: flex !important;
            align-items: center !important;
        }

        .section-title i {
            color: var(--primary-color) !important;
            font-size: 1.1em !important;
        }

        /* Refined Card Styling */
        .card {
            border: 1px solid var(--gray-200) !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
        }

        /* Small text styling */
        small.text-muted {
            color: var(--gray-600) !important;
            font-size: 0.85rem !important;
            font-weight: 400 !important;
        }

        /* Refined button styling */
        .btn-primary {
            background: var(--primary-color) !important;
            border: none !important;
            padding: 0.75rem 1.75rem !important;
            font-weight: 500 !important;
            border-radius: 8px !important;
            box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2) !important;
            transition: all 0.2s ease !important;
        }

        .btn-primary:hover {
            background: var(--primary-dark) !important;
            box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
        }

        .btn-outline-secondary {
            border: 1px solid var(--gray-300) !important;
            color: var(--gray-700) !important;
            font-weight: 500 !important;
            padding: 0.75rem 1.75rem !important;
            border-radius: 8px !important;
            transition: all 0.2s ease !important;
        }

        .btn-outline-secondary:hover {
            background-color: var(--gray-50) !important;
            border-color: var(--gray-400) !important;
            color: var(--gray-800) !important;
        }

        .popular-searches a {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            padding: 0.4rem 1rem;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 20px;
            display: inline-block;
            margin: 0.25rem;
            transition: all 0.2s ease;
            backdrop-filter: blur(10px);
        }

        .popular-searches a:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
        }

        .category-card {
            background: #ffffff;
            border: 1.5px solid var(--gray-200);
            border-radius: 14px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            color: inherit;
        }

        .category-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 28px rgba(37, 99, 235, 0.15);
            border-color: var(--primary-color);
        }

        .category-icon-wrap {
            width: 60px;
            height: 60px;
            border-radius: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            background: linear-gradient(135deg, var(--primary-light) 0%, #dbeafe 100%);
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
        }

        .category-card:hover .category-icon-wrap {
            background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
            color: white;
            transform: scale(1.15) rotate(5deg);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        .category-icon-wrap i {
            font-size: 1.5rem;
        }

        .category-card h6 {
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--gray-900);
            margin-top: 0.75rem;
        }

        .category-card .text-muted {
            font-size: 0.8rem;
            color: var(--gray-600) !important;
        }

        .listing-card {
            background: white;
            border: 1.5px solid var(--gray-200);
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        .listing-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            border-color: var(--primary-color);
        }

        /* Ensure listing card images use a 600x400 (3:2) aspect ratio */
        .listing-card > .position-relative {
            width: 100%;
            aspect-ratio: 3 / 2; /* 600x400 ratio */
            position: relative;
            overflow: hidden;
            background-color: var(--gray-100);
        }

        /* Make image fill the container while preserving the ratio */
        .listing-card .card-img-top {
            position: absolute;
            inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 */
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        /* Smooth hover scale without translation */
        .listing-card:hover .card-img-top {
            transform: scale(1.05);
        }

        .listing-card .position-relative .badge,
        .listing-card .position-relative .featured-badge {
            position: absolute;
            z-index: 10;
        }

        .listing-card .card-body {
            padding: 1.5rem;
        }

        .listing-card .card-title {
            font-weight: 700;
            font-size: 1.05rem;
            color: var(--gray-900);
            margin-bottom: 0.5rem;
            line-height: 1.4;
        }

        .listing-card .price-tag {
            font-weight: 700;
            font-size: 1.25rem;
            color: var(--primary-color);
        }

        .featured-badge {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
            font-weight: 700;
            font-size: 0.75rem;
            padding: 0.4rem 0.85rem;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
            border: none;
            font-weight: 600;
            padding: 0.75rem 1.75rem;
            border-radius: 10px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, #1e40af 0%, var(--primary-color) 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
        }

        .btn-outline-primary {
            color: var(--primary-color);
            border: 2px solid var(--primary-color);
            font-weight: 600;
            padding: 0.65rem 1.5rem;
            border-radius: 10px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: transparent;
        }

        .btn-outline-primary:hover {
            background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
            border-color: var(--primary-color);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
        }

        /* Custom grid for 8 categories per row on extra large screens */
        @media (min-width: 1400px) {
            .col-xl-1-5 {
                flex: 0 0 auto;
                width: 12.5%; /* 100% / 8 = 12.5% */
            }
        }

        section {
            padding: 5rem 0;
        }

        section h2 {
            font-weight: 700;
            font-size: 2.25rem;
            letter-spacing: -0.02em;
            color: var(--gray-900);
        }

        section .text-muted {
            color: var(--gray-600) !important;
        }

        .bg-light {
            background-color: var(--gray-50) !important;
        }

        footer {
            background: #0b1220;
            color: var(--light-color);
            padding-top: 0;
            position: relative;
        }
        
        .newsletter-section {
            position: relative;
            overflow: hidden;
        }
        
        .newsletter-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="20" fill="url(%23grain)"/></svg>');
            opacity: 0.3;
        }
        
        .newsletter-section .container {
            position: relative;
            z-index: 2;
        }

        footer a {
            color: rgba(255, 255, 255, 0.7);
            transition: all 0.2s ease;
            text-decoration: none;
        }

        footer a:hover {
            color: white;
        }
        
        .footer-links li a {
            transition: all 0.2s ease;
            padding: 0.4rem 0;
            display: inline-block;
        }
        
        .footer-links li a:hover {
            color: white !important;
            padding-left: 0.5rem;
        }
        
        .social-media a {
            transition: all 0.2s ease;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .social-media a:hover {
            background-color: var(--primary-color) !important;
            border-color: var(--primary-color) !important;
            transform: translateY(-2px);
        }
        
        .app-download a {
            transition: all 0.2s ease;
            display: inline-block;
        }
        
        .app-download a:hover {
            opacity: 0.8;
        }
        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1.5rem 0;
        }

        .main-footer {
            background: transparent;
        }

        .footer-brand h5 {
            font-weight: 700;
            letter-spacing: -0.01em;
        }

        /* Carousel Styles */
        .carousel-control-prev,
        .carousel-control-next {
            width: 50px;
            height: 50px;
            background: white;
            border-radius: 50%;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .carousel:hover .carousel-control-prev,
        .carousel:hover .carousel-control-next {
            opacity: 1;
        }

        .carousel-control-prev {
            left: -25px;
        }

        .carousel-control-next {
            right: -25px;
        }

        .carousel-control-prev:hover,
        .carousel-control-next:hover {
            background: var(--primary-color);
        }

        .carousel-control-prev-icon,
        .carousel-control-next-icon {
            width: 20px;
            height: 20px;
            background-size: 100%;
            filter: invert(1);
        }

        .carousel-control-prev:hover .carousel-control-prev-icon,
        .carousel-control-next:hover .carousel-control-next-icon {
            filter: invert(0);
        }

        /* Filter Buttons */
        .filter-btn {
            padding: 0.65rem 1.5rem;
            border: 1px solid var(--gray-300);
            border-radius: 10px;
            background: white;
            color: var(--gray-700);
            font-weight: 500;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .filter-btn:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
            background: var(--primary-light);
        }

        .filter-btn.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
        }

        /* Header Redesign */
        .top-header {
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            padding: 0.6rem 0;
            font-size: 0.875rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .top-header a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .top-header a:hover {
            color: white;
        }

        /* Language Switcher */
        .language-switcher {
            font-size: 0.875rem;
        }

        .language-switcher i {
            color: rgba(255, 255, 255, 0.7);
            font-size: 1rem;
        }

        .language-switcher .language-switch {
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            font-weight: 500;
            letter-spacing: 0.5px;
            transition: all 0.2s ease;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
        }

        .language-switcher .language-switch:hover {
            color: rgba(255, 255, 255, 0.9);
            background: rgba(255, 255, 255, 0.1);
        }

        .language-switcher .language-switch.active {
            color: white;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.15);
        }

        .main-navbar {
            background: white;
            border-bottom: 1px solid var(--gray-200);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }


        /* Page Header */
        .page-header {
            background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
            padding: 4rem 0 3rem;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .page-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
            opacity: 1;
        }

        .page-header .container {
            position: relative;
            z-index: 1;
        }

        .page-header h1 {
            font-weight: 800;
            font-size: 3rem;
            letter-spacing: -0.03em;
            margin-bottom: 1rem;
        }

        .page-header p {
            font-size: 1.2rem;
            opacity: 0.95;
        }

        .breadcrumb {
            background: transparent;
            padding: 0;
            margin-bottom: 0;
        }

        .breadcrumb-item a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
        }

        .breadcrumb-item.active {
            color: white;
        }


        /* Category Card */
        .category-card {
            background: #ffffff;
            border: 1.5px solid var(--gray-200);
            border-radius: 16px;
            padding: 2rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            color: inherit;
            display: block;
            height: 100%;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        .category-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
            border-color: var(--primary-color);
        }

        .category-icon {
            width: 70px;
            height: 70px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            background: var(--primary-light);
            margin-bottom: 1.5rem;
            transition: all 0.3s ease;
        }

        .category-card:hover .category-icon {
            background: var(--primary-color);
            color: white;
            transform: scale(1.1);
        }

        .category-icon i {
            font-size: 2rem;
        }

        .category-card h5 {
            font-weight: 700;
            font-size: 1.25rem;
            color: var(--gray-900);
            margin-bottom: 0.75rem;
        }

        .category-card p {
            color: var(--gray-600);
            margin-bottom: 1rem;
            font-size: 0.95rem;
        }

        .category-count {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: var(--gray-100);
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--gray-700);
        }

        .category-card:hover .category-count {
            background: var(--primary-light);
            color: var(--primary-color);
        }