/* =========================================
   NEWS HERO
========================================= */

.news-hero {

    position: relative;

    min-height: 300px;

    background-image:

        linear-gradient(
            rgba(0, 0, 0, 0.60),
            rgba(11, 110, 79, 0.75)
        ),

        url("../images/municipality-background.jpg");

    background-size: cover;

    background-position: center;

    display: flex;

    align-items: center;

}


.news-hero-overlay {

    width: 100%;

}


.news-hero-content {

    max-width: 800px;

    color: #ffffff;

    padding: 70px 0;

}


.news-label {

    display: inline-block;

    color: #F8C353;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 15px;

}


.news-hero h1 {

    font-size: 52px;

    font-weight: 800;

    margin-bottom: 15px;

}


.news-hero p {

    max-width: 650px;

    font-size: 18px;

    line-height: 1.8;

    color: rgba(255,255,255,.9);

}
/* Breadcrumb */

.economic-breadcrumb {
    background: #f1f4f2;
    border-bottom: 1px solid #e3e9e5;
}

.economic-breadcrumb-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
}

.economic-breadcrumb .breadcrumb-item,
.economic-breadcrumb .breadcrumb-item a {
    font-size: 14px;
    color: #075b36;
    text-decoration: none;
}

.economic-breadcrumb .breadcrumb-item.active {
    color: #68756d;
}

.economic-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 25px;
    background: #075b36;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
}

.economic-back-button:hover {
    background: #c69a35;
    color: #fff;
    transform: translateY(-2px);
}
/* =========================================
   BACK BUTTON
========================================= */

.background-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: #0B6E4F;
    border: 2px solid #0B6E4F;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
}

.background-back-button:hover {
    color: #ffffff;
    background: #0B6E4F;
    transform: translateX(-4px);
}
/* =========================================
   PREVIOUS AND NEXT BUTTONS
========================================= */

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 13px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: .3s;
}

.pg-btn:hover {
    background: #30B862;
    color: #fff;
    border-color: #30B862;
}

.pg-btn.active {
    background: #30B862;
    color: #fff;
    border-color: #30B862;
}

.pg-btn.disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}
/* =========================================
   VIEW BUTTON
========================================= */

.view-vacancy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    background: #30B862;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: .3s;
}

.view-vacancy-btn:hover {
    background: #F8C353;
    color: #fff;
}


/* =========================================
   NEWSROOM
========================================= */

.newsroom-section {

    background: #f8faf9;

}
/* in news.css */

.vacancies-toolbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px 20px 20px;   /* was effectively 0 — this lines it up with the 20px cell padding */

    flex-wrap: wrap;

    gap: 15px;

}


.newsroom-heading {

    max-width: 700px;

    margin: auto;

}


.section-tag {

    display: inline-block;

    color: #30B862;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 12px;

}


.newsroom-heading h2 {

    font-size: 40px;

    font-weight: 700;

    color: #252525;

    margin-bottom: 15px;

}


.newsroom-heading p {

    color: #666;

    line-height: 1.8;

}


/* =========================================
   TABLE
========================================= */

.news-table-wrapper {

    width: 100%;

    background: #ffffff;

    border-radius: 0 0 20px 20px;

    padding: 0;

    box-shadow:
        0 15px 40px rgba(0,0,0,.06);

    overflow: hidden;

}


.news-table {

    margin-bottom: 0;

}


.news-table thead {

    background: #30B862;

}


.news-table thead th {

    color: #ffffff;

    padding: 18px 20px;

    font-size: 14px;

    font-weight: 600;

    border: none;

}


.news-table tbody td {

    padding: 20px;

    border-bottom: 1px solid #eeeeee;

}


.news-table tbody tr {

    transition: all .3s ease;

}


.news-table tbody tr:hover {

    background: #f8faf9;

}


/* =========================================
   NEWS NUMBER
========================================= */

.news-number {

    width: 35px;

    height: 35px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f1f6f3;

    color: #30B862;

    border-radius: 50%;

    font-weight: 700;

}


