/*--------- Careers Interface Styles (Dynamic & Premium) ----------*/

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 4vw, 30px);
}

.message-container {
    margin-top: clamp(1rem, 3vw, 2rem);
}

.alert {
    padding: clamp(12px, 3vw, 20px);
    border-radius: clamp(8px, 2vw, 12px);
    text-align: center;
    position: relative;
    margin-bottom: clamp(15px, 3vw, 1.5rem);
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.alert-danger { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }

.btn-close {
    background: transparent;
    border: none;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: color 0.3s;
}

.btn-close:hover { color: #000; }

/* Hero Section */
.careers-hero {
    background: linear-gradient(135deg, var(--primary-brown, #8d6e63), var(--dark-coffee, #3e2723));
    color: var(--pure-white, #ffffff);
    padding: clamp(80px, 12vw, 160px) 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 clamp(30px, 5vw, 60px) clamp(30px, 5vw, 60px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.careers-hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    top: -50%; left: -50%;
    animation: pulseBg 10s infinite alternate;
}

.hero-content {
    padding: clamp(2rem, 5vw, 4rem) 0;
    position: relative;
    z-index: 2;
}

.hero-wrapper {
    max-width: clamp(400px, 90vw, 900px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin: 0 auto clamp(1rem, 3vw, 1.5rem) auto;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    margin: 0 auto clamp(2rem, 5vw, 3rem) auto;
    font-weight: 400;
    opacity: 0.9;
}

.btn-light {
    background-color: var(--pure-white, #ffffff);
    color: var(--primary-brown, #8d6e63);
    padding: clamp(14px, 3vw, 20px) clamp(35px, 6vw, 50px);
    border-radius: 50px;
    font-weight: 800;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-light:hover, .btn-light:focus {
    background-color: #f8f9fa;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    color: var(--dark-coffee, #3e2723);
    outline: none;
}

/* Stats Section */
.stats-overview {
    background-color: var(--pure-white, #ffffff);
    padding: clamp(50px, 10vw, 80px) 0;
    transform: translateY(clamp(-30px, -5vw, -50px));
    position: relative;
    z-index: 3;
}

/* Fixed Centering for Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(160px, 22vw, 250px), 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    justify-items: center;
    width: 100%; /* Maps perfectly inside container limits to center gaps naturally */
}

.stat-column { width: 100%; }

.stat-card {
    background: var(--pure-white, #ffffff);
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: clamp(15px, 3vw, 25px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: 100%;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(141, 110, 99, 0.05);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(141, 110, 99, 0.15);
    border-color: rgba(141, 110, 99, 0.2);
}

.stat-number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-brown), var(--dark-coffee));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 auto clamp(0.5rem, 2vw, 1rem) auto;
}

.stat-label {
    color: var(--text-muted, #6c757d);
    font-weight: 700;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    margin: 0 auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Open Positions */
.open-positions-section {
    padding: clamp(20px, 5vw, 60px) 0 clamp(60px, 10vw, 100px) 0;
    background: var(--off-white, #f8f9fa);
}

.section-title {
    text-align: center;
    font-weight: 900;
    margin: 0 auto clamp(2.5rem, 6vw, 4rem) auto;
    color: var(--dark-coffee, #3e2723);
    font-size: clamp(2rem, 5vw, 3.5rem);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-brown);
    margin: 15px auto 0;
    border-radius: 2px;
}

.filter-container {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 4rem);
    display: flex;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(10px, 2vw, 15px);
    background: var(--pure-white);
    padding: clamp(8px, 2vw, 12px);
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.filter-btn {
    padding: clamp(8px, 2vw, 12px) clamp(20px, 4vw, 30px);
    border-radius: 50px;
    border: none;
    background: transparent;
    color: var(--text-muted, #666);
    font-weight: 700;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

.filter-btn:hover, .filter-btn:focus, .filter-btn.active {
    background: var(--primary-brown, #8d6e63);
    color: var(--pure-white, #ffffff);
    box-shadow: 0 4px 15px rgba(141, 110, 99, 0.3);
    transform: translateY(-2px);
    outline: none;
}

.job-listings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(300px, 40vw, 380px), 1fr));
    gap: clamp(2rem, 5vw, 3rem);
    justify-items: center;
}

.job-card-wrapper { width: 100%; }

.job-card {
    background: var(--pure-white, #ffffff);
    border-radius: clamp(15px, 3vw, 25px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary-brown), var(--dark-coffee));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.job-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.job-card:hover::before { opacity: 1; }

.card-body {
    padding: clamp(2rem, 5vw, 3rem);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    padding: clamp(6px, 1.5vw, 8px) clamp(15px, 3vw, 20px);
    border-radius: 50px;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    font-weight: 800;
    display: inline-block;
    margin: 0 auto clamp(1.2rem, 3vw, 1.8rem) auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-success { background: linear-gradient(135deg, #4caf50, #2e7d32); color: white; box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3); }
.badge-info { background: linear-gradient(135deg, #00bcd4, #00838f); color: white; box-shadow: 0 4px 10px rgba(0, 188, 212, 0.3); }

.card-title {
    font-weight: 900;
    margin: 0 auto clamp(0.5rem, 2vw, 1rem) auto;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    color: var(--dark-coffee);
}

.job-meta {
    color: var(--primary-brown);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    font-weight: 600;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.card-text {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    margin: 0 auto;
}

.card-footer {
    padding: clamp(1.5rem, 4vw, 2rem);
    background-color: rgba(248, 249, 250, 0.5);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.job-date {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: #999;
    font-weight: 600;
}

.btn-primary-sm {
    background: var(--primary-brown, #8d6e63);
    color: white;
    padding: clamp(10px, 2vw, 12px) clamp(25px, 5vw, 35px);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(141, 110, 99, 0.2);
}

.btn-primary-sm:hover, .btn-primary-sm:focus {
    background: var(--dark-coffee);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(141, 110, 99, 0.3);
    outline: none;
}

/* Hiring Process */
.hiring-process-section {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    padding: clamp(60px, 10vw, 100px) 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 25vw, 260px), 1fr));
    gap: clamp(2rem, 5vw, 3rem);
    text-align: center;
    justify-items: center;
    position: relative;
}

.process-column { width: 100%; z-index: 2; }

.process-step {
    background: var(--pure-white, #ffffff);
    padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.5rem, 4vw, 2rem);
    border-radius: clamp(15px, 4vw, 25px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.process-step:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(141, 110, 99, 0.15);
    border-color: rgba(141, 110, 99, 0.2);
}

.step-number {
    font-size: clamp(3.5rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--primary-brown, #8d6e63);
    opacity: 0.15;
    margin: 0 auto clamp(0.5rem, 2vw, 1rem) auto;
    line-height: 1;
    transition: all 0.4s ease;
}

.process-step:hover .step-number {
    opacity: 1;
    transform: scale(1.1);
    color: var(--dark-coffee);
}

.step-title {
    font-weight: 800;
    margin: 0 auto clamp(0.5rem, 2vw, 1rem) auto;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    color: var(--dark-coffee);
}

.step-desc {
    color: var(--text-muted, #6c757d);
    margin: 0 auto;
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    line-height: 1.6;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseBg {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}