/* ===================================================================
   ETHIOJOBPORTAL - Clean, Modern & Mobile-First Job Portal Styling
   =================================================================== */

:root {
    --brand-primary: #0d8248;
    --brand-primary-dark: #075c32;
    --brand-primary-light: #ecfdf5;
    --brand-accent: #f59e0b;
    --brand-accent-light: #fef3c7;
    --brand-dark: #0f172a;
    --brand-surface: #ffffff;
    --brand-bg: #f8fafc;
    --brand-border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-amharic: 'Noto Sans Ethiopic', var(--font-family);
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--brand-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.amharic-font {
    font-family: var(--font-amharic);
}

/* --- Brand Background Gradients --- */
.bg-gradient-brand {
    background: linear-gradient(135deg, #0d8248 0%, #064e28 100%) !important;
    color: #ffffff !important;
}

.bg-gradient-brand h1,
.bg-gradient-brand h2,
.bg-gradient-brand h3,
.bg-gradient-brand h4,
.bg-gradient-brand h5,
.bg-gradient-brand h6,
.bg-gradient-brand p,
.bg-gradient-brand span,
.bg-gradient-brand strong {
    color: #ffffff !important;
}

.bg-gradient-brand .text-warning {
    color: #f8b705 !important;
}

/* --- Top Header & Navbar --- */
.top-notice-bar {
    background: #0f2319;
    color: #cbd5e1;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-navbar {
    background: #0a1811;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.brand-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(13, 130, 72, 0.3);
    flex-shrink: 0;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    line-height: 1.1;
}

.brand-text span {
    color: var(--brand-accent);
}

.navbar-nav .nav-link {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* --- Mobile Login Page --- */
.auth-wrapper {
    min-height: 100vh;
    background: radial-gradient(circle at top right, #153323 0%, #081510 50%, #030806 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.auth-header-gradient {
    background: linear-gradient(135deg, #0d8248 0%, #084c2a 100%);
    color: #ffffff;
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.input-touch-lg {
    height: 52px;
    font-size: 1rem;
}

.btn-touch-lg {
    height: 52px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
}

.btn-brand-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: #ffffff;
    border: none;
    transition: all 0.2s ease;
}

.btn-brand-primary:hover,
.btn-brand-primary:focus {
    background: linear-gradient(135deg, #0fa85d 0%, var(--brand-primary) 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(13, 130, 72, 0.35);
    transform: translateY(-1px);
}

/* --- Hero Section & Search --- */
.portal-hero,
.hero-section {
    background: linear-gradient(135deg, #0a1f15 0%, #0d3824 100%);
    color: #ffffff;
    padding: 2.5rem 0 3rem;
}

.hero-search-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 1.25rem;
}

/* --- Job Cards & Listings --- */
.job-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--brand-border);
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.job-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.job-card.featured-job {
    border-left: 4px solid var(--brand-accent);
    background: linear-gradient(to right, #fffef9 0%, #ffffff 20%);
}

.company-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.job-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.job-pill-category {
    background: #ecfdf5;
    color: #065f46;
}

.job-pill-subtle {
    background: #f1f5f9;
    color: #475569;
}

.job-pill-urgent {
    background: #fef2f2;
    color: #991b1b;
}

.btn-bookmark-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-bookmark-icon:hover,
.btn-bookmark-icon.active {
    background: #fef3c7;
    color: #d97706;
    border-color: #fde68a;
}

/* --- Filter Sidebar / Mobile Collapse --- */
.filter-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--brand-border);
    padding: 1.25rem;
}

.filter-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    color: #334155;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.15s ease;
}

.filter-category-link:hover,
.filter-category-link.active {
    background: #ecfdf5;
    color: var(--brand-primary-dark);
    font-weight: 600;
}

/* --- Category Catalog Cards & Tiles --- */
.category-card,
.category-tile {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--brand-border);
    padding: 1.25rem;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.2s ease;
}

.category-card:hover,
.category-tile:hover {
    transform: translateY(-3px);
    border-color: var(--brand-primary);
    box-shadow: 0 10px 20px rgba(13, 130, 72, 0.1);
    color: var(--text-main);
}

.category-icon-box,
.category-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: #ecfdf5;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
    transition: all 0.2s ease;
}

.category-card:hover .category-icon-box,
.category-tile:hover .category-tile-icon {
    background: var(--brand-primary);
    color: #ffffff;
}

/* --- Footer & Footer Cards --- */
.site-footer {
    background: #09140e !important;
    color: #94a3b8;
    padding-top: 3rem;
    padding-bottom: 2rem;
    font-size: 0.9rem;
    margin-top: auto;
}

.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-footer a:hover {
    color: var(--brand-accent);
}

.footer-vas-card {
    background: #13241b !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: var(--radius-md);
    padding: 1rem;
    color: #ffffff !important;
}

.footer-vas-card p,
.footer-vas-card div,
.footer-vas-card span {
    color: #f1f5f9 !important;
}

.social-circle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-circle-btn:hover {
    background: var(--brand-primary);
    color: #ffffff;
}

/* --- Mobile Specific Optimization Media Queries --- */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .auth-card {
        border-radius: var(--radius-lg);
    }
    .auth-header-gradient {
        padding: 1.25rem 1rem;
    }
    .hero-search-card {
        padding: 1rem;
        border-radius: var(--radius-md);
    }
    .job-card {
        padding: 1rem;
    }
    .category-card,
    .category-tile {
        padding: 1rem;
    }
    .company-avatar {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    .brand-text {
        font-size: 1.15rem;
    }
    h1, .display-6 {
        font-size: 1.6rem !important;
    }
    h2 {
        font-size: 1.35rem !important;
    }
    h3 {
        font-size: 1.2rem !important;
    }
}

/* ===================================================================
   JOB RICH CONTENT & TYPOGRAPHY ENHANCEMENTS
   =================================================================== */
.job-rich-content {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #334155;
}

.job-rich-content strong, 
.job-rich-content b,
.job-rich-content .fw-bold {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.job-rich-list {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-bottom: 1rem;
}

.job-rich-list li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.55rem;
    line-height: 1.65;
    color: #334155;
}

.job-rich-list li::before {
    content: "•";
    position: absolute;
    left: 0.15rem;
    top: -0.08rem;
    color: var(--brand-primary);
    font-weight: 900;
    font-size: 1.2rem;
}

.job-rich-list li strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.job-rich-content h6 {
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.job-rich-content a {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.job-rich-content a:hover {
    color: var(--brand-primary-dark);
}

