/* ==========================================================================
   Widget - Download Guide
   CSS diagonal split: black top-left / red bottom-right
   Image overhangs card, positioned relative to .rw-widget-guide (<a>)
   ========================================================================== */

.rw-widget-guide-wrap {
    position: relative;
}

.rw-widget-guide {
    display:         block;
    position:        relative;
    text-decoration: none;
    height:          485px;
    width:           100%;
}

/* Inner card — owns overflow:hidden so image can overhang */
.rw-widget-guide__card {
    position:      absolute;
    inset:         0;
    border-radius: var( --rw-corners );
    overflow:      hidden;
    background:    var( --rw-primary );
    z-index:       1;
}

/* Black triangle - top-left */
.rw-widget-guide__card::before {
    content:    '';
    position:   absolute;
    inset:      0;
    background: #000000;
    clip-path:  polygon( 0 0, 78% 0, 0 92% );
    z-index:    1;
}

.rw-widget-guide__content {
    position:   absolute;
    top:        28px;
    left:       28px;
    z-index:    5;
    color:      #ffffff;
    font-size:  30px;
    line-height: 1.1;
    max-width:  150px;
}

.rw-widget-guide__title {
    margin-bottom: 16px;
    color:         #ffffff;
    line-height:   1.3;
}

.rw-widget-guide__arrow {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    width:           50px;
    height:          50px;
    border-radius:   50%;
    border:          2px solid #ffffff;
    color:           #ffffff;
}

.rw-widget-guide__content i {
    font-size: 25px;
}

.rw-widget-guide:hover .rw-widget-guide__arrow {
    background: white;
}

.rw-widget-guide:hover .rw-widget-guide__content i {
    color: black;
}

/* Clipped PNG - absolute relative to .rw-widget-guide (<a>), overhangs __card */
.rw-widget-guide__image {
    position: absolute;
    bottom: 0;
    right: 0;
    max-height: 535px;
    width: auto;
    z-index: 2;
    border-radius: 0 0 var(--rw-corners) 0;
}