/* Resource Hub */
.rh-hero {
    background: linear-gradient(135deg, #120d31 0%, #0a5a9e 100%);
    color: #fff;
    padding: 4.5rem 0 3.5rem;
    text-align: center;
}
.rh-hero .title {
    color: #fff !important;
    font-size: 2.4rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}
.rh-hero .lead {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.75;
    padding: 0 1rem;
}

.rh-section {
    padding: 3rem 0 4rem;
    background: #f4f6fb;
}

.rh-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.rh-toolbar .rh-filter {
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid #d7def5;
    background: #fff;
    color: #4258ff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
    font-family: inherit;
}
.rh-toolbar .rh-filter:hover,
.rh-toolbar .rh-filter.is-active {
    background: #4258ff;
    border-color: #4258ff;
    color: #fff;
}

.rh-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}
.rh-grid .rh-item--wide {
    grid-column: 1 / -1;
}

.rh-item {
    opacity: 1;
    transition: opacity 0.2s ease;
}
.rh-item.is-hidden {
    display: none;
}

.rh-card {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(18, 13, 49, 0.07);
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(66, 88, 255, 0.08);
}
.rh-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(18, 13, 49, 0.12);
}

.rh-card__icon-area {
    width: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
}
.rh-card__icon-area--pdf { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.rh-card__icon-area--video { background: linear-gradient(135deg, #e74c3c, #ff6b6b); }
.rh-card__icon-area--image { background: linear-gradient(135deg, #0780BB, #09a8d6); }
.rh-card__icon-area--flipbook { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.rh-card__icon-area--link { background: linear-gradient(135deg, #4258ff, #003780); }
.rh-card__icon-area--shortcode { background: linear-gradient(135deg, #2d8659, #48bb78); }
.rh-card__icon-area--doc { background: linear-gradient(135deg, #4258ff, #003780); }

.rh-card__body {
    padding: 1.5rem 1.5rem 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.rh-card__type {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0780BB;
    margin-bottom: 0.35rem;
}
.rh-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #120d31;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.rh-card__desc {
    color: #555;
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 0.85rem;
}
.rh-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}
.rh-tag {
    background: #f0f3ff;
    color: #4258ff;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
}
.rh-tag--green {
    background: #e6f5ec;
    color: #2d8659;
}

.rh-card__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}
.rh-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.rh-action--preview { background: #f0f3ff; color: #4258ff; }
.rh-action--preview:hover { background: #dde3ff; color: #4258ff; }
.rh-action--download { background: #e6f5ec; color: #2d8659; }
.rh-action--download:hover { background: #d0eddb; color: #2d8659; }
.rh-action--watch { background: #fde8e8; color: #e74c3c; }
.rh-action--watch:hover { background: #fad4d4; color: #e74c3c; }
.rh-action--link { background: #fff4d6; color: #9a6b00; }
.rh-action--link:hover { background: #ffecb3; color: #7a5400; }

.rh-media-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(18, 13, 49, 0.07);
    overflow: hidden;
    border: 1px solid rgba(66, 88, 255, 0.08);
}
.rh-media-card__header {
    padding: 1.5rem 1.5rem 0;
}
.rh-media-card__embed,
.rh-flipbook-wrap,
.rh-shortcode-wrap {
    padding: 0 1.5rem 1.5rem;
}
.rh-media-card__embed img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.rh-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}
.rh-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.rh-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border-radius: 14px;
    color: #666;
}
.rh-empty strong {
    display: block;
    color: #120d31;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .rh-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .rh-hero .title { font-size: 1.75rem; }
    .rh-card {
        flex-direction: column;
    }
    .rh-card__icon-area {
        width: 100%;
        height: 72px;
        font-size: 1.8rem;
    }
    .rh-card__body { padding: 1.25rem; }
}
