/*
Theme Name: Recruiters Websites
Theme URI: http://www.recruiterswebsites.com
Version: 1.0
Description: Recruiters Websites Framework for Custom Website Development
Author: The Recruiters Websites Team
Author URI: http://www.recruiterswebsites.com
template: bb-theme
*/

/* ==========================================================================
   Global
   ========================================================================== */

:root {
    --rw-primary: #CC3333;
    --rw-secondary: #980E0E;
    --rw-accent: #F3F2F2;

    --rw-gap: 20px;
    --rw-grid: 1660px;
    --rw-simple-grid: 1240px;

    --rw-corners: 25px;
    --rw-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px; /* match sticky nav height */
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    -ms-font-smoothing: antialiased;
    font-smoothing: antialiased;
}

.rw-outer-grid {
    max-width: var(--rw-grid);
    margin: 0 auto;
}

span.rw-live-timer {
    font-size: 50px;
    font-weight: 600;
}

/* ==========================================================================
   Icon Logo
   ========================================================================== */

.rw-icon-logo {
    flex-shrink: 0;
    width: 46px;
    height: auto;
    top: 8px;
    position: relative;
    fill: var(--rw-primary);
}

.rw-dark-section .content-block--centered .rw-icon-logo {
    fill: white;
}

@media (max-width: 992px) {
    .rw-icon-logo {
        width: 40px;
        top: 5px;
    }
}

/* ==========================================================================
   Content Block
   ========================================================================== */

