/* ================================================================
   OUTFRONT Tabs Premium V18 — style.css
   Matches target: contained width, image left 47%, gradient right 53%
   with diagonal clip intruding into image from the right panel.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

/* ── Outer wrapper — respects theme container, no full-width hack */
.outfront-v13 {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    display: block;
    background: #000; /* shows behind image while loading */
}

/* ── Image — fills the whole block behind everything ─────────── */
.outfront-v13 .image-panel {
   position: absolute;
    left: 0;
    top: 0;
    width: 45%;
    height: 500px;
}

.outfront-v13 .image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* ── Gradient panel — overlays the right 55%, diagonal left edge ─
   clip-path polygon points (% of section width):
     TL = 44% from left, top edge
     TR = 100%, top edge
     BR = 100%, bottom edge
     BL = 36% from left, bottom edge
   This creates the slanted left edge that cuts into the image.
   ─────────────────────────────────────────────────────────────── */
.outfront-v13 .content-panel {
    position: absolute;
  top: 0;
  left: 45%;
  width: 55%;
  height: 500px;
   
  background: linear-gradient(180deg, #1d92b6 0%, #13374b 100%);
   
}

/* Hide the old SVG wedge — we use clip-path now */
.outfront-v13 .svg-divider {
     position: absolute;
    left: -120px;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    
}

/* ── Content sits in the right portion of the gradient ───────── */
.outfront-v13 .content-inner {
    position: relative;
    z-index: 3;
    height: 100%;
    padding: 55px 70px 40px 80px;
    display: flex;
    flex-direction: column;
}

/* ── Tab buttons ─────────────────────────────────────────────── */
.outfront-v13 .tabs-row {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    align-items: center;
}

.outfront-v13 .tab-btn {
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.72);
    padding: 9px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.outfront-v13 .tab-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.outfront-v13 .tab-btn.active {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

/* ── Tab panels ──────────────────────────────────────────────── */
.outfront-v13 .tab-panel {
    display: none;
    flex: 1;
    min-height: 0;
}

.outfront-v13 .tab-panel.active {
    display: flex;
    flex-direction: column;
}

/* Heading */
.outfront-v13 .tab-panel h2 {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(24px, 3vw, 52px) !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.3px !important;
    color: #fff !important;
    text-transform: uppercase !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    word-break: break-word;
    border: none !important;
    background: none !important;
}

/* Body */
.outfront-v13 .body {
    font-size: clamp(13px, 1.15vw, 16px);
    line-height: 1.65;
    color: rgba(255,255,255,0.88);
    flex: 1;
    overflow: hidden;
    font-weight: 400;
}

.outfront-v13 .body p { margin: 0 0 10px; }

/* Footer label */
.outfront-v13 .footer-label {
    margin-top: auto;
    padding-top: 14px;
    font-size: clamp(13px, 1.15vw, 18px);
    font-weight: 800;
    color: #fff;
}

.outfront-v13 .footer-link {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.outfront-v13 .footer-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* ================================================================
   TABLET ≤ 900px — stack vertically
   ================================================================ */
@media (max-width: 900px) {

    .outfront-v13 {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    /* Image: relative block, fixed height */
    .outfront-v13 .image-panel {
        position: relative;
        inset: auto;
        width: 100%;
        height: 100vw;
        min-height: 300px;
        max-height: 480px;
    }

    /* Gradient: full-width block below, no clip */
    .outfront-v13 .content-panel {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        min-height: 360px;
         background: linear-gradient(180deg, #1d92b6 0%, #13374b 100%);
    }

    /* Content: normal flow */
    .outfront-v13 .content-inner {
        position: relative;
        top: auto; left: auto; right: auto; bottom: auto;
        padding: 16px 12px 20px;
        min-height: 340px;
    }

    .outfront-v13 .tabs-row      { gap: 8px; margin-bottom: 18px; }
    .outfront-v13 .tab-btn       { font-size: 11px; padding: 4px 6px; }
    .outfront-v13 .tab-panel h2  { font-size: clamp(12px, 3.5vw, 16px) !important; margin-bottom: 7px !important; }
    .outfront-v13 .body          { font-size: 12px; }
    .outfront-v13 .footer-label  { font-size: 11px; padding-top: 5px; }
}

/* ================================================================
   MOBILE ≤ 480px
   ================================================================ */
@media (max-width: 480px) {

    .outfront-v13 .image-panel   { height: 88vw; min-height: 260px; max-height: 350px; }
    .outfront-v13 .content-inner { padding: 18px 16px 26px; }
    .outfront-v13 .tabs-row      { gap: 6px; margin-bottom: 14px; }
    .outfront-v13 .tab-btn       { font-size: 12px; padding: 6px 13px; }
    .outfront-v13 .tab-panel h2  { font-size: clamp(10px, 4vw, 15px) !important; margin-bottom: 10px !important; }
    .outfront-v13 .body          { font-size: 14px; line-height: 1.55; }
    .outfront-v13 .footer-label  { font-size: 13px; padding-top: 10px; }
}
