.job-listing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Filters Section */
.filters-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-end;
}

.filter-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item br {
    display: none;
}

.filters-row p {
    margin: 0;
}

.reset-filters {
    height: 40px;
    white-space: nowrap;
    margin: 0;
}

.no-jobs-message {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    color: #666;
    font-size: 1.1em;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

input[type="text"].job-search-input,
select.job-location-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    height: 40px;
    box-sizing: border-box;
    margin: 0;
}

select.job-location-select,
select.job-type-select {
    background-color: white;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg width="14" height="8" viewBox="0 0 14 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L7 7L13 1" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.reset-filters {
    padding: 8px 16px;
    background-color: #ff5722;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    height: 40px;
    line-height: 24px;
}

.reset-filters:hover {
    background-color: #f4511e;
}

/* Jobs List */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-card-wrapper {
    margin-bottom: 20px;
}

.job-card-wrapper > p {
    margin: 0;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
}

.card__image {
    width: 100%;
    min-width: 400px;
    max-width: 650px;
    background: #FF6B00;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__content {
    flex: 1;
    padding: 25px;
}

.card__title {
    margin: 0;
    font-size: 26px;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 500;
}

.card__meta {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 20px;
}

.card__meta-label {
    color: #555;
    font-weight: normal;
    font-size: 16px;
}

.card__meta-value {
    color: #222;
    font-weight: 500;
    font-size: 16px;
}

.card__actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.card__btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.card__btn--primary {
    background-color: #FF6B00;
    color: white;
}

.card__btn--secondary {
    background-color: #3B4FE4;
    color: white;
}

.card__description {
    display: none;
}

.card__btn--secondary {
    background-color: #2B3990;
    color: white;
}

.card__btn--primary {
    background-color: #FF6B00;
    color: white;
}

.card__btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* Job Detail Styles */
.job-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.back-button {
    display: inline-block;
    margin-bottom: 20px;
    color: #1a237e;
    text-decoration: none;
    font-weight: 500;
}

.back-button:hover {
    text-decoration: underline;
}

.job-detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 25px;
}

.job-detail-header .job-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.job-header-info {
    flex: 1;
}

.job-header-info .job-title {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.job-meta {
    color: #666;
}

.job-meta p {
    margin: 10px 0;
    line-height: 1.4;
}

.job-description {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.job-description h2 {
    color: #333;
    margin: 25px 0 15px;
    font-size: 1.3em;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .card {
        flex-direction: column;
    }

    .card__image {
        width: 100% !important;
        height: 200px !important;
        position: relative !important;
    }

    .card__image img {
        position: relative !important;
        height: 100% !important;
        width: 100% !important;
        object-fit: cover;
    }

    .card__content {
        padding: 20px !important;
    }

    .card__meta {
        gap: 15px;
    }

    .card__meta-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .card__actions {
        flex-direction: column;
        gap: 10px;
    }

    .card__btn {
        text-align: center;
    }
    .filters-row {
        flex-direction: column;
        gap: 15px;
    }

    .filter-item {
        width: 100%;
        min-width: unset;
    }

    .job-card {
        flex-direction: column;
        margin: 15px;
        border-radius: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        background: white;
        overflow: hidden;
        max-width: 400px;
        width: calc(100% - 30px);
    }

    .job-image {
        width: 100%;
        min-width: unset;
        height: 200px;
        background: #FF6B00;
        overflow: hidden;
    }

    .job-details {
        padding: 25px;
    }

    .job-title {
        font-size: 1em;
        margin: 0 0 12px 0;
        display: block;
        color: #333;
        font-weight: 600;
        line-height: 1.3;
    }

    .job-info {
        margin-top: 0;
    }

    .job-info p {
        margin: 12px 0;
        color: #333;
        font-size: 1em;
    }

    .job-info p strong {
        display: block;
        color: #666;
        font-weight: normal;
        font-size: 0.9em;
        margin-bottom: 4px;
    }

    .job-actions {
        display: flex
    ;
        margin-top: 12px;
        gap: 12px;
    }

    .more-info,
    .apply {
        width: 100%;
        text-align: center;
        padding: 15px;
        border-radius: 50px;
        font-weight: 500;
        font-size: 1em;
        text-decoration: none;
        display: block;
        box-sizing: border-box;
    }

    .more-info {
        background: #39429B;
        color: white;
    }

    .apply {
        background: #FF6B00;
        color: white;
    }

    .job-image img {
        position: absolute;
        right: 0;
        top: 0;
        width: 160px;
        height: auto;
        object-fit: contain;
        z-index: 1;
    }

    .job-details {
        padding: 25px;
    }

    .job-title {
        display: none;
    }

    .job-info {
        margin-top: 0;
    }

    .job-info p {
        margin: 12px 0;
        color: #333;
        font-size: 1em;
    }

    .job-info p strong {
        display: block;
        color: #666;
        font-weight: normal;
        font-size: 0.9em;
        margin-bottom: 4px;
    }

    .job-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .more-info,
    .apply {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        border-radius: 50px;
        font-weight: 500;
        font-size: 1em;
        white-space: nowrap;
        text-decoration: none;
        display: block;
    }

    .more-info {
        background: #39429B;
        color: white;
    }

    .apply {
        background: #FF6B00;
        color: white;
    }


    #modalTitle {
        font-size: 1.6em;
        margin: 0 0 20px 0;
        padding-right: 30px;
    }

    .close-modal {
        right: 15px;
        top: 15px;
        font-size: 24px;
    }

    #modalDescription {
        flex: 1;
        overflow-y: auto;
        padding-right: 10px;
        margin: 0 -10px 20px 0;
    }

    #modalDescription::-webkit-scrollbar {
        width: 4px;
    }

    #modalDescription::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }

    #modalDescription::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 2px;
    }

    .job-actions-footer {
        margin-top: 20px;
    }

    .job-actions-footer .apply {
        width: 100%;
        padding: 15px;
        font-size: 1em;
    }

    .job-listing-container {
        padding: 0;
    }
}

/* Modal styles */
#jobModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    max-width: none !important;
    margin: 0 !important;
}

.modal-content {
    background-color: rgb(255, 255, 255);
    width: 80vw;
    max-width: 700px;
    max-height: 600px;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px;
    margin: 5vh auto;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #000;
}

#modalTitle {
    color: #FF6B00;
    font-size: 1.8em;
    margin: 0 0 20px 0;
    padding-right: 30px;
    flex-shrink: 0;
}

#modalDescription {
    line-height: 1.6;
    color: #333;
    overflow-y: auto;
    flex: 1;
    padding-right: 10px;
}

#modalDescription::-webkit-scrollbar {
    width: 8px;
}

#modalDescription::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#modalDescription::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#modalDescription::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.job-description ul {
    margin: 15px 0;
    padding-left: 20px;
}

.job-description li {
    margin: 8px 0;
}

.job-actions-footer {
    text-align: center;
    margin-top: 30px;
}

.job-actions-footer .apply {
    padding: 15px 40px;
    font-size: 1.1em;
}

@media (max-width: 1024px) {
    .filters-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .filters-col {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .filter-group {
        flex: 1;
        min-width: 200px;
    }
    
    .reset-filters {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .job-card {
        flex-direction: column;
    }
    
    .job-image {
        width: 100%;
        height: 150px;
    }
    
    .job-detail-header {
        flex-direction: column;
    }
    
    .job-detail-header .job-image {
        width: 100%;
        height: 200px;
    }
}
