/*
Theme Name: efreelance Custom Theme
Theme URI: https://efreelance.cc
Author: efreelance.cc
Description: Clean custom theme for efreelance.cc remote talent agency
Version: 1.0
*/

/* =========================================
   1. Base Reset & Typography
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

/* =========================================
   2. Navigation Bar
   ========================================= */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.logo span {
    color: #2563eb;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-weight: 500;
    color: #475569;
    font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2563eb;
    font-weight: 600;
}

/* =========================================
   3. Page Header & Hero Section
   ========================================= */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 65px 0;
    text-align: center;
}

.badge {
    display: inline-block;
    background-color: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.4);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.page-header h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
}

.page-header p {
    max-width: 680px;
    margin: 0 auto 28px;
    color: #cbd5e1;
    font-size: 17px;
}

/* =========================================
   4. Offer Box & Buttons
   ========================================= */
.offer-box {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 26px;
    max-width: 760px;
    margin: 0 auto;
    backdrop-filter: blur(6px);
}

.offer-box h3 {
    font-size: 20px;
    color: #fbbf24;
    margin-bottom: 8px;
}

.offer-box p {
    font-size: 15px;
    margin-bottom: 18px;
    color: #f1f5f9;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
}

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

.btn-outline {
    border: 1.5px solid #2563eb;
    color: #2563eb;
    background-color: transparent;
    padding: 9px 18px;
    font-size: 14px;
}

.btn-outline:hover {
    background-color: #2563eb;
    color: #ffffff;
}

/* =========================================
   5. Candidates Section & Grid
   ========================================= */
.candidates-section {
    padding: 60px 0;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 28px;
    border-left: 4px solid #2563eb;
    padding-left: 14px;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.candidate-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.candidate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
}

.candidate-card.featured {
    border-top: 4px solid #2563eb;
}

/* =========================================
   6. Candidate Card Details & Skills
   ========================================= */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.candidate-id {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.status-tag {
    background-color: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.candidate-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.candidate-card .role {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 12px;
}

.candidate-card .summary {
    font-size: 14.5px;
    color: #475569;
    margin-bottom: 18px;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.skills-list li {
    background-color: #f1f5f9;
    color: #334155;
    font-size: 12.5px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
}

.card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer .price {
    font-size: 14px;
    color: #475569;
}

.card-footer .price strong {
    font-size: 18px;
    color: #0f172a;
}

/* =========================================
   7. General Pages, Forms & Cards (Home/About/Contact)
   ========================================= */
.content-section {
    padding: 60px 0;
}

.content-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
}

.content-card h2 {
    font-size: 24px;
    color: #0f172a;
    margin-bottom: 14px;
}

.content-card p {
    color: #475569;
    margin-bottom: 16px;
    font-size: 15.5px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #ffffff;
}

/* =========================================
   8. Footer & Mobile Responsiveness
   ========================================= */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .nav-flex {
        flex-direction: column;
        gap: 14px;
    }

    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .content-card {
        padding: 24px;
    }

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

/* =========================================
   4. Offer Box & Buttons
   ========================================= */
.offer-box {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 26px;
    max-width: 760px;
    margin: 0 auto;
    backdrop-filter: blur(6px);
}

.offer-box h3 {
    font-size: 20px;
    color: #fbbf24;
    margin-bottom: 8px;
}

.offer-box p {
    font-size: 15px;
    margin-bottom: 18px;
    color: #f1f5f9;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
}

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

.btn-outline {
    border: 1.5px solid #2563eb;
    color: #2563eb;
    background-color: transparent;
    padding: 9px 18px;
    font-size: 14px;
}

.btn-outline:hover {
    background-color: #2563eb;
    color: #ffffff;
}

/* =========================================
   5. Candidates Section & Grid
   ========================================= */
.candidates-section {
    padding: 60px 0;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 28px;
    border-left: 4px solid #2563eb;
    padding-left: 14px;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.candidate-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.candidate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
}

.candidate-card.featured {
    border-top: 4px solid #2563eb;
}

/* =========================================
   6. Candidate Card Details & Skills
   ========================================= */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.candidate-id {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.status-tag {
    background-color: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.candidate-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.candidate-card .role {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 12px;
}

.candidate-card .summary {
    font-size: 14.5px;
    color: #475569;
    margin-bottom: 18px;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.skills-list li {
    background-color: #f1f5f9;
    color: #334155;
    font-size: 12.5px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
}

.card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer .price {
    font-size: 14px;
    color: #475569;
}

.card-footer .price strong {
    font-size: 18px;
    color: #0f172a;
}

/* =========================================
   7. General Pages, Forms & Cards (Home/About/Contact)
   ========================================= */
.content-section {
    padding: 60px 0;
}

.content-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
}

.content-card h2 {
    font-size: 24px;
    color: #0f172a;
    margin-bottom: 14px;
}

.content-card p {
    color: #475569;
    margin-bottom: 16px;
    font-size: 15.5px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #ffffff;
}

/* =========================================
   8. Footer & Mobile Responsiveness
   ========================================= */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .nav-flex {
        flex-direction: column;
        gap: 14px;
    }

    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .content-card {
        padding: 24px;
    }

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

/* =========================================
   9. 3-Column Grid & Candidate Sketch Avatar
   ========================================= */
.candidates-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.candidate-profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.candidate-profile-header {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 14px !important;
}

.candidate-avatar {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    max-height: 68px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: top center !important;
    border: 2px solid #2563eb !important;
    background-color: #ffffff !important;
    display: block !important;
}

.candidate-profile-header h3 {
    margin-bottom: 2px;
}

.candidate-profile-header .role {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .candidates-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .candidates-grid.three-col {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   11. Single-Line Mobile-Friendly 5-Item Menu & Center Footer
   ========================================= */
.nav-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
}

.nav-links li a {
    display: inline-block !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    border-radius: 6px !important;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: #eff6ff !important;
    color: #2563eb !important;
}

@media (max-width: 400px) {
    .nav-links {
        gap: 2px !important;
    }
    .nav-links li a {
        padding: 8px 6px !important;
        font-size: 13px !important;
    }
}

.footer {
    text-align: center !important;
    padding: 24px 0 !important;
}

/* =========================================
   12. 44px Mobile Touch Target Optimization
   ========================================= */
.nav-links li a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 10px !important;
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.15) !important;
    touch-action: manipulation !important;
}

@media (max-width: 380px) {
    .nav-links li a {
        padding: 10px 6px !important;
        font-size: 13px !important;
    }
}