/* =========================================
   NEWS TITLE
========================================= */

.news-title-cell {

    display: flex;

    align-items: center;

    gap: 15px;

}


.news-icon {

    min-width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #30B862;

    color: #ffffff;

    border-radius: 12px;

}


.news-title-cell h5 {

    margin: 0 0 5px;

    color: #252525;

    font-size: 16px;

    font-weight: 700;

}


.news-title-cell small {

    display: block;

    max-width: 500px;

    color: #888;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


/* =========================================
   DATE
========================================= */

.news-date {

    color: #666;

    font-size: 14px;

    white-space: nowrap;

}


.news-date i {

    color: #30B862;

    margin-right: 7px;

}


/* =========================================
   VIEW BUTTON
========================================= */

.news-view-button {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 9px 18px;

    background: #30B862;

    color: #ffffff;

    text-decoration: none;

    border-radius: 50px;

    font-size: 13px;

    font-weight: 600;

    transition: all .3s ease;

}


.news-view-button:hover {

    background: #F8C353;

    color: #ffffff;

    transform: translateX(3px);

}


/* =========================================
   PAGINATION
========================================= */

.news-pagination {

    display: flex;

    justify-content: center;

}


.news-pagination .pagination {

    gap: 7px;

}


.news-pagination .page-link {

    border: none;

    border-radius: 8px;

    color: #30B862;

    padding: 10px 15px;

}


.news-pagination .page-item.active .page-link {

    background: #30B862;

    color: #ffffff;

}


.news-pagination .page-link:hover {

    background: #F8C353;

    color: #ffffff;

}

/* =========================================
   NEWS TABLE TOOLBAR
========================================= */

.news-toolbar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    padding: 20px 22px;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-bottom: none;

    border-radius: 18px 18px 0 0;

    box-sizing: border-box;

}


/* =========================================
   SHOW ENTRIES
========================================= */

.entries-control {

    display: flex;

    align-items: center;

    gap: 10px;

    margin: 0;

    color: #555;

    font-size: 15px;

    white-space: nowrap;

}


.entries-control select {

    width: 75px;

    height: 42px;

    padding: 0 12px;

    border: 1px solid #dddddd;

    border-radius: 6px;

    background: #ffffff;

    color: #333;

    font-size: 15px;

    cursor: pointer;

    outline: none;

}


.entries-control select:focus {

    border-color: #30B862;

    box-shadow: 0 0 0 3px rgba(11, 110, 79, .10);

}


/* =========================================
   ENTRY SUMMARY
========================================= */

.entries-summary {

    color: #777;

    font-size: 14px;

    white-space: nowrap;

}


.entries-summary strong {

    color: #333;

    font-weight: 600;

}


/* =========================================
   TABLE
========================================= */



.news-table {

    width: 100%;

    border-collapse: separate;

    border-spacing: 0;

    margin: 0;

}


/* TABLE HEADER */

.news-table thead {

    background: #30B862 !important;

}


.news-table thead tr {

    background: #30B862 !important;

}


.news-table thead th {

    background: #30B862 !important;

    color: #ffffff !important;

    padding: 18px 20px !important;

    font-size: 14px;

    font-weight: 700;

    text-transform: none;

    border: none !important;

    vertical-align: middle;

    white-space: nowrap;

}


/* =========================================
   COLUMN WIDTHS
========================================= */

.news-table .number-column {

    width: 7%;

    text-align: center;

}


.news-table .description-column {

    width: 58%;

    text-align: left;

}


.news-table .date-column {

    width: 20%;

    text-align: left;

}


.news-table .action-column {

    width: 15%;

    text-align: center;

}


/* =========================================
   TABLE BODY
========================================= */

.news-table tbody td {

    padding: 20px;

    border-bottom: 1px solid #eeeeee;

    vertical-align: middle;

}


.news-table tbody tr:last-child td {

    border-bottom: none;

}


/* =========================================
   NUMBER COLUMN
========================================= */

.news-table tbody td:first-child {

    text-align: center;

}


