/* RECP Custom Styles - Minor Modern Refresh */
.recp-anchor {
    color: white;
    padding-left: .6em;
    font-size: .80em;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-right: .40em;
}
.recp-anchor:hover {
    font-weight: bold;
    color: #ffd700;
}
.recp-anchor:last-child {
    margin-right: 0;
}

/* Banner */
#recp-banner {
    display: inline-block;
    color: #35175D;
    font-weight: bold;
    padding-left: 7.5em;
    padding-top: 1em;
    font-size: 0.78em;
    line-height: 1.15;
}

/* Header */
.header-branding .logo-customized {
    display: inline-block;
    margin-top: 0px;
    vertical-align: top;
}
.header-branding div a {
    height: 90px;
}

/* Search */
#search-form .search-box-wrapper {
    width: 180px;
}

/* Main content area */
.recp_cover {
    background-color: #f8f9fa;
    padding: 1.6em 2em;
    font-size: 1.35em;
    border-radius: 8px;
    margin-bottom: 2em;
}

/* Layout blocks */
.sf_colsIn { display: block; }
.sf_colsOut {
    display: inline-block;
    vertical-align: top;
    min-width: 24%;
}
.recp_center-block {
    margin: auto;
    width: 50%;
    text-align: left;
}
.recp_step-block {
    display: inline-block;
    width: 30%;
}
.recp_center-block h2 {
    font-weight: bold;
    font-size: 1.52em;
    text-align: center;
}
.recp_center-block h6 {
    color: #2c5aa0;
    text-align: center;
    margin-bottom: -0.8em;
}
.recp_step-block h5 {
    color: #2c5aa0;
}

/* Payment warning */
@media screen and (min-width: 769px) {
    #recppaymentwarningdiv {
        width: 50em;
        margin: auto;
        color: #c0392b;
    }
    #recppaymentwarningx700img { display: inline-block; }
    #recppaymentwarningx400img { display: none; }
}
@media screen and (max-width: 768px) {
    #recppaymentwarningdiv {
        width: 25em;
        margin: auto;
        color: #c0392b;
    }
    #recppaymentwarningx700img { display: none; }
    #recppaymentwarningx400img { display: inline-block; }
}

/* General polish */
.product_heading h2 { text-wrap: balance; }
#recpinsert br { margin-top: .5em; }

/* ==================== HIDE NATIVE TITLES ==================== */
#listings h1,
.sf_colsIn h1,
h1:contains("Browse Listings"),
h1:contains("Listings"),
h1:contains("Trending Courses"),
.css-1x7wuul-view-heading,
h1[dir="ltr"],
.sf-product-listing-header h1,
#listings > h1 {
    display: none !important;
}
h1 { display: none !important; }

/* === RECP SPACER === */
.recp-spacer {
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
    padding: 0 0.4em;
}

/* === COURSE CARDS - Modern Improvements === */
.col-md-3.col-sm-6,
.product-link,
.product-tile,
.card {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 25px;
}
.col-md-3.col-sm-6:hover,
.product-link:hover,
.product-tile:hover,
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
}
.col-md-3.col-sm-6 img,
.product-tile img,
.product-link img {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.product-tile .product-name,
.product-link h3 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

/* Fix hover cutoff */
#listings .row,
#listings {
    overflow: visible !important;
}
.col-md-3.col-sm-6,
.product-link,
.product-tile {
    position: relative;
    z-index: 1;
}
.col-md-3.col-sm-6:hover,
.product-link:hover,
.product-tile:hover {
    z-index: 10;
}

/* === SLEEK CATEGORY BUTTONS === */
.recp-category-btn {
    background: white;
    color: #35175D;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
    font-size: 0.95em;
}
.recp-category-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    background: #35175D;
    color: white;
    border-color: #35175D;
}

/* Remove gray background under nav */
.search-form-container,
#search-form,
.search-form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ==================== PURPLE TOP BAR - ONLY ON LISTINGS ==================== */
#feature,
.feature-region {
    background: linear-gradient(90deg, #4c1d95, #6b21a8) !important;
    border-bottom: 2px solid rgba(255,255,255,0.15) !important;
    min-height: 6px;
}