/*---------------------------------------
      RESOURCES PAGE - PROFESSIONAL UI
-----------------------------------------*/

.resource-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    /* Soft shadow for a modern look */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
    margin: 40px 20px; /* Fixed margin for better grid spacing */
    border: 1px solid #f0f0f0;
    border-top: 4px solid #f0f0f0; /* Default subtle top border */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.resource-card:hover {
    border-top-color: #147bd7; /* Changes to theme green on hover */
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.resource-icon {
    font-size: 38px;
    color: #147bd7;
    margin-bottom: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.resource-card:hover .resource-icon {
    transform: scale(1.1);
}

.resource-card h3 {    
    font-weight: 700;
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

/* File List Area */
.file-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
    min-height: 120px; /* Keeps cards uniform height */
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f9f9f9;
}

.file-item:last-child {
    border-bottom: none;
}

/* Icons within file list */
.file-item span i {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: 0.3s;
}

/* Buttons: Download & Lock */
.download-btn, .lock-btn {
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 50%;
    font-size: 14px;
    transition: 0.3s;
    display: inline-block;
    text-decoration: none !important;
}

.download-btn {
    background: #eaffee; /* Very light green background */
    color: #147bd7; /* NCN-SR Blue for download icon */
}

.download-btn:hover {
    background: #147bd7;
    color: #fff;
    box-shadow: 0 4px 12px rgba(20, 123, 215, 0.3);
    transform: scale(1.1);
}

.lock-btn {
    background: #f8f8f8;
    color: #bbb;
}

.lock-btn:hover {
    background: #fff5f5;
    color: #e74c3c; /* Red alert color for locked items */
}

/* File Type Brand Colors */
.text-pdf   { color: #e74c3c !important; } /* Red */
.text-excel { color: #27ae60 !important; } /* Green */
.text-word  { color: #2980b9 !important; } /* Blue */
.text-image { color: #f39c12 !important; } /* Orange */

/* Login Prompt Box */
.login-prompt {
    background: #f7fffb;
    padding: 40px;
    border-radius: 15px;
    margin-top: 50px;
    border: 1px dashed #147bd7;
    text-align: center;
}

.login-prompt i {
    font-size: 40px;
    color: #147bd7;
    margin-bottom: 15px;
}

.btn-link.disabled { 
    color: #bbb; 
    cursor: not-allowed; 
    text-decoration: none; 
    font-size: 13px;
}

/* Utility Margins */
.mt-50 { margin-top: 50px; }
