/*
 Theme Name:   Superio Child
 Theme URI:    https://themeforest.net/item/superio-job-board-wordpress-theme/32180231
 Description:  Superio Child Theme
 Author:       ApusTheme
 Author URI:   http://apusthemes.com
 Template:     superio
 Version:      1.0.0
 Text Domain:  superio-child
*/



.text-theme
 {
    color: #f9ab00 !important;
}
.megamenu > li > a {
    display: inline-block;
    font-size: 26px;
    font-weight: normal;
    padding: 12px 0;
    background: transparent !important;
    -webkit-transition: all 0.3s ease-in-out 0s;
    -o-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
    position: relative;
}

.megamenu .dropdown-menu li > a {
    font-size: 17px;
}

blockquote {
    background-color: #F0F5F7;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    color: #202124;
    font-size: 20px;
    font-style: italic;
    border: 0;
    padding: 10px 15px;
    font-style: italic;
    margin-bottom: 20px;
}

.sliding-menu li .sliding-menu__nav, .sliding-menu li a {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.75;
    padding: 12px 20px;
    background-color: transparent !important;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    color: #979797;
}


.apus-offcanvas {
    visibility: hidden;
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    -o-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-transition: all 0.2s ease-in-out 0s;
    -o-transition: all 0.2s ease-in-out 0s;
    transition: all 0.2s ease-in-out 0s;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999991;
    width: 350px;
    background-color: #162b68;
    color: #979797;
    height: 100%;
    max-width: 85%;
    overflow-x: auto;
    display: -webkit-flex;
    display: flex;
}


.btn {
    display: inline-block;
    margin-bottom: 0;
    font-weight: 400;
    font-family: var(--superio-main-font);
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    white-space: nowrap;
    letter-spacing: 0;
    padding: 9px 30px;
    font-size: 18px;
    line-height: 2;
    border-radius: 8px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-transition: all 0.3s ease-in-out 0s;
    -o-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
}



.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 28px;
    font-size: 18px;
}

.filter-listing-form.horizontal .form-control {
    background: transparent;
    border-color: transparent !important;
    font-size: 18px;
}


.period-job {
    display: inline-block;
    color: var(--superio-theme-color);
    font-size: 16px;
    background: rgba(110, 219, 29, 0.2);
    border-radius: 50px;
        -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
    padding: 5px 20px;
}

.job-list.v6 .type-job, .job-list.v6 .period-job {
    padding: 5px 15px;
    font-size: 16px;
}

.job-detail-header.v7 .type-job, .job-detail-header.v7 .period-job {
    padding: 5px 15px;
    font-size: 14px;
    background: #fff;
}


.job-metas-detail {
    font-size: 18px;
}

.job-metas {
    color: #696969;
    font-size: 16px;
}

.type-job {
    display: inline-block;
    color: var(--superio-theme-color);
    background: var(--superio-theme-color-015);
    border-radius: 50px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
    padding: 3px 20px;
    font-size: 16px;
}


.job-cat-menu-list .cat-menu-item a:hover {
    color: #eab308 !important; /* ប្តូរជាពណ៌លឿងចាស់ ឬពណ៌ Theme របស់អ្នកពេល Hover */
}
.job-cat-menu-list .cat-menu-item a:hover .cat-count {
    background-color: #eab308 !important;
    color: #ffffff !important;
}


.view-all-cats-btn-box .btn-view-all-cats:hover {
    background-color: #ca8a04 !important; /* ពណ៌លឿងឌិតជាងមុន */
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}


/* --- រៀបចំប្លុកឱ្យនៅចំកណ្តាល --- */
.custom-job-download {
    display: flex !important;
    justify-content: center !important; /* រុញទៅកណ្តាល */
    align-items: center !important;
    gap: 12px;
    width: 100%;
}

/* ==========================================
   ១. ស្ទីលសម្រាប់ប៊ូតុង "ទាញយកឯកសារ" (ប៊ូតុងទី១)
   ========================================== */
/* លាក់អក្សរ download ដើមរបស់ plugin តែមិនឱ្យប៉ះពាល់ប៊ូតុង preview ទេ */
.custom-job-download a.wpdm-download-link.btn:not(.btn-preview) {
    font-size: 0 !important; 
    content: none !important;
}

.custom-job-download a.wpdm-download-link.btn:not(.btn-preview)::before {
    content: "សំណើសុំប្រើប្រាស់" !important;
    font-size: 16px !important;
    font-family: 'Kantumruy Pro', sans-serif !important;
}

