/* --- SG DEVWORKS DEDICATED LOCATION STYLES (FLUID UNITS) --- */

.nation-column {
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
}

.nation-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.nation-header h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05rem;
}

.job-count-badge {
    margin-left: 1rem;
    background: var(--accent-red);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 900;
    box-shadow: 0 0.2rem 0.5rem rgba(255, 59, 48, 0.3);
}

/* Viewport for the Horizontal Slide */
.carousel-viewport-horizontal {
    width: 100%;
    min-height: 18.75rem;
    overflow: hidden;
    border-radius: 1.5rem;
    background: var(--charcoal);
    border: 0.0625rem solid rgba(255, 59, 48, 0.2);
    position: relative;
    transition: height 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.5);
}

.card-list-horizontal {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Individual Large Job Card */
.job-card-wide {
    flex: 0 0 100%;
    min-width: 0;
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
}

/* --- NEW: Header Section for Wide Card --- */
.wide-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.job-card-wide h2 {
    color: var(--white); /* Changed to white for better contrast with the red badges */
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    overflow-wrap: break-word;
    letter-spacing: -0.05rem;
    flex-grow: 1;
}

/* --- NEW: Metadata Styling --- */
.wide-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.meta-label {
    color: var(--accent-red);
}

.meta-value {
    color: var(--white);
}

/* --- ENHANCED MARKDOWN STYLING --- */
.job-description {
    color: var(--gray-text);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
    overflow-wrap: break-word;
}

.job-description p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.job-description strong {
    color: var(--white);
    font-weight: 800;
}

.job-description ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.job-description li {
    position: relative;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

.job-description li::before {
    content: "•";
    color: var(--accent-red);
    font-weight: 900;
    position: absolute;
    left: -1.5rem;
    font-size: 1.2rem;
    top: -0.1rem;
}

/* Mobile Viewport Adjustment */
@media (max-width: 48rem) {
    .carousel-viewport-horizontal {
        border-radius: 1.2rem;
    }
    .job-card-wide {
        padding: 2rem 1.5rem;
    }
    .wide-card-header {
        flex-direction: column;
        gap: 1rem;
    }
}