/* ===================================================
   FreelanceShop US - Custom Theme
   =================================================== */

/* --- Variables --- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --accent: #f59e0b;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg: #f1f5f9;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,0.07);
    --shadow-hover: 0 8px 24px rgba(37,99,235,0.13);
}

/* --- Base --- */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* --- Navbar --- */
.jpt-navbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.jpt-navbar .navbar-brand img { height: 38px; width: auto; }
.jpt-navbar .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.4rem 0.85rem !important;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.jpt-navbar .nav-link:hover,
.jpt-navbar .nav-link.active {
    background: var(--primary-light);
    color: var(--primary) !important;
}
.jpt-navbar .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* --- Hero Section --- */
.jpt-hero {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #3b82f6 100%);
    color: #fff;
    padding: 64px 0 56px;
}
.jpt-hero h1 { font-size: 2.4rem; font-weight: 700; line-height: 1.2; }
.jpt-hero p  { font-size: 1.1rem; opacity: 0.88; margin-bottom: 0; }

/* --- Search Bar --- */
.jpt-search-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    margin-top: -28px;
    position: relative;
    z-index: 10;
}
.jpt-search-card .form-control,
.jpt-search-card .form-select {
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
}
.jpt-search-card .btn-search {
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border: none;
    transition: background 0.2s;
}
.jpt-search-card .btn-search:hover { background: var(--primary-dark); }

/* --- Filter Sidebar --- */
.jpt-filter-sidebar {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.jpt-filter-sidebar h5 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.jpt-filter-sidebar .form-check-label { font-size: 0.92rem; }
.jpt-filter-sidebar .form-select { font-size: 0.92rem; border-radius: 8px; }

/* --- Job Card --- */
.jpt-job-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s, border-color 0.2s;
    display: block;
    color: inherit;
}
.jpt-job-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: #93c5fd;
    color: inherit;
}
.jpt-job-card .job-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.jpt-job-card .job-title:hover { color: var(--primary-dark); }
.jpt-job-card .job-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.4rem;
}
.jpt-job-card .job-meta span::before { margin-right: 3px; }
.jpt-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
}
.jpt-badge-remote { background: #dcfce7; color: #166534; }
.jpt-badge-fulltime { background: #eff6ff; color: #1d4ed8; }
.jpt-badge-parttime { background: #fef9c3; color: #854d0e; }
.jpt-badge-contract { background: #fce7f3; color: #9d174d; }

/* --- Pagination --- */
.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    color: var(--primary);
    border: 1px solid var(--border);
    font-size: 0.9rem;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* --- Section Headers --- */
.jpt-section-header {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #3b82f6 100%);
    color: #fff;
    padding: 52px 0 44px;
    text-align: center;
}
.jpt-section-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.jpt-section-header p  { font-size: 1rem; opacity: 0.88; margin: 0; }

/* --- Content Cards --- */
.jpt-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}
.jpt-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}
.jpt-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.jpt-card p  { color: var(--text-muted); font-size: 0.95rem; }
.jpt-card ul, .jpt-card ol {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-left: 1.25rem;
}
.jpt-card ul li, .jpt-card ol li { margin-bottom: 0.4rem; }

/* --- Job Detail --- */
.jpt-job-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}
.jpt-job-header h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; }
.jpt-job-header .company { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.jpt-job-description { font-size: 0.95rem; color: var(--text-dark); line-height: 1.8; }
.jpt-detail-table th { font-weight: 600; color: var(--text-dark); background: var(--bg); width: 35%; }
.jpt-detail-table td { color: var(--text-muted); }
.jpt-similar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.jpt-similar-card h5 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.jpt-similar-item { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.jpt-similar-item:last-child { border-bottom: none; }
.jpt-similar-item a { font-weight: 500; font-size: 0.92rem; color: var(--primary); }
.jpt-similar-item .co { font-size: 0.8rem; color: var(--text-muted); }

/* --- Apply Button --- */
.btn-apply {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, box-shadow 0.2s;
    display: inline-block;
}
.btn-apply:hover {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* --- FAQ Accordion --- */
.jpt-accordion .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: #fff;
    border-radius: var(--radius) !important;
}
.jpt-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: var(--primary-light);
    box-shadow: none;
}
.jpt-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.jpt-accordion .accordion-body {
    font-size: 0.92rem;
    color: var(--text-muted);
    background: #fff;
}

/* --- Contact Form --- */
.jpt-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.jpt-form-card .form-control,
.jpt-form-card .form-select {
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
}
.jpt-form-card .form-control:focus,
.jpt-form-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.jpt-form-card label { font-weight: 500; font-size: 0.9rem; margin-bottom: 0.35rem; }

/* --- Notice / Alert --- */
.jpt-notice {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: #78350f;
}
.jpt-notice-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* --- Feature Cards (About/Employer) --- */
.jpt-feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
}
.jpt-feature-card .icon {
    width: 52px; height: 52px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    color: var(--primary);
}
.jpt-feature-card h5 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.jpt-feature-card p  { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* --- Stats Row --- */
.jpt-stat { text-align: center; }
.jpt-stat .number { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.jpt-stat .label  { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* --- Success Page --- */
.jpt-success-icon { font-size: 4rem; color: #16a34a; }

/* --- Footer --- */
.jpt-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 3rem 0 0;
    margin-top: 4rem;
}
.jpt-footer h6 {
    color: #f1f5f9;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.jpt-footer a { color: #94a3b8; font-size: 0.9rem; display: block; margin-bottom: 0.4rem; }
.jpt-footer a:hover { color: #f1f5f9; }
.jpt-footer .footer-bottom {
    border-top: 1px solid #334155;
    padding: 1.25rem 0;
    margin-top: 2.5rem;
    font-size: 0.85rem;
    text-align: center;
}

/* --- Utility --- */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
