/*
 * Job Categories Widget - Consolidated CSS
 * VooCareer Theme
 * Contains all Job Categories/Sectors widget styling and modern enhancements
 * 
 * Style Variations:
 *   - styletwo: Icon circles with colored backgrounds
 *   - stylethree: Full-width overlay cards
 *   - stylefour: Image cards with gradient overlay
 *   - stylefive: Grid layout with icons/images (current homepage style)
 * 
 * Version: 1.0.0
 */

/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */

:root {
    /* Job Categories Primary Colors */
    --jc-primary: #13b5ea;
    --jc-primary-hover: #0d9fd0;
    --jc-secondary: #e81c28;
    --jc-text-dark: #333333;
    --jc-text-muted: #999999;
    --jc-bg-white: #ffffff;
    --jc-border-light: #ececec;

    /* Icon Color Palette */
    --jc-icon-blue: #5e9ef6;
    --jc-icon-green: #76c58b;
    --jc-icon-darkgray: #8294b9;
    --jc-icon-orange: #82c84a;
    --jc-icon-gray: #97989c;
    --jc-icon-purple: #6d8cf3;
    --jc-icon-yellow: #e6c867;
    --jc-icon-red: #f15685;
}

/* ==========================================================================
   2. BASE STYLES - ALL VARIATIONS
   ========================================================================== */

.careerfy-categories {
    float: left;
    width: 100%;
}

.careerfy-categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.careerfy-categories ul li {
    list-style: none;
    line-height: 1;
}

/* Section Title Styling */
#jobsearch-findby-sectors {
    position: relative;
}

/* ==========================================================================
   3. STYLE TWO - ICON CIRCLES
   ========================================================================== */

.careerfy-categories-styletwo {
    text-align: left;
}

.careerfy-categories-styletwo a {
    float: left;
    width: 100%;
}

.careerfy-categories-styletwo ul li {
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    float: none;
    display: inline-block;
    margin-right: -4px;
    vertical-align: top;
    text-align: center;
}

.careerfy-categories-styletwo ul li>a {
    padding-top: 44px;
    padding-bottom: 44px;
    display: block;
    transition: all 0.3s ease-in-out;
}

.careerfy-categories-styletwo ul li:nth-last-of-type(3),
.careerfy-categories-styletwo ul li:nth-last-of-type(2),
.careerfy-categories-styletwo ul li:nth-last-of-type(1) {
    border-bottom: none;
}

/* Style Two - Icon */
.careerfy-categories-styletwo i {
    display: inline-block;
    width: 119px;
    height: 119px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--jc-icon-blue) 0%, #4a8de0 100%);
    border-radius: 80px;
    font-size: 60px;
    padding-top: 24px;
    margin-bottom: 23px;
    box-shadow: 0 8px 25px rgba(94, 158, 246, 0.3);
    transition: all 0.4s ease-in-out;
}

.careerfy-categories-styletwo ul li:hover i {
    transform: rotateY(160deg) scale(1.05);
    box-shadow: 0 12px 35px rgba(94, 158, 246, 0.4);
}

