.modern-card-1322-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 10px;
}

.modern-card-1322-inner {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 400px; /* Optional max-width for single instances */
}

/* Hover Effect on the Card */
.modern-card-1322-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(232, 118, 3, 0.15); /* Soft orange shadow */
}

.modern-card-1322-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.modern-card-1322-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Hover Effect on the Image */
.modern-card-1322-inner:hover .modern-card-1322-img {
    transform: scale(1.05);
}

.modern-card-1322-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.modern-card-1322-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.modern-card-1322-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-card-1322-btn {
    display: inline-block;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    align-self: flex-start;
}

/* Hover Effect on the Button */
.modern-card-1322-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
