.resource-detail-page {
    background: #f5f8fc;
}

.resource-detail-page::before {
    display: none;
}

.resource-navbar {
    padding: 16px max(24px, calc((100vw - 1120px) / 2));
}

.resource-navbar .logo-icon {
    background: #215bc7;
    box-shadow: none;
}

.resource-navbar .logo-brand .sipil {
    color: #152f50;
}

.resource-navbar .logo-brand .smart {
    background: none;
    -webkit-text-fill-color: #215bc7;
    color: #215bc7;
}

.resource-back-link,
.resource-secondary-link {
    color: #215bc7;
    font-size: 14px;
    font-weight: 700;
}

.resource-main {
    width: min(100% - 40px, 900px);
    margin: 48px auto 72px;
}

.resource-article {
    overflow: hidden;
    border: 1px solid #dce5ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(25, 54, 91, .07);
}

.resource-heading {
    padding: 36px 42px 28px;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #60758e;
    font-size: 13px;
}

.resource-category,
.resource-access {
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf1fd;
    color: #215bc7;
    font-weight: 700;
}

.resource-access.is-premium {
    background: #fff3db;
    color: #80540b;
}

.resource-heading h1 {
    color: #17375e;
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.resource-preview {
    display: flex;
    min-height: 250px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f1f5fa;
}

.resource-preview > img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: contain;
}

.resource-preview > iframe {
    display: block;
    width: 100%;
    height: min(75vh, 800px);
    border: 0;
    background: #fff;
}

.resource-thumbnail {
    padding: 0 42px 28px;
}

.resource-thumbnail img {
    display: block;
    width: 100%;
    max-height: 420px;
    border-radius: 12px;
    background: #f1f5fa;
    object-fit: contain;
}

.resource-preview-locked,
.resource-file-placeholder {
    width: min(100% - 40px, 520px);
    padding: 38px 24px;
    text-align: center;
}

.resource-preview-locked > span,
.resource-file-placeholder > span {
    display: block;
    margin-bottom: 12px;
    font-size: 42px;
}

.resource-preview-locked h2 {
    margin-bottom: 9px;
    font-size: 20px;
}

.resource-preview-locked p,
.resource-file-placeholder p,
.resource-file-placeholder > span:last-of-type {
    color: #60758e;
    font-size: 14px;
}

.resource-file-placeholder strong {
    display: block;
    margin-bottom: 5px;
    color: #17375e;
    font-size: 17px;
}

.resource-description {
    padding: 32px 42px 12px;
}

.resource-description h2 {
    margin-bottom: 12px;
    color: #17375e;
    font-size: 20px;
}

.resource-narrative {
    color: #405873;
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
    text-align: justify;
    text-justify: inter-word;
}

.resource-narrative p,
.resource-narrative h2,
.resource-narrative h3,
.resource-narrative h4 {
    margin: 0 0 16px;
}

.resource-narrative h2 {
    color: #17375e;
    font-size: 24px;
}

.resource-narrative h3 {
    color: #17375e;
    font-size: 20px;
}

.resource-narrative ul,
.resource-narrative ol {
    margin: 0 0 16px;
    padding-left: 28px;
}

.resource-narrative blockquote {
    margin: 16px 0;
    padding: 12px 18px;
    border-left: 3px solid #215bc7;
    background: #f5f8fc;
}

.resource-narrative figure {
    margin: 18px 0;
    text-align: center;
}

.resource-narrative img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.resource-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 24px 42px 38px;
}

.resource-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border-radius: 9px;
    background: #215bc7;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.resource-button:hover {
    background: #1749a6;
}

.resource-category-heading {
    margin-bottom: 24px;
    padding: 34px 38px;
    border: 1px solid #dce5ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(25, 54, 91, .07);
}

.resource-category-heading h1 {
    margin: 14px 0 10px;
    color: #17375e;
    font-size: clamp(27px, 4vw, 36px);
    line-height: 1.25;
}

.resource-category-heading p {
    max-width: 680px;
    color: #52657b;
    line-height: 1.75;
    text-align: justify;
    text-justify: inter-word;
}

.resource-file-count {
    display: inline-block;
    margin-top: 16px;
    color: #60758e;
    font-size: 13px;
    font-weight: 700;
}

.resource-list {
    display: grid;
    gap: 12px;
}

.resource-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(25, 54, 91, .035);
}

.resource-list-item:hover {
    transform: translateY(-2px);
    border-color: #a6c2ea;
    box-shadow: 0 10px 24px rgba(25, 54, 91, .08);
}

.resource-list-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid #d7e5fa;
    border-radius: 11px;
    background: #edf3ff;
    font-size: 23px;
}

.resource-list-thumbnail {
    display: block;
    width: 64px;
    height: 52px;
    flex: 0 0 64px;
    border: 1px solid #d7e5fa;
    border-radius: 9px;
    background: #edf3ff;
    object-fit: cover;
}

.resource-list-content {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 5px;
}

.resource-list-content strong {
    color: #17375e;
    overflow-wrap: anywhere;
}

.resource-list-description {
    display: -webkit-box;
    overflow: hidden;
    color: #60758e;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    text-align: justify;
    text-justify: inter-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.resource-list-meta {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 14px;
}

.resource-list-badge {
    padding: 5px 9px;
    border-radius: 999px;
    background: #eaf1fd;
    color: #215bc7;
    font-size: 11px;
    font-weight: 700;
}

.resource-list-badge.is-premium {
    background: #fff3db;
    color: #80540b;
}

.resource-list-arrow {
    color: #215bc7;
    font-size: 18px;
    font-weight: 700;
}

.resource-empty-state {
    padding: 50px 24px;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.resource-empty-state > span {
    display: block;
    margin-bottom: 12px;
    font-size: 36px;
}

.resource-empty-state h2 {
    margin-bottom: 8px;
    color: #17375e;
    font-size: 20px;
}

.resource-empty-state p {
    color: #60758e;
}

@media (max-width: 600px) {
    .resource-navbar {
        padding: 14px 20px;
    }

    .resource-navbar .logo-brand {
        font-size: 18px;
    }

    .resource-back-link {
        font-size: 12px;
    }

    .resource-main {
        width: min(100% - 24px, 900px);
        margin: 24px auto 40px;
    }

    .resource-heading,
    .resource-description,
    .resource-category-heading {
        padding-right: 22px;
        padding-left: 22px;
    }

    .resource-list-item {
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .resource-list-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 19px;
    }

    .resource-list-thumbnail {
        width: 48px;
        height: 44px;
        flex-basis: 48px;
    }

    .resource-thumbnail {
        padding-right: 22px;
        padding-left: 22px;
    }

    .resource-list-meta {
        align-items: flex-end;
        flex-direction: column;
        gap: 7px;
    }

    .resource-actions {
        align-items: flex-start;
        padding-right: 22px;
        padding-left: 22px;
    }
}
