.header-top-mobile-logo {
    display: none;
}

.news-carousel .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.banner-section {
    position: relative;
    min-height: 400px;
    padding-bottom: 100px;
}

.banner-section .content-box {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 90%;
    max-width: 1200px;
}

.news-section {
    margin-top: 100px;
}

.banner-section .owl-dots .owl-dot span {
    width: 24px;
    height: 25px;
    border-radius: 50%;
}

.banner-section .owl-dots .owl-dot.active span,
.banner-section .owl-dots .owl-dot span:hover {
    background: #192F59;
}

.banner-section .category-block-one .inner-box {
    background: #FFFFFF;
    border-radius: 10px;
    border: 1px solid #E1E1E1;
    box-shadow: 0px 8.5px 13.75px rgba(23, 26, 31, 0.5), 0px 0px 2px rgba(23, 26, 31, 0.08);
}

.news-section .sec-title.centred {
    margin-bottom: 30px;
}

.news-section .sec-title.centred h2 {
    position: relative;
    display: inline-block;
    padding: 0 20px;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.news-section .view-all-news-wrapper {
    text-align: center;
    margin-top: 10px;
}

.news-section .view-all-news-link {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    margin-top: 10px;
    cursor: pointer;
}

.news-section .view-all-news-link:hover {
    text-decoration: none;
    opacity: 0.8;
    transform: translateX(3px);
}

.news-section .view-all-news-link .arrow {
    margin-left: 8px;
    font-size: 0.9em;
    transition: transform 0.3s ease;
    display: inline-block;
}

.news-section .view-all-news-link:hover .arrow {
    transform: translateX(5px);
}

.news-section .sec-title.centred h2::before,
.news-section .sec-title.centred h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 190px;
    height: 0;
    border-top: 1px solid #565D6D4D;
    border-left: none;
    border-right: none;
    border-bottom: none;
    transform: rotate(0deg);
}

.news-section .sec-title.centred h2::before {
    right: 100%;
    margin-right: 5px;
}

.news-section .sec-title.centred h2::after {
    left: 100%;
    margin-left: 5px;
}

.banner-section .five-item-carousel .owl-item {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
}

.banner-section .five-item-carousel .owl-item .category-block-one {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.banner-section .five-item-carousel .category-block-one .inner-box {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.banner-section .five-item-carousel .owl-stage-outer {
    margin: 0 !important;
}

#news-actions .btn-outline-primary {
    min-width: 180px;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-color: #192F59 !important;
    color: #192F59 !important;
    background-color: transparent;
}

#news-actions .btn-outline-primary:hover {
    transform: translateY(-2px);
    background-color: #192F59 !important;
    border-color: #192F59 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(25, 47, 89, 0.3);
}

.custom-alert-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 500px;
    animation: slideDownFade 0.5s ease-out forwards;
}

.custom-alert {
    background: #ffffff;
    border-left: 5px solid #dc3545;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.custom-alert .content-wrapper {
    display: flex;
    align-items: flex-start;
}

