/* Modern styles for Career Opportunities */
:root {
    --default-color: #2f5597;
    --default-background: #2f5597;
}

/* Hero Section */
.modern-section-title {
    text-align: center;
    padding: 60px 0;
    position: relative;
}

.career-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(47,85,151,0.1);
    color: var(--default-color);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease;
}

.career-badge-tag i {
    font-size: 18px;
}

.career-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.title-divider {
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--default-background), var(--default-color));
    margin: 0 auto 30px;
    border-radius: 3px;
    animation: expandWidth 1s ease;
}

.section-title .lead {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 1.15rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease;
}

/* Career Stats */
.career-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    animation: fadeInUp 1.2s ease;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--default-background), var(--default-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #fff;
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(47,85,151,0.2);
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--default-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: #666;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Careers Listing Section */
.careers-listing-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.careers-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.openings-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.openings-title i {
    color: var(--default-color);
    font-size: 28px;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #fff;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-btn i {
    font-size: 16px;
}

.filter-btn:hover {
    border-color: var(--default-color);
    color: var(--default-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.filter-btn.active {
    background: var(--default-background);
    border-color: var(--default-background);
    color: #fff;
    box-shadow: 0 5px 20px rgba(47,85,151,0.3);
}

/* Career Cards Grid */
.careers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* Listing card styles */
.career-card {
    border: 2px solid #f0f0f0;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.career-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--default-background), var(--default-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.career-card:hover::before {
    transform: scaleX(1);
}

.career-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(47,85,151,0.15);
    border-color: var(--default-background);
}

.career-card .card-body {
    padding: 25px;
    flex: 1;
}

.career-header-wrapper {
    margin-bottom: 15px;
}

.career-badge {
    background: linear-gradient(135deg, rgba(47,85,151,0.1), rgba(47,85,151,0.05));
    color: var(--default-color);
    border-radius: 20px;
    padding: 6px 16px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    white-space: nowrap;
    border: 2px solid rgba(47,85,151,0.2);
}

.career-card .role-title {
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 15px;
    line-height: 1.3;
    font-size: 1.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: color 0.3s ease;
}

.career-card:hover .role-title {
    color: var(--default-color);
}

.career-card .role-meta {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.career-card .role-meta i {
    color: var(--default-color);
    font-size: 16px;
}

/* Footer actions */
.career-card .card-footer {
    background: linear-gradient(to bottom, #f8f9fa, #fff);
    border-top: 2px solid #f0f0f0;
    padding: 20px 25px;
    display: flex;
    gap: 12px;
}

.career-card .btn.apply-btn {
    border-radius: 12px;
    font-weight: 700;
    padding: 12px 24px;
    transition: all 0.3s ease;
    background: var(--default-background);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.career-card .btn.apply-btn:hover {
    background: var(--default-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(47,85,151,0.3);
}

.career-card .btn.apply-btn::after {
    content: '\u2192';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.career-card .btn.apply-btn:hover::after {
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

/* Mobile responsive */
@media (max-width: 992px) {
    .career-main-title {
        font-size: 2.5rem;
    }
    
    .career-stats {
        gap: 30px;
    }
    
    .careers-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .career-main-title {
        font-size: 2rem;
    }
    
    .careers-header-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-controls {
        width: 100%;
        justify-content: center;
    }
    
    .filter-btn {
        flex: 1;
        justify-content: center;
        min-width: 100px;
    }
    
    .career-card .card-footer {
        flex-direction: column;
    }
    
    .career-card .card-footer .btn {
        width: 100%;
    }
    
    .career-card .card-body {
        padding: 20px;
    }
    
    .career-card .role-title {
        font-size: 1.1rem;
    }
    
    .career-stats {
        gap: 25px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .careers-grid {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .section-title .lead {
        font-size: 1rem;
    }
    
    .careers-grid {
        grid-template-columns: 1fr;
    }
    
    .openings-title {
        font-size: 1.4rem;
    }
}