/* Homepage layout variants — calendar-mock language (#12121a / #1a1a28 / #f0ad4e) */

:root {
    --rb-home-bg: #12121a;
    --rb-home-panel: #1a1a28;
    --rb-home-border: #2a2a3a;
    --rb-home-amber: #f0ad4e;
    --rb-home-amber-text: #12121a;
    --rb-home-muted: #a8a8b8;
    --rb-home-text: #f0f0f5;
    --rb-home-icon: #bd0303;
}

/* —— Hero sizing (all layouts) —— */
#hero-container-blog,
#hero-container-blog .featured.carousel {
    height: 56.25vw;
    max-height: 600px;
    min-height: 320px;
}

#hero-container-blog.rb-home-hero-thin,
#hero-container-blog.rb-home-hero-thin .featured.carousel {
    max-height: 360px;
    min-height: 220px;
}

#hero-container-blog .featured.carousel .carousel-inner .item {
    background-size: cover;
    background-position: center center;
}

#hero-container-blog .featured.carousel .carousel-inner .item .container {
    background-color: transparent;
}

#hero-container-blog .featured.carousel .carousel-inner .item .carousel-caption {
    top: auto !important;
    bottom: 8% !important;
    left: 5%;
    right: 5%;
    padding-bottom: 0;
}

@media (max-width: 767px) {
    #hero-container-blog,
    #hero-container-blog .featured.carousel {
        height: auto;
        min-height: 0;
        max-height: none;
    }

    #hero-container-blog .featured.carousel .carousel-inner,
    #hero-container-blog .featured.carousel .carousel-inner .item {
        height: 56.25vw;
        min-height: 220px;
    }

    #hero-container-blog .featured.carousel .carousel-inner .item {
        background-size: contain;
        background-position: center center;
        background-color: #000;
    }

    .rb-home-split-row > [class*="col-"] {
        width: 100%;
        float: none;
    }

    .rb-home-rail {
        margin-top: 16px;
    }

    .rb-home-themed .rb-home-features .s-menu-item {
        height: auto;
        min-height: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 575px) {
    #hero-container-blog .featured.carousel .carousel-inner .item .carousel-caption .caption-title {
        font-size: 22px;
        line-height: 26px;
    }

    #hero-container-blog .featured.carousel .carousel-inner .item .carousel-caption .caption-subtitle {
        font-size: 12px;
        line-height: 16px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    #hero-container-blog .featured.carousel .carousel-inner .item .carousel-caption .btn-lg {
        padding: 8px 14px;
        font-size: 14px;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    #hero-container-blog .featured.carousel .carousel-inner .item .carousel-caption .caption-title {
        font-size: 30px;
        line-height: 34px;
    }
}

/* —— Page chrome (themed) —— */
body.rb-home-page-themed {
    background: var(--rb-home-bg) !important;
}

body.rb-home-page-themed .home-footer {
    background: #0b0b10 !important;
    border-top: 1px solid var(--rb-home-border);
}

body.rb-home-page-themed .home-footer,
body.rb-home-page-themed .home-footer a,
body.rb-home-page-themed .home-footer h4,
body.rb-home-page-themed .home-footer .copyright {
    color: var(--rb-home-muted) !important;
}

body.rb-home-page-themed .home-footer a:hover {
    color: var(--rb-home-amber) !important;
}

.rb-home-themed {
    background: var(--rb-home-bg);
    color: var(--rb-home-text);
    min-height: 40vh;
}

.rb-home-themed .home-wrapper {
    background: var(--rb-home-bg);
}

/* —— Header / login —— */
.rb-home-standalone-header {
    position: relative;
    z-index: 5;
    width: 100%;
    background: var(--rb-home-bg);
    padding: 0;
    border-bottom: 1px solid var(--rb-home-border);
    box-sizing: border-box;
}

.rb-home-standalone-header .home-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100%;
    padding: 20px;
    background: var(--rb-home-bg) !important;
    z-index: auto;
    overflow: hidden; /* contain floated logo + nav so banner height covers them */
    min-height: 70px;
    box-sizing: border-box;
}

