/* Vysak Custom Styles */

/* ==========================================================================
   Terms & Conditions Page Tabbed Layout
   ========================================================================== */

.terms-page-section {
    padding: 100px 0;
    background-color: #ffffff;
}

/* Tab Navigation container */
.terms-tabs-nav {
    display: flex;
    justify-content: flex-start;
    gap: 48px;
    /* generous spacing between tab options */
    border-bottom: 1px solid #EAEAEA;
    width: 100%;
    margin-bottom: 50px;
    padding-bottom: 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.terms-tabs-nav::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.terms-tabs-nav {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Tab Button Item */
.terms-tab-btn {
    background: none;
    border: none;
    padding: 18px 0;
    color: #0B0B0B;
    font-family: 'Geist', sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.terms-tab-btn:hover {
    color: #0855A2;
}

.terms-tab-btn.active {
    color: #0855A2;
    border-bottom: 3px solid #0855A2;
    font-weight: 400;
}

/* Tab content section containers */
.terms-tab-content-wrapper {
    position: relative;
    width: 100%;
}

.terms-tab-content {
    display: none;
    width: 100%;
    animation: termsFadeIn 0.3s ease-in-out forwards;
}

.terms-tab-content.active {
    display: block;
}

@keyframes termsFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content block text layout and styles */
.terms-content-block {
    margin-bottom: 45px;
    max-width: 100%;
}

.terms-content-block:last-child {
    margin-bottom: 0;
}

.terms-content-block h2,
.terms-content-block h3 {
    color: #000000;
    font-family: 'Geist', sans-serif;
    font-size: 25px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-top: 0;
    margin-bottom: 20px;
}

.terms-content-block p {
    color: #1D1D1D;
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 28.8px;
    margin-top: 0;
    margin-bottom: 15px;
}

.terms-content-block p:last-child {
    margin-bottom: 0;
}

.terms-content-block ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.terms-content-block li {
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    color: #1D1D1D;
    line-height: 28.8px;
    padding-left: 20px;
    position: relative;
}

.terms-content-block li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0855A2;
    font-weight: bold;
}

.extra-head {
    font-size: 20px !important;
    font-weight: 500 !important;
    color: #000000 !important;
    padding-bottom: 20px;
}

.privacy-list {
    margin: 0;
    padding-left: 22px;
}

.privacy-list li {
    color: #1D1D1D;
    font-family: Geist, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 28.8px;
    margin-bottom: 16px;
}

.privacy-list li:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Responsive Rules
   ========================================================================== */

@media (max-width: 1199.98px) {
    .terms-page-section {
        padding: 80px 0;
    }

    .terms-tabs-nav {
        gap: 36px;
        margin-bottom: 40px;
    }
}

@media (max-width: 991.98px) {
    .terms-page-section {
        padding: 60px 0;
    }

    .terms-tabs-nav {
        gap: 28px;
        margin-bottom: 35px;
    }

    .terms-tab-btn {
        font-size: 16px;
        padding: 15px 0;
    }
}

@media (max-width: 767.98px) {
    .terms-tabs-nav {
        flex-direction: column;
        gap: 12px;
        border-bottom: none;
        margin-bottom: 40px;
        padding-bottom: 0;
    }

    .terms-tab-btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        border: 1px solid #EAEAEA;
        border-radius: 6px;
        background-color: #F9FBFD;
        color: #0B0B0B;
        font-size: 15px;
        font-weight: 500;
        transition: all 0.2s ease;
        margin-bottom: 0;
        border-bottom: 1px solid #EAEAEA;
    }

    .terms-tab-btn:hover {
        background-color: #F0F4F8;
        color: #0855A2;
        border-color: #0855A2;
    }

    .terms-tab-btn.active {
        background: #0855A2;
        color: #ffffff;
        border-color: #0855A2;
        border-bottom: 1px solid #0855A2;
    }

    .terms-content-block h2,
    .terms-content-block h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .terms-content-block p {
        font-size: 14px;
        line-height: 26px;
    }
}

@media (max-width: 575.98px) {
    .terms-page-section {
        padding: 45px 0;
    }

    .terms-tabs-nav {
        gap: 10px;
    }

    .terms-tab-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
}

.brdr-top {
    border-top: 1px solid #f3f3f3;
}

/* ==========================================================================
   Sticky Find Jobs Filter Bar
   ========================================================================== */
.fj-job-filter {
    position: -webkit-sticky;
    position: sticky;
    top: 105px;
    /* 105px header height - 40px margin-top */
    z-index: 99;
    transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.171) !important;
}