.custom-job-download a.wpdm-download-link.btn:not(.btn-preview)::after {
    content: "\f019" !important; /* Icon ទាញយក */
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 600 !important;
    margin-left: 10px !important;
    font-size: 16px !important;
}


/* ==========================================
   ២. ស្ទីលសម្រាប់ប៊ូតុង "អានឯកសារ" (ប៊ូតុងទី២)
   ========================================== */
.custom-job-download .btn-preview {
    font-size: 16px !important; /* បើកទំហំអក្សរឱ្យឃើញពាក្យ "អានឯកសារ" */
    font-family: 'Kantumruy Pro', sans-serif !important;
  background-color: #eab308 !important; /* ពណ៌លឿងចាស់ (ទម្រង់បែប Gold/Amber) */
    color: #ffffff !important; /* អក្សរពណ៌ស (បើចង់បានអក្សរពណ៌ខ្មៅដូរទៅជា #000000) */
    border: 1px solid #eab308 !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    height: auto !important;
    transition: all 0.3s ease !important;
}

/* បន្ថែម Icon សៀវភៅ ទៅខាងក្រោយពាក្យ អានឯកសារ */
.custom-job-download .btn-preview::after {
    content: "\f518" !important; /* កូដ Icon សៀវភៅ (Book Reader) ក្នុង Font Awesome 5 */
    font-family: "Font Awesome 5 Free" !important;
   font-weight: 600 !important;
    margin-left: 10px !important;
    font-size: 16px !important;
}

/* បិទកូដ ::before មិនឱ្យចេញពាក្យ សំណើសុំប្រើប្រាស់ ជាន់លើប៊ូតុងនេះ */
.custom-job-download .btn-preview::before {
    content: none !important;
}

/* Hover Effect ពេលដាក់ម៉ៅស៍ពីលើ */
.custom-job-download .btn-preview:hover {
   background-color: #ca8a04 !important; /* លឿងក្រម៉ៅពេល Hover */
    border-color: #ca8a04 !important;
    color: #ffffff !important;
}
.custom-job-download a.wpdm-download-link.btn:not(.btn-preview):hover {
    background-color: #1d4ed8 !important; /* ពណ៌ខៀវឌិតជាងមុន (ដូរលេខកូដពណ៌នេះបានតាមចិត្ត) */
    border-color: #1d4ed8 !important;     /* ប្តូរពណ៌ខ្សែបន្ទាត់ជុំវិញឱ្យឌិតដូចគ្នា */
    color: #ffffff !important;            /* រក្សាពណ៌អក្សរឱ្យនៅពណ៌ស */
    opacity: 0.95;                         /* បន្ថែមពន្លឺឱ្យមើលទៅមានចលនាស្រទន់ */
}




/* ==========================================
   ១. ទម្រង់ GRID VIEW (លំនាំដើម)
   ========================================== */
.superio-cat-main-wrapper.view-mode-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
}

.view-mode-grid .job-cat-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px 15px !important; /* ថែមគម្លាតខាងក្នុងឱ្យមានរបៀប */
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.view-mode-grid .cat-grid-link {
    display: flex;
    flex-direction: column;
    align-items: center; /* រុញខ្លឹមសារទាំងអស់ឱ្យនៅចំកណ្តាលជួរឈរ */
    height: 100%;
}

.view-mode-grid .cat-grid-img-box {
    width: 90px !important;       /* កំណត់ទំហំទទឹងរង្វង់ */
    height: 90px !important;      /* កំណត់កម្ពស់រង្វង់ (ត្រូវតែប៉ុនទទឹង) */
    border-radius: 50% !important;/* បង្ខំឱ្យជារាងរង្វង់មូលដាច់ខាត */
    overflow: hidden !important;
    margin: 0 auto 15px auto !important; /* រុញកណ្តាល និងបង្កើតគម្លាតចុះក្រោម */
    border: 3px solid #f1f5f9;    /* ថែមខ្សែបន្ទាត់ព័ទ្ធជុំវិញរូបភាពឱ្យមើលទៅស្អាត */
    background: #f8fafc;
    transition: all 0.3s ease;
}

.view-mode-grid .cat-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* ការពារកុំឱ្យរូបភាពរំប៉ើង ឬទាញខូចរាង */
}

/* ពេល Hover លើប្រអប់ ឱ្យរង្វង់រូបភាពប្តូរពណ៌ខ្សែព័ទ្ធជុំវិញ */
.view-mode-grid .job-cat-item-card:hover .cat-grid-img-box {
    border-color: #eab308;        /* ដូរជាពណ៌លឿងចាស់ */
}

