/* Shared V2 additions for courses, events, businesses and websites. */

.hk-content-v2__byline {
    margin: -12px 0 28px;
    color: #54595f;
    font-size: 18px;
}

.hk-content-v2__media .hk-content-v2__fallback-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: contain;
}

.hk-content-v2__image-placeholder {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 520px;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 12px solid #ffffff;
    background: #f3f3f3;
    color: #7a7a7a;
    font-size: 14px;
    text-align: center;
}

.hk-content-v2__image-placeholder::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(226, 0, 26, 0.06) 25%, transparent 25%) 0 0 / 64px 64px,
        linear-gradient(315deg, rgba(51, 51, 51, 0.04) 25%, transparent 25%) 32px 0 / 64px 64px;
    content: "";
}

.hk-content-v2__image-placeholder > * {
    position: relative;
    z-index: 1;
}

.hk-content-v2__placeholder-mark {
    display: grid;
    width: 88px;
    height: 88px;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #dddddd;
    background: #ffffff;
    box-shadow: 8px 8px 0 rgba(51, 51, 51, 0.08);
    transform: rotate(-3deg);
}

.hk-content-v2__placeholder-mark i {
    display: block;
    background: #e2001a;
}

.hk-content-v2__placeholder-mark i:nth-child(2),
.hk-content-v2__placeholder-mark i:nth-child(3) {
    background: #333333;
}

.hk-content-v2__placeholder-mark i:nth-child(4) {
    border: 1px solid #dddddd;
    background: #ffffff;
}

.hk-content-v2__image-placeholder strong {
    color: #333333;
    font: 400 26px/1.3 Lora, Georgia, "Times New Roman", serif;
}

.hk-content-v2__image-placeholder small {
    color: #7a7a7a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hk-content-v2__section {
    scroll-margin-top: 100px;
}

.hk-content-v2__date-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 1px solid #dddddd;
    list-style: none;
}

.hk-content-v2__date-list li {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    margin: 0;
    padding: 14px 18px;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
}

.hk-content-v2__date-list li:last-child {
    border-bottom: 0;
}

.hk-content-v2__date-list li.is-next {
    border-left: 4px solid #e2001a;
    background: #f3f3f3;
}

.hk-content-v2__date-list small {
    flex: 0 0 auto;
    color: #e2001a;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hk-content-v2__notice {
    padding: 20px;
    border-left: 4px solid #e2001a;
    background: #f3f3f3;
    font-weight: 600;
}

.hk-content-v2__location-card {
    padding: 28px;
    border: 1px solid #dddddd;
    background: #f3f3f3;
}

.hk-content-v2__location-card h3 {
    margin-bottom: 12px;
}

.hk-content-v2__location-card address {
    display: grid;
    margin-bottom: 16px;
    font-style: normal;
}

.hk-content-v2__location-card a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hk-content-v2__contact {
    display: grid;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
    overflow-wrap: anywhere;
}

.hk-content-v2__contact a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hk-content-v2__author-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 24px;
    border: 1px solid #dddddd;
}

.hk-content-v2__author-avatar {
    display: block;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    overflow: hidden;
    border-radius: 50%;
    background: #f3f3f3;
}

.hk-content-v2__author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hk-content-v2__author-card small {
    color: #7a7a7a;
}

.hk-content-v2__author-card h3 {
    margin: 2px 0 0;
    font-size: 20px;
}

.hk-content-v2 .hk-project-v2__category:empty,
.hk-content-v2 .hk-project-v2__admin-links:empty,
.hk-content-v2 .hk-project-v2__actions:empty {
    display: none;
}

@media (max-width: 767px) {
    .hk-content-v2__byline {
        margin-top: -8px;
        font-size: 16px;
    }

    .hk-content-v2__media .hk-content-v2__fallback-image,
    .hk-content-v2__image-placeholder {
        min-height: 300px;
    }

    .hk-content-v2__image-placeholder {
        border-width: 8px;
    }

    .hk-content-v2__placeholder-mark {
        width: 72px;
        height: 72px;
    }

    .hk-content-v2__date-list li {
        display: grid;
        gap: 4px;
        align-items: start;
    }

    .hk-content-v2__date-list small {
        justify-self: start;
    }

    .hk-content-v2__location-card {
        padding: 22px;
    }
}
