/* ==========================================
   CONSERVATION NAVIGATION
========================================== */

.conservation-navigation {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 15px;
}


/* ==========================================
   TOP LINKS
========================================== */

.conservation-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 28px;
}

.conservation-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #080b63;
    text-decoration: none;

    font-size: 20px;
    font-weight: 700;

    line-height: 1.2;

    transition: 0.2s ease;
}

.conservation-back-link:hover {
    color: #4caf50;
}

.conservation-back-link .arrow {
    font-size: 25px;
    line-height: 1;
}


/* ==========================================
   PAGINATION
========================================== */

.conservation-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    width: 100%;
}


/* ==========================================
   PREVIOUS / NEXT
========================================== */

.conservation-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 145px;
    height: 56px;

    padding: 0 25px;

    border: 2px solid #080b63;
    border-radius: 12px;

    background: #ffffff;
    color: #080b63;

    text-decoration: none;

    font-size: 20px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.conservation-page-btn:hover {
    background: #080b63;
    color: #ffffff;
}


/* ==========================================
   PAGE NUMBERS
========================================== */

.conservation-page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    flex: 1;
}

.conservation-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: 2px solid #080b63;
    border-radius: 10px;

    background: #ffffff;
    color: #080b63;

    text-decoration: none;

    font-size: 18px;
    font-weight: 700;

    transition: 0.2s ease;
}

.conservation-number:hover {
    background: #080b63;
    color: #ffffff;
}


/* ACTIVE PAGE */

.conservation-number.active {
    background: #58b947;
    border-color: #58b947;
    color: #ffffff;
}

.conservation-number.active:hover {
    background: #58b947;
    border-color: #58b947;
    color: #ffffff;
}


/* ==========================================
   DISABLED
========================================== */

.conservation-page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.conservation-page-btn.disabled:hover {
    background: #ffffff;
    color: #080b63;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 1023px) {

    /* ==============================
       TOP LINKS
    ============================== */

    .conservation-top-nav {
        margin-bottom: 22px;
    }


    /* ==============================
       PAGINATION
    ============================== */

    .conservation-pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }


    /* ==============================
       9 PAGE NUMBERS
    ============================== */

    .conservation-page-numbers {
        order: 1;

        width: 100%;
        flex: 0 0 100%;

        display: flex;
        justify-content: center;

        /* Small gap between the 9 buttons */
        gap: 4px;
    }


    /* ==============================
       PREVIOUS
    ============================== */

    .previous-btn {
        order: 2;

        flex: 1;
        min-width: 0;
    }


    /* ==============================
       NEXT
    ============================== */

    .next-btn {
        order: 3;

        flex: 1;
        min-width: 0;
    }


    /* ==============================
       NUMBER BUTTONS
    ============================== */

    .conservation-number {
        width: 38px;
        height: 38px;

        font-size: 16px;
        border-radius: 9px;
    }


    /* ==============================
       PREVIOUS / NEXT
    ============================== */

    .conservation-page-btn {
        height: 52px;

        padding: 0 15px;

        font-size: 17px;

        border-radius: 11px;
    }
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .conservation-navigation {
        padding: 0 12px;
        margin-top: 30px;
    }


    /* TOP LINKS */

    .conservation-top-nav {
        margin-bottom: 22px;
    }

    .conservation-back-link {
        font-size: 16px;
        gap: 5px;
    }

    .conservation-back-link .arrow {
        font-size: 21px;
    }


    /* PAGINATION */

    .conservation-pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }


    /* PAGE NUMBERS FIRST */

    .conservation-page-numbers {
        order: 1;

        width: 100%;
        flex: 0 0 100%;

        justify-content: space-between;

        gap: 4px;
    }


    /* PREVIOUS */

    .previous-btn {
        order: 2;

        flex: 1;
        min-width: 0;
        width: auto;
    }


    /* NEXT */

    .next-btn {
        order: 3;

        flex: 1;
        min-width: 0;
        width: auto;
    }


    /* NUMBER BUTTONS */

    .conservation-number {
        width: 36px;
        height: 36px;

        border-radius: 9px;

        font-size: 16px;
    }


    /* PREVIOUS / NEXT BUTTONS */

    .conservation-page-btn {
        height: 52px;

        padding: 0 12px;

        font-size: 17px;

        border-radius: 11px;
    }
}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 400px) {

    .conservation-navigation {
        padding: 0 8px;
    }

    .conservation-back-link {
        font-size: 14px;
    }

    .conservation-back-link .arrow {
        font-size: 18px;
    }

    .conservation-page-numbers {
        gap: 3px;
    }

    .conservation-number {
        width: 32px;
        height: 32px;

        font-size: 14px;
        border-radius: 8px;
    }

    .conservation-page-btn {
        height: 48px;

        font-size: 15px;
        padding: 0 8px;
    }
}