@charset "utf-8";
/* ================= Base ================= */

:root{
    --sidebar-width:265px;

    /* Sidebar / layout */
    --sidebar-bg:#f1f5f9;
    --sidebar-hover:#e2e8f0;

    /* Brand accent (RED stays RED) */
    --accent:#d32f2f;
    --accent-dark:#b71c1c;

    /* 🔴 FIX: map brand to accent */
    --brand:var(--accent);
    --brand-dark:var(--accent-dark);

    --bg:#f4f6fc;
    --text:#1f2937;
}



*{
    box-sizing:border-box;
}

html, body{
    overflow-x:hidden;
}

body{
    margin:0;
    font-family:'Roboto',sans-serif;
    background:var(--bg);
    color:var(--text);
}

/* ================= Mobile Header ================= */

.header{
    display:none;
    background:var(--brand);
    color:#fff;
    padding:12px 16px;
    font-size:18px;
    justify-content:space-between;
    align-items:center;
}
.header i{cursor:pointer;}

/* ================= Page Loader ================= */

#page-loader{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:#ffffff;
    z-index:99999;
    display:flex;
    align-items:center;
    justify-content:center;
}

.loader-content{
    text-align:center;
}

.loader-content img{
    width:120px;
    animation:logoPulse 1.6s ease-in-out infinite,
               logoSpin 3.5s linear infinite;
}

.loader-content p{
    margin-top:14px;
    font-size:14px;
    color:#555;
    letter-spacing:0.5px;
}

/* Pulse effect */
@keyframes logoPulse{
    0%{ transform:scale(1); opacity:0.85; }
    50%{ transform:scale(1.08); opacity:1; }
    100%{ transform:scale(1); opacity:0.85; }
}

/* Gentle rotation */
@keyframes logoSpin{
    0%{ transform:rotate(0deg); }
    100%{ transform:rotate(360deg); }
}

/* ================= Sidebar ================= */

.sidebar{
    position:fixed;
    top:0;
    left:0;
    width:var(--sidebar-width);
    height:100vh;

    /* Sidebar surface */
    background:var(--sidebar-bg);
    color:var(--text);
    padding:20px;

    display:flex;
    flex-direction:column;
    overflow-y:auto;
    z-index:1000;

    /* Visual separation */
    border-right:1px solid #dbe3ec;
    box-shadow:2px 0 8px rgba(0,0,0,0.04);
}

/* Subtle header strip */
.sidebar::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:64px;
    background:#e6edf5;
    border-bottom:1px solid #dbe3ec;
    z-index:-1;
}

.sidebar h2{
    margin:0 0 25px;
    color:#111827;
}

/* Sidebar links */
.sidebar a{
    color:var(--text);
    text-decoration:none;
    padding:8px 10px;
    border-radius:6px;
    margin-bottom:6px;
    transition:background 0.25s ease;
}

.sidebar a:hover{
    background:var(--sidebar-hover);
}

/* Inputs inside sidebar */
.sidebar input,
.sidebar select{
    width:100%;
    padding:9px;
    border-radius:6px;
    border:1px solid #d1d5db;
    margin-top:10px;
    background:#fff;
    color:#111827;
}

/* Sidebar Ad */
.sidebar-ad{
    margin-top:auto;
    text-align:center;
}

.ad-square{
    width:250px;
    height:250px;
    margin:0 auto;
    background:#f8fafc;
    border:1px dashed #cbd5e1;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    color:#64748b;
}

/* ================= Sections ================= */

.sidebar-section{
    margin-bottom:22px;
}

.sidebar-section h4{
    font-size:12px;
    font-weight:600;
    color:#64748b;
    margin-bottom:12px;
    text-transform:uppercase;
    letter-spacing:.5px;
}

/* ================= Job Category CTA Buttons ================= */

.sidebar-job-categories{
    display:flex;
    flex-direction:column;
    gap:8px; /* tighter spacing between CTAs */
}

/* Base CTA style */
.sidebar-job-categories .job-cta{
    display:block;
    padding:8px 12px;          /* reduced vertical padding */
    border-radius:8px;         /* slightly sharper corners */
    font-size:10px;            /* professional, compact font */
    font-weight:400;
    line-height:1.2;
	letter-spacing:0.2px;      /* improves clarity */
    text-decoration:none;
    color:#0f172a;

    background:#ffffff;
    border:1px solid #e5e7eb;
    border-left:4px solid #cbd5e1;

    transition:all 0.25s ease;
    box-shadow:0 1px 1px rgba(0,0,0,0.035);
}