/* Style Two - Text */
.careerfy-categories-styletwo span {
    display: block;
    color: var(--jc-text-dark);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.careerfy-categories-styletwo ul li:hover span {
    color: var(--jc-primary);
}

span.careerfy-categories-styletwo-image {
    display: inline-block;
    width: 119px;
    height: 119px;
    border-radius: 100%;
    background: center/cover;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease-in-out;
}

.careerfy-categories-styletwo ul li:hover span.careerfy-categories-styletwo-image {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.careerfy-categories-styletwo small {
    color: var(--jc-text-muted);
    font-size: 12px;
}

/* Style Two - Color Variations */
.careerfy-categories-styletwo .green i {
    background: linear-gradient(135deg, var(--jc-icon-green) 0%, #5eb075 100%);
    box-shadow: 0 8px 25px rgba(118, 197, 139, 0.3);
}

.careerfy-categories-styletwo .darkgray i {
    background: linear-gradient(135deg, var(--jc-icon-darkgray) 0%, #6a7ca3 100%);
    box-shadow: 0 8px 25px rgba(130, 148, 185, 0.3);
}

.careerfy-categories-styletwo .orange i {
    background: linear-gradient(135deg, var(--jc-icon-orange) 0%, #6ab038 100%);
    box-shadow: 0 8px 25px rgba(130, 200, 74, 0.3);
}

.careerfy-categories-styletwo .gray i {
    background: linear-gradient(135deg, var(--jc-icon-gray) 0%, #7f8084 100%);
    box-shadow: 0 8px 25px rgba(151, 152, 156, 0.3);
}

.careerfy-categories-styletwo .blue i {
    background: linear-gradient(135deg, var(--jc-icon-purple) 0%, #5574dd 100%);
    box-shadow: 0 8px 25px rgba(109, 140, 243, 0.3);
}

.careerfy-categories-styletwo .yellow i {
    background: linear-gradient(135deg, var(--jc-icon-yellow) 0%, #d0b255 100%);
    box-shadow: 0 8px 25px rgba(230, 200, 103, 0.3);
}

.careerfy-categories-styletwo .red i {
    background: linear-gradient(135deg, var(--jc-icon-red) 0%, #d9446d 100%);
    box-shadow: 0 8px 25px rgba(241, 86, 133, 0.3);
}

/* ==========================================================================
   4. STYLE THREE - OVERLAY CARDS
   ========================================================================== */

.careerfy-categories-stylethree ul li {
    padding: 0px;
}

.careerfy-categories-stylethree-wrap {
    float: left;
    width: 100%;
    height: 240px;
    position: relative;
    text-align: center;
    overflow: hidden;
    border-radius: 12px;
}

.careerfy-categories-stylethree span {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    opacity: 0.85;
    background: linear-gradient(135deg, #293180 0%, #1a2060 100%);
    transition: opacity 0.3s ease;
}

.careerfy-categories-stylethree-wrap:hover span {
    opacity: 0.9;
}

.careerfy-categories-stylethree-wrap:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.careerfy-categories-stylethree-icon {
    position: absolute;
    left: 5px;
    bottom: 5px;
    font-size: 100px;
    color: #ffffff;
    opacity: 0.15;
    transition: all 0.4s ease-in-out;
}

.careerfy-categories-stylethree-wrap:hover .careerfy-categories-stylethree-icon {
    transform: scale(1.1);
    opacity: 0.2;
}

.careerfy-categories-stylethree-text {
    display: inline-block;
    hyphens: auto;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    width: 90%;
    padding: 0px;
    vertical-align: middle;
    white-space: normal;
    position: relative;
}

.careerfy-categories-stylethree-text p {
    font-size: 30px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.careerfy-categories-stylethree-wrap:hover .careerfy-categories-stylethree-text p {
    transform: translateY(-3px);
}

.careerfy-categories-stylethree-text small {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.careerfy-categories-stylethree-text p strong,
.careerfy-categories-stylethree-text small {
    color: #ffffff;
}

/* ==========================================================================
   5. STYLE FOUR - IMAGE CARDS WITH GRADIENT
   ========================================================================== */

.careerfy-categories-stylefour figure,
.careerfy-categories-stylefour figure>a,
.careerfy-categories-stylefour figure img {
    float: left;
    width: 100%;
}

.careerfy-categories-stylefour>ul>li {
    margin-bottom: 30px;
}

.careerfy-categories-stylefour figure {
    margin-bottom: 0px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.careerfy-categories-stylefour figure img {
    transition: transform 0.5s ease;
}

.careerfy-categories-stylefour figure:hover img {
    transform: scale(1.1);
}

.careerfy-categories-stylefour figcaption {
    position: absolute;
    left: 0px;
    bottom: 0px;
    width: 100%;
    z-index: 2;
    text-align: center;
    padding: 0px 10px 20px 10px;
    transition: transform 0.3s ease;
}

.careerfy-categories-stylefour figure:hover figcaption {
    transform: translateY(-5px);
}

.careerfy-categories-stylefour figure:before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    z-index: 1;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 36%, rgba(0, 0, 0, 0.31) 58%, rgba(0, 0, 0, 0.85) 100%);
    transition: all 0.325s linear;
}

.careerfy-categories-stylefour figcaption h2 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.careerfy-categories-stylefour figure:hover figcaption h2 a {
    color: var(--jc-primary);
}

.careerfy-categories-stylefour figcaption h2 {
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 7px;
    font-weight: 600;
}

.careerfy-categories-stylefour figcaption span {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-size: 14px;
}

/* ==========================================================================
   6. STYLE FIVE - GRID WITH ICONS/IMAGES (CURRENT HOMEPAGE)
   ========================================================================== */

.careerfy-categories-stylefive ul li {
    float: none;
    display: inline-block;
    vertical-align: top;
    margin-right: -4px;
    width: 16.66666667%;
    list-style: none;
    border-left: 1px solid var(--jc-border-light);
    border-bottom: 1px solid var(--jc-border-light);
}

.careerfy-categories-stylefive ul li:nth-child(7n),
.careerfy-categories-stylefive ul li:first-child {
    border-left: none;
}

.careerfy-categories-stylefive ul li:nth-child(7n),
.careerfy-categories-stylefive ul li:nth-child(8n),
.careerfy-categories-stylefive ul li:nth-child(9n),
.careerfy-categories-stylefive ul li:nth-child(10n),
.careerfy-categories-stylefive ul li:nth-child(11n),
.careerfy-categories-stylefive ul li:nth-child(12n) {
    border-bottom: none;
}

.careerfy-categories-stylefive-wrap {
    float: left;
    width: 100%;
    text-align: center;
    padding: 35px 15px;
    background-color: var(--jc-bg-white);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease-in-out;
}

/* Modern Hover Effect - Scale with Shadow */
li:hover .careerfy-categories-stylefive-wrap {
    box-shadow: 0 10px 40px rgba(19, 181, 234, 0.15);
    transform: scale(1.08);
    z-index: 10;
    border-radius: 12px;
}

/* Style Five - Icon */
.careerfy-categories-stylefive-wrap i {
    font-size: 50px;
    margin-bottom: 25px;
    display: inline-block;
    color: var(--jc-primary);
    transition: all 0.3s ease-in-out;
}

li:hover .careerfy-categories-stylefive-wrap i {
    transform: scale(1.15);
    color: var(--jc-primary-hover);
}

/* Style Five - Image */
.careerfy-categories-stylefive img {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    object-fit: contain;
    transition: all 0.3s ease-in-out;
    filter: grayscale(0%) brightness(1);
}

li:hover .careerfy-categories-stylefive-wrap img {
    transform: scale(1.15) translateY(-3px);
    filter: grayscale(0%) brightness(1.1);
}

/* Style Five - Title */
.careerfy-categories-stylefive-wrap span.jobcat-title {
    display: block;
    font-size: 14px;
    color: var(--jc-text-dark);
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

li:hover .careerfy-categories-stylefive-wrap span.jobcat-title {
    color: var(--jc-primary);
}

/* Style Five - Job Count Badge (if present) */
.careerfy-categories-stylefive-wrap small {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    background: rgba(19, 181, 234, 0.1);
    color: var(--jc-primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s ease;
}

li:hover .careerfy-categories-stylefive-wrap small {
    background: var(--jc-primary);
    color: #ffffff;
}

/* ==========================================================================
   7. VIEW MORE BUTTON
   ========================================================================== */

.jobsearch-jobcates-btn {
    text-align: center;
    margin-top: 30px;
}

.jobsearch-jobcates-btn a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--jc-primary) 0%, var(--jc-primary-hover) 100%);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(19, 181, 234, 0.3);
    transition: all 0.3s ease-in-out;
}

.jobsearch-jobcates-btn a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(19, 181, 234, 0.4);
}

/* ==========================================================================
   8. RESPONSIVE STYLES
   ========================================================================== */

@media only screen and (max-width: 1199px) {
    .careerfy-categories-stylefive ul li {
        width: 25%;
    }

    .careerfy-categories-stylefive ul li:nth-child(5n) {
        border-left: none;
    }
}

@media only screen and (max-width: 991px) {
    .careerfy-categories-stylefive ul li {
        width: 33.333%;
    }

    .careerfy-categories-stylefive ul li:nth-child(4n) {
        border-left: none;
    }

    .careerfy-categories-styletwo i,
    span.careerfy-categories-styletwo-image {
        width: 100px;
        height: 100px;
        font-size: 50px;
    }

    .careerfy-categories-stylethree-wrap {
        height: 200px;
    }

    .careerfy-categories-stylethree-text p {
        font-size: 24px;
    }
}

@media only screen and (max-width: 768px) {
    .careerfy-categories-stylefive ul li {
        width: 50%;
    }

    .careerfy-categories-stylefive ul li:nth-child(odd) {
        border-left: none;
    }

    .careerfy-categories-stylefive-wrap {
        padding: 25px 12px;
    }

    .careerfy-categories-stylefive img {
        width: 48px;
        height: 48px;
    }

    .careerfy-categories-stylefive-wrap span.jobcat-title {
        font-size: 13px;
    }

    li:hover .careerfy-categories-stylefive-wrap {
        transform: scale(1.03);
    }

    .careerfy-categories-styletwo ul li>a {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .careerfy-categories-styletwo i,
    span.careerfy-categories-styletwo-image {
        width: 80px;
        height: 80px;
        font-size: 40px;
        padding-top: 18px;
    }

    .careerfy-categories-stylefour figcaption h2 {
        font-size: 16px;
    }
}

@media only screen and (max-width: 480px) {
    .careerfy-categories-stylefive ul li {
        width: 100%;
        border-left: none;
        border-right: none;
    }

    .careerfy-categories-stylefive-wrap {
        padding: 20px 15px;
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
    }

    .careerfy-categories-stylefive img {
        margin-bottom: 0;
        width: 40px;
        height: 40px;
    }

    .careerfy-categories-stylefive-wrap i {
        margin-bottom: 0;
        font-size: 36px;
    }

    li:hover .careerfy-categories-stylefive-wrap {
        transform: none;
        box-shadow: 0 4px 15px rgba(19, 181, 234, 0.1);
    }

    .careerfy-categories-stylethree-wrap {
        height: 160px;
    }

    .careerfy-categories-stylethree-text p {
        font-size: 20px;
    }

    .careerfy-categories-stylethree-text small {
        font-size: 14px;
    }
}