.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    color: #333;
    max-width: 100%;
    margin: 1rem;
    height: 100%;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.card-header {
    position: relative;
    padding-top: 50%; /* 8:5 Aspect Ratio */
    flex-shrink: 0;
}

.card-header img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover .card-header img {
    transform: scale(1.03);
}

.card-body {
    flex-grow: 1;
    padding: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 80px;
}

.card h3 {
    font-size: 1.25rem;
    margin: 0;
    color: #2c3e50;
    line-height: 1.3;
    flex: 1 1 auto;
    min-width: 0;
}

.card-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.25s;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    white-space: nowrap;
    flex-shrink: 0;
}

.card-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}
@media (max-width: 1080px) {
    .card-body {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
    } 
}

@media (max-width: 768px) {
    .card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .card-btn {
        align-self: stretch;
        text-align: center;
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .card-header {
        padding-top: 60%;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .card-btn {
        font-size: 0.8rem;
    }
}