/* Resource library channel: scoped styles for the resource hub, listings and detail pages. */
.resource-hub-page,
.resource-list-page,
.resource-detail-page {
    --resource-blue: var(--color-primary);
    --resource-blue-deep: var(--color-primary-deep);
    --resource-ink: #102640;
    --resource-muted: #63748a;
    --resource-line: #dce6f0;
    --resource-surface: #f5f8fc;
}

.resource-page-hero,
.resource-list-page .page-banner {
    min-height: 264px;
    padding: 126px 0 58px;
    color: var(--resource-ink);
    background: linear-gradient(180deg, #f7faff 0%, #f2f6fb 100%);
    text-align: center;
}

.resource-page-hero h1,
.resource-list-page .page-banner h1 {
    margin: 0;
    color: var(--resource-ink);
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.15;
}

.resource-page-hero h1::after,
.resource-list-page .page-banner h1::after {
    display: block;
    width: 56px;
    height: 3px;
    margin: 14px auto 0;
    background: var(--resource-blue);
    content: "";
}

.resource-page-hero p,
.resource-list-page .page-banner p {
    max-width: 920px;
    margin: 16px auto 0;
    color: #57708f;
    font-size: 17px;
}

.resource-hub-section { padding: 64px 0 100px; }

.resource-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.resource-category-card {
    position: relative;
    display: flex;
    min-height: 292px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 38px 32px;
    overflow: hidden;
    border: 1px solid var(--resource-line);
    border-radius: 10px;
    background: var(--color-white);
    text-align: center;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.resource-category-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--resource-blue);
    content: "";
    opacity: 0;
    transition: opacity .22s ease;
}

.resource-category-card:hover,
.resource-category-card:focus-visible {
    border-color: rgba(8, 112, 188, .5);
    box-shadow: 0 16px 36px rgba(20, 73, 123, .12);
    transform: translateY(-5px);
}

.resource-category-card:hover::before,
.resource-category-card:focus-visible::before { opacity: 1; }

.resource-category-icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 16px;
    color: var(--resource-blue);
    background: #eaf4fc;
}

