/* Global Styles */
.tcat-job-overview p,
.tcat-job-overview h1,
.tcat-job-overview h2,
.tcat-job-overview h3,
.tcat-job-overview h4,
.tcat-job-overview h5,
.tcat-job-overview h6,
.tcat-job-overview ul,
.tcat-job-overview ol,
.tcat-job-overview li,
.tcat-job-overview div  {
    font-size: 17px !important;
    color: #003848 !important;
} 

#tcat-job-board-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
    height: 100vh;
}

/* Make job list narrower */
#tcat-job-list {
    flex: 1 1 30%;
    max-width: 30%;
    overflow-y: auto;
    height: 100vh;
}
#tcat-job-list h3{
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
    font-family: inherit; 
}

#tcat-job-list h2{
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
    font-family: inherit;
    color: #003848;
}

#tcat-job-list p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Make overview wider */
#tcat-job-overview {
    flex: 1 1 70%;
    max-width: 70%;
    overflow-y: auto;
    height: 100vh;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Ensure job card container list has no bullets */
#tcat-job-cards {
    list-style: none;
    padding-left: 0;
    margin: 0;
}


/* Filters */
#tcat-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

#tcat-filter-form select,
#tcat-filter-form button {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    flex: 1 1 100px;
}
#tcat-filter-form select{
    color: #003848;
}
#tcat-filter-form select:focus{
    border: 2px solid #003848;
    outline: none; /* Remove default black outline */
}


#tcat-filter-form button {
    background-color: #003848;
    color: white;
    border: none;
    cursor: pointer;
}

#tcat-filter-form button:hover {
    background-color: #0BB89C;
}

/* Job Cards */
.tcat-job-card {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
    margin-bottom: 15px;
    background: #fafafa;
    cursor: pointer;
}

.tcat-job-card:hover {
    border-color: #0073aa;
    background-color: #f0f8ff;
}

.tcat-job-card.selected {
    border-color: #0073aa;
    background-color: #e6f3ff;
}

/*location font color */
.location{
    color:#003848;

}
/* Highlight for Closing Date */
.closingDate {
    display: block;
    margin-top: 10px;
    background-color: #ecc082;;
    padding: 5px 8px;
    border-radius: 4px;
    font-weight: bold;
    width: fit-content;
    text-align: left; /* ensures inner text is left-aligned */
    margin-left: 0;    /* ensures no auto-centering */
    margin-right: auto
}
.tcat-job-card h3 {
    font-size: 18px;
    margin: 0 0 10px;
    font-weight: 600;
    line-height: 1.3;
    font-family: inherit;
    color: #003848;
}

/* Injected Overview Table */
#tcat-job-overview table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
    font-size: 14px;
}

#tcat-job-overview table td {
    padding: 8px;
    border: 1px solid #ddd;
    vertical-align: top;
}

#tcat-job-overview h2,
#tcat-job-overview h3{
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
    font-family: inherit;
    color: #003848;
}

/* Apply Button */
#tcat-job-overview .apply-now-button {
    padding: 12px 24px;
    background-color: #003848;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

#tcat-job-overview .apply-now-button:hover {
    background-color: #0BB89C;
}


#tcat-job-cards {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0;
}

#tcat-job-cards li {
    list-style-type: none !important;
}

#tcat-job-overview div {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Proper margin/padding for paragraphs */
#tcat-job-overview div p {
    margin-bottom: 1em;
    font-size: 1rem;
    line-height: 1.5;
    color: #003848!important;
}

/* Style unordered and ordered lists */
#tcat-job-overview div ul,
#tcat-job-overview div ol {
    padding-left: 1.5em;  /* Indent lists */
    margin-bottom: 1em;
    color: #003848!important;
}



/* Style list items */
#tcat-job-overview div li {
    margin-bottom: 0.5em;
    /* For multi-line list items, align text properly */
    text-indent: 0em;
    padding-left: 1em;
}

/* Optionally for nested lists */
#tcat-job-overview div ul ul,
#tcat-job-overview div ol ol {
    padding-left: 1.5em;
}
/* Sticky Apply Button inside overview container */
#tcat-job-overview .sticky-apply-wrapper {
    position: sticky;
    bottom: 0;
    padding: 10px 0 20px;
    text-align: left;
    z-index: 10;
    
}
label[for="tcat_job_description"] {
    display: block;
    margin-bottom: -9px;  /* reduce space */
}

#wp-tcat_job_description-wrap {
    margin-top: 0;
    padding-top: 0;
}




/* ============================= */
/* Responsive Design Enhancements */
/* ============================= */

@media (max-width: 1024px) {
    #tcat-job-board-wrapper {
         flex-wrap: wrap;
    }

    #tcat-job-list,
    #tcat-job-overview {
         flex: 1 1 100%;
        max-width: 100%;
        max-height: none;
        overflow-y: visible;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    #tcat-filter-form {
        flex: 1 1 150px;
        min-width: 130px;
        width: 85%;
    }

    #tcat-filter-form select,
    #tcat-filter-form button {
        width: 100%;
    }

    .tcat-job-card h3 {
        font-size: 16px;
    }

    #tcat-job-overview table td {
        font-size: 13px;
        padding: 6px;
    }

    #tcat-job-overview .apply-now-button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    #tcat-job-board-wrapper {
        flex-direction: column;
    }
    .tcat-panel {
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

@media (max-width: 480px) {
    .tcat-job-card {
        padding: 12px;
    }

    #tcat-job-overview table td {
        font-size: 12px;
    }
}
#tcat-job-list:hover {
    overscroll-behavior: contain;
}