/* =========================================
   ACTION COLUMN
========================================= */

.news-table tbody td:last-child {

    text-align: center;

}


/* =========================================
   HOVER EFFECT
========================================= */

.news-table tbody tr {

    transition: background .3s ease;

}


.news-table tbody tr:hover {

    background: #f8faf9;

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .news-toolbar {

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;

        padding: 18px;

    }

    .entries-summary {

        width: 100%;

    }

}
/* =========================================
   PAGINATION
========================================= */

.pagination-bar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    padding: 25px 0;

}


.pagination-info {

    color: #777;

    font-size: 14px;

}


.pagination-controls {

    display: flex;

    align-items: center;

    gap: 5px;

}


.pg-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 40px;

    height: 40px;

    padding: 0 13px;

    border: 1px solid #ddd;

    border-radius: 5px;

    background: #fff;

    color: #555;

    text-decoration: none;

    font-size: 14px;

    transition: .3s;

}


.pg-btn:hover {

    background: #30B862;

    color: #fff;

    border-color: #30B862;

}


.pg-btn.active {

    background: #30B862;

    color: #fff;

    border-color: #30B862;

}


.pg-btn.disabled {

    opacity: .5;

    cursor: not-allowed;

    pointer-events: none;

}


/* =========================================
   EMPTY NEWS
========================================= */

.empty-news-icon {

    font-size: 50px;

    color: #30B862;

    display: block;

    margin-bottom: 15px;

}


@media (max-width: 767px) {

    .news-hero h1 {

        font-size: 38px;

    }

    .news-hero-content {

        padding: 60px 15px;

    }

    .newsroom-heading h2 {

        font-size: 32px;

    }

    .news-table-wrapper {

        border-radius: 12px;

    }

    .news-title-cell small {

        max-width: 200px;

    }

}

#newsModal {
    z-index: 2000 !important;
}


/* Modal dialog */

#newsModal .news-modal-dialog {

    max-width: 850px;

    margin-top: 180px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;

    height: calc(100vh - 200px);
}


/* Modal itself */

#newsModal .news-modal-content {

    height: 100%;

    border: none;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
}


/* Header */

#newsModal .modal-header {

    flex-shrink: 0;

    padding: 18px 24px;

    border-bottom: 1px solid #eeeeee;
}


/* Body */

#newsModal .news-modal-body {

    overflow-y: auto;

    padding: 24px;
}


/* Footer */

#newsModal .modal-footer {

    flex-shrink: 0;

    padding: 15px 24px;

    border-top: 1px solid #eeeeee;
}


/* Backdrop */

.modal-backdrop {

    z-index: 1990 !important;
}

/* =====================================================
   MOBILE NEWS MODAL
   ===================================================== */

@media (max-width: 768px) {

    #newsModal .news-modal-dialog {

        margin-top: 120px;
        margin-left: 10px;
        margin-right: 10px;
        margin-bottom: 15px;

        height: calc(100vh - 135px);

        max-width: none;
    }


    #newsModal .news-modal-body {

        padding: 18px;
    }


    #newsModal .modal-header {

        padding: 15px 18px;
    }


    #newsModal .modal-footer {

        padding: 12px 18px;
    }


    #newsModal #modalImage {

        max-height: 220px !important;
    }


    #newsModal #modalDescription {

        font-size: 15px !important;
    }

}
/* =========================================
   NEWS MODAL IMAGE CAROUSEL
========================================= */

#newsImageCarousel {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

#newsCarouselInner .carousel-item {
    height: 350px;
}

#newsCarouselInner .carousel-item img {
    width: 100%;
    height: 350px !important;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Carousel arrows */
#newsImageCarousel .carousel-control-prev,
#newsImageCarousel .carousel-control-next {
    width: 8%;
}

#newsImageCarousel .carousel-control-prev-icon,
#newsImageCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
}

/* Mobile */
@media (max-width: 768px) {

    #newsCarouselInner .carousel-item {
        height: 220px;
    }

    #newsCarouselInner .carousel-item img {
        height: 220px !important;
    }
}

