/*
Theme Name: BCO EventPress
Description: Child Theme für die öffentliche Website des Billard Club Oberhausen auf Basis von EventPress.
Author: Billard Club Oberhausen
Template: eventpress
Version: 0.1.0
Text Domain: bco-eventpress
*/

/*
 * Globale Design-Tokens für die schrittweise Modernisierung der Website-Hülle.
 * BCO-Anwendungskomponenten behalten ihre eigenen, gekapselten Styles.
 */
:root {
    --bco-color-primary: #1474f7;
    --bco-color-primary-dark: #0b4da8;
    --bco-color-primary-soft: #eaf3ff;
    --bco-color-text: #172033;
    --bco-color-muted: #5d697a;
    --bco-color-background: #f5f8fc;
    --bco-color-surface: #ffffff;
    --bco-color-border: #dce4ee;
    --bco-radius: 0.5rem;
    --bco-shadow: 0 0.5rem 1.5rem rgba(23, 32, 51, 0.08);
    --bco-content-width: 73.125rem;
    --bco-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Global foundation */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    color: var(--bco-color-text);
    background: var(--bco-color-background);
    font-family: var(--bco-font-sans);
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

#page {
    min-height: 100vh;
    background: var(--bco-color-background);
}

.container {
    width: 100%;
    max-width: var(--bco-content-width);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--bco-color-text);
    font-family: var(--bco-font-sans);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.018em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

p,
li,
input,
textarea,
select,
button {
    font-family: var(--bco-font-sans);
}

a {
    color: var(--bco-color-primary);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--bco-color-primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #f2b705 !important;
    outline-offset: 3px;
}

::selection {
    color: #ffffff;
    background: var(--bco-color-primary);
}

/* Header and branding */

#header-top.header-top-bg {
    min-height: 0;
    padding: 0.35rem 0;
    color: #ffffff;
    background: #1474f7;
}

#header-top .widget,
#header-top [class*="widget_"] li a,
#header-top .search__open i,
#header-top .cart-icon-wrapper {
    color: #ffffff;
    font-family: var(--bco-font-sans);
    font-size: 0.875rem;
}

.navbar-wrapper {
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--bco-color-border);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0.25rem 1rem rgba(23, 32, 51, 0.05);
}

.navbar-wrapper .navbar {
    min-height: 5rem;
    padding: 0.65rem 0 !important;
    background: transparent;
}

.navbar-wrapper .navbar > .container {
    gap: clamp(1rem, 3vw, 2.75rem);
}

