/* Portal Styles - Desert Succulent */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #E6E2D3; /* Sandstone */
    margin: 0;
    padding: 0;
    color: #333;
}

.navbar {
    background-color: #556B2F; /* Dark Olive */
    padding: 15px;
    text-align: center;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

.header-section {
    background-color: white;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #BDB76B; /* Khaki Green */
}

/* Card Styling */
.lab-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #8F9779; /* Dusty Aloe */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.lab-card h3 {
    margin: 0;
    font-size: 18px;
    color: #556B2F; /* Dark Olive */
}

.card-desc {
    color: #6b705c;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: bold;
}
.badge.done { background: #f4f3ed; color: #556B2F; } 
.badge.pending { background: #fff3e0; color: #ef6c00; }

/* Container adjusted to strictly 3 columns */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto; 
}

.link-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.link-group +, .link-group {
    margin-top: 15px;
}

.link-group a {
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    flex: 1;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Secondary Button (Problem, Report, Sample) */
.btn-secondary {
    background-color: #f4f3ed;
    color: #556B2F; /* Dark Olive */
    border: 1px solid #BDB76B; /* Khaki Green */
}
.btn-secondary:hover { background-color: #E6E2D3; } /* Sandstone */

/* Primary Button (Live Demo) */
.btn-primary {
    background-color: #8F9779; /* Dusty Aloe */
    color: white;
    border: 1px solid #556B2F; /* Dark Olive */
}
.btn-primary:hover { background-color: #556B2F; }

@media (max-width: 992px) {
    .grid-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-container { grid-template-columns: 1fr; }
}
footer {
    text-align: center;
    padding: 20px;
    color: #8F9779; /* Dusty Aloe */
    font-size: 12px;
}