.rb-home-standalone-header .home-header::after {
    content: "";
    display: table;
    clear: both;
}

/* Split only: solid dark sticky menubar banner; no overlap with split */
.rb-home-layout-splitHeroRail .rb-home-standalone-header,
.rb-home-layout-splitRailFull .rb-home-standalone-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    width: 100%;
    background: #12121a;
    border-bottom: 1px solid #2a2a3a;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.rb-home-layout-splitHeroRail .rb-home-standalone-header .home-header,
.rb-home-layout-splitRailFull .rb-home-standalone-header .home-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    background: #12121a !important;
    padding: 20px;
    overflow: hidden;
    min-height: 70px;
}

/* Mobile: hamburger opens .blog-nav below the bar — must not clip login fields */
@media (max-width: 767px) {
    .rb-home-standalone-header,
    .rb-home-layout-splitHeroRail .rb-home-standalone-header,
    .rb-home-layout-splitRailFull .rb-home-standalone-header {
        overflow: visible;
    }

    .rb-home-standalone-header .home-header,
    .rb-home-layout-splitHeroRail .rb-home-standalone-header .home-header,
    .rb-home-layout-splitRailFull .rb-home-standalone-header .home-header {
        overflow: visible !important;
    }

    .rb-home-standalone-header .home-header .blog-nav {
        background-color: #12121a;
        border-bottom: 1px solid #2a2a3a;
        z-index: 1200;
    }

    .rb-home-standalone-header .home-header .blog-nav.active {
        max-height: 480px;
        overflow: visible;
        padding: 8px 0 12px;
    }

    /* Desktop rule forces float:left; restore stacked mobile menu */
    .rb-home-standalone-header .home-header .blog-nav ul li {
        float: none;
        margin-left: 0;
        padding: 8px 16px;
        text-align: left;
    }

    .rb-home-standalone-header .home-header .blog-nav #loginForm {
        width: 100%;
        box-sizing: border-box;
    }

    .rb-home-standalone-header .home-header .blog-nav #loginForm .form-inline {
        display: block;
        width: 100%;
    }

    .rb-home-standalone-header .home-header .blog-nav #loginForm .form-inline .form-group {
        display: block;
        width: 100%;
        margin: 6px 0;
    }

    .rb-home-standalone-header .home-header .blog-nav #loginForm .form-inline .form-group > div {
        width: 100%;
    }

    .rb-home-standalone-header .home-header .blog-nav #loginForm .form-control {
        width: 100% !important;
        max-width: none !important;
        display: block;
        box-sizing: border-box;
    }

    .rb-home-standalone-header .home-header .blog-nav #loginForm .btn-black {
        float: right;
    }
}

.rb-home-themed .home-header {
    background: rgba(18, 18, 26, 0.92);
}

.rb-home-themed .home-header .form-control,
.rb-home-standalone-header .home-header .form-control {
    background: #0e0e14 !important;
    border: 1px solid #3a3a4a !important;
    color: #fff !important;
    box-shadow: none !important;
    height: 34px;
}

.rb-home-themed .home-header .form-control::placeholder,
.rb-home-standalone-header .home-header .form-control::placeholder {
    color: #888 !important;
}

.rb-home-themed .home-header .btn-black,
.rb-home-standalone-header .home-header .btn-black,
.rb-home-themed #loginForm .btn-black,
.rb-home-standalone-header #loginForm .btn-black {
    background: var(--rb-home-amber) !important;
    border-color: var(--rb-home-amber) !important;
    color: var(--rb-home-amber-text) !important;
    font-weight: 700;
    text-transform: none;
    border-radius: 2px;
    padding: 6px 12px;
}

.rb-home-themed .home-header .btn-black:hover,
.rb-home-standalone-header .home-header .btn-black:hover {
    filter: brightness(1.05);
}

/* Uniform nav button chrome (height/shape/type); keep success/danger colors */
.rb-home-themed .home-header .blog-nav ul li,
.rb-home-standalone-header .home-header .blog-nav ul li {
    margin-left: 10px;
    padding-top: 0;
    float: left;
}