.logo-bbc {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.logo-bbc a.navbar-brand.logo {
    margin: 0;
}

.logo-bbc img,
.custom-logo {
    width: auto;
    max-width: 10.5rem;
    max-height: 4rem;
    object-fit: contain;
}

.logo-bbc .site-title {
    color: var(--bco-color-primary-dark);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.logo-bbc .site-description {
    max-width: 20rem;
    margin-top: 0.2rem;
    overflow: hidden;
    color: var(--bco-color-muted);
    font-size: 0.75rem;
    line-height: 1.35;
    text-overflow: ellipsis;
}

/* Desktop navigation */

.navbar-flex {
    width: auto;
    max-width: none;
    margin-left: auto;
}

.navbar-nav {
    align-items: center;
    gap: 0.15rem;
}

ul.navbar-nav > li.nav-item {
    position: relative;
    display: block;
}

.navbar-nav > li > a,
.navbar-expand-lg .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    margin: 0;
    padding: 0.65rem 0.7rem;
    border-radius: 0.35rem;
    color: var(--bco-color-text);
    font-family: var(--bco-font-sans);
    font-size: 0.91rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus,
.navbar-nav > li.focus > a,
.navbar-nav > li.current-menu-item > a,
.navbar-nav > li.current-menu-ancestor > a,
.navbar-nav > li.active > a {
    color: var(--bco-color-primary-dark);
    background: var(--bco-color-primary-soft);
}

.navbar-nav > li > a > i {
    display: none;
}

.navbar-nav .dropdown-menu,
.navbar-nav .christ-dropdown {
    min-width: 13.5rem;
    padding: 0.5rem;
    border: 1px solid var(--bco-color-border);
    border-radius: var(--bco-radius);
    background: var(--bco-color-surface);
    box-shadow: var(--bco-shadow);
}

.navbar-nav .dropdown-menu a,
.navbar-nav .christ-dropdown a {
    display: block;
    padding: 0.7rem 0.8rem;
    border-radius: 0.35rem;
    color: var(--bco-color-text);
    font-size: 0.9rem;
    line-height: 1.35;
}

.navbar-nav .dropdown-menu a:hover,
.navbar-nav .dropdown-menu a:focus,
.navbar-nav .christ-dropdown a:hover,
.navbar-nav .christ-dropdown a:focus {
    color: var(--bco-color-primary-dark);
    background: var(--bco-color-primary-soft);
}

@media (min-width: 992px) {
    .navbar-wrapper .navbar > .container {
        flex-wrap: nowrap;
    }

    .navbar-flex {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-width: 0;
    }

    .navbar-expand-lg .navbar-nav,
    ul.navbar-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
    }

    ul.navbar-nav > li.nav-item {
        display: block;
        flex: 0 0 auto;
    }

    .navbar-nav > .menu-item-has-children > .nav-link::after {
        width: 0;
        height: 0;
        margin: 0.12rem 0 0 0.25rem;
        border-top: 3px solid currentColor;
        border-right: 2.5px solid transparent;
        border-left: 2.5px solid transparent;
        content: "";
    }

    .navbar-nav .christ-dropdown .menu-item-has-children > a::after {
        float: right;
        width: 0;
        height: 0;
        margin: 0.42rem 0.1rem 0 0.4rem;
        border-top: 2.5px solid transparent;
        border-bottom: 2.5px solid transparent;
        border-left: 3px solid currentColor;
        content: "";
    }
}

.nav-btn {
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border: 0;
    border-radius: 0.35rem;
    background: var(--bco-color-primary);
    box-shadow: none;
    font-family: var(--bco-font-sans);
    letter-spacing: 0;
}

/* Homepage hero */

.home .bco-home-hero {
    position: relative;
    display: flex;
    align-items: center;
    height: clamp(31.25rem, 44vw, 37.5rem);
    overflow: hidden;
    isolation: isolate;
    background: var(--bco-color-primary-dark);
}

.home .bco-home-hero__image,
.home .bco-home-hero__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home .bco-home-hero__image {
    z-index: -2;
    object-fit: cover;
    object-position: center;
}

.home .bco-home-hero__overlay {
    z-index: -1;
    background: linear-gradient(180deg, rgba(8, 18, 31, 0.08) 28%, rgba(8, 18, 31, 0.78) 100%);
}

.home .bco-home-hero__content {
    max-width: 62rem;
    padding-top: clamp(2.5rem, 6vw, 4.5rem);
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
    text-align: center;
}

.home .bco-home-hero h1 {
    max-width: 54rem;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(2rem, 3.6vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    white-space: nowrap;
    text-shadow: 0 0.15rem 1.2rem rgba(0, 0, 0, 0.28);
}

.home .bco-home-hero__primary-achievement {
    margin-top: 1rem;
}

.home .bco-home-hero__primary-achievement h2,
.home .bco-home-hero__achievement h3 {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0.1rem 0.8rem rgba(0, 0, 0, 0.34);
}

.home .bco-home-hero__primary-achievement h2 {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 700;
}

.home .bco-home-hero__primary-achievement p {
    margin: 0.45rem auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.85rem, 1.35vw, 1.05rem);
    font-weight: 550;
    line-height: 1.45;
    text-shadow: 0 0.1rem 0.8rem rgba(0, 0, 0, 0.34);
}

.home .bco-home-hero__achievements {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 52rem);
    margin: clamp(1.25rem, 2.5vw, 1.75rem) auto 0;
}

.home .bco-home-hero__achievement {
    position: relative;
    min-width: 0;
    padding: 0.25rem clamp(0.8rem, 2.2vw, 1.5rem);
}

.home .bco-home-hero__achievement h3 {
    font-size: clamp(0.98rem, 1.45vw, 1.2rem);
    font-weight: 650;
    line-height: 1.25;
}

.home .bco-home-hero__achievement p {
    margin: 0.28rem 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: clamp(0.78rem, 1.05vw, 0.92rem);
    font-weight: 500;
    line-height: 1.35;
    text-shadow: 0 0.1rem 0.7rem rgba(0, 0, 0, 0.35);
}

/* Homepage news */

.home #latest-news.bco-home-news {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    background: var(--bco-color-background);
}

.home .bco-home-news__header {
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
    text-align: center;
}

.home .bco-home-news__header h2 {
    margin: 0;
    color: var(--bco-color-text);
    font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.home .bco-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.home .bco-news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--bco-color-border);
    border-radius: var(--bco-radius);
    background: var(--bco-color-surface);
    box-shadow: var(--bco-shadow);
}

.home .bco-news-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bco-color-primary-soft);
}

.home .bco-news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 5%;
}

.home .bco-news-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: clamp(1.1rem, 2.2vw, 1.5rem);
}

.home .bco-news-card__date {
    color: var(--bco-color-muted);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.055em;
}

.home .bco-news-card__title {
    margin: 0.55rem 0 0;
    font-size: clamp(1.08rem, 1.6vw, 1.3rem);
    line-height: 1.3;
}

