﻿/* Base Layout & Typography */
.career-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a24;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Header & Divider */
.career-header {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out forwards;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 25px;
    color: #000000;
}

.title-divider {
    border: none;
    border-top: 1px solid #111827;
    margin: 0;
}

/* Status Toggle Switch */
.job-status-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.status-toggle {
    display: flex;
    background-color: #f3f4f6;
    border-radius: 30px;
    padding: 4px;
    position: relative;
}

.btn-toggle {
    background: transparent;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

    .btn-toggle.active {
        background-color: #ffffff;
        color: #000000;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transform: scale(1.02);
    }

    .btn-toggle:hover:not(.active) {
        color: #1a1a24;
    }

/* Main Grid Layout */
.career-grid {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Filters Sidebar */
.filters-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    width: 320px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 40px;
    animation: slideInLeft 0.7s ease-out 0.3s forwards;
    opacity: 0;
    transition: box-shadow 0.3s ease;
}

    .filters-card:hover {
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

.filters-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

    .filters-header h2 {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0;
        color: #111827;
    }

.filter-group {
    margin-bottom: 24px;
}

    .filter-group label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 10px;
        color: #111827;
    }

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .search-input-wrapper input {
        width: 100%;
        padding: 12px 35px 12px 12px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        font-size: 14px;
        outline: none;
        transition: all 0.3s ease;
        color: #3f3f46;
        background-color: #ffffff;
    }

        .search-input-wrapper input::placeholder {
            color: #6c757d;
            font-weight: 400;
        }

        .search-input-wrapper input:focus {
            border-color: #1e2540;
            box-shadow: 0 0 0 3px rgba(30, 37, 64, 0.1);
        }

.search-icon {
    position: absolute;
    right: 12px;
    color: #111827;
    transition: color 0.3s ease;
}

/* Job Cards Container */
.jobs-main-area {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex-grow: 1;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

    .job-card:nth-child(1) {
        animation-delay: 0.4s;
    }

    .job-card:nth-child(2) {
        animation-delay: 0.55s;
    }

    .job-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.1);
        border-color: #d1d5db;
    }

.job-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #01656b;
    margin: 0 0 12px 0;
    transition: color 0.2s;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 20px;
}

.divider {
    color: #d1d5db;
}

.job-description {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 30px;
}

/* Job Card Footer */
.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #01656b;
    font-size: 13px;
    font-weight: 500;
    cursor: default;
    transition: color 0.3s ease;
}

    /* Icon rotation animation */
    .history-icon svg {
        flex-shrink: 0;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Hover Effects for both Text and Icon */
    .history-icon:hover {
        color: #01656b; /* Darkens the text on hover */
    }

        .history-icon:hover svg {
            transform: rotate(-25deg) scale(1.1); /* Slight pop and tilt */
        }

.action-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-link {
    font-size: 13px;
    color: #1e2540;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

    .btn-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 1px;
        bottom: -2px;
        left: 0;
        background-color: #1e2540;
        transition: width 0.3s ease;
    }

    .btn-link:hover::after {
        width: 100%;
    }

.btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #01656b;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #01656b;
}

    .btn-primary:hover {
        background-color: white;
        box-shadow: 0 4px 12px rgba(30, 37, 64, 0.25);
        transform: translateY(-1px);
        color: #01656b!important;
    }
    .btn-primary:active {
        background-color: white;
        box-shadow: 0 4px 12px rgba(30, 37, 64, 0.25);
        transform: translateY(-1px);
        color: #01656b !important;
    }
    .btn-primary:focus {
        background-color: white;
        box-shadow: 0 4px 12px rgba(30, 37, 64, 0.25);
        transform: translateY(-1px);
        color: #01656b !important;
    }
/* Pagination Styles */
/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid #e5e7eb;
    animation: fadeInUp 0.6s ease-out 0.8s forwards;
    opacity: 0;
}

    .pagination-wrapper .page-numbers {
        display: flex;
        align-items: center;
        gap: 8px;
    }

.page-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 6px;
    color: #374151;
    margin-right: 10px;
    margin-left:10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .page-nav-btn:hover:not(:disabled) {
        background-color: #f9fafb;
        border-color: #9ca3af;
        color: #111827;
    }

    .page-nav-btn:disabled,
    .page-nav-btn.aspNetDisabled {
        opacity: 0.5;
        cursor: not-allowed;
        background-color: #f3f4f6;
    }

