@import url("./materials-knowledge.css");

/* Materials Knowledge — Home page template */

.mk-home .mk-hero { margin-top: 0.375rem; max-width: 53.75rem; }
.mk-home .mk-hero__title {
    font-family: var(--mk-head-font);
    font-weight: 600;
    font-size: 3.75rem;
    line-height: 1.05;
    color: var(--mk-ink);
    letter-spacing: -0.0875rem;
    text-wrap: balance;
}
.mk-home .mk-hero__subtitle { font-size: 1.1875rem; line-height: 1.65; color: #5b6168; margin-top: 1.375rem; max-width: 40rem; }

/* Feature image band */
.mk-home .mk-featureband {
    margin-top: 3.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    min-height: 29.375rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #12242e;
    background-image: linear-gradient(108deg, rgba(13,24,36,.84) 0%, rgba(24,40,58,.50) 48%, rgba(46,48,52,.26) 100%);
    background-size: cover;
    background-position: center;
    box-shadow: 0 28px 62px rgba(16,31,50,.22);
}
.mk-home .mk-featureband__card {
    position: relative;
    max-width: 35rem;
    padding: 1.875rem 2rem;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 1.125rem;
    background: rgba(12,24,38,.40);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color .18s, background-color .18s;
}
.mk-home .mk-featureband__eyebrow {
    font-family: var(--mk-head-font);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #b8d4fb;
    margin-bottom: 0.75rem;
}
.mk-home .mk-featureband__title { font-family: var(--mk-head-font); font-weight: 600; font-size: 1.875rem; line-height: 1.15; color: #fff; letter-spacing: -0.025rem; }
.mk-home .mk-featureband__text { font-size: 0.96875rem; line-height: 1.6; color: #dbe6f2; margin-top: 0.75rem; }
.mk-home .mk-featureband__link {
    display: inline-block;
    margin-top: 1.125rem;
    font-family: var(--mk-head-font);
    font-weight: 600;
    font-size: 0.9375rem;
    color: #fff;
    border-bottom: 1.5px solid rgba(255,255,255,.6);
    padding-bottom: 0.125rem;
    transition: border-color .18s;
}
.mk-home .mk-featureband__link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1.125rem;
}
.mk-home .mk-featureband__card:hover { border-color: rgba(255,255,255,.4); background: rgba(12,24,38,.52); }
.mk-home .mk-featureband__card:hover .mk-featureband__link { border-bottom-color: #fff; }
.mk-home .mk-featureband__link:focus-visible { outline: none; }
.mk-home .mk-featureband__link:focus-visible::after { outline: 0.125rem solid #fff; outline-offset: 0.1875rem; }
.mk-home .mk-featureband__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.875rem; margin-top: 1.75rem; }
.mk-home .mk-featureband__tile {
    position: relative;
    overflow: hidden;
    border-radius: 0.875rem;
    min-height: 7.5rem;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.16);
    transition: transform .18s;
    background-color: #10202c;
    background-image: linear-gradient(to top, rgba(8,16,26,.80), rgba(8,16,26,.04));
    background-size: cover;
    background-position: center;
}
.mk-home .mk-featureband__tile:hover { transform: translateY(-0.1875rem); }
.mk-home .mk-featureband__tile span { font-family: var(--mk-head-font); font-weight: 600; font-size: 0.90625rem; color: #fff; line-height: 1.3; }

/* Browse by Topic — centered heading */
.mk-home .mk-browse-head { text-align: center; max-width: 40rem; margin: 0 auto 2rem; }
.mk-home .mk-browse-head p { font-size: 1rem; line-height: 1.6; color: var(--mk-muted-2); margin-top: 0.625rem; }

/* Topic cluster grid */
.mk-home .mk-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.mk-home .mk-topic {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    min-height: 14.375rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.375rem;
    background-color: #0a121c;
    background-image: linear-gradient(to top, rgba(10,18,28,.86) 0%, rgba(10,18,28,.22) 55%, rgba(10,18,28,.05) 100%);
    background-size: cover;
    background-position: center;
    transition: transform .2s;
}
.mk-home .mk-topic:hover { transform: translateY(-0.25rem); }
.mk-home .mk-topic__title { font-family: var(--mk-head-font); font-weight: 600; font-size: 1.0625rem; line-height: 1.25; color: #fff; text-wrap: balance; }
.mk-home .mk-topic__count { font-size: 0.78125rem; color: rgba(255,255,255,.72); margin-top: 0.375rem; }
.mk-home .mk-topic--wide {
    grid-column: 1 / -1;
    min-height: 6.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.375rem 1.75rem;
    background: #fff;
    border: 1px solid var(--mk-line-2);
    box-shadow: var(--mk-shadow-card);
    transition: border-color .18s;
}
.mk-home .mk-topic--wide > span:first-child { display: flex; flex-direction: column; }
.mk-home .mk-topic--wide .mk-topic__title { font-size: 1.25rem; color: var(--mk-ink); }
.mk-home .mk-topic--wide .mk-topic__count { color: var(--mk-muted); }
.mk-home .mk-topic__arrow { color: #fff; font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.mk-home .mk-topic--wide .mk-topic__arrow { color: var(--mk-blue); }
.mk-home .mk-topic--wide:hover { transform: none; border-color: #c9d8f3; }
.mk-home .mk-topic--wide:hover .mk-topic__arrow { transform: translateX(0.375rem); }

@media (max-width: 1024px) {
    .mk-home .mk-topics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .mk-home .mk-hero__title { font-size: 2.5rem; letter-spacing: -0.05rem; }
    .mk-home .mk-featureband { padding: 1.5rem; }
    .mk-home .mk-featureband__grid { grid-template-columns: 1fr; }
    .mk-home .mk-topics { grid-template-columns: 1fr; }
}