.home .bco-news-card__title a {
    color: var(--bco-color-text);
}

.home .bco-news-card__title a:hover,
.home .bco-news-card__title a:focus {
    color: var(--bco-color-primary);
}

.home .bco-news-card__excerpt {
    margin: 0.75rem 0 1.15rem;
    color: var(--bco-color-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.home .bco-news-card__more {
    align-self: flex-start;
    margin-top: auto;
    color: var(--bco-color-primary);
    font-size: 0.88rem;
    font-weight: 700;
}

.home .bco-news-card__more span[aria-hidden="true"] {
    margin-left: 0.2rem;
}

.home .bco-news-pagination {
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.home .bco-news-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home .bco-news-pagination li {
    margin: 0;
}

.home .bco-news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.65rem;
    min-height: 2.65rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--bco-color-border);
    border-radius: 0.4rem;
    color: var(--bco-color-text);
    background: var(--bco-color-surface);
    font-size: 0.9rem;
    font-weight: 650;
}

.home .bco-news-pagination a.page-numbers:hover,
.home .bco-news-pagination a.page-numbers:focus-visible {
    border-color: var(--bco-color-primary);
    color: var(--bco-color-primary);
    background: var(--bco-color-primary-soft);
}

.home .bco-news-pagination .page-numbers.current {
    border-color: var(--bco-color-primary);
    color: #ffffff;
    background: #1474f7;
}

.home .bco-home-news__empty {
    margin: 0;
    text-align: center;
}

/* Breadcrumb and global content */

#breadcrumb-area {
    padding: 2.25rem 0;
    background-color: var(--bco-color-primary-dark);
    background-image: none !important;
}

#breadcrumb-area::after {
    background: transparent;
}

#breadcrumb-area h2 {
    color: #ffffff;
    font-family: var(--bco-font-sans);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.2;
}

#breadcrumb-area .breadcrumb-nav,
#breadcrumb-area .breadcrumb-nav a,
#breadcrumb-area .breadcrumb-nav li {
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--bco-font-sans);
    font-size: 0.875rem;
}

