/*
 * Below-the-fold home-page styles (sections, hub cards, library, authors).
 * Extracted from the render-blocking inline <style> in Index.cshtml and loaded
 * deferred (media=print swap). Hero styles stay inline (above the fold).
 */
/* ── Section scaffolding ── */
.page-section { padding: 4rem 0; }
.section-eyebrow {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #3071F2;
    margin-bottom: .35rem;
}
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #143259;
    margin-bottom: 0;
}
.section-divider {
    border: none;
    height: 1px;
    background: #e9ecef;
    margin: 0;
}

/* ── Category pill ── */
.category-pill {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .18rem .6rem;
    border-radius: 100px;
    background: rgba(48,113,242,.12);
    color: #3071F2;
    white-space: nowrap;
}

/* ── Shared thumbnail shell ── */
.featured-thumb,
.grid-thumb {
    position: relative;
    overflow: hidden;
}
.grid-thumb::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}
.featured-thumb {
    flex: 0 0 45%;
    max-width: 45%;
    min-height: 220px;
}
.thumb-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
.thumb-icon {
    font-size: 2rem;
    font-weight: 700;
    opacity: .75;
    font-family: 'Courier New', monospace;
    user-select: none;
}
.featured-thumb .thumb-icon { font-size: 3rem; }

/* ── Featured article (horizontal) ── */
.featured-card {
    display: flex;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s;
    margin-bottom: 1.5rem;
    position: relative;
}
.featured-card {
    transition: box-shadow .25s cubic-bezier(.22,.61,.36,1), transform .25s cubic-bezier(.22,.61,.36,1), border-color .25s cubic-bezier(.22,.61,.36,1);
}
.featured-card:hover {
    box-shadow: 0 8px 32px rgba(20,50,89,.1);
    transform: translateY(-4px);
    border-color: rgba(48,113,242,.25);
}
.featured-card:hover .thumb-img { transform: scale(1.04); }
.featured-content {
    flex: 1;
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #143259;
    line-height: 1.3;
    text-decoration: none;
    display: block;
    margin-bottom: .85rem;
    transition: color .15s;
}
.featured-title:hover { color: #3071F2; }
.featured-summary {
    color: #4a5e75;
    font-size: .95rem;
    line-height: 1.75;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* ── Grid article cards ── */
.grid-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s cubic-bezier(.22,.61,.36,1), transform .25s cubic-bezier(.22,.61,.36,1), border-color .25s cubic-bezier(.22,.61,.36,1);
}
.grid-card:hover {
    box-shadow: 0 6px 24px rgba(20,50,89,.09);
    transform: translateY(-4px);
    border-color: rgba(48,113,242,.25);
}
.grid-card:hover .thumb-img { transform: scale(1.06); }
.grid-content {
    padding: 1.25rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.grid-title {
    font-size: 1rem;
    font-weight: 700;
    color: #143259;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    margin-bottom: .5rem;
    transition: color .15s;
}
.grid-title:hover { color: #3071F2; }
.grid-summary {
    font-size: .85rem;
    color: #6b7f96;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 1rem;
    text-align: justify;
}

/* ── Shared read CTA ── */
.read-cta {
    font-size: .82rem;
    font-weight: 600;
    color: #3071F2;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: gap .15s, color .15s;
    margin-top: auto;
}
.read-cta:hover { color: #143259; gap: .5rem; }
.read-cta::after { content: "→"; }

/* ── Card meta row ── */
.card-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .65rem;
}

/* ── Latest badge ── */
.featured-label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: #CAF2C9;
    color: #143259;
    padding: .2rem .6rem;
    border-radius: 4px;
}

/* ── Date tag ── */
.date-tag {
    font-size: .75rem;
    color: #8a9bb0;
    font-weight: 500;
    letter-spacing: .02em;
}

/* ── Author byline (lifts above stretched-link) ── */
.author-byline {
    position: relative;
    z-index: 2;
    display: inline-block;
    font-size: .72rem;
    color: #6b7f96;
    text-decoration: none;
    margin-bottom: .5rem;
    letter-spacing: .02em;
    transition: color .15s;
}
.author-byline strong { font-weight: 700; color: #143259; }
.author-byline:hover { color: #143259; text-decoration: none; }
.author-byline:hover strong { color: #3071F2; text-decoration: underline; }

/* ── Responsive: featured stacks on mobile ── */
@media (max-width: 767px) {
    .featured-card { flex-direction: column; }
    .featured-thumb {
        flex: none;
        max-width: 100%;
        width: 100%;
        min-height: 0;
    }
    .featured-thumb::before {
        content: "";
        display: block;
        padding-top: 56.25%;
    }
    .featured-content { padding: 1.5rem; }
    .featured-title { font-size: 1.2rem; }
}

/* ── Library (Books & Collections) ── */
.library-section .section-eyebrow i { margin-right: .3rem; }
.library-books-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 576px) { .library-books-grid { grid-template-columns: repeat(3, 1fr); } }
.library-book-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    padding: 1rem;
    transition: box-shadow .2s ease, transform .2s ease;
}
.library-book-card:hover { box-shadow: 0 10px 30px rgba(20,50,89,.12); transform: translateY(-4px); }
.library-book-badge {
    align-self: flex-start;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #143259;
    background: #CAF2C9;
    border-radius: 20px;
    padding: .2rem .55rem;
    margin-bottom: .75rem;
}
.library-book-badge i { margin-right: .2rem; }
.library-book-cover {
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    background: linear-gradient(150deg, #143259, #3071F2);
    display: flex;
    align-items: flex-start;
    padding: .9rem;
    margin-bottom: .85rem;
    box-shadow: 0 8px 20px rgba(20,50,89,.25);
}
.library-book-card:nth-child(2) .library-book-cover { background: linear-gradient(150deg, #1d4a6b, #418EF2); }
.library-book-card:nth-child(3) .library-book-cover { background: linear-gradient(150deg, #143259, #89C2D9); }
.library-book-cover-title {
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.library-book-title {
    font-size: .95rem;
    font-weight: 700;
    color: #143259;
    margin: 0 0 .3rem;
    line-height: 1.3;
}
.library-book-meta { font-size: .78rem; color: #6b7f96; margin: 0 0 .65rem; line-height: 1.5; }
.library-book-meta span { color: #3071F2; font-weight: 600; }
.library-book-stats {
    display: flex;
    gap: 1rem;
    font-size: .74rem;
    color: #6b7f96;
    margin-bottom: .9rem;
}
.library-book-stats i { color: #3071F2; margin-right: .25rem; }
.library-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 44px;
    padding: .55rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: filter .15s, background .15s, color .15s;
}
.library-btn-primary { background: #143259; color: #fff; }
.library-btn-primary:hover { filter: brightness(1.15); color: #fff; }
.library-btn-outline { background: transparent; color: #3071F2; border: 1.5px solid #3071F2; }
.library-btn-outline:hover { background: #3071F2; color: #fff; }
.library-btn-accent { background: #CAF2C9; color: #143259; }
.library-btn-accent:hover { background: #b6ebb4; color: #143259; }
.library-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    border: 1px dashed #c8d8ef;
    border-radius: 14px;
}
.library-empty i { font-size: 2.5rem; color: #89C2D9; }
.library-empty p { color: #6b7f96; margin: .75rem 0 0; }
.library-process {
    margin-top: 2.5rem;
    background: #f8fbff;
    border: 1px solid #e5edf7;
    border-radius: 16px;
    padding: 1.5rem;
}
.library-process-title { font-size: 1.05rem; font-weight: 700; color: #143259; margin: 0; }
.library-process-sub { font-size: .85rem; color: #6b7f96; margin: .25rem 0 1.25rem; }
.library-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.25rem;
    align-items: start;
}
.library-step-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: #CAF2C9;
    color: #143259;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    margin-bottom: .6rem;
}
.library-step-title { font-size: .85rem; font-weight: 700; color: #143259; margin: 0; }
.library-step-desc { font-size: .78rem; color: #6b7f96; margin: .2rem 0 0; }
.library-authors { margin-top: 2.5rem; }
.library-authors-title { font-size: 1.05rem; font-weight: 700; color: #143259; margin-bottom: 1.1rem; }
.library-authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
}
.library-author-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    background: #fff;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    padding: .9rem 1rem;
    text-decoration: none;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.library-author-card:hover { box-shadow: 0 8px 22px rgba(20,50,89,.1); border-color: #89C2D9; }
.library-author-photo, .library-author-initials {
    width: 52px; height: 52px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
}
.library-author-initials {
    display: flex; align-items: center; justify-content: center;
    background: #143259; color: #fff; font-weight: 700; font-size: 1.1rem;
}
.library-author-name { font-size: .9rem; font-weight: 700; color: #143259; margin: 0; line-height: 1.25; }
.library-author-role { font-size: .76rem; color: #6b7f96; margin: .1rem 0 .35rem; }
.library-author-count {
    font-size: .68rem; font-weight: 700;
    color: #143259; background: #CAF2C9;
    border-radius: 20px; padding: .12rem .5rem;
    display: inline-block;
}
.library-author-arrow { margin-left: auto; color: #3071F2; flex-shrink: 0; }

/* ── Book card: pin Open Book button to the bottom ── */
.library-book-card > .library-btn { margin-top: auto; }

/* ── Library formats (Read, Listen & Download) ── */
.library-formats {
    padding: 1.1rem;
    background: #f8fbff;
    border: 1px solid #e5edf7;
    border-radius: 14px;
}
.library-formats-title { font-size: .9rem; font-weight: 700; color: #143259; margin: 0 0 .1rem; }
.library-formats-sub { font-size: .78rem; color: #6b7f96; margin: 0 0 .9rem; }
.library-formats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .65rem;
}
.library-format-card {
    background: #fff;
    border: 1px solid #e5edf7;
    border-radius: 12px;
    padding: .85rem .75rem;
    text-align: center;
    transition: box-shadow .2s ease, transform .2s ease;
}
.library-format-card:hover { box-shadow: 0 6px 18px rgba(20,50,89,.1); transform: translateY(-2px); }
.library-format-icon {
    width: 44px; height: 44px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto .6rem;
}
.lfi-audio  { background: rgba(48,113,242,.12); color: #3071F2; }
.lfi-pdf    { background: #CAF2C9; color: #143259; }
.lfi-online { background: rgba(137,194,217,.25); color: #143259; }
.lfi-epub   { background: #e8f0fe; color: #3071F2; }
.library-format-name { font-size: .78rem; font-weight: 700; color: #143259; margin: 0 0 .15rem; line-height: 1.3; }
.library-format-desc { font-size: .7rem; color: #6b7f96; margin: 0; line-height: 1.4; }

/* ── Author profile card ── */
.author-card {
    background: #f8fbff;
    border: 1px solid #e5edf7;
    border-radius: 16px;
    padding: 2.5rem;
}
.author-name {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #143259;
    line-height: 1.1;
    margin-bottom: .3rem;
    letter-spacing: -.02em;
}
.author-role {
    font-size: .75rem;
    font-weight: 700;
    color: #418EF2;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.author-bio {
    font-size: .9rem;
    color: #4a5e75;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    text-align: justify;
}
.topic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.5rem;
}
.topic-pill {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .25rem .65rem;
    border-radius: 100px;
    background: rgba(48,113,242,.08);
    color: #3071F2;
    border: 1px solid rgba(48,113,242,.15);
    white-space: nowrap;
}
.author-cta {
    display: inline-flex;
    align-items: center;
    font-size: .875rem;
    font-weight: 600;
    color: #143259;
    background: #CAF2C9;
    border-radius: 8px;
    padding: .6rem 1.25rem;
    text-decoration: none;
    min-height: 44px;
    transition: filter .15s, transform .15s;
}
.author-cta:hover { filter: brightness(.93); color: #143259; transform: translateY(-1px); text-decoration: none; }
.author-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(20,50,89,.06);
    border: 1px solid rgba(20,50,89,.12);
    color: #143259;
    font-size: 1.15rem;
    text-decoration: none;
    transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.author-social-link:hover {
    background: rgba(48,113,242,.1);
    border-color: rgba(48,113,242,.3);
    color: #3071F2;
    transform: translateY(-2px);
    text-decoration: none;
}
.author-photo,
.author-initials-photo {
    width: 280px;
    height: 280px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}
.author-initials-photo {
    background: #e8f0fe;
    color: #3071F2;
    font-size: 6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 992px) {
    .author-right { border-left: 1px solid #e5edf7; }
    .author-photo,
    .author-initials-photo { width: 320px; height: 320px; }
}
@media (max-width: 991px) {
    .author-right { border-top: 1px solid #e5edf7; padding-top: 1.5rem; }
    .author-card { padding: 1.75rem; }
}
@media (max-width: 575px) {
    .author-card { padding: 1.25rem; border-radius: 12px; }
    .author-name { font-size: 1.6rem; }
    .author-photo,
    .author-initials-photo { width: 220px; height: 220px; font-size: 4.5rem; }
}

/* ── Authors carousel ── */
.authors-carousel .carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.authors-carousel .carousel-item {
    display: none;
    width: 100%;
}
.authors-carousel .carousel-item.active {
    display: block;
}
.author-ctrl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(20,50,89,.15);
    background: rgba(20,50,89,.04);
    color: #143259;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .18s, border-color .18s, color .18s;
    min-height: 40px;
    padding: 0;
}
.author-ctrl:hover {
    background: rgba(48,113,242,.08);
    border-color: rgba(48,113,242,.3);
    color: #3071F2;
}
.authors-carousel .carousel-indicators {
    position: static;
    margin: .75rem 0 0;
    margin-left: 0;
    margin-right: 0;
    gap: .4rem;
}
.authors-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border-top: 0;
    border-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    opacity: .3;
    background-color: #143259;
}
.authors-carousel .carousel-indicators .active {
    opacity: 1;
    background-color: #3071F2;
}

/* ══ CATEGORY HUB HEADERS ══ */
.hub-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}
.hub-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 48px;
    height: 2px;
    border-radius: 2px;
}
.hub-engineering .hub-header::after { background: #3071F2; }
.hub-games       .hub-header::after { background: #CAF2C9; }
.hub-music       .hub-header::after { background: #89C2D9; }
.hub-movies      .hub-header::after { background: #F57F17; }
.hub-life        .hub-header::after { background: #43a047; }

.hub-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.hub-engineering .hub-icon-wrap { background: rgba(48,113,242,.1);   color: #3071F2; border: 1px solid rgba(48,113,242,.18); }
.hub-games       .hub-icon-wrap { background: rgba(202,242,201,.25); color: #28843d; border: 1px solid rgba(202,242,201,.7);  }
.hub-music       .hub-icon-wrap { background: rgba(137,194,217,.15); color: #2175a0; border: 1px solid rgba(137,194,217,.4);  }
.hub-movies      .hub-icon-wrap { background: rgba(245,127,23,.12);  color: #B25600; border: 1px solid rgba(245,127,23,.35); }
.hub-life        .hub-icon-wrap { background: rgba(67,160,71,.12);   color: #2e7d32; border: 1px solid rgba(67,160,71,.35);  }

.hub-meta { flex: 1; min-width: 0; }

.hub-eyebrow {
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .15rem;
}
.hub-engineering .hub-eyebrow { color: #3071F2; }
.hub-games       .hub-eyebrow { color: #28843d; }
.hub-music       .hub-eyebrow { color: #2175a0; }
.hub-movies      .hub-eyebrow { color: #B25600; }
.hub-life        .hub-eyebrow { color: #2e7d32; }

.hub-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #143259;
    line-height: 1.15;
    margin-bottom: .2rem;
    letter-spacing: -.02em;
}
.hub-desc {
    font-size: .8rem;
    color: #6b7f96;
    line-height: 1.45;
    margin: 0;
}

.hub-view-all {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    padding: .4rem .9rem;
    border-radius: 8px;
    border: 1.5px solid;
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
    min-height: 36px;
    flex-shrink: 0;
}
.hub-engineering .hub-view-all { color: #3071F2; border-color: rgba(48,113,242,.25);  background: rgba(48,113,242,.04);  }
.hub-games       .hub-view-all { color: #28843d; border-color: rgba(202,242,201,.75); background: rgba(202,242,201,.12); }
.hub-music       .hub-view-all { color: #2175a0; border-color: rgba(137,194,217,.45); background: rgba(137,194,217,.06); }
.hub-movies      .hub-view-all { color: #B25600; border-color: rgba(245,127,23,.4);   background: rgba(245,127,23,.06);  }
.hub-life        .hub-view-all { color: #2e7d32; border-color: rgba(67,160,71,.4);    background: rgba(67,160,71,.06);   }
.hub-engineering .hub-view-all:hover { background: #3071F2; color: #fff;    border-color: #3071F2; }
.hub-games       .hub-view-all:hover { background: #CAF2C9; color: #143259; border-color: #CAF2C9; }
.hub-music       .hub-view-all:hover { background: #89C2D9; color: #143259; border-color: #89C2D9; }
.hub-movies      .hub-view-all:hover { background: #F57F17; color: #fff;    border-color: #F57F17; }
.hub-life        .hub-view-all:hover { background: #43a047; color: #fff;    border-color: #43a047; }

.hub-code-hint {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    letter-spacing: .04em;
    color: rgba(48,113,242,.18);
    user-select: none;
    flex-shrink: 0;
}

/* ── Per-category featured card left accent ── */
.hub-engineering .featured-card { border-left-width: 3px; border-left-color: #3071F2; }
.hub-games       .featured-card { border-left-width: 3px; border-left-color: #CAF2C9; }
.hub-music       .featured-card { border-left-width: 3px; border-left-color: #89C2D9; }
.hub-movies      .featured-card { border-left-width: 3px; border-left-color: #F57F17; }
.hub-life        .featured-card { border-left-width: 3px; border-left-color: #43a047; }

/* ── Per-category grid card top accent (on hover) ── */
.hub-engineering .grid-card::before,
.hub-games       .grid-card::before,
.hub-music       .grid-card::before,
.hub-movies      .grid-card::before,
.hub-life        .grid-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 10px 10px 0 0;
    opacity: 0;
    transition: opacity .2s;
}
.hub-engineering .grid-card::before { background: #3071F2; }
.hub-games       .grid-card::before { background: #CAF2C9; }
.hub-music       .grid-card::before { background: #89C2D9; }
.hub-movies      .grid-card::before { background: #F57F17; }
.hub-life        .grid-card::before { background: #43a047; }
.hub-engineering .grid-card:hover::before,
.hub-games       .grid-card:hover::before,
.hub-music       .grid-card:hover::before,
.hub-movies      .grid-card:hover::before,
.hub-life        .grid-card:hover::before { opacity: 1; }

/* ── Per-category pill colors ── */
.hub-engineering .category-pill { background: rgba(48,113,242,.1);   color: #3071F2; }
.hub-games       .category-pill { background: rgba(202,242,201,.3);  color: #28843d; }
.hub-music       .category-pill { background: rgba(137,194,217,.18); color: #1a6d8a; }
.hub-movies      .category-pill { background: rgba(245,127,23,.14);  color: #B25600; }
.hub-life        .category-pill { background: rgba(67,160,71,.14);   color: #2e7d32; }

/* ── Per-category read CTAs ── */
.hub-games  .read-cta       { color: #28843d; }
.hub-games  .read-cta:hover { color: #143259; }
.hub-music  .read-cta       { color: #2175a0; }
.hub-music  .read-cta:hover { color: #143259; }
.hub-movies .read-cta       { color: #B25600; }
.hub-movies .read-cta:hover { color: #143259; }
.hub-life   .read-cta       { color: #2e7d32; }
.hub-life   .read-cta:hover { color: #143259; }

/* ── Per-category title hover colors ── */
.hub-games  .featured-title:hover, .hub-games  .grid-title:hover { color: #28843d; }
.hub-music  .featured-title:hover, .hub-music  .grid-title:hover { color: #2175a0; }
.hub-movies .featured-title:hover, .hub-movies .grid-title:hover { color: #B25600; }
.hub-life   .featured-title:hover, .hub-life   .grid-title:hover { color: #2e7d32; }

/* ── Mechanical Engineering hub theme ── */
.hub-mechanical-engineering .hub-header::after { background: #546E7A; }
.hub-mechanical-engineering .hub-icon-wrap { background: rgba(84,110,122,.12); color: #455A64; border: 1px solid rgba(84,110,122,.35); }
.hub-mechanical-engineering .hub-eyebrow { color: #455A64; }
.hub-mechanical-engineering .hub-view-all { color: #455A64; border-color: rgba(84,110,122,.35); background: rgba(84,110,122,.06); }
.hub-mechanical-engineering .hub-view-all:hover { background: #546E7A; color: #fff; border-color: #546E7A; }
.hub-mechanical-engineering .featured-card { border-left-width: 3px; border-left-color: #546E7A; }
.hub-mechanical-engineering .grid-card::before { background: #546E7A; }
.hub-mechanical-engineering .grid-card:hover::before { opacity: 1; }
.hub-mechanical-engineering .category-pill { background: rgba(84,110,122,.12); color: #37474F; }
.hub-mechanical-engineering .read-cta       { color: #455A64; }
.hub-mechanical-engineering .read-cta:hover { color: #143259; }
.hub-mechanical-engineering .featured-title:hover, .hub-mechanical-engineering .grid-title:hover { color: #455A64; }

@media (max-width: 575px) {
    .hub-header { gap: .75rem; }
    .hub-icon-wrap { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 12px; }
    .hub-code-hint { display: none; }
}

