/*
Theme Name: JobsDeep Portal
Theme URI: https://jobsdeep.com
Description: A modern, modular, responsive GeneratePress child theme built for JobsDeep.com — combines a news/blog portal with a full job listing board (job posts, filters, apply links, admin settings panel).
Author: JobsDeep
Author URI: https://jobsdeep.com
Template: generatepress
Version: 1.0.0
Text Domain: jobsdeep
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --jd-primary: #2563eb;
    --jd-secondary: #f97316;
    --jd-bg: #ffffff;
    --jd-text: #0f172a;
    --jd-text-muted: #64748b;
    --jd-border: #e2e8f0;
    --jd-card-bg: #ffffff;
    --jd-success: #22c55e;

    /* Layout */
    --jd-container: 1240px;
    --jd-spacing: 0.85rem;
    --jd-radius: 10px;
    --jd-radius-sm: 6px;
    --jd-radius-full: 9999px;

    /* Shadows */
    --jd-shadow: 0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04);
    --jd-shadow-md: 0 4px 12px rgba(15,23,42,0.08);

    --jd-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--jd-font);
    color: var(--jd-text);
    background: var(--jd-bg);
    line-height: 1.6;
}

a { color: var(--jd-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.jd-container {
    max-width: var(--jd-container);
    margin: 0 auto;
    padding: 0 20px;
}

.jd-section { padding: 40px 0; }
.jd-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--jd-primary);
    padding-left: 12px;
}

/* ===== Grid / Cards ===== */
.jd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.jd-card {
    background: var(--jd-card-bg);
    border: 1px solid var(--jd-border);
    border-radius: var(--jd-radius);
    overflow: hidden;
    box-shadow: var(--jd-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
    display: flex;
    flex-direction: column;
}
.jd-card:hover { transform: translateY(-3px); box-shadow: var(--jd-shadow-md); }
.jd-card img { width: 100%; height: 170px; object-fit: cover; }
.jd-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.jd-card-title { font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
.jd-card-meta { font-size: .78rem; color: var(--jd-text-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.jd-badge {
    display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase;
    padding: 3px 9px; border-radius: var(--jd-radius-full); background: var(--jd-primary); color: #fff;
}
.jd-badge.jd-badge-secondary { background: var(--jd-secondary); }

/* ===== Job Card ===== */
.jd-job-card .jd-job-company { font-size: .85rem; color: var(--jd-text-muted); }
.jd-job-card .jd-job-salary { font-weight: 700; color: var(--jd-success); }
.jd-apply-btn {
    display: inline-block; text-align: center; margin-top: 6px;
    background: var(--jd-primary); color: #fff !important; padding: 9px 14px;
    border-radius: var(--jd-radius-sm); font-weight: 600; font-size: .85rem; text-decoration: none !important;
}
.jd-apply-btn:hover { opacity: .9; }

/* ===== Header ===== */
.jd-topbar { background: var(--jd-text); color: #cbd5e1; font-size: .78rem; padding: 6px 0; }
.jd-topbar .jd-container { display: flex; justify-content: space-between; align-items: center; }
.jd-topbar a { color: #cbd5e1; }
.jd-social-icons { display: flex; gap: 12px; }

.jd-header { border-bottom: 1px solid var(--jd-border); background: #fff; }
.jd-header.jd-sticky { position: sticky; top: 0; z-index: 999; box-shadow: var(--jd-shadow); }
.jd-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.jd-logo { font-size: 1.4rem; font-weight: 800; color: var(--jd-text); }
.jd-logo span { color: var(--jd-primary); }
.jd-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.jd-nav a { color: var(--jd-text); font-weight: 500; }
.jd-menu-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; }

/* ===== Ticker ===== */
.jd-ticker-wrap { background: var(--jd-secondary); color: #fff; display: flex; align-items: center; overflow: hidden; }
.jd-ticker-label { background: rgba(0,0,0,.2); padding: 8px 14px; font-weight: 700; font-size: .8rem; white-space: nowrap; }
.jd-ticker-track { display: flex; white-space: nowrap; animation: jd-marquee 25s linear infinite; }
.jd-ticker-track a { color: #fff; margin-right: 40px; font-size: .85rem; }
@keyframes jd-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== Footer ===== */
.jd-footer { background: #0f172a; color: #cbd5e1; margin-top: 40px; }
.jd-footer .jd-container { padding-top: 40px; padding-bottom: 20px; }
.jd-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 30px; }
.jd-footer h4 { color: #fff; margin-bottom: 14px; }
.jd-footer a { color: #94a3b8; }
.jd-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding: 16px 0; font-size: .8rem; text-align: center; color: #94a3b8; }

/* ===== Author Box ===== */
.jd-author-box { display: flex; gap: 16px; align-items: center; background: #f8fafc; border: 1px solid var(--jd-border); border-radius: var(--jd-radius); padding: 18px; margin: 24px 0; }
.jd-author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

/* ===== Layout helpers ===== */
.jd-content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }
@media (max-width: 880px) { .jd-content-layout { grid-template-columns: 1fr; } }

/* ===== Filters (jobs archive) ===== */
.jd-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; background: #f8fafc; padding: 14px; border-radius: var(--jd-radius); }
.jd-filter-bar select, .jd-filter-bar input[type=text] { padding: 8px 10px; border: 1px solid var(--jd-border); border-radius: var(--jd-radius-sm); font-family: var(--jd-font); }
.jd-filter-bar button { background: var(--jd-primary); color: #fff; border: none; padding: 8px 16px; border-radius: var(--jd-radius-sm); cursor: pointer; font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 780px) {
    .jd-nav { position: fixed; top: 0; right: -260px; width: 260px; height: 100vh; background: #fff; flex-direction: column; padding: 70px 20px; transition: right .25s ease; box-shadow: -4px 0 20px rgba(0,0,0,.1); }
    .jd-nav.jd-open { right: 0; }
    .jd-nav ul { flex-direction: column; gap: 16px; }
    .jd-menu-toggle { display: block; }
    .jd-content-layout { grid-template-columns: 1fr; }
}
