/*=====================================================
    CATEGORY PART (homepage highlights) — visual refresh
    Scoped to #category-part only; no colors changed,
    only spacing, structure & responsiveness.
======================================================*/

#category-part {
    background-color: #f3f6fa;
    padding: 30px 0 45px;
}

#category-part .category-part-inner {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 15px;
}

/*----- Announcement bar -----*/

#category-part .announce-bar{
    background-color: #ffffff;
    border-left: 4px solid #C3127C;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(7, 41, 77, 0.08);
    margin-bottom: 14px;
    overflow: hidden;
}
#category-part .announce-bar__link{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 14px 20px;
    color: #07294d;
}
#category-part .announce-bar__link:hover{
    color: #07294d;
}
#category-part .announce-bar__badge{
    flex: 0 0 auto;
    display: inline-flex;
}
#category-part .announce-bar__badge img{
    width: 26px;
    height: auto;
}
#category-part .announce-bar__text{
    flex: 1 1 320px;
    font-size: 15px;
    line-height: 1.5;
    color: #07294d;
}
#category-part .announce-bar__text strong{
    color: #C3127C;
    font-weight: 600;
}
#category-part .announce-bar__cta{
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #72c7f8;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.3px;
    padding: 9px 18px;
    border-radius: 30px;
    white-space: nowrap;
    transition: all 0.3s ease;
}
#category-part .announce-bar__link:hover .announce-bar__cta{
    background-color: #C3127C;
    transform: translateX(3px);
}

/*----- Hot advert ticker -----*/

#category-part .hot-ticker{
    display: flex;
    align-items: stretch;
    background-color: #72c7f8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 18px rgba(7, 41, 77, 0.08);
}
#category-part .hot-ticker__icon{
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    background-color: rgba(0,0,0,0.12);
    color: #ffffff;
    font-size: 16px;
}
#category-part .hot-ticker__marquee{
    position: relative;
    flex: 1 1 auto;
    height: 40px;
    overflow: hidden;
}
#category-part .hot-ticker__marquee p{
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 15px;
    line-height: 40px;
    color: #ffffff;
    white-space: nowrap;
    text-align: left;
    transform: translateX(100%);
    animation: category-ticker-scroll 22s linear infinite;
}
@keyframes category-ticker-scroll{
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/*----- Main card wrapper -----*/

#category-part .category-card{
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(7, 41, 77, 0.09);
    padding: 25px;
}

/*----- Notice board / Facebook panel -----*/

#category-part .notice-panel{
    height: 100%;
    padding-right: 20px;
    border-right: 1px solid #eef1f5;
}
#category-part .notice-panel__btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background-color: #07294d;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 15px;
    border-radius: 6px;
    border: none;
    margin-bottom: 16px;
    transition: background-color 0.3s ease;
}
#category-part .notice-panel__btn:hover{
    background-color: #C3127C;
}
#category-part .notice-panel__fb{
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eef1f5;
    min-height: 340px;
}
#category-part .notice-panel__fb .fb-page,
#category-part .notice-panel__fb iframe{
    width: 100% !important;
}

/*----- News panel -----*/

#category-part .news-panel{
    height: 100%;
    padding-left: 5px;
}
#category-part .news-panel .section-title{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 22px;
}
#category-part .news-panel .section-title h5{
    padding-bottom: 0;
    font-size: 19px;
}
#category-part .news-panel .section-title h5::before{
    display: none;
}
#category-part .news-panel .section-title h5 i{
    color: #C3127C;
    margin-right: 6px;
}

#category-part .news-grid{
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}
#category-part .news-grid .news-col{
    padding: 0 12px;
    margin-bottom: 15px;
}

#category-part .news-card{
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #eef1f5;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
#category-part .news-card:hover{
    box-shadow: 0 10px 25px rgba(7, 41, 77, 0.12);
    transform: translateY(-3px);
}
#category-part .news-card .news-thum{
    padding: 0;
    margin: 0;
}
#category-part .news-card .news-thum img{
    border-radius: 0;
    height: 170px;
    object-fit: cover;
}
#category-part .news-card .news-cont{
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
#category-part .news-card .news-cont ul{
    margin-bottom: 8px;
}
#category-part .news-card .news-cont a h6{
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 8px;
}
#category-part .news-card .news-cont p{
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}
#category-part .news-card .news-cont p br{
    display: none;
}

/*----- Responsive -----*/

@media (max-width: 991px){
    #category-part .notice-panel{
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #eef1f5;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    #category-part .notice-panel__fb{
        min-height: 260px;
    }
    #category-part .news-panel{
        padding-left: 0;
    }
}

@media (max-width: 767px){
    #category-part{
        padding: 20px 0 30px;
    }
    #category-part .category-card{
        padding: 18px 15px;
        border-radius: 8px;
    }
    #category-part .announce-bar__link{
        padding: 12px 15px;
    }
    #category-part .announce-bar__cta{
        width: 100%;
        justify-content: center;
    }
    #category-part .news-card .news-thum img{
        height: 200px;
    }
}

@media (max-width: 575px){
    #category-part .news-grid .news-col{
        flex: 0 0 100%;
        max-width: 100%;
    }
}
