/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

.job-search-bar-wrap {
    margin-top: 20px;
    margin-bottom: 24px;
    box-sizing: border-box;
}
.job-search-bar-wrap * {
    box-sizing: border-box;
}

/* ===== পিল সার্চ বক্স ===== */
.job-search-bar-pillform {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-bottom: 14px;
}
.job-search-bar-pillinputwrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.job-search-bar-pillicon {
    color: #9ca3af;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.job-search-bar-pillinput {
    flex: 1;
    border: none !important;
    outline: none !important;
    font-size: 15px !important;
    color: #374151 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 10px 0 !important;
    margin: 0 !important;
}
.job-search-bar-pillbtn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #0B5E3B !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 0 26px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer;
    white-space: nowrap;
    height: 44px !important;
    line-height: 1 !important;
    margin: 0 !important;
    box-shadow: none !important;
}
.job-search-bar-pillbtn:hover {
    background: #084a2f !important;
}

/* ===== জনপ্রিয় চিপস ===== */
.job-chip-scroll-wrap {
    position: relative;
}
.job-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    align-items: center;
}
.job-chip-arrow {
    display: none;
}
.job-chip-label {
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
}
.job-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151 !important;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: all 0.15s ease;
}
.job-chip:hover {
    border-color: #0B5E3B;
    color: #0B5E3B !important;
}

/* ===== বিস্তারিত ফিল্টার (collapsible) ===== */
.job-filter-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
}
.job-filter-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    background: #f3f4f6;
    transition: background 0.15s ease;
}
.job-filter-head:hover,
.job-filter-head:active {
    background: #e9ebee;
}
.job-filter-icon {
    background: #e7f3ec;
    color: #0B5E3B;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}
.job-filter-headtext {
    flex: 1;
    min-width: 0;
}
.job-filter-title {
    font-weight: 700;
    font-size: 15px;
    color: #1f2937;
    overflow-wrap: break-word;
}
.job-filter-sub {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.job-filter-toggle {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0B5E3B;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
/* ডিফল্ট (বন্ধ অবস্থা): নিচের অ্যারো দেখাবে, উপরের অ্যারো লুকানো */
.job-filter-toggle .jf-icon-up {
    display: none;
}
/* খোলা অবস্থায়: উপরের অ্যারো দেখাবে, নিচের অ্যারো লুকানো */
.job-filter-box.open .job-filter-toggle .jf-icon-down {
    display: none;
}
.job-filter-box.open .job-filter-toggle .jf-icon-up {
    display: block;
}

.job-filter-body {
    display: none;
    padding: 18px 18px 18px;
    border-top: 1px solid #e5e7eb;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}
.job-filter-box.open .job-filter-body {
    display: grid;
}

.job-filter-col {
    display: flex;
    flex-direction: column;
}
.job-filter-col label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}
.jf-field-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
}
.job-filter-col select {
    padding: 10px 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    background: #fff !important;
    color: #374151 !important;
    width: 100%;
    line-height: normal !important;
    height: auto !important;
    cursor: pointer;
}
.job-filter-col select:focus {
    outline: none !important;
    border-color: #0B5E3B !important;
}
.job-filter-apply {
    background: #0B5E3B !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0 20px !important;
    height: 42px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 !important;
    box-shadow: none !important;
}
.job-filter-apply:hover {
    background: #084a2f !important;
}

/* ===== লাইভ স্ট্যাটস ড্যাশবোর্ড ===== */
.job-live-dashboard-wrap {
    margin-bottom: 24px;
    box-sizing: border-box;
}
.job-live-dashboard-wrap * {
    box-sizing: border-box;
}
.job-live-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 12px;
}
.job-live-dot {
    width: 9px;
    height: 9px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: job-live-pulse 1.4s infinite;
}
@keyframes job-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
    70% { box-shadow: 0 0 0 7px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.job-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}
.job-stat {
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
}
.job-stat-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}
.job-stat-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
}

