/* Hero Section */
.hero {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

/* General Reset */
.filter-bar,
.filter-bar * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Filter Bar Styles */
.filter-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center; /* Center align items vertically */
    background-color: transparent;
    border-radius: 4px;
    padding: 0.5rem 2%;
    white-space: nowrap; /* Prevent line breaks */
    overflow-x: auto; /* Add horizontal scrollbar if needed */
}

@media (max-width: 600px) {
    .filter-bar {
        padding: 0.25rem;
        white-space: nowrap;
        overflow-x: auto;
    }
}

/* Dropdown Select Styles */
.select {
    -webkit-appearance: none;  /* Customize for all WebKit browsers */
    -moz-appearance: none;     /* Customize for Firefox */
    appearance: none;          /* Future-proof */
    background-color: #fff;
    border: 1px solid #000000;
    text-transform: capitalize;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    width: 200px; /* Adjust width as needed */
    border-radius: 4px; /* Rounded corners for modern look */
    background-image: 
        url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H16.6c-5.5%200-10%204.5-10%2010s4.5%2010%2010%2010h257.8a17.6%2017.6%200%200%200%2013-5.4l-59.3-59.3a17.6%2017.6%200%200%200-13%205.4z%22%2F%3E%3C%2Fsvg%3E"),
        linear-gradient(45deg, transparent 50%, black 50%),
        linear-gradient(135deg, black 50%, transparent 50%),
        linear-gradient(to right, #ccc, #ccc);
    background-position: 
        right 8px top 50%, 
        calc(100% - 20px) calc(1em + 2px), 
        calc(100% - 15px) calc(1em + 2px), 
        calc(100% - 2.5em) 0.5em;
    background-size: 
        auto, 5px 5px, 5px 5px, 1px 1.5em;
    background-repeat: 
        no-repeat, no-repeat, no-repeat, no-repeat;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.select:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 113, 133, 0.5); /* Subtle shadow for focus */
}

.select option:focus {
    background-color: #e8e8e8; /* Highlight color for selected state */
}

/* Responsive Select Adjustments */
@media (max-width: 600px) {
    .select {
        padding: 0.7rem 1rem;
        margin-bottom: 2px;
    }
}


/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 20px;
    padding: 10px;
    justify-items: center; /* Center items horizontally */
    align-items: start; /* Align items to the top */
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr); /* 2 equal columns on medium screens */
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr; /* 1 column on small screens */
    }
}

/* Card Styles */
.card {
    position: relative;
    overflow: hidden;
    border: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.6)), url(''); /* Add your background image */
    background-size: cover;
    background-position: center;
    height: 400px; /* Fixed height for consistency */
    width: 100%; /* Responsive width */
    max-width: 350px; /* Maximum width for larger screens */
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px; /* Rounded corners for a more modern look */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Add subtle shadow for depth */
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.card .background {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    
}

.card .background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 27.4%, rgba(0, 0, 0, 0.56) 58.85%, rgba(0, 0, 0, 0.8) 100%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.card:hover .background::after {
    opacity: 1;
}

/* Status at the top-right */
.card .status {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background-color: #000000; /* Semi-transparent green */
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    z-index: 2;
    letter-spacing: 1px;
}

/* Content at the bottom */
.card .content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 92%;
    /*padding: 1.5rem;*/
    /*background: rgba(0, 0, 0, 0.7);*/
    z-index: 2;
    text-align: left;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 27.4%, rgba(0, 0, 0, 0.56) 58.85%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 1;
}

/* Project Name */
.card .content .heading {
    font-size: 1.5rem;
    line-height: 1.2;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden; /* Avoid overflow */
}

/* Address */
.card .content .tagl {
    font-size: 1.1rem;
    line-height: 1.3;
    color: #ddd;
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden; /* Avoid overflow */
}

/* Price */
.card .content .pp {
    font-size: 1.25rem;
    line-height: 0;
    color: #ffd700; 
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 100%;
        margin: 10px auto;
    }

    .card .content .heading {
        font-size: 1.25rem;
    }

    .card .content .tagl {
        font-size: 1rem;
    }

    .card .content .pp {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .card .content .heading {
        font-size: 1.2rem;
    }

    .card .content .tagl {
        font-size: 1rem;
    }

    .card .content .pp {
        font-size: 1rem;
    }
}