﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.job-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* NEW: make card a vertical flex container */
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #a88bb3 0%, #7a4c94 100%);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.center-title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* ensures vertical alignment */
    text-align: center;
}

.job-title {
    font-size: 20px;
    font-weight: 550;
    margin-bottom: 10px;
    margin-top: 10px;
}

.badge-header {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #a88bb3 0%, #7a4c94 100%);
    color: lightgray;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.card-body {
    padding: 25px;
    flex-grow: 1; /* expands to fill available space */
}

.job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.job-details .detail {
    flex: 1 1 45%;
    text-align: center;
}

.detail {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail i {
    font-size: 20px;
    color: #936a9f; /* ECM purple */
    margin-bottom: 8px;
}

.detail-label {
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
}

.detail-value {
    font-weight: 600;
    font-size: 14px;
}

.card-footer {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    /* ensures footer stays at bottom */
    margin-top: auto;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.btn-view {
    background: #f2f4ff;
    color: #936a9f;
}

.btn-view:hover {
    background: #e6eaff;
}

.btn-apply {
    background: linear-gradient(135deg, #a88bb3 0%, #7a4c94 100%);
    color: white;
}

.btn-apply:hover {
    background: linear-gradient(135deg, #967ea6 0%, #693b83 100%);
    box-shadow: 0 5px 15px rgba(168, 139, 179, 0.4);
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .job-card {
        width: 100%;
        max-width: 400px;
    }
}
