/* --- Hub Page Specific Styles --- */
.hub-body {
    background-color: #f1f5f9;
    color: #334155;
    margin: 0;
}

.hub-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: #38bdf8;
    display: block;
    margin-bottom: 10px;
}

.hub-container {
    max-width: 1100px;
    margin: -40px auto 60px;
    padding: 0 20px;
}

.hub-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 10px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-count {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Grid & Cards */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.hub-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hub-card.active:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.reg-number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    color: #94a3b8;
}

.hub-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    color: #0f172a;
}

.hub-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 24px;
}

.card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.view-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #38bdf8;
}

/* Badge Styles */
.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.b-reg { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.b-work { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }

/* Construction Style */
.hub-card.loading {
    background-color: #f8fafc;
    border-style: dashed;
}

.progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-fill {
    width: 30%;
    height: 100%;
    background: #cbd5e1;
    animation: loading-pulse 2s infinite ease-in-out;
}

@keyframes loading-pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.hub-footer {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 0.85rem;
}