/* ============================================================
   IGN Group — Tabs Section
   ============================================================ */

.ign-tabs-section {
    --ign-accent: #2ecc40;
    --ign-accent-dark: #1fa832;
    --ign-navy: #0c1929;
    --ign-navy-light: #152a42;
    --ign-text-dark: #1a2b3c;
    --ign-text-body: #162A3C;
    --ign-border: #dce3ea;

    font-family: 'Poppins', sans-serif;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    scroll-margin-top: 100px;
}

.ign-tabs-section *,
.ign-tabs-section *::before,
.ign-tabs-section *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Tab bar ── */
.ign-tabs-bar {
    display: flex;
    gap: 1px;
    margin-bottom: 0;
}

.ign-tab-btn {
    position: relative;
    padding: 10px 20px !important;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    background: #14476D;
    border: none;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
    line-height: 1.3;
    border-radius: 0px;
}

.ign-tab-btn:hover {
    background: var(--ign-navy-light);
}

.ign-tab-btn.active {
    background: var(--ign-accent);
    color: #fff;
}

/* ── Panels ── */
.ign-tabs-panels {
    position: relative;
}

.ign-tab-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
    animation: ignTabFadeIn 0.4s ease;
}

.ign-tab-panel.active {
    display: grid;
}

@keyframes ignTabFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── Image column ── */
.ign-tab-image-col {
    position: relative;
    overflow: hidden;
    height: 493px;
    background: var(--ign-navy);
}

.ign-tab-image-col img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    object-position: top;
}

.ign-tab-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    padding: 180px 88px;
    background: linear-gradient(180deg, rgba(60, 208, 40, 0.32) 0%, rgba(25, 89, 100, 0.80) 33.17%, rgba(20, 71, 109, 0.80) 75%);
    color: #fff;
}

.ign-tab-overlay-number {
    font-size: 20px;
    font-style: italic;
    font-weight: 400;
    line-height: 0%;
    color: var(--ign-accent);
    margin-bottom: 12px;
}

.ign-tab-overlay-heading {
    font-size: 32px;
    font-weight: 700;
    line-height: 120%;
    color: #fff;
}

/* ── Image nav arrows ── */
.ign-tab-image-nav {
    position: absolute;
    bottom: 80px;
    left: 80px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

/* shift overlay text up so arrows have room */
.ign-tab-image-overlay {
    padding-bottom: 80px;
}

.ign-tab-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--ign-accent);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.25s;
    padding: 0;
    line-height: 1;
}

.ign-tab-nav-btn:hover {
    background: var(--ign-accent-dark);
    transform: scale(1.08);
}

.ign-tab-nav-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Text column ── */
.ign-tab-text-col {
    padding: 65px 48px 65px 72px;
    background: #fff;
    color: var(--ign-text-body);
    overflow-y: auto;
}

.ign-tab-text-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ign-text-dark);
    margin-top: 20px;
    margin-bottom: 8px;
}

.ign-tab-text-col h4:first-child {
    margin-top: 0;
}

.ign-tab-text-col p {
    font-size: 16px;
    line-height: normal;
    color: var(--ign-text-body);
    margin-bottom: 20px;
}

/* ── Select dropdown (hidden on desktop) ── */
.ign-tabs-select {
    display: none;
    width: 100%;
    padding: 14px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: #14476D;
    border: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    border-radius: 0;
}

.ign-tabs-select:focus {
    outline: 2px solid var(--ign-accent);
    outline-offset: -2px;
}

.ign-tabs-select option {
    background: var(--ign-navy);
    color: #fff;
    padding: 10px;
}

@media(max-width: 1225px) {
    .ign-tabs-bar {
        overflow-x: scroll;
    }
}

/* ── Tablet: tabs become select ── */
@media (max-width: 1024px) {
    .ign-tabs-select {
        display: block;
    }

    .ign-tabs-bar {
        display: none;
    }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .ign-tab-image-nav {
        bottom: 80px;
        left: 30px;
    }

    .ign-tab-image-overlay {
        padding: 180px 30px;
    }

    .ign-tab-panel {
        grid-template-columns: 1fr;
    }

    .ign-tab-image-col {
        min-height: 280px;
        height: 450px;
    }

    .ign-tab-text-col {
        padding: 28px 24px;
    }
}