.section-padding.page-s,
.page-s {
    padding-top: clamp(2.25rem, 5vw, 4.25rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.site-content {
    min-width: 0;
    color: var(--bco-color-text);
}

.site-content > p,
.site-content > ul,
.site-content > ol,
.site-content > blockquote {
    max-width: 52rem;
}

.site-content p + p {
    margin-top: 1rem;
}

.site-content img {
    border-radius: min(var(--bco-radius), 0.5rem);
}

.sidebar .widget {
    padding: 1.25rem;
    border: 1px solid var(--bco-color-border);
    border-radius: var(--bco-radius);
    background: var(--bco-color-surface);
    box-shadow: none;
}

/* Footer */

.bco-site-footer {
    position: relative;
    isolation: isolate;
    color: rgba(255, 255, 255, 0.82);
    background-color: #082f68;
    background-image: url("/wp-content/uploads/2020/03/Collage-scaled.jpg");
    background-position: center;
    background-size: cover;
}

.bco-site-footer::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(4, 29, 64, 0.88);
    content: "";
    pointer-events: none;
}

.bco-site-footer__main {
    display: grid;
    grid-template-columns: minmax(16rem, 1.5fr) minmax(13rem, 1fr) minmax(11rem, 0.7fr);
    gap: clamp(2rem, 5vw, 5rem);
    padding-top: clamp(2.75rem, 5vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.bco-site-footer__identity,
.bco-site-footer__contact,
.bco-site-footer__legal {
    min-width: 0;
}

.bco-site-footer__logo {
    display: inline-flex;
    margin-bottom: 1.25rem;
}

.bco-site-footer__logo-image {
    display: block;
    width: auto;
    max-width: 9rem;
    max-height: 5rem;
    object-fit: contain;
}

.bco-site-footer__club-name {
    max-width: 24rem;
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.3;
    letter-spacing: -0.012em;
}

.bco-site-footer__label {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    line-height: 1.4;
    text-transform: uppercase;
}

.bco-site-footer address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
    line-height: 1.65;
}

.bco-site-footer address a:first-of-type {
    margin-top: 0.8rem;
}

.bco-site-footer a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

.bco-site-footer a:hover,
.bco-site-footer a:focus {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

.bco-site-footer__legal ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bco-site-footer__legal li + li {
    margin-top: 0.65rem;
}

.bco-site-footer__bottom {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.12);
}

.bco-site-footer__bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* Responsive shell */

@media (max-width: 1199.98px) {
    .navbar-nav > li > a,
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
        font-size: 0.86rem;
    }
}

@media (max-width: 991.98px) {
    .container {
        max-width: 100%;
        padding-right: clamp(1rem, 4vw, 2rem);
        padding-left: clamp(1rem, 4vw, 2rem);
    }

    .navbar-wrapper .navbar {
        min-height: 4.5rem;
        padding: 0.4rem 0 !important;
    }

    .logo-bbc,
    .navbar-brand {
        padding: 0 !important;
    }

    .logo-bbc img,
    .custom-logo {
        max-width: 8rem;
        max-height: 3.4rem;
    }

    .mobile-menu-area {
        position: static;
    }

    .mean-container .mean-bar {
        min-height: 0;
        padding: 0;
        background: transparent;
    }

    .mean-container a.meanmenu-reveal,
    .is-sticky .mean-container a.meanmenu-reveal {
        top: -3.85rem;
        right: clamp(1rem, 4vw, 2rem) !important;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0.65rem;
        border: 1px solid var(--bco-color-border);
        border-radius: 0.35rem;
        color: var(--bco-color-primary-dark);
        background: var(--bco-color-surface);
        transform: none;
    }

    .mean-container a.meanmenu-reveal span {
        background: var(--bco-color-primary-dark);
    }

    .mean-container .mean-nav {
        margin: 0;
        border-top: 1px solid var(--bco-color-border);
        background: var(--bco-color-surface);
        box-shadow: var(--bco-shadow);
    }

    .mean-container .mean-nav ul li a {
        min-height: 2.9rem;
        padding: 0.8rem clamp(1rem, 4vw, 2rem);
        border-color: var(--bco-color-border);
        color: var(--bco-color-text);
        font-family: var(--bco-font-sans);
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .mean-container .mean-nav ul li a:hover,
    .mean-container .mean-nav ul li a:focus {
        color: var(--bco-color-primary-dark);
        background: var(--bco-color-primary-soft);
    }

    .mean-container .mean-nav ul li a.mean-expand {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3rem;
        min-height: 2.9rem;
        padding: 0;
        border-left: 1px solid var(--bco-color-border) !important;
    }

    #breadcrumb-area {
        padding: 1.75rem 0;
    }

    .page-s .row > [class*="col-lg-"] + [class*="col-lg-"] {
        margin-top: 2rem;
    }

    .home .bco-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 0.96rem;
    }

    .home .bco-home-hero {
        height: auto;
        min-height: 40rem;
    }

    .home .bco-home-hero__content {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .home .bco-home-hero h1 {
        max-width: 20rem;
        font-size: clamp(1.8rem, 9vw, 2.4rem);
        white-space: normal;
    }

    .home .bco-home-hero__primary-achievement {
        margin-top: 0.8rem;
    }

    .home .bco-home-hero__primary-achievement h2 {
        font-size: 1.3rem;
    }

    .home .bco-home-hero__primary-achievement p {
        max-width: 20rem;
        font-size: 0.8rem;
    }

    .home .bco-home-hero__achievements {
        grid-template-columns: 1fr;
        width: min(100%, 20rem);
        margin-top: 1.25rem;
    }

    .home .bco-home-hero__achievement {
        padding: 0.85rem 0;
    }

    .home .bco-home-hero__achievement + .bco-home-hero__achievement {
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .home .bco-home-hero__achievement h3 {
        font-size: 1rem;
    }

    .home .bco-home-hero__achievement p {
        font-size: 0.78rem;
    }

    .home #latest-news.bco-home-news {
        padding: 3rem 0;
    }

    .home .bco-news-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .home .bco-news-pagination .page-numbers {
        min-width: 2.5rem;
        min-height: 2.5rem;
        padding: 0.4rem 0.6rem;
    }

    .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .logo-bbc .site-description {
        display: none;
    }

    #breadcrumb-area {
        padding: 1.35rem 0;
    }

    .section-padding.page-s,
    .page-s {
        padding-top: 1.75rem;
        padding-bottom: 3rem;
    }

    .bco-site-footer__main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .bco-site-footer__logo-image {
        max-width: 8rem;
        max-height: 4.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* Sponsoren */
.bco-sponsor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0 0 2.5rem;
}

.bco-sponsor-card {
    display: flex;
    min-width: 0;
    margin: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dce5df;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 0.75rem 2.25rem rgba(28, 49, 37, 0.055);
}

.bco-sponsor-card__logo {
    display: grid;
    min-height: 14rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    place-items: center;
}

.bco-sponsor-card__logo img {
    display: block;
    width: 100%;
    height: 9rem;
    max-width: 18rem;
    object-fit: contain;
    object-position: center;
}

.bco-sponsor-card figcaption {
    margin-top: auto;
    padding: 1rem 1.25rem;
    border-top: 1px solid #e6ece8;
    color: #172033;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 56.25rem) {
    .bco-sponsor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 37.5rem) {
    .bco-sponsor-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bco-sponsor-card__logo {
        min-height: 12rem;
    }
}
