/*
 * Styles for the Custom Page Box Module (rbx-custom-page-box.css)
 */

.rbx-page-box-link {
    display: block;
    text-decoration: none;
    color: #ffffff;
    border-radius: 20px;
    -webkit-tap-highlight-color: transparent;
}

.rbx-page-box {
    display: flex;
    position: relative;
    min-height: 350px;
    border-radius: 20px; /* This will round the new border */
    overflow: hidden;
    color: #ffffff;
    
    box-sizing: border-box; /* This is crucial: it keeps the border inside the box */
    border: 1px solid #ffffff;
    transition: border-color 0.4s ease;
}

.rbx-page-box-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rbx-page-box-link:hover .rbx-page-box-bg {
    transform: scale(1.05);
}

/* --- NEW: Border hover state --- */
.rbx-page-box-link:hover .rbx-page-box {
    border-color: #AD9360;
}

.rbx-page-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,0.1) 40%, 
        rgba(0,0,0,0.8) 100%
    );
}

.rbx-page-box-content {
    align-self: flex-end; 
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 3rem;
    box-sizing: border-box;
}

.rbx-page-box-content h3 {
    margin: 0 0 2rem 0;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.rbx-page-box-content .rbx-page-box-learn-more {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
}

.rbx-page-box-content .rbx-page-box-learn-more::after {
    /* * This uses the 'fa-chevron-right' icon code from Font Awesome.
     * The font-family and font-weight are required for FA 5/6.
     */
    content: '\f054';
    font-family: 'fontawesome';
    font-weight: 900; /* This is required for solid icons */
    color: #AD9360;
    
    display: inline-block;
    transition: transform 0.2s ease;
    margin-left: 6px; /* Adds a nice space after the text */
}

.rbx-page-box-link:hover .rbx-page-box-learn-more::after {
    transform: translateX(4px);
}