/* =========================================================
   LINKS PAGE
   FULL RESPONSIVE DESIGN
========================================================= */

.links-page,
.links-page * {
    box-sizing: border-box;
}


/* =========================================================
   MAIN PAGE
========================================================= */

.links-page {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding:
        clamp(15px, 3vw, 40px)
        clamp(10px, 3vw, 28px)
        clamp(30px, 5vw, 70px);

    color: #182132;
}


/* =========================================================
   TOP CENTER HEADING
========================================================= */

.page-main-heading {
    width: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding:
        clamp(15px, 3vw, 35px)
        10px
        clamp(20px, 3vw, 32px);
}


.page-main-heading span {
    display: block;

    margin-bottom: 7px;

    color: #168a45;

    font-size:
        clamp(8px, 0.8vw, 12px);

    line-height: 1.3;

    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.page-main-heading h1 {
    position: relative;

    margin: 0;

    color: #182132;

    font-size:
        clamp(25px, 3vw, 42px);

    line-height: 1.15;

    font-weight: 850;

    letter-spacing: -0.8px;
}


.page-main-heading h1::after {
    content: "";

    display: block;

    width: 55px;
    height: 3px;

    margin: 12px auto 0;

    background: #91d923;

    border-radius: 50px;
}


.page-main-heading p {
    max-width: 600px;

    margin:
        10px auto 0;

    color: #697386;

    font-size:
        clamp(10px, 1vw, 14px);

    line-height: 1.5;
}


/* =========================================================
   SECTION
========================================================= */

.links-section {
    width: 100%;

    margin-bottom:
        clamp(16px, 3vw, 30px);

    padding:
        clamp(12px, 2vw, 26px);

    background: #ffffff;

    border: 1px solid #e5e9ee;

    border-radius:
        clamp(12px, 1.5vw, 18px);

    box-shadow:
        0 8px 30px rgba(20, 35, 50, 0.055);
}


/* =========================================================
   SECTION TITLE
========================================================= */

.section-title-bar {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-bottom:
        clamp(14px, 2vw, 22px);

    padding:
        clamp(10px, 1.5vw, 16px)
        clamp(12px, 2vw, 20px);

    background:
        linear-gradient(
            105deg,
            #91d923 0%,
            #b8e965 48%,
            #eefbdc 100%
        );

    border-radius: 12px;
}


.section-title-content {
    min-width: 0;

    flex: 1;
}


.section-title-content span {
    display: block;

    margin-bottom: 3px;

    color: #27723b;

    font-size:
        clamp(7px, 0.7vw, 10px);

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: 0.9px;

    text-transform: uppercase;
}


.section-title-content h2 {
    margin: 0;

    color: #143d28;

    font-size:
        clamp(15px, 1.5vw, 21px);

    line-height: 1.3;

    font-weight: 800;

    overflow-wrap: anywhere;
}


.section-number {
    width:
        clamp(30px, 3vw, 40px);

    height:
        clamp(30px, 3vw, 40px);

    flex: 0 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #168a45;

    background: #ffffff;

    font-size:
        clamp(8px, 0.8vw, 11px);

    font-weight: 800;
}


/* =========================================================
   DOWNLOAD GRID
========================================================= */

.download-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap:
        clamp(8px, 1.2vw, 15px);
}


