/* Wider container for desktop */
@media (min-width: 1200px) {

    .container,
    .modern-container,
    .footer-container,
    .header-container {
        max-width: 1400px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Make grid more compact with 3 items per row */
    .modern-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    /* Adjust featured categories to match */
    .category-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.5rem;
    }
}

/* Fix grid items sizes */
.modern-card {
    height: 100%;
}

/* Reduce some padding to make design more compact */
.listing-details {
    padding: 1.25rem;
}

/* Fix section padding */
.featured-categories {
    padding: 4rem 0;
}

/* Ensure footer matches the wider layout */
.footer-container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Header container with flexbox */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    height: 70px;
}

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Main navigation */
.main-nav {
    height: 100%;
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    height: 100%;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: #4a6cf7;
}

.main-nav a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4a6cf7;
    border-radius: 1px;
}

/* Search bar */
.search-bar.modern-search {
    display: flex;
    align-items: center;
    height: 100%;
}

.search-bar.modern-search form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 30px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    height: 40px;
}

.search-bar.modern-search form:focus-within {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-bar.modern-search input {
    border: none;
    background: transparent;
    padding: 0.5rem;
    width: 200px;
    outline: none;
    font-size: 0.9rem;
    color: #333;
}

.search-bar.modern-search .search-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
}

.burger-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    padding: 0;
    position: relative;
    z-index: 1002;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.burger-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #4a6cf7;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center;
}

/* Burger animation for active state */
.burger-menu-btn.active {
    transform: rotate(180deg);
}

.burger-menu-btn.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
    background-color: #4a6cf7;
}

.burger-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.burger-menu-btn.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
    background-color: #4a6cf7;
}

/* Prevent body scrolling when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile responsive styles */
@media (max-width: 991.98px) {
    .header-container {
        justify-content: center;
        position: relative;
        height: 70px;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        left: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
    }

    .logo {
        position: relative;
        z-index: 1;
    }

    .search-bar.modern-search {
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        overflow-y: auto;
        z-index: 1001;
        padding: 5rem 2rem 2rem;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 2rem;
        gap: 1.5rem;
    }

    .main-nav li {
        width: 100%;
        opacity: 0;
        transform: translateX(-30px);
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .main-nav.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .main-nav li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .main-nav li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .main-nav li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .main-nav li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .main-nav li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .main-nav a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 1rem 0;
        color: #1e293b;
        font-weight: 500;
        font-size: 1.1rem;
        transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        position: relative;
    }

    .main-nav a:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background: rgba(74, 108, 247, 0.1);
    }

    .main-nav a:hover,
    .main-nav a.active {
        color: #4a6cf7;
        transform: translateX(10px);
    }

    /* Dropdown styles for mobile - always show dropdown content */
    .dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        padding: 1rem 0;
        color: #1e293b;
        font-weight: 600;
        font-size: 1.1rem;
        display: flex;
        justify-content: space-between;
        pointer-events: none;
        /* Disable clicks on the dropdown toggle on mobile */
    }

    .dropdown-toggle:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background: rgba(74, 108, 247, 0.1);
    }

    /* Hide dropdown arrow on mobile since we're always showing categories */
    .dropdown-toggle .dropdown-arrow {
        display: none;
    }

    .dropdown-menu {
        background: rgba(74, 108, 247, 0.03);
        position: static;
        width: 100%;
        margin-top: 0;
        padding-left: 1rem;
        visibility: visible;
        opacity: 1;
        border: none;
        box-shadow: none;
        border-radius: 0;
        max-height: none;
        /* Always show full height */
        overflow: visible;
        display: block;
        padding: 0.5rem 0 1rem 1rem;
        /* Always show padding */
        transition: none;
        margin-bottom: 0.5rem;
    }

    .dropdown-menu a {
        padding: 0.65rem 1.5rem;
        font-weight: 400;
        font-size: 1rem;
        border-bottom: 1px solid rgba(74, 108, 247, 0.05);
    }

    .dropdown-menu a:last-child {
        border-bottom: none;
    }

    .post-ad-btn {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 1rem 0;
        color: #4a6cf7;
        font-weight: 600;
        font-size: 1.1rem;
        transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        position: relative;
        background: transparent;
        border: none;
        box-shadow: none;
        margin-top: 0;
        text-align: left;
    }

    .post-ad-btn:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background: rgba(74, 108, 247, 0.1);
    }

    .post-ad-btn:hover,
    .post-ad-btn.active {
        color: #3a5ce6;
        transform: translateX(10px);
        background: transparent;
    }

    .post-ad-btn svg {
        margin-right: 0.75rem;
        stroke: currentColor;
        transition: transform 0.3s ease;
    }

    .post-ad-btn:hover svg {
        transform: translateX(5px);
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 767.98px) {
    .header-container {
        padding: 0.5rem 1rem;
        height: 60px;
    }

    .logo span {
        font-size: 1.25rem !important;
    }

    .burger-menu-btn {
        height: 20px;
        width: 25px;
    }

    .search-bar.modern-search {
        display: none;
    }

    .main-nav {
        padding: 4rem 1.5rem 1.5rem;
    }

    .main-nav ul {
        gap: 1rem;
    }

    .main-nav a {
        font-size: 1rem;
        padding: 0.75rem 0;
    }

    .post-ad-btn {
        font-size: 1rem;
        padding: 0.75rem 0;
    }
}

