/* Project Card Styles */
.project-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.project-card .project-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Aspect ratio 4:3 */
    overflow: hidden;
}

.project-card .project-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card .card-body {
    padding: 1.25rem;
    background: white;
}

.project-card .project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
}

.project-card .project-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-card .project-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #b8860b;
    margin-bottom: 0.25rem;
}

.project-card .price-info {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
}

.project-card .btn-detail {
    width: 100%;
    background: linear-gradient(135deg, #b8860b, #daa520);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.project-card .btn-detail:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #daa520, #b8860b);
}

/* Swiper container styles */
.projectSwiper {
    padding: 20px 0;
}

.projectSwiper .swiper-slide {
    height: auto; /* Let the height be determined by content */
    display: flex;
}

/* Make all cards in the same row equal height */
.row-projects {
    display: flex;
    flex-wrap: wrap;
}

.row-projects > [class*='col'] {
    display: flex;
    flex-direction: column;
}

.row-projects .project-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-card .project-img-wrapper {
        padding-top: 75%; /* Maintain aspect ratio on mobile */
    }
}