/* ឈ្មោះ Category នៅក្នុង Grid */
.view-mode-grid .cat-grid-title {
    font-size: 18px !important;
    margin: 10px 0 !important;    /* រៀបចំគម្លាតឱ្យមានសណ្តាប់ធ្នាប់ */
    width: 100%;
}

/* ប្រអប់ប៊ូតុងចំនួនការងារ */
.view-mode-grid .cat-grid-count-box {
    margin-top: auto !important;  /* រុញប៊ូតុងឱ្យនៅបាតក្រោមស្មើគ្នានៅគ្រប់ប្រអប់ */
    padding-top: 10px;
}


/* ==========================================
   ២. ទម្រង់ LIST VIEW (ពេលចុចប្តូរទៅ List)
   ========================================== */
.superio-cat-main-wrapper.view-mode-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
}

.view-mode-list .job-cat-item-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    width: 100% !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

.view-mode-list .cat-grid-link {
    display: flex !important;
    flex-direction: row !important; /* បង្ខំឱ្យរត់ជួរដេក */
    align-items: center !important;
    padding: 12px 20px !important;
    text-align: left !important;
    width: 100% !important;
}

.view-mode-list .cat-grid-img-box {
    width: 50px !important; /* កម្រិតរូបភាពឱ្យតូច */
    height: 50px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    margin-right: 20px !important;
    flex-shrink: 0 !important;
}

.view-mode-list .cat-card-content {
    display: flex !important;
    justify-content: space-between !important; /* ឈ្មោះនៅឆ្វេង ចំនួននៅស្តាំ */
    align-items: center !important;
    width: 100% !important;
}

.view-mode-list .cat-grid-title {
    font-size: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.view-mode-list .cat-grid-count-box {
    margin: 0 !important;
}

/* ==========================================
   ៣. ស្ទីលរួម (ប៊ូតុង និងការ Hover)
   ========================================== */
.job-cat-item-card:hover {
    border-color: #eab308 !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08) !important;
}
.cat-grid-img {
    width: 100%; height: 100%; object-fit: cover;
}
.cat-grid-title { font-family: 'Kantumruy Pro', sans-serif !important; color: #1e293b !important; font-weight: 600 !important;}
.cat-grid-count-btn { display: inline-block; background-color: #f1f5f9; color: #475569; font-family: 'Kantumruy Pro', sans-serif; font-size: 16px; padding: 5px 14px; border-radius: 20px;}
.job-cat-item-card:hover .cat-grid-count-btn { background-color: #eab308; color: #fff;}

/* ស្ទីលប៊ូតុងស្វីត switcher */
.cat-view-switcher .view-btn {
    background-color: #ffffff;
    color: #475569;
    transition: all 0.2s ease;
}
.cat-view-switcher .view-btn.active {
    background-color: #eab308 !important; /* ពណ៌លឿងចាស់ពេល Active */
    color: #ffffff !important;
    font-weight: bold;
}
input#cat-search-input:focus { outline: none; border-color: #eab308 !important; box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.15);}

/* រៀបចំប៊ូតុង Switcher ឱ្យបង្ហាញ Icon និងអក្សររៀបរយ */
.cat-view-switcher .view-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important; /* បង្កើតគម្លាតរវាង Icon និង អក្សរ */
    font-family: 'Kantumruy Pro', sans-serif !important;
}

/* បន្ថែមទំហំ និងពន្លឺសម្រាប់ Icon តិចៗ */
.cat-view-switcher .view-btn i {
    font-size: 14px !important;
    font-weight: 900 !important; /* បង្ខំឱ្យចេញជា Font Awesome Solid Icon */
}

/* បង្ខំគ្រប់រូបភាពនៅក្នុង Tag <a> នៃ Menu ទាំងអស់ 
[class*="menu"] ul li a img,
[class*="sliding"] ul li a img {
    width: 32px !important;
    max-width: 32px !important;
    height: auto !important;
}*/

.sliding-menu ul li a img, .menu-main-menu-container ul li a img {
    width: 48px !important;
    max-width: 42px !important;
    height: auto !important;
    margin-right: 8px !important; /* បង្កើតគម្លាតរវាង Icon និង អក្សរ */
}
.megamenu>li>a .fa, .megamenu>li>a img {
    max-width: 50px;
    margin-left: 3px;
    margin-right: 5px !important;
}