#contactButton {
    display: none;
}



/* CSS Variables for job cards */
:root {
    --text-dark: #333;
    --text-light: #666;
    --background-light: #f8f9fa;
    --white-color: #fff;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-color: #e9ecef;
}

.jobs-container {
    margin: 0 auto;
    padding-top: 80px;
    padding-bottom: 80px;
    padding-left: 20px;
    padding-right: 20px;
}

.jobs-header {
    text-align: center;
    margin-bottom: 40px;
}

.text-gradient {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    -webkit-background-clip: text;
    margin-bottom: 1rem;
}

.jobs-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin: 0 auto;
    line-height: 1.7;
}

/* NEW: Styles for the view toggle buttons with capsule design */
.view-toggle {
    display: flex;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 4px;
    border: 1px solid #e9ecef;
    position: relative;
    margin-left: auto;
}

.view-btn {
    background-color: transparent;
    border: none;
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    color: #EFC426;
}

.view-btn.active {
    color: #000;
    background-color: #EFC426;
    box-shadow: 0 2px 8px rgba(239, 196, 38, 0.3);
    transform: scale(1.05);
}

/* Sliding background effect for active state */
.view-toggle::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background-color: #EFC426;
    border-radius: 50px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.view-toggle.list-active::before {
    transform: translateX(100%);
}

/* End of new styles */

/* NEW: Search and Filter Styles */
.search-filter-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.search-filter-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 2.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #EFC426;
    box-shadow: 0 0 0 3px rgba(239, 196, 38, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.9rem;
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: #EFC426;
    background-color: rgba(239, 196, 38, 0.1);
}

.search-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.filter-box {
    position: relative;
    min-width: 200px;
}

.department-select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.department-select:focus {
    outline: none;
    border-color: #EFC426;
    box-shadow: 0 0 0 3px rgba(239, 196, 38, 0.1);
}

.filter-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.9rem;
    pointer-events: none;
}



.results-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

@media (max-width: 768px) {
    .search-filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box,
    .filter-box {
        min-width: auto;
    }
    
    .view-toggle {
        margin-left: 0;
        margin-top: 1rem;
        align-self: center;
    }
}

.job-listings {
    display: grid;
    /* Default is grid view with 3 cards per row */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-content: center;
}

.job-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    animation: fadeInUp 0.5s ease-in-out forwards;
    opacity: 0;
    width: 100%;
    min-height: 300px;
    height: auto;
    position: relative;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(239, 196, 38, 0.3), 0 4px 20px rgba(239, 196, 38, 0.2), 0 2px 15px rgba(239, 196, 38, 0.1);
}

/* NEW: Job field tag styles */
.job-field-tag {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #e9ecef;
    z-index: 10;
}

/* NEW: Wrapper for content to help with list view layout */
.job-card-content {
    flex-grow: 1;
    margin-top: 2.5rem; /* Space for the field tag */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.5rem;
}

/* NEW: Job title section for grid and list view */
.job-title-section {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Grid view: tags under the title */
.job-title-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* List view: tags to the right of the title */
.job-listings.list-view .job-title-section {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.job-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    flex: 1;
    line-height: 1.3;
}

/* NEW: Job roles tags styles */
.job-roles-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.job-role-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--background-light);
    border: 1px solid transparent;
    position: relative;
    cursor: pointer;
    color: var(--text-dark);
    text-transform: none;
    letter-spacing: normal;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.job-role-tag:hover {
    background-color: #e9ecef;
}

.job-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

/* Grid view: tags under the title */
.job-meta-tags {
    margin-bottom: 1.5rem;
}

/* List view: tags to the right of the title */
.job-listings.list-view .job-meta-tags {
    margin-bottom: 0;
    margin-left: auto;
}

.job-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--background-light);
    border: 1px solid transparent;
    position: relative;
    cursor: pointer;
}

.job-tag i {
    color: var(--text-light);
}

.job-tag::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-dark);
    color: var(--white-color);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    font-size: 0.75rem;
    z-index: 10;
}

.job-tag:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.apply-btn {
    display: inline-block;
    background: #EFC426;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto; /* Pushes button to bottom in grid view */
    margin-left: auto; /* Pushes button to right */
    position: relative;
    overflow: hidden;
    border: 1px solid #EFC426;
    min-width: 120px;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 196, 38, 0.4);
}

/* NEW: List View Specific Styles */
.job-listings.list-view {
    grid-template-columns: 1fr; /* Override grid to be a single column */
    gap: 1rem;
}

.job-listings.list-view .job-card {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    height: auto;
    min-height: 120px;
}

.job-listings.list-view .job-field-tag {
    position: static;
    margin-right: 1rem;
}

.job-listings.list-view .job-card-content {
    margin-top: 0;
    flex-grow: 1;
}

.job-listings.list-view .job-title-section {
    margin-bottom: 0.5rem;
}

.job-listings.list-view .job-title {
    margin-bottom: 0;
}

.job-listings.list-view .job-meta-tags {
    margin-bottom: 0;
}

.job-listings.list-view .job-roles-tags {
    margin-bottom: 0;
}

.job-listings.list-view .apply-btn {
    margin-top: 0;
    margin-left: auto; /* Push button to the far right */
    white-space: nowrap; /* Prevent button text from wrapping on smaller screens */
}
/* End of new styles */

@media (max-width: 768px) {
    .jobs-header h1 {
        font-size: 2.5rem;
    }
    .jobs-header p {
        font-size: 1rem;
    }
    .job-listings {
        grid-template-columns: 1fr;
    }
    .job-card {
        width: 100%;
        min-height: 300px;
        height: auto;
    }
    /* NEW: Adjust list view card for mobile */
    .job-listings.list-view .job-card {
        flex-direction: column;
        align-items: stretch;
    }
    .job-listings.list-view .apply-btn {
       margin-left: 0;
       margin-top: 1.5rem; /* Add space between content and button */
    }
    .job-listings.list-view .job-field-tag {
        position: absolute;
        top: 1rem;
        left: 1rem;
    }
    .job-listings.list-view .job-card-content {
        margin-top: 2.5rem;
    }
    /* NEW: Responsive styles for roles tags */
    .job-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .job-listings.list-view .job-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .job-meta-tags {
        gap: 0.4rem;
    }
    .job-listings.list-view .job-meta-tags {
        margin-left: 0;
    }
    .job-role-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .job-listings {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 3840px) and (min-width: 1920px) {
    .job-listings {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1919px) and (min-width: 1366px) {
    .job-listings {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1365px) and (min-width: 1024px) {
    .job-listings {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1023px) and (min-width: 769px) {
    .job-listings {
        grid-template-columns: repeat(2, 1fr);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-card:nth-child(1) { animation-delay: 0.1s; }
.job-card:nth-child(2) { animation-delay: 0.2s; }
.job-card:nth-child(3) { animation-delay: 0.3s; }

/* Salary Note Styles */
.salary-note {
    display: flex;
    align-items: center;
    margin-top: 12px;
    padding: 8px 12px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #856404;
}

.salary-dot {
    width: 8px;
    height: 8px;
    background-color: #EFC426;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.salary-text {
    font-weight: 500;
    line-height: 1.4;
}

/* Responsive adjustments for salary note */
@media (max-width: 768px) {
    .salary-note {
        margin-top: 10px;
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .salary-dot {
        width: 6px;
        height: 6px;
        margin-right: 6px;
    }
}
.department-select option:hover, .department-select option:focus {
    background-color: inherit;
    color: #EFC426;
}