/* Styl dla karty oferty pracy */
.job-card {
    display: flex;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.3s ease-in-out;
}

.job-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* Główna część karty oferty (lewa strona) */
.job-card-main {
    flex: 1;
    padding-right: 20px;
    width: calc(100% - 160px);
}

/* Prawa strona karty oferty (tylko wynagrodzenie) */
.job-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    width: 160px;
    min-width: 160px;
    padding-left: 15px;
}

/* Styl dla wynagrodzenia */
.job-salary {
    font-weight: 600;
    font-size: 1.1rem;
    color: #e11f42;
    text-align: right;
    white-space: nowrap; /* Zapobiega zawijaniu tekstu */
}

.job-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.job-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 6px 0;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 0;
}

.job-tag {
    display: flex;
    align-items: center;
    background: #f2f2f2;
    color: #333;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Dodatkowy styl dla lepszego odstępu między ikoną a tekstem */
.job-tag i {
    margin-right: 8px;
    width: 14px;
    text-align: center;
}

/* Wrapper dla przycisku, by go wyśrodkować */
.btn-wrapper {
    text-align: left; /* Zmiana z center na left */
    margin-top: 16px;
}

/* Zmodyfikowany styl dla przycisku "Zobacz ofertę" */
.btn-apply {
    display: inline-block;
    width: auto;
    box-sizing: border-box;
    padding: 10px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid currentColor;
    text-align: center;
}

/* Style dla paginacji - kolory motywu */
.jooble-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.jooble-page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    margin: 0 5px !important;
    padding: 0 10px !important;
    background-color: #f8f8f8 !important;
    color: #333 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    border: 1px solid #ddd !important;
    transition: all 0.2s ease !important;
}

.jooble-page-link:hover {
    background-color: #e9e9e9 !important;
    border-color: #bbb !important;
    color: #222 !important;
}

/* Używamy konkretnych kolorów dla aktywnej strony */
.jooble-page-link.active {
    /* Używamy kolor, który pasuje do większości motywów WordPress */
    background-color: #e11f42 !important; /* Czerwony */
    color: white !important;
    border-color: #e11f42 !important;
}

/* Miejsce na reklamę - wycentrowane */
.jooble-ad-container {
    margin: 30px auto !important;
    padding: 20px !important;
    background: transparent !important;
    border-radius: 16px !important;
    text-align: center !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Styl dla reklam iframe */
.jooble-ad-container iframe,
.jooble-ad-container ins,
.jooble-ad-container div,
.jooble-ad-container script + div {
    margin: 0 auto !important;
    display: block !important;
    text-align: center !important;
}

.jooble-ad-container.desktop {
    display: flex !important;
}

.jooble-ad-container.mobile {
    display: none !important;
}

/* Style dla listy lokalizacji i słów kluczowych - 4 kolumny */
.jooble-locations-grid,
.jooble-keywords-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.jooble-locations-column,
.jooble-keywords-column {
    flex: 1;
    min-width: 150px;
}

.jooble-location-item,
.jooble-keyword-item {
    margin-bottom: 10px;
}

.jooble-location-item a,
.jooble-keyword-item a {
    text-decoration: none;
    color: #0073aa;
    font-weight: 500;
    padding: 3px 0;
    display: inline-block;
    transition: color 0.2s ease-in-out;
    font-size: 14px;
}

.jooble-location-item a:hover,
.jooble-keyword-item a:hover {
    color: #00a0d2;
    text-decoration: underline;
}

/* Style responsywne */
@media (max-width: 1200px) {
    .jooble-locations-grid,
    .jooble-keywords-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .jooble-locations-column,
    .jooble-keywords-column {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .jooble-locations-grid,
    .jooble-keywords-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .jooble-ad-container.desktop {
        display: none !important;
    }
    
    .jooble-ad-container.mobile {
        display: flex !important;
    }
    
    /* Dostosowanie karty oferty */
    .job-card {
        flex-direction: column;
    }
    
    .job-card-main {
        width: 100%;
        padding-right: 0;
    }
    
    .job-card-right {
        width: 100%;
        min-width: 100%;
        border-left: none;
        padding-left: 0;
        padding-top: 15px;
        margin-top: 15px;
        align-items: flex-start;
    }
    
    .job-salary {
        text-align: left;
        white-space: normal; /* Na mobilnych można zezwolić na zawijanie */
    }
}

@media (max-width: 576px) {
    .jooble-locations-grid,
    .jooble-keywords-grid {
        grid-template-columns: 1fr;
    }
    
    .jooble-page-link {
        min-width: 35px !important;
        height: 35px !important;
        margin: 0 3px !important;
        font-size: 0.9rem !important;
    }
}