.content-block__eyebrow {
    display: block;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.content-block__title {
    margin-bottom: 20px;
}

.content-block__title--with-icon {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.content-block__title-text {
    display: block;
}

/*.content-block__body {*/
/*    margin-bottom: 30px;*/
/*}*/

.content-block__body p:last-child {
    margin-bottom: 0;
}

.rw-split-content .rw-btn-wrapper,
.rw-cws__left .rw-btn-wrapper {
    margin-top: 35px;
}

/* Centered variant */
.content-block--centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.content-block--centered .rw-icon-logo           { order: 1; margin-bottom: 15px; }
.content-block--centered .content-block__eyebrow { order: 2; }
.content-block--centered .content-block__title   { order: 3; }
.content-block--centered .content-block__body    { order: 4; }

/* ==========================================================================
   Split Layout
   ========================================================================== */

.rw-split-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
    margin: 0 auto;
    padding-top: var(--pad-top, 30px);
    padding-bottom: var(--pad-bottom, 30px);
    padding-left: 20px;
    padding-right: 20px;
}

.rw-split-layout.rw-layout--reverse {
    flex-direction: row-reverse;
}

.rw-split-content {
    flex: 0 0 calc(50% - 10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
    background: var(--rw-accent);
    border-radius: var(--rw-corners);
    min-height: 530px;
    position: relative;
}

.rw-split-media {
    flex: 0 0 calc(50% - 10px);
    display: flex;
    flex-direction: column;
    min-height: 530px;
}

/* ==========================================================================
   Split Layout - Single Team
   ========================================================================== */
.single-team .content-block__eyebrow {
    color: var( --rw-primary );
    text-transform: capitalize;
    letter-spacing: 1px;
    order: 2;
    margin-bottom: 20px;
    font-size: 18px;
}

.single-team .content-block {
    display: flex;
    flex-direction: column;
}

.single-team .content-block__title {
    order: 1;
    margin-bottom: 5px;
}

.single-team .content-block__body {
    order: 3;
}

@media (max-width: 992px) {
    .rw-split-layout {
        flex-direction: column-reverse;
        padding-top: calc(var(--pad-top, 20px) / 2);
        padding-bottom: calc(var(--pad-bottom, 20px) / 2);
    }

    .rw-split-layout.rw-layout--reverse {
        flex-direction: column-reverse;
    }

    .rw-split-content,
    .rw-split-media {
        flex: 0 0 100%;
        min-height: unset;
    }

    .rw-split-content {
        padding: 50px 20px;
    }

    .rw-split-media {
        aspect-ratio: 3 / 2;
    }
}

@media (max-width: 640px) {
    .rw-split-layout {
        padding-left: 20px;
        padding-right: 20px;
        gap: 20px;
    }
}

/* ==========================================================================
   Media — Shared
   ========================================================================== */

.rw-media--image,
.rw-media--link,
.rw-media--linklogo,
.rw-media--video,
.rw-media--dynamic_card,   /* ← add this line */
.rw-media__link-card {
    height:       100%;
    width:        100%;
    max-width:    100%;
    aspect-ratio: 3 / 2;
}

/* ==========================================================================
   Media — Image
   ========================================================================== */

.rw-media__image {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: var(--rw-corners);
}

.rw-media__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Media — Video
   ========================================================================== */

.rw-media__video {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: var(--rw-corners);
    background: #000;
}

.rw-media__video iframe,
.rw-media__video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.rw-video__mp4--hidden {
    display: none;
}

.rw-video__poster {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.rw-video__poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rw-video__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.rw-video__play:hover {
    background: rgba(0, 0, 0, 0.55);
}

.rw-video__play i {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rw-primary);
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.rw-video__play:hover i {
    transform: scale(1.08);
    background: var(--rw-secondary);
}

/* ==========================================================================
   Media — Link Card
   ========================================================================== */

.rw-media__link-card {
    display:         block;
    position:        relative;
    overflow:        hidden;
    border-radius:   var( --rw-corners );
    text-decoration: none;
    color:           inherit;
    outline:         none;
    transition:      box-shadow 0.3s ease;
}

.rw-media__link-card:hover {
    box-shadow: var(--rw-shadow);
}

.rw-media__link-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rw-media__link-card:hover .rw-media__link-bg {
    transform: scale(1.04);
}

.rw-media__link-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 15px 25px 15px 22px;
    background: #000;
    color: #fff;
    min-height: 100px;
}

.rw-media__link-bar-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rw-media__link-title {
    margin: 0;
    color: #fff;
    font-weight: 700;
}

.rw-media__link-content {
    margin: 0;
    font-size: 14px;
    letter-spacing: -.50px;
}

.rw-media__link-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid white;
    color: #fff;
    font-size: 30px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.rw-media__link-card:hover .rw-media__link-btn {
    background: #fff;
    border-color: #fff;
    color: #000;
}

.rw-media__link-btn i {
    transition: transform 0.2s ease;
}

.rw-media__link-card:hover .rw-media__link-btn i {
    transform: translateX(2px);
}

/* Logo variant */
.rw-media__link-logo {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
}

.rw-media__link-logo img {
    max-height: 45%;
    max-width: 45%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Logo Display — static card, logo fully centered, no hover effects */
.rw-media__link-card--logo-display {
    pointer-events: none;
}

.rw-media__link-logo--centered {
    bottom: 0;
}

/* Slightly larger logo for display-only variant */
.rw-media__link-card--logo-display .rw-media__link-logo img {
    max-width:  55%;
    max-height: 55%;
}

.rw-pdw__media .rw-media.rw-media--dynamic_card {
    aspect-ratio: auto;
}

@media (max-width: 992px) {
    .rw-media__link-logo--centered {
        bottom: 0;
    }

    /* Override the default bottom: 80px shift for centered variant */
    .rw-media__link-card--logo-display .rw-media__link-logo--centered {
        bottom:      0;
        top:         0;
        left:        0;
        right:       0;
        display:     flex;
        align-items: center;
        justify-content: center;
    }

    .rw-media__link-card--logo-display .rw-media__link-logo img {
        max-width:  55%;
        max-height: 55%;
    }
}

@media (max-width: 992px) {
    .rw-media--link,
    .rw-media--dynamic_card,   /* ← add this line */
    .rw-media__link-card {
        height: 100%;
    }


    .rw-media__link-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 20px;
    }

    .rw-media__link-title {
        font-size: 25px;
    }

    /* Logo variant */
    .rw-media__link-logo {
        bottom: 80px;
    }

    .rw-media__link-logo img {
        max-height: 50%;
        max-width: 50%;
    }
}


/* ==========================================================================
   Dark Section — global background utility
   ========================================================================== */

.rw-dark-section {
    position: relative;
    overflow: hidden;
    background-color: #1a0000;
    background-image: url('/wp-content/themes/bb-theme-child/rw-master/flex-layouts/assets/images/CPC-Textured-Pattern.jpg');
    background-repeat: repeat;
    background-size: auto;
}

.rw-dark-section__overlay--dark,
.rw-dark-section__overlay--radial {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rw-dark-section__overlay--dark {
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.rw-dark-section__overlay--radial {
    background-image: linear-gradient(90deg, #840000 0%, #CC3333 100%);
    mix-blend-mode: multiply;
    z-index: 2;
}