/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.0.0
Description: Child theme for VU Projects
*/

/* ── Department grid ── */
.vu-depts-page { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }
.vu-depts-hero { text-align: center; margin-bottom: 32px; }
.vu-depts-hero h1 { font-size: 2rem; margin-bottom: 8px; }
.vu-depts-hero p  { color: #555; font-size: 1rem; }

.vu-depts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.vu-dept-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
}
.vu-dept-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.vu-dept-card--ug { background: #f0f4ff; border-color: #b3c4f5; }
.vu-dept-card--ug:hover { background: #e0e8ff; }
.vu-dept-card--pg { background: #f0f4ff; border-color: #b3c4f5; }
.vu-dept-card--pg:hover { background: #e0e8ff; }

.vu-dept-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 12px;
    line-height: 1.4;
}
.vu-dept-count-badge {
    font-size: 0.78rem;
    font-weight: 500;
    color: #1e3a8a;
    background: #dbeafe;
    padding: 3px 8px;
    border-radius: 20px;
    align-self: flex-start;
}

/* ── Department topic page ── */
.vu-dept-page { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.vu-dept-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.vu-dept-header h1 { margin: 0; font-size: 1.8rem; }

.vu-level-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.vu-badge-ug { background: #dbeafe; color: #1e3a8a; }
.vu-badge-pg { background: #dbeafe; color: #1e3a8a; }

/* ── PG Tabs ── */
.vu-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.vu-tab {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: #1e3a8a;
    background: #f0f4ff;
    border: 1px solid #b3c4f5;
    transition: background 0.15s;
}
.vu-tab:hover  { background: #e0e8ff; }
.vu-tab-active { background: #1e3a8a; color: #fff; border-color: #1e3a8a; }

/* ── Topic cards ── */
.vu-topics-list { display: flex; flex-direction: column; gap: 16px; }
.vu-topic-card {
    display: flex;
    gap: 16px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    transition: box-shadow 0.2s;
}
.vu-topic-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }

.vu-topic-number {
    min-width: 32px;
    height: 32px;
    background: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e3a8a;
    flex-shrink: 0;
}
.vu-topic-body  { flex: 1; }
.vu-topic-title { margin: 0 0 8px; font-size: 1rem; line-height: 1.5; }
.vu-topic-title a { color: #1a1a2e; text-decoration: none; }
.vu-topic-title a:hover { color: #1e3a8a; }
.vu-topic-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.vu-topic-level {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: #dbeafe;
    color: #1e3a8a;
    font-weight: 500;
}
.vu-topic-excerpt { font-size: 0.875rem; color: #6b7280; margin: 0; }
.vu-topic-count  { margin-top: 16px; font-size: 0.875rem; color: #9ca3af; }
.vu-no-results   { color: #6b7280; font-style: italic; padding: 40px 0; text-align: center; }