/* ========================================
   SMART PEKUA
   Notices Page
======================================== */


/* ==========================
   Header
========================== */

.notice-page-header {

    display: flex;

    align-items: center;

    gap: 11px;

    min-height: 65px;

    padding: 9px 13px;

    box-sizing: border-box;

    background:
        linear-gradient(
            135deg,
            #1565C0,
            #1E88E5
        );

    color: #fff;

    box-shadow:
        0 4px 14px rgba(0,0,0,.12);

}


/* ==========================
   Back Button
========================== */

.notice-back-btn {

    display: flex;

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

    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border-radius: 11px;

    background:
        rgba(255,255,255,.16);

    border:
        1px solid rgba(255,255,255,.25);

    color: #fff;

    text-decoration: none;

    font-size: 25px;

    transition: .2s;

}


.notice-back-btn:active {

    transform: scale(.94);

}


/* ==========================
   Header Icon
========================== */

.notice-header-icon {

    display: flex;

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

    width: 39px;
    height: 39px;

    flex-shrink: 0;

    border-radius: 10px;

    background:
        rgba(255,255,255,.16);

    font-size: 20px;

}


/* ==========================
   Header Text
========================== */

.notice-header-text {

    min-width: 0;

}


.notice-header-text h1 {

    margin: 0;

    color: #fff;

    font-size: 18px;

    line-height: 1.3;

}


.notice-header-text p {

    margin: 2px 0 0;

    color:
        rgba(255,255,255,.80);

    font-size: 10px;

}


/* ==========================
   Page
========================== */

.notices-page {

    padding:
        18px 15px 40px;

}


/* ==========================
   Intro
========================== */

.notices-intro {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 17px;

    padding: 15px;

    background: #fff;

    border-radius: 15px;

    box-shadow:
        0 3px 12px rgba(0,0,0,.06);

}


.notices-intro-icon {

    display: flex;

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

    width: 45px;
    height: 45px;

    flex-shrink: 0;

    border-radius: 12px;

    background: #E3F2FD;

    font-size: 23px;

}


.notices-intro h2 {

    margin: 0 0 3px;

    color: #222;

    font-size: 18px;

}


.notices-intro p {

    margin: 0;

    color: #777;

    font-size: 12px;

    line-height: 1.5;

}


/* ==========================
   Search
========================== */

.notices-search-wrapper {

    margin-bottom: 11px;

}


.notices-search {

    width: 100%;

    box-sizing: border-box;

    padding: 13px 15px;

    border:
        1px solid #ddd;

    border-radius: 11px;

    background: #fff;

    color: #222;

    font-family: inherit;

    font-size: 14px;

    outline: none;

}


.notices-search:focus {

    border-color: #1E88E5;

    box-shadow:
        0 0 0 3px
        rgba(30,136,229,.10);

}


/* ==========================
   Count
========================== */

.notices-count {

    margin:
        10px 3px 12px;

    color: #777;

    font-size: 12px;

}


/* ==========================
   Notice Card
========================== */

.notice-list-card {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    width: 100%;

    box-sizing: border-box;

    margin-bottom: 12px;

    padding: 14px;

    background: #fff;

    border-left:
        4px solid #1E88E5;

    border-radius: 14px;

    box-shadow:
        0 3px 12px rgba(0,0,0,.06);

    text-decoration: none;

    transition: .2s ease;

}


.notice-list-card:active {

    transform: scale(.985);

}


/* ==========================
   Icon
========================== */

.notice-list-icon {

    display: flex;

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

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 10px;

    background: #E3F2FD;

    font-size: 18px;

}


/* ==========================
   Content
========================== */

.notice-list-content {

    flex: 1;

    min-width: 0;

}


.notice-list-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    margin-bottom: 5px;

}


.notice-list-category {

    padding:
        3px 8px;

    border-radius: 20px;

    background: #E3F2FD;

    color: #1565C0;

    font-size: 10px;

    font-weight: 600;

}


.notice-list-date {

    color: #888;

    font-size: 10px;

    white-space: nowrap;

}


.notice-list-content h3 {

    margin: 0;

    color: #222;

    font-size: 15px;

    line-height: 1.45;

}


.notice-list-content p {

    margin: 5px 0 6px;

    color: #777;

    font-size: 12px;

    line-height: 1.55;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;

}


.notice-read-more {

    color: #1565C0;

    font-size: 11px;

    font-weight: 600;

}


/* ==========================
   Loading
========================== */

.notices-loading {

    padding: 35px 10px;

    text-align: center;

    color: #777;

    font-size: 14px;

}


/* ==========================
   Empty
========================== */

.no-notices {

    display: none;

    padding: 40px 15px;

    text-align: center;

    color: #777;

    font-size: 14px;

}


/* ==========================
   Error
========================== */

.notices-error {

    padding: 25px 15px;

    background: #FFF3F3;

    border-radius: 13px;

    color: #C62828;

    text-align: center;

    font-size: 13px;

}


/* ==========================
   Home Compatibility
========================== */

.notice-loading {

    padding: 25px 10px;

    text-align: center;

    color: #777;

    font-size: 14px;

}


.notice-empty {

    padding: 22px 10px;

    background: #fff;

    border-radius: 12px;

    color: #777;

    text-align: center;

    font-size: 14px;

}


.notice-error {

    padding: 18px 10px;

    background: #FFF3F3;

    border-radius: 12px;

    color: #C62828;

    text-align: center;

    font-size: 13px;

}


/* ==========================
   Home Notice Cards
========================== */

.latest-notice-card {

    display: flex;

    align-items: flex-start;

    gap: 11px;

    width: 100%;

    box-sizing: border-box;

    margin-bottom: 10px;

    padding: 13px 12px;

    background: #fff;

    border-left: 4px solid #1E88E5;

    border-radius: 12px;

    box-shadow:
        0 3px 12px rgba(0,0,0,.06);

    text-decoration: none;

}


.latest-notice-icon {

    display: flex;

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

    width: 30px;
    height: 30px;

    flex-shrink: 0;

    border-radius: 9px;

    background: #E3F2FD;

}


.latest-notice-content {

    flex: 1;

    min-width: 0;

}


.latest-notice-top {

    display: flex;

    justify-content: space-between;

    gap: 8px;

}


.latest-notice-category {

    color: #1565C0;

    font-size: 10px;

}


.latest-notice-date {

    color: #888;

    font-size: 10px;

}


.latest-notice-content h3 {

    margin: 3px 0;

    color: #222;

    font-size: 14px;

}


.latest-notice-content p {

    margin: 0;

    color: #777;

    font-size: 12px;

}


.latest-notice-arrow {

    color: #1E88E5;

    font-size: 23px;

}


/* ==========================
   Mobile
========================== */

@media (max-width: 600px) {

    .notices-page {

        padding-left: 11px;

        padding-right: 11px;

    }


    .notices-intro {

        padding: 13px;

    }


    .notices-intro h2 {

        font-size: 17px;

    }


    .notice-list-card {

        padding: 12px;

    }

}