.job-stat-1 { background: #e9f8ef; } .job-stat-1 .job-stat-num { color: #16a34a; } .job-stat-1 .job-stat-label { color: #166534; }
.job-stat-2 { background: #e8f0fe; } .job-stat-2 .job-stat-num { color: #2563eb; } .job-stat-2 .job-stat-label { color: #1e40af; }
.job-stat-3 { background: #fde8e8; } .job-stat-3 .job-stat-num { color: #dc2626; } .job-stat-3 .job-stat-label { color: #991b1b; }
.job-stat-4 { background: #fdf3df; } .job-stat-4 .job-stat-num { color: #d97706; } .job-stat-4 .job-stat-label { color: #92400e; }
.job-stat-5 { background: #fdeee0; } .job-stat-5 .job-stat-num { color: #ea580c; } .job-stat-5 .job-stat-label { color: #9a3412; }
.job-stat-6 { background: #f1e9fb; } .job-stat-6 .job-stat-num { color: #7c3aed; } .job-stat-6 .job-stat-label { color: #5b21b6; }

.job-cat-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}
.job-cat-footer-label {
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
    margin-right: 2px;
}
.job-cat-footer a {
    font-size: 13px;
    color: #374151 !important;
    text-decoration: none !important;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
}
.job-cat-footer a:hover {
    background: #e7f3ec;
    color: #0B5E3B !important;
}

/* ===== সার্চ রেজাল্ট বক্স ===== */
.job-search-result-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #E1F1E8;
    border: 1px solid #bfe3cd;
    border-radius: 10px;
    padding: 14px 18px;
    width: 100%;
    margin: 0 0 24px 0;
    box-sizing: border-box;
}
.job-search-result-icon {
    display: flex;
    align-items: center;
    color: #0B5E3B;
    flex-shrink: 0;
}
.job-search-result-count {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}
.job-search-result-keyword {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: #4b6b58;
}

body.search .page-header {
    display: none !important;
}

/* ===== রেসপন্সিভ ===== */
@media (max-width: 1100px) {
    .job-stats-grid { grid-template-columns: repeat(3, 1fr); }
    .job-filter-body { grid-template-columns: 1fr 1fr; }
    .job-filter-apply { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .job-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .job-filter-body { grid-template-columns: 1fr; }

    /* থিমের কন্টেইনার মোবাইলে পর্যাপ্ত সাইড প্যাডিং না দিলে, এটা ফলব্যাক হিসেবে যুক্ত করা */
    .job-search-bar-wrap,
    .job-live-dashboard-wrap {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .job-search-bar-pillinput,
    .job-filter-col select {
        font-size: 16px !important;
    }

    /* সার্চ বক্স মোবাইলে এক লাইনেই থাকবে — বাটন শুধু আইকন (ছোট স্কয়ার) হবে */
    .job-search-bar-pillform {
        padding: 6px 6px 6px 16px;
        border-radius: 14px;
    }
    .job-search-bar-pillinput {
        padding: 10px 0 !important;
    }
    .job-search-bar-btntext {
        display: none;
    }
    .job-search-bar-pillbtn {
        width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        flex-shrink: 0;
    }

    /* ফিল্টার হেডার টেক্সট মোবাইলে ছোট করা, যাতে ভেঙে/বেরিয়ে না যায় */
    .job-filter-head {
        padding: 12px 14px;
        gap: 10px;
    }
    .job-filter-title {
        font-size: 14px;
    }
    .job-filter-sub {
        font-size: 11px;
    }
    .job-filter-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .job-filter-toggle {
        width: 28px;
        height: 28px;
    }

    /* চিপস মোবাইলে এক লাইনেই থাকবে, horizontal scroll করে — wrap করবে না */
    .job-chip-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 4px;
        padding-right: 36px;
        scrollbar-width: none;
    }
    .job-chip-row::-webkit-scrollbar {
        display: none;
    }
    .job-chip-label {
        flex-shrink: 0;
        font-size: 12px;
    }
    .job-chip {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 11px;
        padding: 5px 10px;
        gap: 4px;
    }

    /* ডান পাশে তীরচিহ্ন — বাকি চিপস আছে সেটা বোঝাবে, ক্লিক করলে স্ক্রল করবে */
    .job-chip-arrow {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 50% !important;
        background: #0B5E3B !important;
        color: #fff !important;
        border: none !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
        cursor: pointer;
        flex-shrink: 0;
        line-height: 1 !important;
    }
    .job-chip-arrow svg {
        display: block !important;
        width: 14px !important;
        height: 14px !important;
    }

    /* লাইভ স্ট্যাট সংখ্যা/লেবেল মোবাইলে ছোট করা, নাহলে বক্সের বাইরে চলে যায় */
    .job-stat {
        padding: 10px 6px;
    }
    .job-stat-num {
        font-size: 17px;
    }
    .job-stat-label {
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .job-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .job-chip-row { gap: 6px; }
}