.fj-job-filter.is-sticky {
    box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.08);
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
}

@media (max-width: 991.98px) {
    .fj-job-filter {
        top: 80px;
        /* 80px header height - 40px margin-top */
        gap: 0;
        transition: gap 0.35s ease-in-out, box-shadow 0.35s ease-in-out, background-color 0.35s ease-in-out, border-color 0.35s ease-in-out;
    }

    .fj-job-filter.is-expanded {
        gap: 16px;
    }

    .fj-job-filter-left {
        gap: 0;
        transition: gap 0.35s ease-in-out;
        width: 100%;
    }

    .fj-job-filter.is-expanded .fj-job-filter-left {
        gap: 12px;
    }

    /* Style the label as a toggle button on tablet/mobile */
    .fj-job-filter-item-lbl {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        cursor: pointer;
        padding: 4px 0;
        margin-right: 0 !important;
        user-select: none;
        font-weight: 500;
        font-family: 'Geist', sans-serif;
        color: #1D1D1D;
    }

    /* Add the down-arrow SVG using pseudo-element */
    .fj-job-filter-item-lbl::after {
        content: "";
        display: inline-block;
        width: 20px;
        height: 20px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1C1C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        transition: transform 0.35s ease-in-out;
    }

    /* Rotate arrow when expanded */
    .fj-job-filter.is-expanded .fj-job-filter-item-lbl::after {
        transform: rotate(180deg);
    }

    /* Collapsible items: Category, Experience, Job Type dropdowns & Right actions container */
    .fj-job-filter-left>*:not(.fj-job-filter-item-lbl),
    .fj-job-filter-right {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        pointer-events: none;
        transition: max-height 0.35s ease-in-out, opacity 0.25s ease-in-out, padding 0.35s ease-in-out, margin 0.35s ease-in-out, visibility 0.35s ease-in-out;
    }

    /* Expanded state for collapsible items */
    .fj-job-filter.is-expanded .fj-job-filter-left>*:not(.fj-job-filter-item-lbl) {
        max-height: 250px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .fj-job-filter.is-expanded .fj-job-filter-right {
        max-height: 150px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (max-width: 767.98px) {
    .fj-job-filter {
        top: 70px;
        /* 70px header height - 40px margin-top */
    }
}

.fj-filter-lbl-content {
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   Premium Pagination System
   ========================================================================== */
.fj-job-cards-container {
    transition: opacity 0.25s ease-in-out;
    opacity: 1;
}

.fj-job-cards-container.fade-out {
    opacity: 0;
}

.fj-pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.fj-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-family: 'Geist', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #4A4A4A;
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease-in-out;
}

.fj-page-btn:hover:not(:disabled):not(.active) {
    background-color: #F8FAFC;
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #0855A2;
}

.fj-page-btn.active {
    background-color: #0855A2;
    border-color: #0855A2;
    color: #FFFFFF;
    cursor: default;
    box-shadow: 0 4px 12px rgba(8, 85, 162, 0.2);
}

.fj-page-btn:disabled {
    background-color: #F8FAFC;
    border-color: #E2E8F0;
    color: #CBD5E1;
    cursor: not-allowed;
}

.fj-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    font-family: 'Geist', sans-serif;
    font-size: 15px;
    color: #94A3B8;
    user-select: none;
}

/* Pagination responsiveness */
@media (max-width: 991.98px) {
    .fj-pagination-container {
        gap: 6px;
        margin-top: 45px;
    }

    .fj-page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
        border-radius: 5px;
        padding: 0 8px;
    }

    .fj-page-ellipsis {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 767.98px) {
    .fj-pagination-container {
        gap: 4px;
        margin-top: 30px;
    }

    .fj-page-btn {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        border-radius: 4px;
        padding: 0 6px;
    }

    .fj-page-ellipsis {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
    }
}