#job-offer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.job-offer-content {
    width: calc(33.333% - 40px);
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0px 0px 19px -9px black;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    min-height: 200px;
    max-height: 250px;
}

.job-offer-content:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.advertisement-title {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    min-height: 70px;
}

.company-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 8px;
    flex-shrink: 0;
}

.job-title-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.job-title {
    font-weight: 600;
    margin: 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 3em;
}

.job-subtitle {
    font-size: 14px;
    font-weight: 500;
    margin: 5px 0 0;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 3em;
}

.advertisement-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.favorite-star {
    font-size: 20px;
    color: #666;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.favorite-star:hover {
    color: #ff7a3d;
    transform: scale(1.2);
}

.favorite-star.animate {
    transform: scale(1.2);
    color: #ff7a3d;
}

.additional-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .job-offer-content {
        width: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    #job-offer {
        padding: 10px;
        gap: 15px;
    }

    .job-offer-content {
        width: 100%;
        min-height: 180px;
        max-height: 220px;
    }

    .advertisement-title {
        min-height: 60px;
    }

    .company-logo {
        width: 40px;
        height: 40px;
    }

    .job-title {
        font-size: 16px;
    }

    .job-subtitle {
        font-size: 13px;
    }

    .favorite-star {
        font-size: 18px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .job-offer-content {
        min-height: 160px;
        max-height: 200px;
        padding: 15px;
    }

    .advertisement-title {
        min-height: 50px;
    }

    .company-logo {
        width: 35px;
        height: 35px;
    }

    .job-title {
        font-size: 15px;
    }

    .job-subtitle {
        font-size: 12px;
    }

    .additional-text {
        font-size: 12px;
    }
}

img {
    max-width: 100%;
    height: auto;
}

