/* * Walimu Portal - Professional Stylesheet
 * Brand: Forest Green & Slate
 */

/* 1. Root Variables */
:root {
    --walimu-green: #228653;        
    --walimu-green-dark: #1a6b42;   
    --walimu-green-soft: rgba(34, 134, 83, 0.08);
    
    --walimu-yellow: #ffc107;
    --walimu-yellow-soft: rgba(255, 193, 7, 0.15);

    --walimu-bg: #ffffff;           
    --walimu-card-bg: #ffffff;
    --text-main: #1e293b;           
    --text-muted: #64748b;          
    --border-color: #f1f5f9;        

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-lg: 12px;
}

/* 2. ANTI-FLICKER & Global Resets */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--walimu-bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Prevents horizontal scroll flicker during entry animations */
    overflow-x: hidden; 
}

/* Force hardware acceleration on all animated elements to stop flickering */
.animate__animated, .job-card, .hover-up, .custom-card {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform, opacity;
}

/* Prevent Animate.css "hidden-to-visible" flash */
.animate__animated {
    animation-fill-mode: both !important;
}

h1, h2, h3, h4 {
    color: var(--text-main);
    letter-spacing: -0.03em;
    font-weight: 700;
}

.text-warning { color: var(--walimu-yellow) !important; }
.bg-success-soft { background-color: var(--walimu-green-soft); color: var(--walimu-green); }

/* 3. Navigation Styling */
.navbar {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    z-index: 1050;
}

/* 4. Hero Section - Mesh Look with Flicker-Safe Background */
.hero-gradient {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, hsla(161, 71%, 95%, 1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(161, 80%, 98%, 1) 0, transparent 50%);
    padding: 80px 0 120px 0;
    position: relative;
}

/* 5. Components & Cards */
.search-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg) !important;
    /* Ensures search bar stays above the hero mesh */
    z-index: 5; 
}

.job-card, .info-card, .custom-card {
    background: var(--walimu-card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    padding: 1.75rem;
    height: 100%;
}

.job-card:hover, .custom-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--walimu-green);
}

.school-logo-wrapper {
    width: 65px;
    height: 65px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Anti-flicker: keep width stable */
}

/* 6. Professional Buttons */
.btn-success, .btn-primary {
    border-radius: 50px; 
    padding: 12px 32px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-success {
    background-color: var(--walimu-green) !important;
    border: none;
}

.btn-success:hover {
    background-color: var(--walimu-green-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 134, 83, 0.25);
}

/* 7. Image Handling */
img {
    /* Prevents layout shift during loading */
    max-width: 100%;
    height: auto;
    font-style: italic; /* Style for broken images */
}

/* 8. Animations (Smoother slide) */
@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: slideUpFade 0.5s ease-out forwards;
}
/* 9. Footer */
.footer-link:hover {
    color: #ffffff !important;
}