.rb-home-themed .home-header .blog-nav .btn,
.rb-home-standalone-header .home-header .blog-nav .btn {
    display: inline-block;
    box-sizing: border-box;
    height: 34px;
    min-height: 34px;
    line-height: 20px;
    padding: 6px 12px !important;
    font-size: 15px !important;
    font-weight: 700;
    border-radius: 2px !important;
    border-width: 0;
    vertical-align: middle;
    margin: 0;
}

.rb-home-themed .home-header .blog-nav .btn-success,
.rb-home-standalone-header .home-header .blog-nav .btn-success {
    /* keep Bootstrap/Metronic green */
    color: #fff !important;
}

.rb-home-themed .home-header .blog-nav .btn-danger,
.rb-home-standalone-header .home-header .blog-nav .btn-danger {
    /* keep red Log off */
    color: #fff !important;
}

/* —— Hero frame + amber CTA + dots —— */
.rb-home-themed #hero-container-blog {
    background: var(--rb-home-bg);
}

.rb-home-themed #hero-container-blog > .featured.carousel {
    border: 1px solid var(--rb-home-border);
    box-sizing: border-box;
}

.rb-home-themed #hero-container-blog .carousel-caption .btn-lg,
.rb-home-themed #hero-container-blog .carousel-caption a.btn {
    background: var(--rb-home-amber) !important;
    color: var(--rb-home-amber-text) !important;
    border: none !important;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.rb-home-themed #hero-container-blog .carousel-caption .caption-title,
.rb-home-themed #hero-container-blog .carousel-caption .carousel-title {
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.rb-home-themed #hero-container-blog .carousel-caption .caption-subtitle {
    color: #e8e8f0 !important;
}

.rb-home-themed #hero-container-blog .carousel-indicators li {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.85);
    width: 12px;
    height: 12px;
    margin: 0 4px;
    border-radius: 50%;
}

.rb-home-themed #hero-container-blog .carousel-indicators li.active {
    background: #fff;
    border-color: #fff;
}

/* Split: full-bleed hero + rail, 3px under sticky menu */
.rb-home-split-band {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 12px 8px;
    background: var(--rb-home-bg);
    box-sizing: border-box;
}

.rb-home-layout-splitHeroRail .rb-home-split-band,
.rb-home-layout-splitRailFull .rb-home-split-band {
    margin-top: 3px;
    padding-top: 0;
    width: 100%;
    max-width: none;
}

.rb-home-split-band .rb-home-split-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.rb-home-split-band .rb-home-split-row > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
    float: none;
}

@media (min-width: 992px) {
    .rb-home-split-band .rb-home-split-row > .col-md-7 {
        width: 62%;
        flex: 0 0 62%;
        max-width: 62%;
    }

    .rb-home-split-band .rb-home-split-row > .col-md-5 {
        width: 38%;
        flex: 0 0 38%;
        max-width: 38%;
    }
}

.rb-home-split-band #hero-container-blog,
.rb-home-split-band #hero-container-blog .featured.carousel {
    height: 462px;
    max-height: 462px;
    min-height: 280px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.rb-home-split-band #hero-container-blog .featured.carousel {
    border-radius: 2px;
}

.rb-home-split-band #hero-container-blog .carousel-indicators {
    bottom: 12px;
    margin-bottom: 0;
}

.rb-home-split-band .rb-home-rail {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .rb-home-split-band #hero-container-blog,
    .rb-home-split-band #hero-container-blog .featured.carousel {
        height: 56.25vw;
        max-height: 462px;
        min-height: 220px;
    }
}