/* Enhanced hero section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.9), rgba(102, 85, 217, 0.95));
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
    color: white;
    text-align: center;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4z' fill='rgba(255,255,255,.1)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 950px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.quick-search-form {
    background: white;
    padding: 0.5rem;
    border-radius: 60px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    max-width: 750px;
    margin: 0 auto;
    gap: 0.5rem;
}

.search-input-group {
    display: flex;
    align-items: center;
    flex: 1;
    background: #f8fafc;
    border-radius: 50px;
    padding: 0.25rem;
}

.search-divider {
    width: 1px;
    height: 30px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 0.5rem;
}

.quick-search-form select,
.quick-search-form input {
    height: 50px;
    border: none;
    background: transparent;
    padding: 0 1.5rem;
    font-size: 1rem;
}

.quick-search-form select {
    min-width: 200px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.quick-search-form input {
    flex-grow: 1;
}

.search-btn {
    border-radius: 50px;
    padding: 0 1.75rem;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.search-btn svg {
    stroke: white;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 108, 247, 0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2.5rem auto;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-cta-buttons {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.hero-cta-buttons .btn {
    padding: 0.9rem 1.75rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
}

.hero-cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.hero-cta-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.hero-cta-buttons .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-cta-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: white;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive styles for hero */
@media (max-width: 991px) {
    .hero-section {
        padding: 5rem 0;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .quick-search-form {
        flex-direction: column;
        padding: 1rem;
        border-radius: 20px;
    }

    .search-input-group {
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .search-btn {
        width: 100%;
    }

    .hero-stats {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
        margin: 2rem auto;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 4rem 0;
        border-radius: 0 0 20px 20px;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .search-input-group {
        flex-direction: column;
        background: transparent;
        padding: 0;
        gap: 0.75rem;
    }

    .search-divider {
        display: none;
    }

    .quick-search-form select,
    .quick-search-form input {
        width: 100%;
        height: 45px;
        background-color: #f8fafc;
        border-radius: 10px;
    }

    .search-btn {
        height: 45px;
    }

    .hero-cta-buttons {
        flex-direction: column;
    }

    .hero-cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* How it Works Section */
.how-it-works {
    padding: 5rem 0;
    background-color: #f8fafc;
    border-radius: 20px;
    margin: 3rem 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin: 1rem;
    position: relative;
    border: 1px solid #f1f5f9;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(74, 108, 247, 0.2);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.05), rgba(102, 85, 217, 0.1));
    border-radius: 20px;
    margin: 3rem 1.5rem;
}

.stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    display: block;
}

.stat-text {
    color: var(--text-light);
    font-size: 1rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: white;
    margin: 3rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.testimonial-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    position: relative;
}

.testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 4rem;
    font-family: serif;
    color: rgba(74, 108, 247, 0.1);
    line-height: 1;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.author-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.author-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* App Download Section */
.app-download {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    padding: 4rem 0;
    margin: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.app-download-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.app-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.app-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    padding-right: 2rem;
}

.app-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.app-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.app-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-button {
    background: white;
    color: var(--text-dark);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.app-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.app-button-text {
    display: flex;
    flex-direction: column;
}

.app-button-text small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.app-button-text span {
    font-size: 1.1rem;
    font-weight: 600;
}

.app-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
}

.app-image img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: all 0.5s ease;
}

.app-image img:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

/* Improved category cards */
.category-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid #f1f5f9;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(74, 108, 247, 0.3);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: rgba(74, 108, 247, 0.1);
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.listing-count {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border-radius: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .quick-search-form {
        flex-direction: column;
        border-radius: 16px;
        gap: 0.5rem;
    }

    .quick-search-form select,
    .quick-search-form input,
    .quick-search-form button {
        width: 100%;
        border-radius: 8px;
    }


    .app-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }

    .app-buttons {
        justify-content: center;
    }
}

.modern-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

@media (max-width: 767px) {
    .modern-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Search bar modern style */
.search-bar.modern-search .search-icon svg {
    stroke: #4a6cf7;
    transition: all 0.3s ease;
}

.search-bar.modern-search .search-icon:hover svg {
    transform: scale(1.1);
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 5px;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu:before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu a {
    display: block;
    padding: 0.65rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: rgba(74, 108, 247, 0.05);
    color: #4a6cf7;
    padding-left: 1.8rem;
}

/* New mobile categories style */
.mobile-categories {
    display: none;
    width: 100%;
}

.category-header {
    color: #4a6cf7;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(74, 108, 247, 0.1);
    margin-bottom: 0.5rem;
}

.category-links {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
}

.category-links a {
    padding: 0.65rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(74, 108, 247, 0.05);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.category-links a:last-child {
    border-bottom: none;
}

.category-links a:hover {
    color: #4a6cf7;
    transform: translateX(5px);
    background: transparent;
}

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu a {
        position: relative;
    }

    .dropdown-menu a:after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 0;
        background: rgba(74, 108, 247, 0.1);
        z-index: -1;
        transition: width 0.2s ease;
    }

    .dropdown-menu a:hover:after {
        width: 100%;
    }

    /* Hide mobile categories on desktop */
    .mobile-categories {
        display: none;
    }

    .desktop-dropdown {
        display: block;
    }
}

@media (max-width: 991.98px) {

    /* Show mobile categories, hide desktop dropdown */
    .mobile-categories {
        display: block;
    }

    .desktop-dropdown {
        display: none;
    }
}
