body::before {
    content: '';
    position: fixed; 
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(26, 26, 26, 0.5), rgba(26, 26, 26, 0.65)), 
                      url('../public/images/IR_bg_green.png'); 
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: blur(5px); 
    transform: scale(1.1); 
    pointer-events: none;
}

.nus-dashboard-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 25px;
    width: 100%;
    max-width: 1280px; 
    margin: 40px auto;
    padding: 0 40px; 
    box-sizing: border-box;
}

.middle-stack {
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 100%;
}

.nus-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background-color: #0d0d0d;
    border: 2px solid rgba(255, 255, 255, 0.2);
    
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15),
                inset 0 0 15px rgba(255, 255, 255, 0.05);
    
    /* Effect */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.4s ease;
    cursor: pointer;
}

.card-large {
    min-height: 520px;
    height: 100%;
}

.card-stacked {
    flex: 1;
    min-height: 247px;
}

.card-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    z-index: 1;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 2;
}

/* กล่องเนื้อหาตัวหนังสือ */
.card-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 25px;
    box-sizing: border-box;
}

.card-content h2 {
    font-family: 'Share Tech', sans-serif;
    font-size: 1.6rem;
    color: #ffffff;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.card-content h3 {
    font-family: 'Anuphan', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: #dddddd;
    margin: 0;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
}

.nus-card:hover {
    transform: scale(1.03) translateY(-4px); 
    border-color: #ffffff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8),
                0 0 10px rgba(255, 255, 255, 0.4),
                inset 0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.nus-card:hover .card-image-bg {
    transform: scale(1.08); 
}

@media (max-width: 900px) {
    .nus-dashboard-container {
        grid-template-columns: 1fr; 
        padding: 0 20px;
    }
    .card-large, .card-stacked {
        min-height: 280px;
    }
}

@media (max-width: 900px) {
    .nus-dashboard-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .card-large, .card-stacked {
        min-height: 280px;
    }
    .card-content h3 {
        white-space: normal; 
    }
}