/*
 * OakBridge Events site overrides.
 * Loaded after style.css / responsive.css so these rules win.
 */

/* ------------------------------------------------------------------
   Speaker cards (homepage + /speakers)
   Every card is the same size and every red name banner has the
   same shape, whatever the length of the name or designation.
------------------------------------------------------------------ */
.speakers-section-three .row > .speaker-block-three {
    display: flex;
}

.speaker-block-three .inner-box {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.speaker-block-three .info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    /* leaves room for the slanted end inside the card */
    width: calc(100% - 48px);
    /* fits a 2-line name and a 3-line designation */
    height: 128px;
    padding: 12px 6px 12px 30px;
}

.speaker-block-three .info-box:before {
    right: -30px;
    /* gentler angle so the taller banner keeps the original slant width */
    -webkit-transform: skew(-16deg);
    -moz-transform: skew(-16deg);
    -ms-transform: skew(-16deg);
    -o-transform: skew(-16deg);
    transform: skew(-16deg);
}

.speaker-block-three .info-box .name,
.speaker-block-three .info-box .designation {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.speaker-block-three .info-box .name {
    -webkit-line-clamp: 2;
    margin-bottom: 2px;
}

.speaker-block-three .info-box .designation {
    -webkit-line-clamp: 3;
}

/* ------------------------------------------------------------------
   Header: keep the menu centred on the page (desktop), with the logo
   on the left and the Register button (when shown) on the right.
------------------------------------------------------------------ */
@media only screen and (min-width: 1024px) {
    .header-style-two .main-box > .auto-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: start;
    }

    .header-style-two .main-box > .auto-container:before,
    .header-style-two .main-box > .auto-container:after {
        content: none;
        display: none;
    }

    .header-style-two .main-box .logo-box {
        grid-column: 1;
        justify-self: start;
        float: none;
    }

    /* the menu and the button both live inside .nav-outer; let them sit in the grid directly */
    .header-style-two .main-box .nav-outer {
        display: contents;
    }

    .header-style-two .main-box .nav-outer .main-menu {
        grid-column: 2;
        justify-self: center;
        float: none;
    }

    .header-style-two .main-box .nav-outer .mobile-nav-toggler {
        display: none;
    }

    .header-style-two .main-box .outer-box {
        grid-column: 3;
        justify-self: end;
        float: none;
        margin-left: 20px;
    }

    .header-style-two .main-menu .navigation > li:first-child {
        margin-left: 0;
    }
}

/* ------------------------------------------------------------------
   Text edited in Admin (rich text): keep the theme's look
------------------------------------------------------------------ */
.page-rich-text img {
    max-width: 100%;
    height: auto;
}

.sec-title .page-rich-text p:last-child {
    margin-bottom: 0;
}

/* bulleted lists shown with the theme's tick bullets (Legathon) */
.rich-ticks ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1rem;
}

.rich-ticks ul li {
    position: relative;
    font-size: 16px;
    line-height: 26px;
    color: #444444;
    padding-left: 35px;
    margin-bottom: 10px;
}

.rich-ticks ul li:before {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 16px;
    content: "\52";
    font-family: "ElegantIcons";
    color: #e1137b;
}

/* ------------------------------------------------------------------
   Partners & sponsors (homepage)
   One card style for every logo, left aligned. "Large" groups get
   their own row; "medium" and "small" groups sit side by side and wrap.
------------------------------------------------------------------ */
.ob-partners {
    padding: 90px 0 70px;
    background: #f7f7fb;
}

.ob-partners__head {
    text-align: center;
    margin-bottom: 48px;
}

.ob-partners__eyebrow {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: #e1137b;
    margin-bottom: 8px;
}

.ob-partners__head h2 {
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
    color: #1f1f2e;
    margin: 0;
}

.ob-partners__tiers {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 40px 56px;
}

.ob-tier {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
}

.ob-tier--large {
    flex-basis: 100%;
}

.ob-tier__label {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #1f1f2e;
    text-align: left;
    white-space: nowrap;
}

/* pink accent bar before the title */
.ob-tier__label::before {
    content: "";
    flex: none;
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: #e1137b;
}

/* hairline after the title */
.ob-tier__label::after {
    content: "";
    flex: 1 1 24px;
    min-width: 24px;
    height: 1px;
    background: #dcdce6;
}

.ob-tier {
    --card-w: 200px;
    --card-h: 104px;
    --gap: 16px;
}

.ob-tier--medium {
    --card-w: 240px;
    --card-h: 120px;
}

.ob-tier--large {
    --card-w: 320px;
    --card-h: 150px;
}

.ob-tier__logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: var(--gap);
    max-width: calc(var(--per-row, 5) * (var(--card-w) + var(--gap)) - var(--gap));
}

.ob-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--card-w);
    height: var(--card-h);
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e6e6ef;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(20, 20, 43, .04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

a.ob-logo:hover,
.ob-logo:hover {
    transform: translateY(-3px);
    border-color: #d3d3e2;
    box-shadow: 0 10px 24px rgba(20, 20, 43, .08);
}

.ob-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ob-tier--large .ob-logo {
    padding: 22px 30px;
}

@media (max-width: 767.98px) {
    .ob-partners {
        padding: 60px 0 50px;
    }

    .ob-partners__head h2 {
        font-size: 30px;
    }

    .ob-partners__tiers {
        gap: 28px;
    }

    .ob-tier {
        flex-basis: 100%;
    }

    .ob-tier__label {
        white-space: normal;
        font-size: 14px;
    }

    .ob-tier__logos {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        max-width: none;
    }

    .ob-tier__logos:has(> :only-child) {
        grid-template-columns: minmax(0, calc(50% - 6px));
        justify-content: start;
    }

    .ob-logo,
    .ob-tier--medium .ob-logo,
    .ob-tier--large .ob-logo {
        width: 100%;
        height: 92px;
        padding: 12px 14px;
    }

    .ob-tier--large .ob-logo {
        height: 120px;
    }
}