.download-card {
    width: 100%;

    min-width: 0;

    display: flex;

    align-items: center;

    gap:
        clamp(8px, 1vw, 13px);

    padding:
        clamp(11px, 1.4vw, 17px);

    color: inherit;

    text-decoration: none;

    background: #ffffff;

    border: 1px solid #e4e9ee;

    border-radius: 13px;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


.download-card:hover {
    transform: translateY(-3px);

    border-color: #b9dc9d;

    box-shadow:
        0 10px 25px rgba(22, 138, 69, .08);
}


.download-icon {
    width:
        clamp(35px, 3vw, 44px);

    height:
        clamp(35px, 3vw, 44px);

    flex: 0 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #168a45;

    background: #edf9e5;

    border-radius: 10px;
}


.download-icon svg {
    width:
        clamp(16px, 1.5vw, 20px);

    height:
        clamp(16px, 1.5vw, 20px);

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;
}


.download-info {
    min-width: 0;

    flex: 1;
}


.download-info h3 {
    margin: 0 0 3px;

    color: #182132;

    font-size:
        clamp(11px, 1vw, 14px);

    line-height: 1.35;

    font-weight: 750;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.download-info p {
    margin: 0;

    color: #697386;

    font-size:
        clamp(9px, .85vw, 12px);

    line-height: 1.3;
}


.download-arrow {
    flex: 0 0 auto;

    color: #168a45;

    font-size:
        clamp(14px, 1.4vw, 18px);

    transition:
        transform .2s ease;
}


.download-card:hover .download-arrow {
    transform: translateX(4px);
}


/* =========================================================
   JOB GRID
========================================================= */

.job-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        clamp(10px, 1.3vw, 17px);
}


.job-card {
    width: 100%;

    min-width: 0;

    min-height: 230px;

    display: flex;

    flex-direction: column;

    padding:
        clamp(14px, 1.7vw, 21px);

    background: #ffffff;

    border: 1px solid #e4e9ee;

    border-radius: 15px;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


.job-card:hover {
    transform: translateY(-4px);

    border-color: #b9dc9d;

    box-shadow:
        0 13px 30px rgba(22, 138, 69, .08);
}


.job-card-head {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 16px;
}


.job-icon {
    width:
        clamp(36px, 3vw, 44px);

    height:
        clamp(36px, 3vw, 44px);

    flex: 0 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #168a45;

    background: #edf9e5;

    border-radius: 11px;
}


.job-icon svg {
    width:
        clamp(17px, 1.5vw, 20px);

    height:
        clamp(17px, 1.5vw, 20px);

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;
}


.job-status {
    flex: 0 0 auto;

    padding: 5px 9px;

    color: #16713a;

    background: #eaf7df;

    border-radius: 50px;

    font-size:
        clamp(8px, .7vw, 10px);

    font-weight: 800;

    text-transform: uppercase;
}


.job-card h3 {
    margin: 0 0 9px;

    color: #182132;

    font-size:
        clamp(13px, 1.2vw, 16px);

    line-height: 1.5;

    font-weight: 750;

    overflow-wrap: anywhere;
}


.job-meta {
    margin: 0 0 18px;

    color: #697386;

    font-size:
        clamp(10px, .9vw, 13px);

    line-height: 1.5;

    overflow-wrap: anywhere;
}


.job-meta b {
    margin: 0 4px;

    color: #a0a7b0;
}


.apply-button {
    width: fit-content;

    max-width: 100%;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-top: auto;

    padding:
        clamp(7px, .8vw, 10px)
        clamp(11px, 1.2vw, 17px);

    color: #ffffff;

    background: #168a45;

    border-radius: 8px;

    text-decoration: none;

    font-size:
        clamp(10px, .9vw, 13px);

    font-weight: 700;

    white-space: nowrap;

    transition:
        background .2s ease;
}


.apply-button:hover {
    background: #0f7037;
}


/* =========================================================
   LATEST JOBS
========================================================= */

.latest-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        clamp(10px, 1.3vw, 17px);
}


.latest-card {
    width: 100%;

    min-width: 0;

    display: flex;

    align-items: center;

    gap:
        clamp(9px, 1vw, 14px);

    padding:
        clamp(12px, 1.4vw, 17px);

    background: #ffffff;

    border: 1px solid #e4e9ee;

    border-radius: 14px;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.latest-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 24px rgba(22, 138, 69, .08);
}


.latest-icon {
    width:
        clamp(37px, 3vw, 46px);

    height:
        clamp(37px, 3vw, 46px);

    flex: 0 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #edf9e5;

    border-radius: 11px;

    font-size:
        clamp(16px, 1.5vw, 21px);
}


.latest-content {
    min-width: 0;

    flex: 1;
}


.latest-content > span {
    display: block;

    margin-bottom: 3px;

    color: #168a45;

    font-size:
        clamp(8px, .7vw, 10px);

    font-weight: 800;

    letter-spacing: .7px;
}


.latest-content h3 {
    margin: 0 0 4px;

    color: #182132;

    font-size:
        clamp(11px, 1vw, 14px);

    line-height: 1.4;

    font-weight: 750;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;

    overflow-wrap: anywhere;
}


.latest-content p {
    margin: 0;

    color: #697386;

    font-size:
        clamp(8px, .75vw, 11px);

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.latest-button {
    flex: 0 0 auto;

    padding: 7px 11px;

    color: #168a45;

    background: #ffffff;

    border: 1px solid #b8dca0;

    border-radius: 7px;

    text-decoration: none;

    font-size:
        clamp(9px, .75vw, 11px);

    font-weight: 750;
}


.latest-button:hover {
    color: #ffffff;

    background: #168a45;
}


/* =========================================================
   VIEW ALL
========================================================= */

.view-all {
    flex: 0 0 auto;

    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #168a45;

    text-decoration: none;

    font-size:
        clamp(10px, .9vw, 13px);

    font-weight: 750;

    white-space: nowrap;
}


/* =========================================================
   LARGE TABLET
   1100px
========================================================= */

@media (max-width: 1100px) {

    .download-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .job-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .latest-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   TABLET
   768px
========================================================= */

@media (max-width: 768px) {

    .links-page {
        padding-left: 14px;

        padding-right: 14px;
    }


    .links-section {
        padding: 16px;
    }


    .job-card {
        min-height: 210px;
    }


    .latest-card {
        align-items: flex-start;
    }

}


/* =========================================================
   MOBILE
   600px
========================================================= */

@media (max-width: 600px) {

    .links-page {
        padding:
            14px
            10px
            35px;
    }


    .page-main-heading {
        padding-top: 12px;

        padding-bottom: 18px;
    }


    .page-main-heading h1 {
        font-size: 25px;
    }


    .page-main-heading p {
        font-size: 11px;

        padding: 0 15px;
    }


    .links-section {
        padding: 12px;

        margin-bottom: 16px;

        border-radius: 12px;
    }


    .section-title-bar {
        padding: 10px 12px;

        border-radius: 10px;
    }


    .section-title-content h2 {
        font-size: 15px;
    }


    /* Downloads */

    .download-grid {
        grid-template-columns: 1fr;

        gap: 9px;
    }


    .download-card {
        padding: 11px;

        border-radius: 10px;
    }


    .download-info h3 {
        white-space: normal;

        font-size: 12px;
    }


    /* Jobs */

    .job-grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }


    .job-card {
        min-height: 0;

        padding: 14px;

        border-radius: 11px;
    }


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


    .job-meta {
        font-size: 10px;
    }


    .apply-button {
        width: 100%;
    }


    /* Latest */

    .latest-grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }


    .latest-card {
        padding: 11px;
    }


    .latest-button {
        padding: 6px 9px;
    }

}


/* =========================================================
   SMALL MOBILE
   400px
========================================================= */

@media (max-width: 400px) {

    .links-page {
        padding-left: 7px;

        padding-right: 7px;
    }


    .page-main-heading h1 {
        font-size: 22px;
    }


    .page-main-heading span {
        font-size: 8px;

        letter-spacing: 1px;
    }


    .page-main-heading p {
        font-size: 10px;
    }


    .links-section {
        padding: 9px;
    }


    .section-title-bar {
        gap: 7px;

        padding: 9px;
    }


    .section-title-content h2 {
        font-size: 13px;
    }


    .section-title-content span {
        font-size: 7px;
    }


    .section-number {
        width: 28px;

        height: 28px;
    }


    .download-card {
        gap: 8px;

        padding: 9px;
    }


    .download-icon {
        width: 34px;

        height: 34px;
    }


    .download-arrow {
        font-size: 14px;
    }


    .job-card {
        padding: 12px;
    }


    .job-card h3 {
        font-size: 12px;

        line-height: 1.45;
    }


    .job-status {
        padding: 4px 7px;
    }


    .latest-card {
        gap: 8px;

        padding: 9px;
    }


    .latest-button {
        display: none;
    }

}


/* =========================================================
   EXTRA SMALL MOBILE
   340px
========================================================= */

@media (max-width: 340px) {

    .links-page {
        padding-left: 5px;

        padding-right: 5px;
    }


    .links-section {
        padding: 7px;
    }


    .section-title-bar {
        padding: 8px;
    }


    .download-card {
        padding: 8px;
    }


    .download-info h3 {
        font-size: 11px;
    }


    .download-info p {
        font-size: 9px;
    }


    .job-card {
        padding: 10px;
    }

}


/* =========================================================
   TOAST NOTIFICATION
========================================================= */

.links-toast {
    position: fixed;

    z-index: 99999;

    right: 20px;

    bottom: 20px;

    width:
        min(
            380px,
            calc(100vw - 30px)
        );

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 14px;

    background: #ffffff;

    border: 1px solid #e2e8e3;

    border-radius: 12px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .15);

    opacity: 0;

    transform:
        translateY(15px);

    pointer-events: none;

    transition:
        opacity .25s ease,
        transform .25s ease;
}


.links-toast.toast-show {
    opacity: 1;

    transform: translateY(0);

    pointer-events: auto;
}


.toast-icon {
    width: 30px;

    height: 30px;

    flex: 0 0 auto;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #168a45;

    background: #eaf7df;

    border-radius: 50%;

    font-size: 13px;

    font-weight: 800;
}


.toast-text {
    min-width: 0;

    flex: 1;

    color: #273142;

    font-size: 12px;

    line-height: 1.4;
}


.toast-close {
    width: 25px;

    height: 25px;

    flex: 0 0 auto;

    padding: 0;

    border: 0;

    background: transparent;

    color: #737c89;

    cursor: pointer;

    font-size: 20px;

    line-height: 1;
}


.toast-close:hover {
    color: #168a45;
}


/* Toast Mobile */

@media (max-width: 600px) {

    .links-toast {
        right: 10px;

        bottom: 10px;

        width:
            calc(100vw - 20px);

        padding: 10px 11px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .links-page *,
    .links-page *::before,
    .links-page *::after {

        animation: none !important;

        transition: none !important;
    }

}