.cpg-grid {
    display: flex;
   
    width: 100%;
}

/* featured-sidebar layout: 1/3 featured, 2/3 sidebar */
.cpg-featured-sidebar .cpg-featured {
    flex: 1;
    min-height: 310px;
    position: relative;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    overflow: hidden;
         outline: 2px solid #000;
outline-offset: -1px;
}

.cpg-featured-sidebar .cpg-sidebar {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    
}

@media (min-width: 560px) {
    .cpg-featured-sidebar .cpg-sidebar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .cpg-featured-sidebar .cpg-sidebar {
        grid-template-columns: repeat(3, 1fr);
    }
}


.cpg-featured-sidebar .cpg-card {
    display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;

  padding: 5px 15px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    outline: 2px solid #000;
outline-offset: -1px;


}

/* Inner content on featured card */
.cpg-featured-inner {
    position: relative;
    z-index: 2;
    padding: 24px;
    width: 100%;
   
}

/* Overlay for readability */
.cpg-featured::before,
.cpg-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: opacity 0.3s;
}

.cpg-card {
    align-items: flex-start;
    justify-content: flex-end;
    flex-direction: column;
}


.cpg-theme-dark::before {
    background: rgba(0, 0, 0, 0.35);
}

.cpg-theme-light::before {
    background: rgba(255, 255, 255, 0.25);
}

.cpg-featured-inner,
.cpg-card .cpg-logo,
.cpg-card .cpg-label,
.cpg-card .cpg-copy,
.cpg-card .cpg-caption {
    position: relative;
    z-index: 2;
}

/* Text colours */
.cpg-theme-dark .cpg-label,
.cpg-theme-dark .cpg-copy,
.cpg-theme-dark .cpg-caption {
    color: #fff;
}

.cpg-theme-light .cpg-label,
.cpg-theme-light .cpg-copy,
.cpg-theme-light .cpg-caption {
    color: #111;
}

.cpg-logo {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    display: block;
    margin-bottom: 12px;
}

.cpg-featured .cpg-logo {
    max-width: 180px;
    max-height: 80px;
}

.cpg-label {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.cpg-copy {
    /* font-size: 0.9rem; */
   margin: 0 0 8px;
  line-height: 1.3;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}
.cpg-card-btn {
    position: absolute;
  bottom: 16px;
  right: 16px;
    width: 36px;
    height: 36px;
    background: #e6001d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}


.cpg-sidebar .cpg-copy {
     font-weight: 400 !important;
  text-transform: none !important;
}

.cpg-caption {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Hover */
.cpg-featured:hover::before,
.cpg-card:hover::before {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .cpg-featured-sidebar {
        flex-direction: column;
    }

    .cpg-featured-sidebar .cpg-featured {
        min-height: 300px;
    }
}

/* ── trio layout ── */
.cpg-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.cpg-trio-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    overflow: hidden;
    outline: 2px solid #000;
    outline-offset: -1px;
}

/* bg image card */
.cpg-trio-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cpg-trio-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    filter: grayscale(100%);
}

/* inner content pushed to bottom on image cards */
.cpg-trio-inner {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cpg-theme-dark .cpg-trio-inner {
    background: linear-gradient(transparent, rgba(0,0,0,0.85) 40%);
}

.cpg-theme-light .cpg-trio-inner {
    background: #fff;
    margin-top: 0;
    height: 100%;
}

.cpg-theme-accent .cpg-trio-inner {
    background: #e6001d;
    margin-top: 0;
    height: 100%;
}

/* text colours */
.cpg-theme-dark .cpg-trio-eyebrow,
.cpg-theme-dark .cpg-trio-stat,
.cpg-theme-dark .cpg-trio-stat-suffix,
.cpg-theme-dark .cpg-trio-copy { color: #fff; }

.cpg-theme-light .cpg-trio-eyebrow { color: #e6001d; }
.cpg-theme-light .cpg-trio-stat,
.cpg-theme-light .cpg-trio-stat-suffix,
.cpg-theme-light .cpg-trio-copy { color: #111; }

.cpg-theme-accent .cpg-trio-eyebrow,
.cpg-theme-accent .cpg-trio-stat,
.cpg-theme-accent .cpg-trio-stat-suffix,
.cpg-theme-accent .cpg-trio-copy { color: #fff; }

.cpg-trio-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cpg-trio-stat {
    font-size: clamp(56px, 8vw, 96px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.cpg-trio-stat-suffix {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.cpg-trio-copy {
    font-size: 16px;
    line-height: 1.4;
}

/* bogo visual */
.cpg-bogo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #ddd;
    margin: 4px 0;
}

.cpg-bogo-buy,
.cpg-bogo-free {
    display: flex;
    align-items: flex-end;
    padding: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    min-height: 80px;
}

.cpg-bogo-buy { background: #e8e8e8; color: #555; }
.cpg-bogo-free { background: #d8d8d8; color: #333; }

/* button */
.cpg-trio-btn {
    display: block;
    margin-top: 12px;
    padding: 12px 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid currentColor;
    transition: background 0.2s, color 0.2s;
}

.cpg-theme-dark .cpg-trio-btn {
    color: #fff;
    border-color: #fff;
}
.cpg-theme-dark .cpg-trio-btn:hover {
    background: #fff;
    color: #000;
}

.cpg-theme-light .cpg-trio-btn {
    color: #111;
    border-color: #111;
}
.cpg-theme-light .cpg-trio-btn:hover {
    background: #111;
    color: #fff;
}

.cpg-theme-accent .cpg-trio-btn {
    color: #fff;
    border-color: #fff;
}
.cpg-theme-accent .cpg-trio-btn:hover {
    background: #fff;
    color: #e6001d;
}

@media (max-width: 768px) {
    .cpg-trio {
        grid-template-columns: 1fr;
    }
}
