﻿/* =========================================================
   LATEST UPDATES
========================================================= */

.updates-container {
    width: min(100% - 40px, 1320px);
    margin: 0 auto;
    padding: 38px 0 65px;
}


/* =========================================================
   TOOLBAR
========================================================= */

.updates-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 18px;
}


.updates-toolbar-title > span {
    display: block;
    margin-bottom: 5px;
    color: #880000;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}


.updates-toolbar-title p {
    margin: 0;
    color: #536174;
    font-size: 1rem;
    font-weight: 500;
}


/* =========================================================
   SEARCH
========================================================= */

.updates-search {
    display: flex;
    align-items: center;
    gap: 8px;
}


.updates-search-box {
    position: relative;
    width: 245px;
}


    .updates-search-box i {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        color: #9ba3ae;
        font-size: 11px;
        pointer-events: none;
    }


    .updates-search-box input {
        width: 100%;
        height: 38px;
        padding: 0 13px 0 35px;
        border: 1px solid #dce1e7;
        border-radius: 6px;
        outline: none;
        background: #ffffff;
        color: #263548;
        font-size: 11px;
        transition: border-color .2s ease, box-shadow .2s ease;
    }


        .updates-search-box input:focus {
            border-color: #880000;
            box-shadow: 0 0 0 3px rgba(136,0,0,.06);
        }


        .updates-search-box input::placeholder {
            color: #9ba4af;
        }


.updates-search-btn {
    height: 38px;
    padding: 0 18px;
    border: 1px solid #880000;
    border-radius: 6px;
    background: #880000;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}


    .updates-search-btn:hover {
        background: #6f0000;
        transform: translateY(-1px);
    }


.updates-clear-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dde2e8;
    border-radius: 6px;
    background: #ffffff;
    color: #6d7886;
    font-size: 11px;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease;
}


    .updates-clear-btn:hover {
        border-color: #880000;
        color: #880000;
    }


/* =========================================================
   MAIN CARD
========================================================= */

.updates-card {
    padding: 22px;
    border: 1px solid #e1e5ea;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 7px 26px rgba(15,27,45,.045);
}


/* =========================================================
   TABLE
========================================================= */

.updates-public-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}


    .updates-public-table thead th {
        padding: 13px 15px;
        border: 0;
        background: #900000;
        color: #ffffff;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .4px;
        text-align: left;
        text-transform: uppercase;
    }


        .updates-public-table thead th:first-child {
            border-radius: 6px 0 0 0;
        }


        .updates-public-table thead th:last-child {
            border-radius: 0 6px 0 0;
        }


    /* ROW */

    .updates-public-table tbody td {
        position: relative;
        padding: 14px 15px;
        border: 0;
        border-bottom: 1px solid #edf0f3;
        background: #ffffff;
        color: #435166;
        font-size: 11px;
        line-height: 1.55;
        vertical-align: middle;
        transition: background .18s ease;
    }


    /* subtle alternate row */

    .updates-public-table tbody tr:nth-child(even) td {
        background: #f8f9fa;
    }


    .updates-public-table tbody tr:hover td {
        background: #fcf7f7;
    }


    /* HUDCO accent on hover */

    .updates-public-table tbody td:first-child::before {
        content: "";
        position: absolute;
        left: 0;
        top: 8px;
        bottom: 8px;
        width: 3px;
        border-radius: 2px;
        background: #880000;
        transform: scaleY(0);
        transition: transform .18s ease;
    }


    .updates-public-table tbody tr:hover
    td:first-child::before {
        transform: scaleY(1);
    }


/* =========================================================
   DATE
========================================================= */

.updates-date {
    color: #34445a !important;
    font-size: 1rem !important;
    font-weight: 700;
}


/* =========================================================
   TITLE
========================================================= */

.updates-title-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
    color: #17243a;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: color .18s ease;
}


    .updates-title-link i {
        margin-top: 3px;
        color: #a8afb8;
        font-size: 8px;
        opacity: 0;
        transform: translateX(-3px);
        transition: opacity .18s ease, transform .18s ease;
    }


    .updates-title-link:hover {
        color: #880000;
    }


        .updates-title-link:hover i {
            opacity: 1;
            transform: translateX(0);
        }


/* =========================================================
   EMPTY STATE
========================================================= */

.updates-empty {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #87909b;
    font-size: 12px;
}


    .updates-empty i {
        color: #b4bbc4;
        font-size: 27px;
    }


/* =========================================================
   MOBILE LIST
========================================================= */

.updates-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.updates-mobile-card {
    padding: 14px;
    border: 1px solid #e6e9ed;
    border-radius: 8px;
    background: #ffffff;
}


.updates-mobile-date {
    margin-bottom: 6px;
    color: #880000;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .4px;
}


.updates-mobile-card a {
    color: #17243a;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .updates-container {
        width: min(100% - 24px, 1320px);
        padding: 25px 0 45px;
    }


    .updates-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }


    .updates-search {
        width: 100%;
    }


    .updates-search-box {
        flex: 1;
        width: auto;
    }


    .updates-card {
        padding: 14px;
    }
}


@media (max-width: 480px) {

    .updates-search {
        flex-wrap: wrap;
    }


    .updates-search-box {
        width: 100%;
        flex-basis: 100%;
    }


    .updates-search-btn {
        flex: 1;
    }
}