/* Hover effect */
.sidebar-job-categories .job-cta:hover{
    background:#f8fafc;
    transform:translateY(-1px);
    box-shadow:0 4px 12px rgba(0,0,0,0.07);
}

/* Individual category colors */
.sidebar-job-categories .it{ border-left-color:#2563eb; }
.sidebar-job-categories .telecom{ border-left-color:#0ea5e9; }
.sidebar-job-categories .engineering{ border-left-color:#f97316; }
.sidebar-job-categories .construction{ border-left-color:#64748b; }
.sidebar-job-categories .banking{ border-left-color:#16a34a; }
.sidebar-job-categories .accounting{ border-left-color:#9333ea; }
.sidebar-job-categories .admin{ border-left-color:#475569; }
.sidebar-job-categories .sales{ border-left-color:#dc2626; }



/* ================= Quick Filters – FIXED ================= */

.filter-btn{
    display:flex;
    align-items:center;
    gap:12px;
    padding:11px 14px;
    margin-bottom:8px;
    background:#f6f8fc;
    border-radius:10px;
    font-size:13px;
    color:#333;
    text-decoration:none;
    transition:all .25s ease;
    width:100%;
}

/* Icon */
.filter-btn i{
    font-size:14px;
    color:#1e88e5;
    min-width:18px;
}

/* Text behavior */
.filter-text{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:110px; /* default collapsed width */
    transition:max-width .25s ease;
}

/* EXPAND TEXT ON HOVER */
.filter-btn:hover .filter-text{
    max-width:260px;
}

/* Hover visuals */
.filter-btn:hover{
    background:#e9eef7;
}

/* Active state */
.filter-btn.active{
    background:#1e88e5;
    color:#fff;
}

.filter-btn.active i{
    color:#fff;
}

/* Tooltip – full text on hover */
.filter-btn:hover::after{
    content:attr(data-title);
    position:absolute;
    left:105%;
    top:50%;
    transform:translateY(-50%);
    background:#1f2937;
    color:#fff;
    padding:6px 10px;
    border-radius:6px;
    font-size:12px;
    white-space:nowrap;
    box-shadow:0 10px 25px rgba(0,0,0,.2);
}

/* Active filter */
.filter-btn.active{
    background:#1e88e5;
    color:#fff;
}

.filter-btn.active i{
    color:#fff;
}

/* ================= Stats ================= */

.sidebar-stats{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin:24px 0;
}

.sidebar-stats div{
    background:#f8fafc;
    border-radius:12px;
    padding:14px;
    text-align:center;
    border:1px solid #eef1f6;
}

.sidebar-stats strong{
    display:block;
    font-size:18px;
    font-weight:600;
    color:#1e88e5;
}

.sidebar-stats span{
    font-size:12px;
    color:#666;
}

/* ================= Sidebar Ad ================= */

.sidebar-ad{
    margin-top:auto;
}

.sidebar-ad .ad-square{
    height:250px;
    border-radius:14px;
    background:#f4f6fc;
    border:1px dashed #ccc;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    color:#777;
}

/* ================= Mobile ================= */

@media(max-width:768px){

    .modern-sidebar{
        width:280px;
    }

    /* Disable tooltip on mobile */
    .filter-btn:hover::after{
        display:none;
    }
}


/* ================= Main Content ================= */

.main{
    margin-left:var(--sidebar-width);
    padding:20px;
    min-height:100vh;
    overflow:visible; /* REQUIRED for sticky */
}

/* ================= Sticky Strip ================= */

.sticky-strip{
    position:sticky;
    top:0;
    z-index:900;
    background:#fff;
    width:100%;
}

/* ================= Top Strip ================= */

.top-strip{
    border-radius:12px;
    padding:14px 18px;
    margin-bottom:20px;
    box-shadow:0 4px 12px rgba(0,0,0,0.05);
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap; /* Allows items to wrap on mobile */
}

/* Breadcrumbs */

.breadcrumbs{
    font-size:13px;
    color:#777;
    display:flex;
    gap:6px;
    margin-bottom:4px;
}

.breadcrumbs a{
    color:var(--brand);
    text-decoration:none;
    font-weight:500;
}

.breadcrumbs a:hover{
    text-decoration:underline;
}

.breadcrumbs .current{
    color:#555;
    font-weight:500;
}
.breadcrumb-h1{
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
    padding: 0;
    display: inline;
    line-height: inherit;
}


/* Titles */

.top-strip-left h3{
    margin:0;
    font-size:18px;
    font-weight:600;
}

.job-count{
    font-size:13px;
    color:#777;
}

/* Right Icons */

.top-strip-right{
    display:flex;
    gap:12px;
    flex-wrap:wrap; /* allows wrapping on mobile */
    align-items:center;
}

.top-strip-right i{
    font-size:18px;
    color:#999;
    cursor:pointer;
    transition:.3s;
}

.top-strip-right i:hover,
.top-strip-right i.active{
    color:var(--brand);
}

/* ================= Top Ad ================= */

.top-strip-ad{
    display:flex;
    justify-content:center;
    margin:15px 0;
}

.ad-placeholder{
    width:728px;
    max-width:100%;
    height:90px;
    background:#f2f2f2;
    border:1px dashed #ccc;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    color:#777;
    border-radius:6px;
}

/* ================= Job Grid ================= */

.job-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:24px;
}

/* Job Card */

.job-card{
    background:#fff;
    border-radius:12px;
    padding:16px;
    box-shadow:0 6px 18px rgba(0,0,0,.06);
    display:flex;
    flex-direction:column;
    min-height:200px;
}

.job-card h4{
    margin:0 0 6px;
    font-size:16px;
}

.job-card p{
    margin:4px 0;
    font-size:.9em;
}



.location{
    color:#777;
}

/* Card Footer */

.card-footer{
    margin-top:auto;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.job-card .pill{
    height:32px;
    padding:0 14px;
    border-radius:999px;
    font-size:.75em;
    font-weight:500;
    color:#fff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    white-space:nowrap;
}

.pill.view{background:#1976d2;}
.pill.view:hover{background:#0d47a1;}
.pill.open{background:#2e7d32;}
.pill.type{background:var(--brand);}

/* ================= Pagination ================= */

.pagination{
    margin-top:30px;
    display:flex;
    justify-content:center;
    gap:6px;
    flex-wrap:wrap;
}

.pagination a{
    padding:8px 12px;
    background:#ececec;
    border-radius:6px;
    text-decoration:none;
    color:#333;
}

.pagination a.active{
    background:var(--brand);
    color:#fff;
}

.pagination span.disabled{
    padding:8px 12px;
    background:#f1f1f1;
    color:#999;
    border-radius:6px;
}

/* ===============================
   Job Alert Subscription Form
   =============================== */

form{
    max-width:600px;
    background:#ffffff;
    padding:20px;
    border-radius:10px;
    box-shadow:0 6px 20px rgba(0,0,0,0.08);
    margin:20px auto;
}

/* Inputs */
.form-control,
.job-category-controls input{
    width:100%;
    padding:12px 14px;
    border:1px solid #dcdcdc;
    border-radius:6px;
    font-size:14px;
    transition:border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus,
.job-category-controls input:focus{
    outline:none;
    border-color:#d32f2f;
    box-shadow:0 0 0 3px rgba(211,47,47,0.12);
}

/* Spacing helpers (Bootstrap-like) */
.mb-2{ margin-bottom:10px; }
.mb-3{ margin-bottom:15px; }
.mt-3{ margin-top:15px; }

/* Section Label */
form label strong{
    display:block;
    margin:10px 0 8px;
    color:#333;
    font-size:15px;
}

/* Category Controls */
.job-category-controls{
    display:flex;
    gap:8px;
    margin-bottom:10px;
}

.job-category-controls input{
    flex:1;
}

.job-category-controls button{
    padding:10px 12px;
    border:none;
    background:#f4f6fc;
    color:#333;
    border-radius:6px;
    cursor:pointer;
    font-size:13px;
    transition:background 0.3s, color 0.3s;
}

.job-category-controls button:hover{
    background:#d32f2f;
    color:#fff;
}

/* Category Box */
.job-category-box{
    max-height:240px;
    overflow-y:auto;
    border:1px solid #e0e0e0;
    border-radius:6px;
    padding:10px;
    background:#fafafa;
}

/* Category Items */
.job-category-box label{
    display:flex;
    align-items:flex-start;
    gap:8px;
    font-size:13px;
    color:#444;
    padding:6px 4px;
    cursor:pointer;
    border-radius:4px;
}

.job-category-box label:hover{
    background:#f1f1f1;
}

.job-category-box input[type="checkbox"]{
    accent-color:#d32f2f;
    margin-top:2px;
}

/* Submit Button */
.btn{
    display:inline-block;
    padding:12px 18px;
    border-radius:6px;
    font-size:15px;
    font-weight:500;
    border:none;
    cursor:pointer;
    transition:background 0.3s, transform 0.2s;
}

.btn-primary{
    background:#d32f2f;
    color:#fff;
}

.btn-primary:hover{
    background:#b71c1c;
    transform:translateY(-1px);
}

/* Mobile Optimization */
@media (max-width:576px){
    form{
        padding:15px;
    }

    .job-category-controls{
        flex-direction:column;
    }

    .job-category-controls button{
        width:100%;
    }
}


/* ================= Footer ================= */

/* ================= MODERN FOOTER (SAFE + SIDEBAR ALIGNED – RED HOVER) ================= */

.site-footer {
    clear: both;
    background: linear-gradient(135deg, #0f172a, #020617);
    padding: 70px 20px 25px;
    color: #cbd5e1;
    position: relative;
    z-index: 1;

    /* === SIDEBAR ALIGNMENT FIX === */
    margin-left: 260px;
    width: calc(100% - 260px);
}

/* footer grid */
.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

/* ================= FOOTER CARDS (JOB CARD DEPTH + RED HOVER) ================= */

.footer-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 28px 26px;
    border: 1px solid rgba(255, 255, 255, 0.10);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.footer-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(239, 68, 68, 0.45),
        0 0 30px rgba(239, 68, 68, 0.25);

    border-color: rgba(239, 68, 68, 0.65);
    background: rgba(255, 255, 255, 0.075);
}

/* headings */
.footer-card h4 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: 0.4px;
}

/* text */
.footer-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #cbd5e1;
}

/* links */
.footer-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-card ul li {
    margin-bottom: 10px;
}

.footer-card ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.footer-card ul li a:hover {
    color: #ef4444;                 /* RED hover */
    padding-left: 6px;
}
.footer-card ul li a span.count {
    color: #64748b;
    font-size: 12px;
}
/* ================= SOCIAL ICONS (RED HOVER) ================= */

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 16px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
}

.footer-social a:hover {
    background: #ef4444;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow:
        0 10px 30px rgba(239, 68, 68, 0.55);
}

/* ================= FOOTER BOTTOM ================= */

.footer-bottom {
    margin-top: 45px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ================= MOBILE / SMALL SCREENS ================= */

@media (max-width: 768px) {
    .site-footer {
        margin-left: 0;
        width: 100%;
        padding: 50px 15px 20px;
    }
}

/* ================= Mobile ================= */


@media (max-width: 768px) {

    .header {
        display: flex;
    }

    .sidebar {
        left: -100%;
    }

    .sidebar.show {
        left: 0;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .main {
        margin-left: 0;
    }

    footer {
        padding-left: 0;
    }

    footer .footer-top {
        flex-direction: column;
        text-align: center;
    }

    footer .footer-section {
        min-width: 100%;
    }
	
	footer .social-icons {
        justify-content: center; /* horizontally center on mobile */
    }

    .job-category-box {
        max-height: 260px;
    }

    .job-category-box label {
        font-size: 13px;
    }
}

#page-loader{
    position:fixed;
    inset:0;
    background:#ffffff;
    z-index:999999;
    display:flex;
    align-items:center;
    justify-content:center;
}

.loader-content{
    text-align:center;
}

.loader-content img{
    width:120px;
    animation:pulse 1.4s ease-in-out infinite,
               spin 3s linear infinite;
}

.loader-content p{
    margin-top:12px;
    font-size:14px;
    color:#555;
}

@keyframes pulse{
    0%{transform:scale(1);opacity:.8}
    50%{transform:scale(1.08);opacity:1}
    100%{transform:scale(1);opacity:.8}
}

@keyframes spin{
    to{transform:rotate(360deg)}
}
