/* ============================================================
   NRES Photo Card Navigation
   ============================================================ */

/* -- Wrapper Section -- */
.nres-photocard-section {
    padding: 18px 0 14px;
    width: 100%;
}

/* -- Grid baris kad -- */
.nres-photocard-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 60px;
}

/* -- Kad individu -- */
.nres-pcard {
    position: relative;
    width: calc(25% - 8px);
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    -webkit-transition: -webkit-transform 0.32s cubic-bezier(0.25,0.8,0.25,1),
                        -webkit-box-shadow 0.32s ease;
    transition: transform 0.32s cubic-bezier(0.25,0.8,0.25,1),
                box-shadow 0.32s ease;
    background: #dde4ee;
}

.nres-pcard:hover {
    -webkit-transform: scale(1.07);
    -ms-transform: scale(1.07);
    transform: scale(1.07);
    -webkit-box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    z-index: 10;
    text-decoration: none !important;
    outline: none;
}

/* -- Gambar latar -- */
.nres-pcard-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    display: block;
    -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.25,0.8,0.25,1);
    transition: transform 0.4s cubic-bezier(0.25,0.8,0.25,1);
}

.nres-pcard:hover .nres-pcard-img {
    -webkit-transform: scale(1.11);
    -ms-transform: scale(1.11);
    transform: scale(1.11);
}

/* -- Lapisan gelap gradient (overlay) -- */
.nres-pcard-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: -webkit-linear-gradient(
        top,
        rgba(0,0,0,0.00) 0%,
        rgba(0,18,60,0.30) 50%,
        rgba(0,18,60,0.65) 100%
    );
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.00) 0%,
        rgba(0,18,60,0.30) 50%,
        rgba(0,18,60,0.65) 100%
    );
    -webkit-transition: background 0.3s ease;
    transition: background 0.3s ease;
}

.nres-pcard:hover .nres-pcard-overlay {
    background: -webkit-linear-gradient(
        top,
        rgba(0,18,60,0.20) 0%,
        rgba(0,18,60,0.70) 50%,
        rgba(0,18,60,0.95) 100%
    );
    background: linear-gradient(
        to bottom,
        rgba(0,18,60,0.20) 0%,
        rgba(0,18,60,0.70) 50%,
        rgba(0,18,60,0.95) 100%
    );
}

/* -- Label teks -- */
.nres-pcard-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 9px 10px 11px;
    color: #ffffff;
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.50);
    letter-spacing: 0.25px;
    line-height: 1.35;
    pointer-events: none;
    z-index: 3;
    -webkit-transition: padding-bottom 0.28s ease;
    transition: padding-bottom 0.28s ease;
}

.nres-pcard:hover .nres-pcard-label {
    padding-bottom: 15px;
}

/* ---- Responsive Tablet ---- */
@media (max-width: 992px) {
    .nres-pcard {
        width: calc(50% - 8px);
        height: 150px;
    }
    .nres-pcard-label {
        font-size: 11px;
    }
}

/* ---- Responsive Mobile ---- */
@media (max-width: 600px) {
    .nres-pcard {
        width: calc(50% - 6px);
        height: 100px;
    }
    .nres-photocard-grid {
        gap: 8px;
        padding: 0 8px;
    }
    .nres-pcard-label {
        font-size: 10px;
        padding: 6px 6px 9px;
    }
}

@media (max-width: 380px) {
    .nres-pcard {
        width: calc(50% - 6px);
        height: 85px;
    }
}

/* ============================================================
   END NRES Photo Card Navigation
   ============================================================ */