/* Career List Dynamic Styling */

:root {
    --primary-gradient: linear-gradient(135deg, #8a00b8 0%, #9733EE 100%);
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hero Section */
.career-hero {
    background: var(--primary-gradient);
    padding: 60px 0;
    color: white;
    border-radius: 0 0 50px 50px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(109, 40, 217, 0.3);
}

.career-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-search-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.hero-search-input {
    border-radius: 10px !important;
    border: none !important;
    padding: 15px 25px !important;
    font-size: 1.1rem !important;
}

/* Section Headings */
.section-header {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 70%;
    background: var(--primary-gradient);
    border-radius: 10px;
}

/* Career Cards - Dynamic Grids */
.career-grid-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 5px 30px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.career-grid-scroll::-webkit-scrollbar {
    height: 6px;
}

.career-grid-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.career-grid-scroll::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}

.dynamic-card {
    min-width: 280px;
    max-width: 300px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.dynamic-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.card-img-container {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dynamic-card:hover .card-img-container img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #8a00b8;
    box-shadow: 0 4px 6px -1px rgba(109, 40, 217, 0.1);
}

.dynamic-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dynamic-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}

.dynamic-card-text {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    font-size: 0.85rem;
    color: #475569;
}

.card-meta i {
    color: #8a00b8;
}

/* Main Search Result Cards */
.result-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    margin-bottom: 25px;
    min-height: 250px;
    max-height: 320px;
}

.result-card:hover {
    box-shadow: var(--card-hover-shadow);
}

.result-img-column {
    border-radius: 24px 0 0 24px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .result-img-column {
        border-radius: 24px 24px 0 0;
        height: 200px;
    }

    .result-card {
        max-height: none;
    }

    .career-hero {
        padding: 40px 15px;
    }

    .career-hero h1 {
        font-size: 2.2rem;
    }
}

.explore-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.explore-btn:hover {
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
    transform: scale(1.02);
    color: white;
}

/* Pagination Styling */
.pagination .page-link {
    border: none;
    margin: 0 5px;
    border-radius: 10px !important;
    color: #475569;
    font-weight: 600;
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    box-shadow: 0 4px 6px -1px rgba(109, 40, 217, 0.2);
}

/* Global Theme Overrides for Career Pages */
.text-primary {
    color: #8a00b8 !important;
}

.bg-info-subtle {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}


.bg-primary-subtle {
    background-color: #f5f3ff !important;
    color: #6d28d9 !important;
}

.btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
}

.btn-outline-primary {
    color: #8a00b8 !important;
    border-color: #6d28d9 !important;
}

.btn-outline-primary:hover {
    background-color: #6d28d9 !important;
    color: white !important;
}

.btn-outline-light {
    color: #ffffff !important;
    border-color: #cebfe4 !important;
}