/**
 * Dashboard Alerts
 * Frontend CSS
 */

.tpi-dashboard-alerts {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;

    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| Main Card
|--------------------------------------------------------------------------
*/

.tpi-alert-card {
    background: #f1eeee;

    overflow: hidden;

    border-radius: 0 30px 0 30px;

    min-width: 0;

    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.tpi-alert-card-header {
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 15px;

    color: #ffffff;

    position: relative;
    z-index: 5;
}

.tpi-alert-card-header h3 {
    margin: 0;
    padding: 0;

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 17px;
    line-height: 1.2;

    font-weight: 400;

    text-align: center;
}


/*
|--------------------------------------------------------------------------
| Header Colors
|--------------------------------------------------------------------------
*/

.tpi-alert-latest-announcements .tpi-alert-card-header {
    background: #008900;
}

.tpi-alert-latest-news .tpi-alert-card-header {
    background: #246c9f;
}

.tpi-alert-award-rewards .tpi-alert-card-header {
    background: #da6c0b;
}


/*
|--------------------------------------------------------------------------
| SCROLLING AREA
|--------------------------------------------------------------------------
*/

.tpi-alert-card-body {

    height: 305px;

    min-height: 305px;

    padding: 0;

    overflow: hidden;

    position: relative;

    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| Items Container
|--------------------------------------------------------------------------
*/

.tpi-alert-items {

    display: flex;

    flex-direction: column;

    gap: 27px;

    padding: 30px 24px;

    box-sizing: border-box;

    /*
     * Animation is added by JavaScript.
     */
}


/*
|--------------------------------------------------------------------------
| Individual Alert
|--------------------------------------------------------------------------
*/

.tpi-alert-item {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    flex-shrink: 0;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 15.5px;

    line-height: 1.55;

    font-weight: 600;

    color: #176394;
}


/*
|--------------------------------------------------------------------------
| Alert Content
|--------------------------------------------------------------------------
*/

.tpi-alert-content {

    flex: 1;

    min-width: 0;
}

.tpi-alert-content strong,
.tpi-alert-content a {

    color: #176394;

    font-weight: 700;

    text-decoration: none;
}

.tpi-alert-content a:hover {
    text-decoration: underline;
}

.tpi-alert-content div {
    color: #176394;
    margin-top: 2px;
}


/*
|--------------------------------------------------------------------------
| NEW Badge
|--------------------------------------------------------------------------
*/

.tpi-new-badge {

    flex: 0 0 auto;

    margin-top: 4px;

    color: #ffff00;

    font-size: 11px;

    line-height: 1;

    font-weight: 900;

    text-transform: uppercase;

    text-shadow:
        1px 1px 0 #ff0000,
        -1px -1px 0 #ff0000,
        1px -1px 0 #ff0000,
        -1px 1px 0 #ff0000;
}


/*
|--------------------------------------------------------------------------
| Latest News
|--------------------------------------------------------------------------
*/

.tpi-news-item {

    display: flex;

    align-items: flex-start;

    gap: 0;
}


/*
|--------------------------------------------------------------------------
| News Date
|--------------------------------------------------------------------------
*/

.tpi-news-date {

    width: 85px;

    min-width: 85px;

    min-height: 90px;

    background: #0b87cb;

    color: #ffffff;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 6px;

    box-sizing: border-box;
}

.tpi-news-date span {

    display: block;

    color: #ffffff;

    font-size: 14px;

    line-height: 1.15;

    font-weight: 400;
}

.tpi-news-date strong {

    display: block;

    color: #ffffff;

    font-size: 20px;

    line-height: 1.1;

    font-weight: 700;

    margin: 2px 0;
}


/*
|--------------------------------------------------------------------------
| News Content
|--------------------------------------------------------------------------
*/

.tpi-news-content {

    flex: 1;

    min-width: 0;

    padding-left: 0;

    font-size: 15.5px;

    line-height: 1.55;

    color: #176394;
}

.tpi-news-content strong,
.tpi-news-content a {

    color: #176394;

    text-decoration: none;

    font-weight: 700;
}

.tpi-news-content a:hover {
    text-decoration: underline;
}

.tpi-news-content div {

    color: #176394;

    margin-top: 2px;
}


/*
|--------------------------------------------------------------------------
| Empty State
|--------------------------------------------------------------------------
*/

.tpi-alert-no-items {

    color: #777777;

    font-size: 14px;

    text-align: center;

    padding: 30px 10px;
}


/*
|--------------------------------------------------------------------------
| Pause Animation on Hover
|--------------------------------------------------------------------------
*/

.tpi-alert-card:hover .tpi-alert-items {
    animation-play-state: paused !important;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media screen and (max-width: 1100px) {

    .tpi-dashboard-alerts {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 25px;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media screen and (max-width: 700px) {

    .tpi-dashboard-alerts {

        grid-template-columns: 1fr;

        gap: 20px;
    }

    .tpi-alert-card-body {

        height: 280px;

        min-height: 280px;
    }

    .tpi-alert-item {

        font-size: 14px;
    }

    .tpi-news-content {

        font-size: 14px;
    }

    .tpi-news-date {

        width: 75px;

        min-width: 75px;

        min-height: 82px;
    }

    .tpi-news-date span {

        font-size: 12px;
    }

    .tpi-news-date strong {

        font-size: 18px;
    }

}


/*
|--------------------------------------------------------------------------
| Reduced Motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .tpi-alert-items {

        animation: none !important;

        transform: none !important;
    }

}