/* =========================================
   NEWS DETAILS PAGE CAROUSEL
========================================= */

.news-details-img {
    height: 250px;
    object-fit: cover;
}

@media (max-width: 767px) {

    .news-details-img {
        height: 220px;
    }

}

/* =========================================
   DOCUMENT SEARCH AND YEAR FILTER
========================================= */

.document-filter-form {
    background: #fff;
    padding: 22px;
    border: 1px solid #e5e8ef;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.document-filter-form .form-label {
    font-weight: 600;
    color: #263238;
    margin-bottom: 8px;
}

.document-filter-form .form-control,
.document-filter-form .form-select,
.document-filter-form .input-group-text {
    min-height: 46px;
    border-color: #dce1e8;
}

.document-filter-form .input-group-text {
    background: #f5f7fa;
    color: #1F368F;
}

.document-filter-form .form-control:focus,
.document-filter-form .form-select:focus {
    border-color: #1F368F;
    box-shadow: 0 0 0 0.2rem rgba(31, 54, 143, 0.12);
}

.document-filter-form .btn-primary {
    background: #1F368F;
    border-color: #1F368F;
    min-height: 46px;
    font-weight: 600;
}

.document-filter-form .btn-primary:hover {
    background: #17296F;
    border-color: #17296F;
}

.document-filter-form .btn-outline-secondary {
    min-height: 46px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .document-filter-form {
        padding: 15px;
    }

    .document-filter-form .d-flex {
        flex-wrap: wrap;
    }
}

/* =========================================
   ADVERTISED TENDERS - BLUE THEME
========================================= */

:root {
    --document-blue: #1F368F;
    --document-blue-hover: #17296F;
    --document-blue-light: #EEF1FA;
    --document-border: #E5E8EF;
}

/* PAGE */
.newsroom-section {
    background: #f8fafc;
    font-family: 'DM Sans', sans-serif;
}

/* BREADCRUMB */
.economic-breadcrumb {
    background: #f1f4f9;
    border-bottom: 1px solid var(--document-border);
}

.economic-breadcrumb .breadcrumb-item,
.economic-breadcrumb .breadcrumb-item a {
    color: var(--document-blue);
    text-decoration: none;
}

.economic-back-button {
    background: var(--document-blue);
    color: #fff;
}

.economic-back-button:hover {
    background: var(--document-blue-hover);
    color: #fff;
}

/* PAGE HEADING */
.newsroom-heading h2 {
    color: #252525;
    font-weight: 800;
}

.section-tag {
    color: var(--document-blue);
}

/* =========================================
   SEARCH AND YEAR FILTER
========================================= */

.document-filter-form {
    background: #fff;
    padding: 22px;
    border: 1px solid var(--document-border);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .04);
}

.document-filter-form .form-label {
    font-weight: 600;
    color: #263238;
    margin-bottom: 8px;
}

.document-filter-form .form-control,
.document-filter-form .form-select,
.document-filter-form .input-group-text {
    min-height: 46px;
    border-color: #dce1e8;
}

.document-filter-form .input-group-text {
    background: #f5f7fa;
    color: var(--document-blue);
}

.document-filter-form .form-control:focus,
.document-filter-form .form-select:focus {
    border-color: var(--document-blue);
    box-shadow: 0 0 0 .2rem rgba(31, 54, 143, .12);
}

.document-filter-form .btn-primary {
    background: var(--document-blue);
    border-color: var(--document-blue);
    color: #fff;
    min-height: 46px;
    font-weight: 600;
}

.document-filter-form .btn-primary:hover {
    background: var(--document-blue-hover);
    border-color: var(--document-blue-hover);
}

.document-filter-form .btn-outline-secondary {
    min-height: 46px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* =========================================
   TABLE TOOLBAR
========================================= */

.news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--document-border);
    border-bottom: none;
    border-radius: 18px 18px 0 0;
    box-sizing: border-box;
    gap: 15px;
}

