/* MAJARA_BRAND_ASSETS_V1 */

:root {
    --mj-brand-mark-url: url("/wp-content/themes/majara-architecture/assets/brand/majara-mark.svg");
}

/* Brand mark on project images, separate from functional arrow button */
.project-card .project-card__overlay {
    overflow: hidden;
}

.project-card .project-card__overlay::after {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
    content: "";
    pointer-events: none;
    opacity: .17;
    background: #fff;
    -webkit-mask-image: var(--mj-brand-mark-url);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: var(--mj-brand-mark-url);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    transition:
        opacity .3s ease,
        transform .35s cubic-bezier(.22,1,.36,1);
}

.project-card:hover .project-card__overlay::after {
    opacity: .34;
    transform: rotate(-7deg) scale(1.08);
}

/* Brand mark appears softly behind semantic category icon */
.category-list .category-card__icon {
    overflow: hidden;
}

.category-list .category-card__icon::after {
    position: absolute;
    inset: 7px;
    content: "";
    pointer-events: none;
    opacity: .12;
    background: currentColor;
    -webkit-mask-image: var(--mj-brand-mark-url);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: var(--mj-brand-mark-url);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    transition: opacity .25s ease;
}

.category-list .category-card__icon > i {
    position: relative;
    z-index: 2;
}

.category-list .category-card:hover .category-card__icon::after {
    opacity: .26;
    background: #fff;
}

/* Brand watermark in course registration CTA */
.mj-course-registration__quick {
    position: relative;
    overflow: hidden;
}

.mj-course-registration__quick::after {
    position: absolute;
    left: 24px;
    bottom: -32px;
    width: 120px;
    height: 120px;
    content: "";
    pointer-events: none;
    opacity: .12;
    background: #fff;
    -webkit-mask-image: var(--mj-brand-mark-url);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: var(--mj-brand-mark-url);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.mj-course-registration__quick > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 620px) {
    .project-card .project-card__overlay::after {
        top: 13px;
        left: 13px;
        width: 29px;
        height: 29px;
    }
}
