/* IMPORT FONTS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    /* These will be overridden by PHP/Database settings */
    --primary: #4E342E; 
    --secondary: #7CB342;
    --bg: #F4F6F8;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0,0,0,0.08);
    --gradient-text: linear-gradient(45deg, var(--primary), var(--secondary));
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Outfit', sans-serif; }
body { background: var(--bg); color: #333; overflow-x: hidden; }

/* ANIMATIONS */
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
@keyframes popIn { from { opacity:0; transform:scale(0.9); } to { opacity:1; transform:scale(1); } }
@keyframes slideUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }

/* NAVIGATION */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.logo-container { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; color: var(--primary); }
.logo-img { height: 45px; border-radius: 8px; }
.nav-links { display: flex; list-style: none; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: #555; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--secondary); }
.btn-nav-highlight { background: var(--secondary); color: white !important; padding: 10px 25px; border-radius: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* HERO SECTION */
.hero-wrapper {
    position: relative; height: 85vh; display: flex; align-items: center; justify-content: center;
    background-size: cover; background-position: center; overflow: hidden;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(var(--primary), 0.8));
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 2; text-align: center; color: white; max-width: 800px; padding: 20px;
}
.hero-title {
    font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #ccc); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: slideUp 0.8s ease;
}
.hero-sub { font-size: 1.5rem; opacity: 0.9; margin-bottom: 40px; animation: slideUp 1s ease; }

/* SEARCH BAR */
.search-box {
    background: white; padding: 8px; border-radius: 60px; display: flex;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); animation: popIn 1.2s ease;
    border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(5px);
}
.search-input { flex: 1; border: none; padding: 18px 30px; border-radius: 60px; font-size: 18px; outline: none; }
.search-btn {
    background: var(--secondary); color: white; border: none; padding: 15px 45px;
    border-radius: 50px; font-weight: bold; font-size: 18px; cursor: pointer; transition: 0.3s;
}
.search-btn:hover { transform: scale(1.05); box-shadow: 0 5px 20px rgba(255,255,255,0.3); }

/* CATEGORIES WITH ICONS */
.cat-section { padding: 80px 20px; text-align: center; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 25px; max-width: 1200px; margin: 40px auto; }
.cat-card {
    background: white; padding: 40px 20px; border-radius: 20px; text-align: center;
    box-shadow: var(--shadow); transition: 0.3s; cursor: pointer; border: 2px solid transparent;
}
.cat-card:hover { transform: translateY(-10px); border-color: var(--secondary); }
.cat-icon-box {
    width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%;
    background: rgba(124, 179, 66, 0.1); display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: var(--secondary); transition: 0.3s;
}
.cat-card:hover .cat-icon-box { background: var(--secondary); color: white; animation: float 3s infinite ease-in-out; }

/* MODERN JOB CARDS */
.job-section { background: white; padding: 80px 20px; }
.job-card {
    background: #fff; border-radius: 20px; padding: 30px; margin-bottom: 25px;
    border: 1px solid #eee; box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    display: flex; align-items: center; justify-content: space-between; transition: 0.3s;
}
.job-card:hover { border-left: 5px solid var(--primary); transform: translateX(5px); box-shadow: var(--shadow); }
.tag { background: #f0f0f0; padding: 5px 12px; border-radius: 20px; font-size: 12px; color: #666; font-weight: 600; }

/* FOOTER */
footer { background: #1a1a1a; color: white; padding: 60px 20px; text-align: center; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .job-card { flex-direction: column; align-items: flex-start; gap: 20px; }
}