.entries-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #555;
    font-size: 15px;
    white-space: nowrap;
}

.entries-control select {
    width: 75px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
}

.entries-control select:focus {
    border-color: var(--document-blue);
    box-shadow: 0 0 0 3px rgba(31, 54, 143, .12);
    outline: none;
}

.entries-summary {
    color: #777;
    font-size: 14px;
}

.entries-summary strong {
    color: var(--document-blue);
    font-weight: 700;
}

/* =========================================
   TENDERS TABLE
========================================= */

.news-table-wrapper {
    width: 100%;
    background: #fff;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .06);
}

.news-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

/* TABLE HEADER */
.news-table thead,
.news-table thead tr,
.news-table thead th {
    background: var(--document-blue) !important;
    color: #fff !important;
}

.news-table thead th {
    padding: 18px 20px !important;
    font-size: 14px;
    font-weight: 700;
    border: none !important;
    vertical-align: middle;
    white-space: nowrap;
}

/* COLUMN WIDTHS */
.news-table .number-column {
    width: 6%;
    text-align: center;
}

.news-table .description-column {
    width: 43%;
}

.news-table .date-column {
    width: 18%;
}

.news-table .action-column {
    width: 15%;
    text-align: center;
}

/* TABLE BODY */
.news-table tbody td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.news-table tbody tr {
    transition: background .3s ease;
}

.news-table tbody tr:hover {
    background: var(--document-blue-light) !important;
}

.news-table tbody tr:last-child td {
    border-bottom: none;
}

/* NUMBER */
.news-number {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--document-blue-light);
    color: var(--document-blue);
    border-radius: 50%;
    font-weight: 700;
}

/* TENDER DETAILS */
.news-title-cell {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.news-icon {
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--document-blue);
    color: #fff;
    border-radius: 12px;
}

.tender-details {
    min-width: 0;
}

.tender-details h5 {
    margin: 0 0 6px;
    color: var(--document-blue);
    font-size: 15px;
    font-weight: 700;
}

.tender-details small {
    display: block;
    color: #666;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
}

.tender-briefing {
    margin-top: 8px;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}

.tender-briefing i {
    color: var(--document-blue);
    margin-right: 4px;
}

/* PUBLISHED AND CLOSING DATES */
.news-date {
    color: #555;
    font-size: 13px;
    white-space: nowrap;
}

.news-date i {
    color: var(--document-blue);
    margin-right: 6px;
}

.closing-date i {
    color: var(--document-blue);
}

/* VIEW DOCUMENT BUTTON */
.view-vacancy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--document-blue);
    border: 1px solid var(--document-blue);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all .3s ease;
    white-space: nowrap;
}

.view-vacancy-btn:hover {
    background: var(--document-blue-hover);
    border-color: var(--document-blue-hover);
    color: #fff;
    transform: translateY(-2px);
}

/* =========================================
   PAGINATION
========================================= */

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
}

.pagination-info {
    color: #777;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 13px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    color: var(--document-blue);
    text-decoration: none;
    font-size: 14px;
    transition: .3s;
}

.pg-btn:hover,
.pg-btn.active {
    background: var(--document-blue);
    color: #fff;
    border-color: var(--document-blue);
}

.pg-btn.disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}

/* EMPTY STATE */
.empty-news-icon {
    display: block;
    margin-bottom: 15px;
    font-size: 50px;
    color: var(--document-blue);
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 991px) {
    .news-table {
        min-width: 850px;
    }
}

@media (max-width: 767px) {

    .document-filter-form {
        padding: 15px;
    }

    .document-filter-form .d-flex {
        flex-wrap: wrap;
    }

    .news-toolbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .entries-summary {
        width: 100%;
    }

    .pagination-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagination-controls {
        width: 100%;
    }

    .newsroom-heading h2 {
        font-size: 30px;
    }

    .economic-breadcrumb-wrapper {
        flex-wrap: wrap;
    }
}

/* Align Date Posted heading with the date value */
.news-table th:last-child {
    padding-left: 220px !important;
    text-align: left;
}