/* ============================================================
   SECTION COLOUR VARIABLES
============================================================ */
.ce-entry--business {
    --entry-color: var(--connect-blue-dark);
    --entry-color-mid: var(--connect-blue-mid);
}
.ce-entry--community {
    --entry-color: var(--connect-green-dark);
    --entry-color-mid: var(--connect-green-mid);
}
.ce-entry--eachother {
    --entry-color: var(--connect-orange-dark);
    --entry-color-mid: var(--connect-orange-mid);
}

/* ============================================================
   FEATURED + SPONSORS PLACEHOLDERS
============================================================ */

.connect-featured__placeholder,
.connect-sponsors__placeholder {
    background: #f5f5f5;
    padding: 60px 20px;
    text-align: center;
    font-size: 20px;
    color: #666;
    border-radius: 8px;
    border: 5px solid var(--entry-color);
    margin: 60px 0;
}

.connect-featured__placeholder:hover,
.connect-sponsors__placeholder:hover {
    background: #fafafa;
    border-color: #bbb;
}

/* ============================================================
   SPONSORS CAROUSEL — VIEWPORT
============================================================ */

.connect-sponsors__carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
}

/* ============================================================
   SPONSORS CAROUSEL — TRACK (UPDATED)
============================================================ */

.connect-sponsors__track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    transition: transform 0.6s ease;
}

/* ============================================================
   SPONSOR SLIDES
============================================================ */

.connect-sponsor-slide {
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

/* ============================================================
   SPONSOR IMAGE + PUB BADGE (UPDATED FOR 3750/780 & CONTAIN)
============================================================ */

.connect-sponsor-single {
    display: block;
    width: 100%;
}

.connect-sponsor-single a {
    display: block;
    text-decoration: none;
}

.connect-sponsor-image-wrapper {
    border-radius: 8px;
    border: 2px solid var(--entry-color);
    position: relative;
    display: block;
    width: 100vw;
    max-width: 100%;
    
    /* Enforces the exact 3750 / 780 ratio */
    aspect-ratio: 3750 / 780;
    
    overflow: hidden;
    background-color: #ffffff; /* Clean padding background for transparent graphics */
    line-height: 0;
}

.connect-sponsor-image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 6px;
    
    /* Fills the entire width and height of the 3750/780 ratio box */
    object-fit: cover;
    object-position: center;
}

/* ============================================================
   PUB BADGE — TOP RIGHT
============================================================ */

.connect-sponsor-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    line-height: 1.2 !important;

    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: none !important;
    background-image: none !important;

    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.5px;
    pointer-events: none;
    z-index: 10;
}

/* ============================================================
   CAROUSEL ARROWS
============================================================ */

.connect-sponsor-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.connect-sponsor-arrow:hover {
    background: rgba(0,0,0,0.65);
}

.connect-sponsor-arrow.left {
    left: 10px;
}

.connect-sponsor-arrow.right {
    right: 10px;
}

/* ============================================================
   FEATURED SECTION WRAPPER
============================================================ */

.connect-featured {
    margin: 60px 0;
}

/* ============================================================
   HARD RESET FOR FEATURED CAROUSEL (prevents sponsor overrides)
============================================================ */

.connect-featured__carousel,
.connect-featured__viewport,
.connect-featured__track,
.connect-featured-slide {
    all: unset;
    display: revert;
}

/* ============================================================
   FEATURED CAROUSEL — CLEAN, ISOLATED VERSION
============================================================ */

.connect-featured__carousel {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.connect-featured__viewport {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.connect-featured__track {
    display: flex;
    transition: transform 0.6s ease;
}

.connect-featured-slide {
    min-width: calc(100% / 3);
    padding: 10px;
    box-sizing: border-box;
}

/* ============================================================
   FEATURED ARROWS
============================================================ */

.connect-featured-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.connect-featured-arrow:hover {
    background: rgba(0,0,0,0.65);
}

.connect-featured-arrow.left { left: 10px; }
.connect-featured-arrow.right { right: 10px; }

/* ============================================================
   FEATURED CARD
============================================================ */

.featured-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 5px solid var(--entry-color, #444);
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.featured-card__image-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* IMAGE */
.featured-card__image {
    width: 100%;
    height: 160px;
    padding: 10px;          /* gives breathing room around wide/tall logos */
    box-sizing: border-box;
    background: #ffffff;    /* or #f2f2f2 so light/transparent logos stay readable */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-card__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;    /* keeps full logo + text visible without cropping */
    display: block;
}
/* BODY */
.featured-card__body {
    padding: 14px 16px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.featured-card__title-link {
    text-decoration: none;
    color: inherit;
}

.featured-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.3;
    color: #333;
}

.featured-card__type {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    background: var(--entry-color, #444);
    color: #fff;
    text-transform: capitalize;
    margin-top: 6px;
}

/* SECTION CONTAINER */
.container.connect-featured {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin: 20px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* MOBILE */
@media (max-width: 600px) {
    .featured-card__image {
        height: 130px;
    }

    .featured-card__title {
        font-size: 0.95rem;
    }
}
/* ============================================================
   SIMILAR ITEMS — MATCH FEATURED CARD STYLE
============================================================ */

.connect-similar__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* Outer card wrapper (same as featured-card) */
.connect-similar-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 5px solid var(--entry-color); /* SAME as featured-card */
}

/* Hover effect (same as featured-card) */
.connect-similar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* Inner wrapper to keep card + pills together */
.connect-similar-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Category pills container (inside card) */
.ce-card-categories--similar {
    padding: 12px 16px;
    background: var(--entry-color-mid); /* SAME mid-tone as featured section */
    border-radius: 12px;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Individual pills */
.ce-category-pill.disabled {
    background: #fff;
    color: #333;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}
    
/* Container for the logo */
.connect-similar-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px; /* Adjust this height to match your card design */
    width: 100%;
    overflow: hidden;
    background-color: #ffffff; /* Optional: clean background for transparent PNGs */
    padding: 15px; /* Adds breathing room around the logo */
    box-sizing: border-box;
}

/* Ensure the image scales nicely and is never cropped */
.connect-similar-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}