/* —— Features strip: widen past home-wrapper; 5 cols, one row —— */
.home-wrapper .rb-home-features {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .rb-home-features .rb-home-features-row {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .rb-home-features .rb-home-feature-col {
        float: none !important;
        width: 20% !important;
        max-width: 20% !important;
        flex: 1 1 0;
        box-sizing: border-box;
    }
}

/* —— Features strip (flat mock style) —— */
.rb-home-themed .home-wrapper .rb-home-features,
.rb-home-themed .rb-home-features {
    background: var(--rb-home-panel);
    padding: 36px 24px 28px;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

.rb-home-themed .rb-home-features .row {
    margin-left: -10px;
    margin-right: -10px;
}

.rb-home-themed .rb-home-features .s-menu-item {
    background: transparent !important;
    height: auto;
    min-height: 200px;
    border-radius: 0;
    overflow: visible;
    padding: 8px 12px 24px;
}

.rb-home-themed .rb-home-features .s-icon {
    position: static;
    display: block;
    width: auto;
    height: auto;
    line-height: 1;
    font-size: 48px;
    color: var(--rb-home-icon) !important;
    opacity: 1;
    margin: 0 auto 16px;
    text-align: center;
}

.rb-home-themed .rb-home-features .s-content {
    position: static;
    height: auto;
    width: 100%;
}

.rb-home-themed .rb-home-features .s-main {
    color: #fff !important;
    font-size: 16px !important;
    line-height: 20px !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
}

.rb-home-themed .rb-home-features .s-sub {
    color: var(--rb-home-muted) !important;
    position: static !important;
    opacity: 1 !important;
    font-size: 13px;
    line-height: 18px;
    width: 100%;
    padding: 0 6px;
}

.rb-home-themed .no-touch .s-menu-item:hover {
    background: transparent !important;
}

.rb-home-themed .no-touch .s-menu-item:hover .s-icon {
    color: var(--rb-home-icon) !important;
    top: auto;
}

.rb-home-themed .no-touch .s-menu-item:hover .s-main,
.rb-home-themed .no-touch .s-menu-item:hover .s-sub {
    color: inherit;
}

/* —— Featured events —— */
.rb-home-featured {
    padding: 8px 0 24px;
    width: 100%;
}

/* 4-col full-width featured row */
.rb-home-featured-carousel.rb-home-featured-4col {
    width: 100%;
    margin: 0 0 16px;
    padding: 0;
}

.rb-home-featured-cols {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.rb-home-featured-cols > .rb-home-featured-col {
    float: none;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
    min-width: 0; /* flex: allow image shrink/cover */
}

@media (min-width: 992px) {
    .rb-home-featured-cols > .rb-home-featured-col {
        width: 25%;
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .rb-home-featured-cols > .rb-home-featured-col {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.rb-home-featured-4col .card {
    width: 100%;
    margin-bottom: 16px;
    display: block;
    overflow: hidden;
}

/* Do not use background shorthand here — it clears background-image */
.rb-home-featured-4col .card .rb-home-featured-figure,
.rb-home-themed .rb-home-featured-4col .card .rb-home-featured-figure {
    display: block !important; /* spaces.css sets .figure { display: inline-block } — that shrink-wraps and letterboxes posters */
    width: 100% !important;
    height: 220px !important;
    overflow: hidden !important;
    position: relative !important;
    background-color: #111 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.rb-home-featured-4col .card .rb-home-featured-img {
    display: none !important;
}

.rb-home-featured-4col .card .figure .figCaption,
.rb-home-featured-4col .card .figure .rb-home-date-chip,
.rb-home-featured-4col .card .figure .figView {
    z-index: 2;
    position: relative;
}

.rb-home-featured-4col .card .figure .rb-home-date-chip {
    position: absolute;
}

.rb-home-featured-4col .card h2 {
    font-size: 15px;
    line-height: 1.3;
    padding: 10px 12px 4px;
}

.rb-home-featured-4col .cardAddress {
    font-size: 12px;
    padding: 0 12px 8px;
}

.rb-home-themed .rb-home-featured-4col .rb-home-card-cta {
    margin: 0 12px 12px;
    font-size: 11px;
    padding: 6px 10px;
}

/* Full-bleed featured row (break out of fixed home-wrapper) */
.rb-home-themed .home-wrapper .rb-home-featured {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .rb-home-featured-4col .card .rb-home-featured-figure {
        height: 200px !important;
    }

    .rb-home-featured-cols > .rb-home-featured-col {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.rb-home-themed .rb-home-featured {
    padding: 8px 0 24px;
}

.rb-home-themed .rb-home-featured h1 {
    color: #fff !important;
    font-size: 22px;
    letter-spacing: 0.08em;
    margin: 8px 0 20px !important;
}

.rb-home-themed a.card,
.rb-home-themed div.card {
    background: var(--rb-home-panel) !important;
    border: 1px solid var(--rb-home-border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: none;
    margin-bottom: 24px;
}

.rb-home-themed .card .figure {
    background-color: #0e0e14;
    display: block;
    width: 100%;
}

.rb-home-themed .card h2 {
    color: var(--rb-home-text) !important;
    padding: 12px 14px 4px;
    margin: 0;
    font-size: 18px;
}

.rb-home-themed .cardAddress {
    color: var(--rb-home-muted) !important;
    padding: 0 14px 8px;
}

.rb-home-themed .no-touch .figCaption,
.rb-home-themed .figCaption {
    -webkit-transform: none !important;
    transform: none !important;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%) !important;
    padding: 14px 12px;
}

.rb-home-themed .figCaption .truncate {
    float: none;
    display: inline-block;
    background: transparent;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 0;
    border-radius: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

/* Always-visible date (no amber chip background) */
.rb-home-themed .rb-home-date-chip {
    position: absolute;
    z-index: 3;
    left: 12px;
    bottom: 12px;
    display: inline-block;
    background: transparent;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 0;
    border-radius: 0;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.rb-home-themed .no-touch .figCaption {
    display: none;
}

.rb-home-themed .figView {
    display: none !important;
}

.rb-home-themed .rb-home-card-cta {
    display: inline-block;
    margin: 0 14px 14px;
    background: var(--rb-home-amber);
    color: var(--rb-home-amber-text) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 4px;
}

.rb-home-themed .propWidget-1 {
    background: var(--rb-home-panel);
    border: 1px solid var(--rb-home-border);
    border-radius: 4px;
    display: block;
    margin-bottom: 20px;
    overflow: hidden;
    text-decoration: none !important;
}

.rb-home-themed .propWidget-1 .figCap h3 {
    color: var(--rb-home-text) !important;
}

.rb-home-themed .propWidget-1 .address,
.rb-home-themed .propWidget-1 .feat {
    color: var(--rb-home-muted) !important;
}

.rb-home-themed .propWidget-1 .figType {
    background: var(--rb-home-amber);
    color: var(--rb-home-amber-text);
}

/* Featured-first: tighter top spacing, cards lead */
/* Featured-first layouts removed */

/* —— Split rail —— */
.rb-home-rail {
    display: flex;
    flex-direction: column;
    background: var(--rb-home-panel);
    border: 1px solid var(--rb-home-border);
    border-radius: 4px;
    padding: 14px 14px 10px;
    height: 462px;
    max-height: 462px;
    overflow: hidden;
    box-sizing: border-box;
}

.rb-home-rail-title {
    color: #f0ad4e !important;
    font-size: 14px;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    flex: 0 0 auto;
}

.rb-home-rail-list {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}

.rb-home-rail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--rb-home-border);
    text-decoration: none !important;
    color: inherit;
    flex: 0 0 auto;
}

.rb-home-rail-item:last-child {
    border-bottom: 0;
}

.rb-home-rail-item:hover .rb-home-rail-name {
    color: var(--rb-home-amber);
}

.rb-home-rail-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    flex-shrink: 0;
    background: #0e0e14;
    border-radius: 2px;
    border: 1px solid var(--rb-home-border);
}

.rb-home-rail-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 4px;
}

.rb-home-rail-name {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rb-home-rail-date {
    color: var(--rb-home-muted);
    font-size: 12px;
}

.rb-home-rail-cta {
    flex-shrink: 0;
    background: var(--rb-home-amber);
    color: var(--rb-home-amber-text) !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 3px;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .rb-home-rail {
        height: auto;
        max-height: none;
    }

    .rb-home-rail-list {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .rb-home-themed .home-wrapper {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .rb-home-themed .rb-home-card-cta {
        display: block;
        text-align: center;
        margin: 0 12px 14px;
    }

    .rb-home-rail-item {
        flex-wrap: wrap;
    }

    .rb-home-rail-cta {
        margin-left: 84px;
    }
}
