/* 
 * Premium Hospital Recruitment System 
 * ThemeForest Style - V3 Modern Template
 */

:root {
    --primary: #7e21b7; /* RSUD Purple */
    --primary-hover: #6a1b9a; 
    --secondary: #351c75; /* Deep Indigo */
    --accent-green: #22c55e; /* Medical Green */
    --accent: #f59e0b; 
    --bg-light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--secondary);
    background-color: var(--bg-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
    letter-spacing: -0.011em; /* Inter looks best with a tiny bit of negative tracking */
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Navigation - Glassmorphism */
.navbar-premium {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary) !important;
    font-size: 1.6rem;
}

.nav-link {
    font-weight: 600;
    color: var(--secondary) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after { width: 70%; }

/* Buttons */
.btn-premium {
    background: var(--primary);
    color: white;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    border: none;
    box-shadow: 0 10px 20px -5px rgba(13, 148, 136, 0.4);
    transition: var(--transition);
}

.btn-premium:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(13, 148, 136, 0.5);
    color: white;
}

.btn-premium-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    transition: var(--transition);
}

.btn-premium-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Hero Section */
.hero-parallax {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(126, 33, 183, 0.85) 0%, rgba(53, 28, 117, 0.9) 100%), 
                url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
}

.hero-content { z-index: 2; }

/* Floating Search Bar */
.search-floating-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-top: -80px;
    z-index: 10;
    position: relative;
}

@media (max-width: 768px) {
    .hero-parallax h1 {
        font-size: 2.2rem !important;
    }
    .search-floating-card {
        padding: 1.5rem;
        margin-top: -40px;
        border-radius: 16px;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

/* Cards & Hover Effects */
.card-premium {
    border: none;
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

@keyframes floating {
    0% { transform: translate(0, 0px); }
    50% { transform: translate(0, 15px); }
    100% { transform: translate(0, -0px); }
}

.floating-anim {
    animation: floating 4s ease-in-out infinite;
}
.value-card {
    background: white;
    padding: 2.5rem;
    border-radius: 32px;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.value-card:hover {
    background: var(--primary);
    color: white !important;
}

.value-card:hover .text-muted, .value-card:hover h4 {
    color: white !important;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: rgba(126, 33, 183, 0.1);
    color: var(--primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-premium:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* Animations Control */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Section Headings */
.section-tag {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

/* Footer Premium */
.footer-premium {
    background: var(--secondary);
    color: #94a3b8;
    padding: 100px 0 50px;
}

.footer-link-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-link {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(10px);
}

/* ── TIMELINE ────────────────────────────────────────── */
.timeline-step {
    position: relative;
}

/* Pulsing ring for active stage */
@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0   rgba(126, 33, 183, 0.4); }
    70%  { box-shadow: 0 0 0 14px rgba(126, 33, 183, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(126, 33, 183, 0);   }
}

.stage-active-glow {
    animation: pulse-ring 2s ease-out infinite;
}

/* ── ANNOUNCEMENT CARDS ──────────────────────────────── */
.ann-card-info    { background: rgba(14, 165, 233, 0.06);  border-left: 4px solid #0ea5e9; }
.ann-card-success { background: rgba(34, 197, 94, 0.06);   border-left: 4px solid #22c55e; }
.ann-card-warning { background: rgba(245, 158, 11, 0.06);  border-left: 4px solid #f59e0b; }
.ann-card-danger  { background: rgba(239, 68, 68, 0.06);   border-left: 4px solid #ef4444; }

/* Pinned badge pulse */
@keyframes pin-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}
.ann-pinned { animation: pin-pulse 2s ease-in-out infinite; }

/* ── NAVBAR ACTIVE LINK ───────────────────────────────── */
.nav-link.active-page::after {
    width: 70% !important;
}

/* ── MISC UTIL ───────────────────────────────────────── */
.object-fit-cover { object-fit: cover; }
.lh-sm            { line-height: 1.35 !important; }

/* ── ADDITIONAL UTILITIES (Restored) ─────────────────── */
.card-custom {
    border-radius: 1.25rem;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card-custom.p-4 { padding: 1.5rem !important; }

.btn-primary-custom {
    background: var(--primary);
    color: white;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    border: none;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.fw-black { font-weight: 700 !important; }
.rounded-4 { border-radius: 1rem !important; }
.rounded-5 { border-radius: 1.5rem !important; }

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Fix for background gradients */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}