/* --- Career Page Specific Styles --- */

.hero-mini {
    height: 35vh;
    min-height: 250px;
}

@media (min-width: 992px) {
    .hero-mini {
        height: 35vh;
        min-height: 300px;
    }
}

@media (min-width: 1440px) {
    .hero-mini {
        height: 35vh;
        min-height: 350px;
    }
}

.job-listings {
    margin-top: 3rem;
}

.no-jobs-message {
    text-align: center;
    padding: 3rem;
}

.no-jobs-message i {
    display: block;
    margin: 0 auto 1rem;
}

.no-jobs-message p {
    font-size: 1.1rem;
    color: var(--text);
    opacity: 0.8;
}

/* Ensure career page cards have same hover as index page */
.modern-card:hover {
    box-shadow: 0 20px 40px rgba(0, 46, 125, 0.12);
    border-color: var(--accent);
}

.modern-card:hover .card-icon {
    color: var(--accent);
}

/* Specific styling for job cards if they exist */
.job-card.modern-card {
    text-align: left;
    align-items: stretch;
    justify-content: flex-start;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    height: auto;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.job-title-area h3 {
    margin-bottom: 0.25rem;
    font-size: 1.75rem;
    color: var(--primary);
}

.job-department {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.8;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.job-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-width: 120px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.job-description {
    margin-bottom: 1rem;
    flex: 1;
}

.employment-pill {
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: #e7ecf7;
    color: var(--primary);
}

.employment-pill.contract {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.employment-pill.part-time {
    background: rgba(250, 204, 21, 0.12);
    color: #c084fc;
}

.employment-pill.full-time {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.job-description p {
    color: var(--text);
    opacity: 0.85;
    line-height: 1.6;
    max-height: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 0.95rem;
}

.job-description.collapsed p {
    max-height: 5.5rem;
}

.job-description.expanded p {
    max-height: none;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.job-description-toggle {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.job-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0;
}

.meta-value {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

.meta-value i {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.meta-value span {
    word-break: break-word;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

.job-salary-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.salary-range {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.positions-count {
    color: var(--text);
    opacity: 0.7;
    font-size: 0.85rem;
}

.apply-btn {
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .job-meta {
        flex-wrap: wrap;
    }
    .job-meta-item {
        flex: 0 1 calc(50% - 0.5rem);
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .hero-mini {
        height: auto;
        min-height: 350px;
        padding: 120px 1.5rem 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .job-card.modern-card {
        padding: 1.5rem;
        margin-left: -1.0rem;
        margin-right: -1.0rem;
    }

    .job-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .job-meta {
        flex-direction: column;
        gap: 1rem;
    }
    .job-meta-item {
        flex: 1 1 100%;
        min-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .job-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .apply-btn {
        width: 100%;
        text-align: center;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .no-jobs-message {
        padding: 2rem 1rem;
    }

    .job-info h3 {
        font-size: 1.4rem;
    }

    .meta-value {
        font-size: 0.85rem;
    }
}
