/* =====================================================================
   Home page (Views/Home/Index.cshtml) — face lift, styles only.
   Scoped under .wk-home (added to the page's existing .row). Every link,
   image, tab and Razor branch (Region One, ESC 7, ESC 15, LJISD, eTrain
   COOP members, dashboard access) is unchanged. The workshop cards inside
   the list come from _RssReader2.cshtml and keep their own styles.
   ===================================================================== */

.wk-home {
    --wk-ink: #1f2a33;
    --wk-ink-2: #3d4a55;
    --wk-muted: #5b6b78;
    --wk-heading: #294456;
    --wk-line: #dde3e8;
    --wk-ground-2: #f7f9fa;
    --wk-primary: #1f5f8b;
    --wk-primary-dark: #163f5c;

    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 20px;
    align-items: start;
    margin: 6px 0 0;
}
.wk-home::before,
.wk-home::after { display: none; }
.wk-home > [class*="col-"] {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* ---------- Left column: photo, entity link buttons, dashboards ---------- */
.wk-home > .col-md-5 { display: flex; flex-direction: column; gap: 14px; }
.wk-home > .col-md-5 > br,
.wk-home > .col-md-5 > p > br { display: none; }
.wk-home > .col-md-5 > p { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.wk-home > .col-md-5 > p:empty { display: none; }
.wk-home #home-photos {
    display: block;
    width: 100%;
    margin: 0;
    border-radius: 8px;
    border: 1px solid var(--wk-line);
    background: var(--wk-ground-2);
}
.wk-home > .col-md-5 > p > a { display: block; font-size: 0 !important; line-height: 0; } /* inline 45px on the image links only added stray line height */
.wk-home > .col-md-5 > p > a > img { border-radius: 8px; height: auto !important; }
.wk-home > .col-md-5 > p > a:hover > img,
.wk-home > .col-md-5 > p > a:focus > img { box-shadow: 0 2px 10px rgba(20, 30, 40, .18); }
.wk-home > .col-md-5 center p { margin: 0; font-size: 13px; line-height: 1.5; }

/* Open Dashboards (staff with dashboard access) */
.wk-home #open-dashboards {
    display: block;
    width: 100%;
    padding: 11px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--wk-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    box-shadow: none;
}
.wk-home #open-dashboards:hover,
.wk-home #open-dashboards:focus { background: var(--wk-primary-dark); color: #fff; }

/* ---------- Right column: Upcoming Workshops card ---------- */
.wk-home > .col-md-7 {
    background: #fff;
    border: 1px solid var(--wk-line);
    border-radius: 8px;
    padding: 18px 20px 6px;
}
.wk-home > .col-md-7 > br { display: none; }
.wk-home > .col-md-7 > h3 {
    margin: 0 0 12px;
    padding-left: 0 !important;
    font-size: 18px;
    font-weight: 700;
    color: var(--wk-heading);
    text-shadow: none;
    letter-spacing: 0;
    font-family: inherit;
}
.wk-home > .col-md-7 > hr { display: none; }
.wk-home > .col-md-7 > .row {
    margin: 0;
    padding-left: 0 !important;
}
/* ESC 7 notice list and Login Help button, ESC 15 photo, LJISD notice above the list */
.wk-home > .col-md-7 > ul { margin: 0 0 14px; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.wk-home > .col-md-7 > center { margin: 0 0 16px; }
.wk-home > .col-md-7 > center img { border-radius: 8px; height: auto !important; }
.wk-home > .col-md-7 > p { margin: 0 0 12px; }

/* Tabs as an underline bar (same look as the Edit Workshop tabs) */
.wk-home .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    border-bottom: 2px solid var(--wk-line);
}
.wk-home .nav-tabs::before,
.wk-home .nav-tabs::after { display: none; }
.wk-home .nav-tabs > li { float: none; margin: 0 0 -2px; }
.wk-home .nav-tabs > li > a,
.wk-home .nav-tabs > li > a:hover,
.wk-home .nav-tabs > li > a:focus {
    margin: 0;
    padding: 9px 12px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent !important;
    color: var(--wk-ink-2);
    font-size: 13px;
    font-weight: 600;
}
.wk-home .nav-tabs > li > a:hover { color: var(--wk-primary); }
.wk-home .nav-tabs > li.active > a,
.wk-home .nav-tabs > li.active > a:hover,
.wk-home .nav-tabs > li.active > a:focus {
    border: 0;
    border-bottom: 3px solid var(--wk-primary);
    color: var(--wk-primary);
    background: transparent !important;
}

/* Scrolling list under the tabs */
.wk-home > .col-md-7 .tab-content {
    height: 480px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important; /* a 6px row margin in the list partial added a sideways scrollbar */
    margin: 0 -8px;
    padding: 12px 8px 4px;
    border: 0;
}
.wk-home > .col-md-7 .tab-pane > br:first-child { display: none; }

/* ---------- Policy notice across the bottom ---------- */
.wk-home > .home-notice {
    grid-column: 1 / -1;
    margin: 4px auto 0;
    max-width: 880px;
    padding: 14px 0 4px;
    border-top: 1px solid var(--wk-line);
    color: var(--wk-muted);
    font-size: 12px;
    line-height: 1.55;
}
.wk-home > .home-notice p { margin: 0 0 8px; }

@media (max-width: 991px) {
    .wk-home { grid-template-columns: minmax(0, 1fr); }
    .wk-home > .col-md-7 .tab-content { height: 420px !important; }
}
@media (max-width: 480px) {
    .wk-home { gap: 14px; }
    .wk-home > .col-md-7 { padding: 14px 14px 4px; }
}