.page-num {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db; /* Adds the card border to all page numbers */
    background-color: #ffffff; /* Adds a white background */
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .page-num:hover:not(.active) {
        background-color: #f9fafb;
        border-color: #9ca3af;
        color: #111827;
    }

    .page-num.active {
        background-color: #01656b;
        border-color: #01656b; /* Matches border to the active teal background */
        color: #ffffff;
        box-shadow: 0 4px 10px rgba(30, 37, 64, 0.2);
    }

.page-dots {
    color: #01656b;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 0 4px;
}

/* Responsive constraints */
@media (max-width: 900px) {
    .pagination-wrapper {
        flex-wrap: wrap;
    }
}

/* Responsive constraints */
@media (max-width: 900px) {
    .career-grid {
        flex-direction: column;
    }

    .filters-card {
        width: 100%;
        position: static;
    }

    .pagination-wrapper {
        flex-wrap: wrap;
    }
}
/* --- Modern Accordion Sidebar Filters --- */
.filters-accordion-sidebar {
    background-color: #ffffff;
    border-radius: 12px;
    width: 320px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden; /* Contains the borders of the children */
    /* Crucial rules for a functional sticky sidebar */
    position: -webkit-sticky; /* For Safari compatibility */
    position: sticky;
    top: 40px;
    height: max-content;
    align-self: flex-start;
    z-index: 100;
    animation: slideInLeft 0.7s ease-out 0.3s forwards;
    opacity: 0;
}

.filters-header-alt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .title-wrap h2 {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0;
        color: #01656b;
    }

.btn-reset-filters {
    background: transparent;
    border: none;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s;
}

    .btn-reset-filters:hover {
        color: #ef4444; /* Subtle red hover for reset */
    }

/* Accordion Native Styles */
.filter-section-acc {
    border-bottom: 1px solid #e5e7eb;
}

    .filter-section-acc:last-child {
        border-bottom: none;
    }

.filter-title-acc {
    padding: 18px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #1e2540;
    cursor: pointer;
    list-style: none; /* Removes default arrow in modern browsers */
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color 0.2s;
}

    .filter-title-acc::-webkit-details-marker {
        display: none; /* Removes default arrow in Safari */
    }

    .filter-title-acc:hover {
        background-color: #fcfcfd;
    }

    .filter-title-acc .chevron {
        transition: transform 0.3s ease;
        color: #9ca3af;
    }

/* Rotate arrow when details is open */
.filter-section-acc[open] .filter-title-acc .chevron {
    transform: rotate(180deg);
}

.filter-content-acc {
    padding: 0 24px 20px 24px;
    animation: fadeInContent 0.3s ease-out;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chip Container Styles */
.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    padding: 6px 14px;
    background-color: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .filter-chip:hover {
        background-color: #e5e7eb;
    }

    .filter-chip.active {
        background-color: #01656b;
        color: #ffffff;
        border-color: #01656b;
    }

/* Custom Radio Buttons */
.radio-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-radio {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
    user-select: none;
    transition: color 0.2s;
}

    .custom-radio:hover {
        color: #111827;
    }

    .custom-radio input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

.radio-mark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #ffffff;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.custom-radio:hover input ~ .radio-mark {
    border-color: #9ca3af;
}

.custom-radio input:checked ~ .radio-mark {
    border-color: #1e2540;
}

.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1e2540;
}

.custom-radio input:checked ~ .radio-mark:after {
    display: block;
}

/* Location Search Input */
.search-input-alt {
    position: relative;
    display: flex;
    align-items: center;
}

    .search-input-alt input {
        width: 100%;
        padding: 10px 35px 10px 14px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        font-size: 14px;
        outline: none;
        transition: border-color 0.2s;
        background-color: #f9fafb;
    }

        .search-input-alt input:focus {
            border-color: #1e2540;
            background-color: #ffffff;
        }

    .search-input-alt .search-icon {
        position: absolute;
        right: 10px;
        pointer-events: none;
    }

/* Responsive adjustment */
@media (max-width: 900px) {
    .filters-accordion-sidebar {
        width: 100%;
        position: static;
    }
}

/* Main Grid Layout - Changed to Stack Vertically */
.career-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

/* Filters - Now Full Width (col-lg-12 equivalent) */
.filters-accordion-sidebar {
    background-color: #ffffff;
    border-radius: 12px;
    width: 100%; /* Forces full width */
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative; /* Removed sticky sidebar behavior */
    z-index: 100;
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
    opacity: 0;
    margin-bottom:50px;
}

/* Horizontal Grid Layout for Filter Sections */
.filters-row-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    background-color: #ffffff;
}

/* Adjust accordion borders for side-by-side layout */
.filter-section-acc {
    border-bottom: none;
    border-right: 1px solid #e5e7eb;
}

    .filter-section-acc:last-child {
        border-right: none;
    }

/* Job Cards Container */
.jobs-main-area {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%; /* Ensures it fills the container below filters */
}

/* Responsive adjustment for Mobile */
@media (max-width: 900px) {
    .filters-row-layout {
        grid-template-columns: 1fr; /* Stack filters vertically on small screens */
    }

    .filter-section-acc {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

        .filter-section-acc:last-child {
            border-bottom: none;
        }
}

/* 1. Ensure the Bootstrap columns enable their children to stretch */
.jobs-list .row > div[class*="col-"] {
    display: flex;
    margin-bottom: 30px; /* Adds vertical spacing between stacked rows */
}

/* 2. Update the job-card to be a flex container that fills the height */
.job-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    /* Existing styles remain below */
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* 3. Push the footer to the very bottom of the card */
.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* This forces the footer down, absorbing empty space */
}

@media only screen and (max-width: 600px)  {

    .job-meta{
        flex-wrap:wrap!important;
    }
    .job-title{
        font-size:1.1rem!important;
    }
    .tp-breadcrumb-s2-ptb {
        height: 100vh!important;
    }
}


#MainContent_dpJobs{
    display:flex;
    justify-content:center;
    align-content:center;
    align-items:center;
}

.tp-breadcrumb-s2-ptb{
    height:70vh;
}