.resource-category-card:nth-child(2) .resource-category-icon { background: #eef7ff; }
.resource-category-card:nth-child(3) .resource-category-icon { background: #e8f5fb; }
.resource-category-card:nth-child(4) .resource-category-icon { background: #f0f7fd; }
.resource-category-card:nth-child(5) .resource-category-icon { background: #eaf2fb; }
.resource-category-icon svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 1.8; fill: none; }

.resource-category-card h2 {
    margin: 0;
    color: var(--resource-ink);
    font-size: 22px;
    line-height: 1.3;
}

.resource-category-card p {
    max-width: 360px;
    margin: 13px 0 0;
    color: var(--resource-muted);
    font-size: 14px;
    line-height: 1.65;
}

.resource-category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 19px;
    color: var(--resource-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.resource-category-link::after { content: "\2192"; font-size: 18px; line-height: 1; }

.resource-list-page .section { padding: 54px 0 100px; }

.resource-list-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 28px;
    align-items: start;
}

.resource-list-main { min-width: 0; }

.resource-download-list { display: grid; gap: 18px; }

.resource-download-card {
    display: grid;
    grid-template-columns: 212px minmax(0, 1fr);
    gap: 24px;
    padding: 20px;
    border: 1px solid var(--resource-line);
    border-radius: 9px;
    background: var(--color-white);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.resource-download-card:hover {
    border-color: rgba(8, 112, 188, .55);
    box-shadow: 0 14px 32px rgba(13, 67, 118, .11);
    transform: translateY(-2px);
}

.resource-download-thumb {
    display: grid;
    min-height: 174px;
    place-items: center;
    overflow: hidden;
    border-radius: 5px;
    background: var(--resource-surface);
}

.resource-download-thumb img {
    width: 100%;
    height: 174px;
    object-fit: contain;
    transition: transform .25s ease;
}

.resource-download-card:hover .resource-download-thumb img { transform: scale(1.035); }

.resource-download-content { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.resource-download-content h2 { margin: 1px 0 9px; color: var(--resource-ink); font-size: 21px; line-height: 1.35; }
.resource-download-content h2 a:hover { color: var(--resource-blue); }
.resource-download-content p { margin: 0; color: var(--resource-muted); font-size: 14px; line-height: 1.7; }

.resource-card-meta {
    display: flex;
    gap: 16px;
    margin: 0 0 10px;
    color: #7590ab;
    font-size: 12px;
}

.resource-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.resource-card-meta span::before { width: 5px; height: 5px; border-radius: 50%; background: var(--resource-blue); content: ""; }

.resource-download-action,
.resource-detail-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 15px;
    border-radius: 4px;
    color: var(--color-white);
    background: var(--resource-blue);
    font-size: 13px;
    font-weight: 700;
    transition: background-color .2s ease, transform .2s ease;
}

.resource-download-action { margin-top: 19px; }
.resource-download-action::after { content: "\2193"; font-size: 16px; line-height: 1; }
.resource-download-action:hover,
.resource-detail-actions a:hover { color: var(--color-white); background: var(--resource-blue-deep); transform: translateY(-1px); }

.resource-aside { position: sticky; top: 24px; display: grid; gap: 20px; align-self: start; }

.resource-aside-card {
    padding: 19px;
    border: 1px solid var(--resource-line);
    border-radius: 8px;
    background: #f7faff;
}

.resource-aside-card h2 {
    margin: 0 0 13px;
    padding-left: 11px;
    border-left: 3px solid var(--resource-blue);
    color: var(--resource-ink);
    font-size: 16px;
    line-height: 1.35;
}

.resource-aside-card a:not(.resource-aside-button) { display: block; padding: 12px 0; border-bottom: 1px solid var(--resource-line); color: #294866; font-size: 13px; line-height: 1.45; }
.resource-aside-card a:not(.resource-aside-button):last-child { border-bottom: 0; }
.resource-aside-card a:not(.resource-aside-button):hover { color: var(--resource-blue); }
.resource-aside-card p { margin: 0 0 13px; color: var(--resource-muted); font-size: 13px; line-height: 1.55; }

.resource-aside-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    margin-top: 9px;
    padding: 9px 12px;
    border: 1px solid var(--resource-line);
    border-radius: 4px;
    color: var(--resource-ink);
    background: var(--color-white);
    font-size: 13px;
    font-weight: 700;
}

.resource-aside-button::after { content: "\203A"; color: var(--resource-blue); font-size: 23px; line-height: 1; }
.resource-aside-button--primary { border-color: var(--resource-blue); color: var(--color-white); background: var(--resource-blue); }
.resource-aside-button--primary::after { color: inherit; }
.resource-aside-button:hover { border-color: var(--resource-blue-deep); color: var(--color-white); background: var(--resource-blue-deep); }

.resource-media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 23px;
}

.resource-media-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--resource-line);
    border-radius: 8px;
    background: var(--color-white);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.resource-media-card:hover { border-color: rgba(8, 112, 188, .55); box-shadow: 0 13px 30px rgba(13, 67, 118, .12); transform: translateY(-4px); }
.resource-media-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe8f0; }
.resource-media-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.resource-media-card:hover .resource-media-thumb img { transform: scale(1.06); }

.resource-media-icon,
.resource-media-views {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.resource-media-icon {
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    color: var(--color-white);
    background: rgba(8, 112, 188, .92);
    font-size: 20px;
    transform: translate(-50%, -50%);
}

.resource-media-views { right: 9px; bottom: 9px; gap: 5px; padding: 4px 8px; border-radius: 3px; color: var(--color-white); background: rgba(15, 34, 55, .72); font-size: 11px; }
.resource-media-content { padding: 15px 15px 17px; }
.resource-media-content h2 { margin: 0; color: var(--resource-ink); font-size: 15px; line-height: 1.45; }
.resource-media-card:hover h2 { color: var(--resource-blue); }


.resource-detail-page .section { padding: 30px 0 95px; }
.resource-detail-page .article-layout { gap: 28px; }
.resource-detail-page .article-body { padding: clamp(23px, 3vw, 38px); border: 1px solid var(--resource-line); border-radius: 9px; background: var(--color-white); }
.resource-detail-page .article-body h1 { color: var(--resource-ink); font-size: clamp(30px, 3vw, 42px); }
.resource-detail-page .article-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; color: #7690a8; font-size: 13px; }
.resource-detail-page .article-content { color: #41566d; }
.resource-detail-page .article-content h2,
.resource-detail-page .article-content h3 { color: var(--resource-ink); }
.resource-detail-page .article-content a { color: var(--resource-blue); }
.resource-detail-page .article-content img { border-radius: 6px; }
.resource-detail-page .article-aside { border: 1px solid var(--resource-line); border-radius: 9px; background: #f7faff; }
.resource-detail-page .article-aside h2 { padding-left: 11px; border-left: 3px solid var(--resource-blue); color: var(--resource-ink); }
.resource-detail-page .article-aside a:hover { color: var(--resource-blue); }
.resource-detail-page .article-pager { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--resource-line); }
.resource-detail-page .article-pager a { color: var(--resource-blue); }

.resource-detail-page .page-heading { max-width: 920px; margin: 0 auto 28px; text-align: left; }
.resource-detail-page .page-heading h1 { color: var(--resource-ink); }
.resource-detail-page .page-heading p { color: var(--resource-muted); }
.resource-detail-page .catalog-viewer { min-height: min(78vh, 820px); overflow: hidden; border: 1px solid var(--resource-line); border-radius: 8px; background: #eaf1f8; }
.resource-detail-page .catalog-viewer iframe { width: 100%; min-height: min(78vh, 820px); border: 0; background: var(--color-white); }
.resource-detail-page .catalog-actions { gap: 12px; }
.resource-detail-page .catalog-actions a { margin-top: 0; background: var(--resource-blue); }
.resource-detail-page .catalog-actions a + a { color: var(--resource-blue); background: var(--color-white); border: 1px solid var(--resource-blue); }
.resource-detail-page .catalog-actions a + a:hover { color: var(--color-white); background: var(--resource-blue-deep); }
.resource-detail-page .video-player { overflow: hidden; border-radius: 8px; background: #0f1e2d; box-shadow: 0 16px 34px rgba(10, 32, 53, .17); }
.resource-detail-page .video-player video { display: block; width: 100%; max-height: 76vh; background: #0f1e2d; }
.resource-catalog-detail .catalog-detail { max-width: 1120px; margin: 0 auto; }
.resource-catalog-detail .catalog-detail-header { margin: 0 auto 22px; text-align: center; }
.resource-catalog-detail .catalog-detail-header h1 { max-width: 1020px; margin: 0 auto; color: var(--resource-ink); font-size: clamp(30px, 4vw, 48px); line-height: 1.18; }
.resource-catalog-detail .catalog-detail-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin: 20px 0; color: #6f8399; font-size: 13px; }
.resource-catalog-detail .catalog-detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.resource-catalog-detail .catalog-detail-meta em { font-style: normal; }
.resource-catalog-detail .catalog-detail-summary { margin: 0; padding: 16px 18px; border: 1px solid var(--resource-line); border-radius: 5px; color: #4f6984; background: #f5f8fc; font-size: 15px; line-height: 1.65; text-align: left; }
.resource-catalog-detail .catalog-download-actions { display: flex; justify-content: center; margin: 20px 0 30px; }
.resource-catalog-detail .catalog-download-button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 10px 18px; border-radius: 5px; color: var(--color-white); background: var(--resource-blue); font-size: 14px; font-weight: 700; }
.resource-catalog-detail .catalog-download-button::after { content: "\2193"; font-size: 17px; line-height: 1; }
.resource-catalog-detail .catalog-download-button:hover { color: var(--color-white); background: var(--resource-blue-deep); transform: translateY(-1px); }
.resource-catalog-detail .catalog-pdf-preview { margin-bottom: 34px; }
.resource-catalog-detail .catalog-pdf-frame { display: block; }

@media (max-width: 576px) {
    .resource-catalog-detail .catalog-detail-meta { gap: 8px 14px; font-size: 12px; }
    .resource-catalog-detail .catalog-detail-summary { padding: 14px; font-size: 14px; }
    .resource-catalog-detail .catalog-download-actions { margin: 18px 0 24px; }
    .resource-catalog-detail .catalog-download-button { width: 100%; }
}

@media (max-width: 1199px) {
    .resource-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .resource-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .resource-list-layout { grid-template-columns: 1fr; }
    .resource-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .resource-detail-page .article-aside { display: block; }
}

@media (max-width: 768px) {
    .resource-page-hero,
    .resource-list-page .page-banner { min-height: 230px; padding: 105px 0 45px; }
    .resource-page-hero p,
    .resource-list-page .page-banner p { font-size: 15px; }
    .resource-download-card { grid-template-columns: 155px minmax(0, 1fr); gap: 17px; padding: 14px; }
    .resource-download-thumb,
    .resource-download-thumb img { min-height: 132px; height: 132px; }
    .resource-download-content h2 { font-size: 18px; }
    .resource-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
    .resource-detail-page .section { padding-bottom: 66px; }
}

@media (max-width: 576px) {
    .resource-hub-section { padding: 38px 0 65px; }
    .resource-category-grid,
    .resource-aside { grid-template-columns: 1fr; }
    .resource-category-card { min-height: 250px; padding: 30px 24px; }
    .resource-list-page .section { padding: 34px 0 66px; }
    .resource-download-card { grid-template-columns: 1fr; }
    .resource-download-thumb,
    .resource-download-thumb img { min-height: 185px; height: 185px; }
    .resource-media-content { padding: 12px; }
    .resource-media-content h2 { font-size: 14px; }
    .resource-detail-page .article-body { padding: 22px 18px; }
    .resource-detail-page .catalog-viewer,
    .resource-detail-page .catalog-viewer iframe { min-height: 58vh; }
    .resource-detail-page .catalog-actions { flex-direction: column; }
    .resource-detail-page .catalog-actions a { width: 100%; }
}

/* Resource-channel-only search placement. The component appearance lives in style.css. */
.resource-search-panel { padding: 30px 0 0; background: var(--color-white); }
.resource-list-page .product-toolbar-search { margin: 0 0 32px; }
.data-page .product-toolbar-search { margin: 0 0 32px; }

@media (max-width: 576px) {
    .resource-search-panel { padding-top: 20px; }
    .resource-list-page .product-toolbar-search,
    .data-page .product-toolbar-search { margin-bottom: 24px; }
}
/* Reuse the product-channel hero artwork without changing resource-page layout. */
.resource-page-hero,
.resource-list-page .page-banner,
.data-page .page-banner {
    position: relative;
    color: var(--color-white);
    background: url("../img/exhibition.png") center/cover no-repeat;
}

.resource-page-hero::after,
.resource-list-page .page-banner::after,
.data-page .page-banner::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(0, 83, 157, .55), transparent 72%);
}

.resource-page-hero .container,
.resource-list-page .page-banner .container,
.data-page .page-banner .container { position: relative; z-index: 1; }

.resource-page-hero h1,
.resource-list-page .page-banner h1,
.data-page .page-banner h1 { color: var(--color-white); }

.resource-page-hero p,
.resource-list-page .page-banner p,
.data-page .page-banner p { color: rgba(255, 255, 255, .88); }