﻿/* Project card styling */
.dez-gallery-box {
    margin-bottom: 20px;
}

.project-info-card {
    background: #fff;
    padding: 20px 15px;
    text-align: center;
    border: 1px solid #e9ecef;
    border-top: none;
    transition: all 0.3s ease;
}

.project-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

    .project-card-title a {
        color: #333;
        text-decoration: none;
        transition: color 0.3s ease;
        display: block;
    }

        .project-card-title a:hover {
            color: #007bff; /* Change to your theme color */
        }

/* Image container */
.dez-thum {
    position: relative;
    overflow: hidden;
}

    .dez-thum img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.3s ease;
    }

/* Hover effect on card */
.dez-gallery-box:hover .project-info-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dez-gallery-box:hover .dez-thum img {
    transform: scale(1.05);
}

/* Overlay title styling */
.overlay-title {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    padding: 0 15px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .project-card-title {
        font-size: 16px;
    }

    .project-info-card {
        padding: 15px 12px;
    }
}

@media (max-width: 767px) {
    .project-card-title {
        font-size: 15px;
    }

    .project-info-card {
        padding: 12px 10px;
    }
}

@media (max-width: 575px) {
    .project-card-title {
        font-size: 14px;
    }

    .project-info-card {
        padding: 10px 8px;
    }
}

/* Ensure consistent card heights */
.card-container {
    margin-bottom: 30px;
}

@media (max-width: 575px) {
    .card-container {
        margin-bottom: 20px;
    }
}