.custom-alert .icon-box {
    width: 35px;
    height: 35px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.custom-alert .icon-box i {
    color: #dc3545;
    font-size: 1.1rem;
}

.custom-alert .text-content h5 {
    margin: 0 0 2px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c3e50;
}

.custom-alert .text-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

.custom-alert .close-btn {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    transition: color 0.2s;
    line-height: 1;
}

.custom-alert .close-btn:hover {
    color: #495057;
}

@keyframes slideDownFade {
    0% {
        transform: translate(-50%, -20px);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.empty-news-state__icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.portal-slider__icon,
.portal-slider__title-link {
    color: #192f59;
}

.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card .card {
    width: 350px;
    max-width: 100%;
    height: 414px;
    background: #FFFFFF;
    border-radius: 10px;
    border: 1px solid #F4F4F4;
    box-shadow: 0px 2px 4px rgba(23, 26, 31, 0.09), 0px 0px 2px rgba(23, 26, 31, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
}

.news-card:hover .card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img-top-container.no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-placeholder {
    color: white;
    font-size: 3rem;
    opacity: 0.7;
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 15px;
}

.news-badges-container {
    padding: 10px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-badges-container .badge {
    display: inline-block;
    padding: 0.5em 0.75em;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50rem;
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.2rem;
    position: relative;
    top: -18px;
}

.news-title a {
    color: inherit;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #007bff;
}

.news-meta {
    position: relative;
    margin-top: auto;
    padding-top: 1rem;
    flex-shrink: 0;
}

.news-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.25rem;
}

.news-meta small {
    font-size: 0.85rem;
}

.news-meta-row small {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.news-meta .btn {
    top: 359px;
    left: 17px;
    width: 106.0625px;
    height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    color: #192F59FF;
    background: #FFFFFFFF;
    opacity: 1;
    border-radius: 6px;
    border-width: 1px;
    border-color: #192F59FF;
    border-style: solid;
}

.news-meta .btn:hover {
    transform: translateX(3px);
}

@media (max-width: 767.98px) {
    .portal-slider.banner-section {
        min-height: 300px;
        padding-bottom: 52px;
    }

    .header-top {
        display: none !important;
    }

    .header-top-mobile-logo {
        display: block;
        background: #192f59;
        padding: 18px 0 18px;
    }

    .header-top-mobile-logo .auto-container {
        display: flex;
        justify-content: left;
    }

    .header-top-mobile-logo__link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .header-top-mobile-logo__link img {
        max-width: 70px;
        width: 100%;
        height: auto;
    }

    .header-top-mobile-logo__text {
        font-size: 1.4rem;
        line-height: 1;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .header-lower .logo-box,
    .sticky-header .logo-box {
        display: none !important;
    }

    .header-lower {
        padding-top: 10px;
    }

    .header-lower .outer-box {
        min-height: 60px;
        align-items: center;
    }

    .header-lower .btn-box .theme-btn-one {
        padding: 10px 16px;
        font-size: 15px;
        line-height: 1.1;
    }

    .header-lower .btn-box .theme-btn-one i {
        font-size: 14px;
        margin-right: 5px;
    }

    .portal-slider .content-box {
        position: absolute !important;
        bottom: -72px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 24px) !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .portal-slider .portal-slider-carousel .owl-item {
        padding-left: 0.45rem !important;
        padding-right: 0.45rem !important;
    }

    .portal-slider .category-block-one {
        margin-bottom: 0;
    }

    .portal-slider .category-block-one .inner-box {
        max-width: 150px;
        min-height: 118px;
        padding: 14px 10px;
        border-radius: 8px;
        box-shadow: 0 8px 18px rgba(23, 26, 31, 0.18);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .portal-slider .category-block-one .inner-box .icon-box {
        font-size: 34px;
        line-height: 34px;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .portal-slider .category-block-one .inner-box h5 {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .portal-slider .category-block-one .inner-box .shape {
        opacity: 0.45;
    }

    .portal-slider .owl-dots {
        margin-top: 14px;
    }

    .portal-slider .owl-dots .owl-dot span {
        width: 10px;
        height: 10px;
    }

    .news-section .view-all-news-link {
        font-size: 0.9rem;
    }

    .news-card .card {
        height: 380px;
    }

    .card-img-top-container {
        height: 180px;
    }

    .news-title {
        font-size: 1rem;
        min-height: 3.6rem;
    }

    .news-badges-container {
        padding: 8px 12px;
    }

    .news-badges-container .badge {
        font-size: 0.7rem;
        padding: 0.3em 0.6em;
    }

    .main-footer .footer-column:nth-child(2),
    .main-footer .footer-column:nth-child(3),
    .main-footer .footer-column:nth-child(4) {
        display: none;
    }

    .main-footer .footer-column {
        text-align: center;
    }

    .main-footer .footer-widget.links-widget,
    .main-footer .footer-widget.links-widget.ml-70,
    .main-footer .footer-widget.logo-widget {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .main-footer .footer-logo,
    .main-footer .widget-title,
    .main-footer .text {
        text-align: center;
    }

    .main-footer .footer-logo {
        display: flex;
        justify-content: center;
        max-width: 176px;
        width: 100%;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .main-footer .footer-logo a {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .main-footer .footer-logo img {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .main-footer .social-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-footer .links-list {
        text-align: center;
    }

    .main-footer .links-list li a {
        display: inline-block;
    }

    .main-footer .footer-bottom .copyright,
    .main-footer .footer-bottom .footer-nav,
    .main-footer .footer-bottom .pull-left,
    .main-footer .footer-bottom .pull-right {
        float: none !important;
        text-align: center;
    }

    .main-footer .footer-bottom .footer-nav li {
        display: inline-block;
        float: none !important;
    }
}

@media (max-width: 575.98px) {
    .portal-slider.banner-section {
        min-height: 260px;
        padding-bottom: 44px;
    }

    .portal-slider .content-box {
        bottom: -66px !important;
    }

    .news-section {
        margin-top: 48px !important;
    }

    .portal-slider .category-block-one .inner-box {
        max-width: 136px;
        min-height: 110px;
        padding: 12px 8px;
    }

    .portal-slider .category-block-one .inner-box .icon-box {
        font-size: 30px;
        line-height: 30px;
    }

    .portal-slider .category-block-one .inner-box h5 {
        font-size: 13px;
    }

    .news-card .card {
        width: 100%;
        height: 360px;
    }

    .card-img-top-container {
        height: 160px;
    }

    .news-title {
        font-size: 0.95rem;
        min-height: 3.2rem;
        top: 0;
        text-align: left;
    }

    .news-placeholder {
        font-size: 2.5rem;
    }

    .news-badges-container {
        padding: 6px 10px;
    }

    .news-badges-container .badge {
        font-size: 0.65rem;
        padding: 0.25em 0.5em;
    }

    .news-card .card-body {
        align-items: flex-start;
        text-align: left;
    }

    .news-meta {
        width: 100%;
    }

    .news-meta > div {
        align-items: stretch;
        width: 100%;
    }

    /* Tarikh kiri, views kanan — baris penuh lebar supaya space-between berfungsi */
    .news-meta-row {
        align-self: stretch;
        width: 100%;
        justify-content: space-between !important;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .news-meta .btn {
        align-self: flex-start !important;
    }
}
