
.nmrs {
    width: 100%;
    min-width: 0;
    background: transparent;
}

.nmrs * {
    box-sizing: border-box;
}

/* SLIDER VIEWPORT */

.nmrs-viewport {
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
    outline: none;
    cursor: grab;
    padding-left: 80px;
}

.nmrs-viewport:active {
    cursor: grabbing;
}

/* SLIDER TRACK */

.nmrs-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: stretch;
    transition: transform 0.55s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

/* SLIDER CARD */

.nmrs-card {
    flex: 0 0 320px !important;
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* IMAGE */

.nmrs-cover {
    width: 100%;
    height: 450px;
    flex: 0 0 450px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.nmrs-cover img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: left top;
}

/* YEAR */

.nmrs-year {
    font-size: 15px;
    font-weight: 400;
    color: #0033FF;
    margin-top: 15px;
    line-height: 30px;
    text-align: left;
}

/* TITLE */

.nmrs-title {
    font-size: 22px;
    line-height: 30px;
    font-weight: 400;
    color: #000;
    margin: 2px 0 0;
    min-height: 60px;
    text-align: left;
}

/* READ MORE CONTAINER */

.nmrs-action {
    margin-top: auto;
    padding-top: 30px;
    padding-bottom: 40px;
    text-align: left;
}

/* DEARPDF BUTTON */

.nmrs-action a,
.nmrs-action button,
.nmrs-action .dearpdf-button,
.nmrs-action .df-button,
.nmrs-action .df-popup-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #003cff !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 30px !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    line-height: 20px !important;
    box-shadow: none !important;
    cursor: pointer;
    min-height: 28px;
    padding: 15px 30px !important;
    margin: 0px !important;
    transition: background-color 0.4s ease, color 0.4s ease !important;
}

.nmrs-action a:hover,
.nmrs-action button:hover,
.nmrs-action .dearpdf-button:hover,
.nmrs-action .df-button:hover,
.nmrs-action .df-popup-button:hover {
    background: #DB2925 !important;
    color: #ffffff !important;
}

/* NAVIGATION */

.nmrs-navigation {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    background: #ffffff;
    padding: 30px 80px 100px;
}

/* PROGRESS BAR */

.nmrs-progress {
    flex: 1;
    min-width: 0;
    height: 2px;
    background: #e7e9ee;
    position: relative;
    overflow: hidden;
}

.nmrs-progress-fill {
    height: 100%;
    width: 0;
    background: #003cff;
    transition: width 0.45s ease;
}

/* NAVIGATION ARROWS */

.nmrs-arrows {
    display: flex;
    gap: 7px;
    flex: none;
}

.nmrs-arrows button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 0;
    border-radius: 50%;
    background: #003cff;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

/* LEFT ARROW IMAGE */

.nmrs-arrows button:first-child::after {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("https://www.mydigital.gov.my/wp-content/uploads/2026/10/arrow-left.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* RIGHT ARROW IMAGE */

.nmrs-arrows button:last-child::after {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("https://www.mydigital.gov.my/wp-content/uploads/2026/10/arrow-right.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ARROW HOVER */

.nmrs-arrows button:hover {
    background: #db2925;
}

/* DISABLED ARROW */

.nmrs-arrows button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================
   MAX WIDTH 1500PX
========================================= */

@media screen and (max-width: 1500px) {

    .nmrs-viewport {
        padding-left: 60px;
    }

    .nmrs-track {
        gap: 20px;
    }

    .nmrs-card {
        flex: 0 0 290px !important;
        width: 290px !important;
        min-width: 290px !important;
        max-width: 290px !important;
    }

    .nmrs-cover {
        height: 450px;
        flex-basis: 450px;
    }

    .nmrs-navigation {
        padding: 30px 60px 80px;
    }
}

/* =========================================
   MAX WIDTH 1024PX
========================================= */

@media screen and (max-width: 1024px) {

    .nmrs-viewport {
        padding-left: 40px;
    }

    .nmrs-track {
        gap: 20px;
    }

    .nmrs-card {
        flex: 0 0 280px !important;
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
    }

    .nmrs-cover {
        height: 400px;
        flex-basis: 400px;
    }

    .nmrs-navigation {
        padding: 30px 40px 60px;
    }
}

/* =========================================
   MAX WIDTH 480PX
========================================= */

@media screen and (max-width: 480px) {

    .nmrs-viewport {
        padding-left: 20px;
    }

    .nmrs-track {
        gap: 15px;
    }

    .nmrs-card {
        flex: 0 0 calc(100% - 45px) !important;
        width: calc(100% - 45px) !important;
        min-width: 0 !important;
        max-width: calc(100% - 45px) !important;
    }

    .nmrs-cover {
        height: 350px;
        flex-basis: 350px;
    }

    .nmrs-title {
        font-size: 14px;
        min-height: 3.9em;
    }

    .nmrs-action {
        padding-top: 20px;
        padding-bottom: 28px;
    }

    .nmrs-navigation {
        padding: 22px 20px 26px;
        gap: 15px;
    }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .nmrs-track,
    .nmrs-progress-fill {
        transition: none;
    }
}
