.bg-works {
    background-image: url('/img/page-header/bg_h_works.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.section-title {
    color: #2c3e50 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.works-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.work-card {
    border: 1px solid #eee;
    transition: all 0.3s ease;
    background-color: #fff;
    position: relative;
}

.work-card:hover {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.work-card .card-img {
    overflow: hidden;
    position: relative;
}

.work-card .card-img img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.work-card:hover .card-img img {
    transform: scale(1.05);
}

.work-overlay-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.work-card:hover .work-overlay-content {
    opacity: 1;
    visibility: visible;
}

.work-overlay-content .card-category a {
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-decoration: none;
}

.work-overlay-content .card-category a:hover {
    color: #007bff;
}

.work-overlay-content .card-title {
    font-size: 22px;
    margin: 0;
}

.work-overlay-content .card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.work-overlay-content .card-title a:hover {
    color: #007bff;
}

.work-overlay-content .card-meta {
    font-size: 13px;
    color: #ccc;
    margin: 0;
    margin-top: 10px;
}

.work-card .card-body {
    display: none; 
}

@media (max-width: 768px) {
    .page-header-section {
        padding: 4rem 0 2rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 1rem;
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
        letter-spacing: 0.3px;
    }
}
