/* Private Equity Tabs Styles */

.pe-tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    font-family: 'Helvetica', 'Arial', sans-serif;
    width: 100%;
    /* Adapts to container width */
    margin: 0 auto;
}

/* --- Left Column: Navigation --- */
.pe-tabs-nav {
    width: 50%;
    padding-right: 40px;
    box-sizing: border-box;
}

.pe-tab-link {
    font-size: 48px;
    font-family: 'Gotham Book', 'Gotham', sans-serif;
    line-height: 60px;
    font-weight: 600;
    word-spacing: -2px;
    color: #A0B2B5;
    padding: 15px 0;
    cursor: pointer;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
    /* Maintains spacing */
}

.pe-tab-link:hover {
    color: #5F7D80;
}

.pe-tab-link.active {
    color: #2F5254;
}

/* --- Right Column: Content --- */
.pe-tabs-content-area {
    width: 50%;
    background: linear-gradient(45deg, #007a8d 0%, #1b474f 100%);
    border-radius: 12px;
    padding: 60px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    position: relative;
    min-height: 400px;
    /* Ensure height matches roughly */
    display: flex;
    flex-direction: column;
}

.pe-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
    flex: 1;
}

.pe-tab-content.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pe-content-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pe-content-inner h3 {
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #ffffff !important;
    font-weight: 700;
    line-height: 1.2em;
}

.pe-content-inner p {
    font-size: 32px;
    line-height: 1.3em;
    font-family: 'FT Polar Book', 'Gotham Book', 'Gotham', sans-serif;
    color: #ffffff;
    margin-bottom: auto;
    /* Pushes subsequent content (image/button) to bottom */
}

.pe-content-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    display: block;
    margin-top: 30px;
    /* Space from text */
}

/* --- Button --- */
.pe-button {
    display: inline-flex !important;
    align-items: center;
    background-color: #ffffff !important;
    color: #007A8D !important;
    font-weight: 500;
    padding: 12px 55px 12px 24px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    font-size: 16px;
    cursor: pointer;
    border: none !important;
    align-self: flex-start !important;
    position: relative;
}

.pe-button:hover {
    transform: translateY(-2px);
    background-color: #fcfcfc !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pe-button svg {
    position: absolute;
    right: 20px;
    opacity: 0;
    width: 18px;
    height: 18px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translate(-5px, 5px);
}

.pe-button:hover svg {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Responsive --- */
@media (max-width: 980px) {
    .pe-tabs-wrapper {
        flex-direction: column;
    }

    .pe-tabs-nav {
        width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .pe-tab-link {
        font-size: 16px;
        padding: 10px 20px;
        line-height: 1.2;
        font-weight: 400;
        border: 1px solid #888;
        border-radius: 50px;
        background-color: transparent;
        color: #444;
        transition: all 0.3s ease;
        text-align: center;
    }

    .pe-tab-link.active {
        background-color: #007A8D;
        color: #fff;
        border-color: #007A8D;
    }

    .pe-tabs-content-area {
        width: 100%;
        padding: 40px;
    }

    .pe-content-inner h3 {
        font-size: 24px;
        /* Smaller heading for mobile */
        margin-bottom: 15px;
    }

    .pe-content-inner p {
        font-size: 18px;
        /* Significantly smaller text for mobile */
        line-height: 1.4em;
    }
}

/* --- Promotores Layout (Swapped) --- */
.pe-tabs-wrapper.promotores {
    flex-direction: row-reverse;
}

.pe-tabs-wrapper.promotores .pe-tabs-nav {
    padding-right: 0;
    padding-left: 40px;
    /* Swap padding */
    text-align: right;
    /* Align text to right if desired, or keep left. User didn't specify, but right align might look better next to content? Screenshot 2 shows List left, Content Right. Wait. 
    User said "Promotores... order of columns changed". 
    Current Default: Nav (Left) | Content (Right).
    New Promotores: Content (Left) | Nav (Right) ?
    Yes, that is a swap.
    The screenshot 2 has red arrows indicating swap.
    So Promotores = Content Left, Nav Right.
    So flex-direction: row-reverse is correct.
    Nav (which is now on Right) needs left padding.
    */
    text-align: right;
    /* Usually looks better if list ends at the content boundary */
}

@media (max-width: 980px) {
    .pe-tabs-wrapper.promotores {
        flex-direction: column;
        /* Stacks normally on mobile */
    }

    .pe-tabs-wrapper.promotores .pe-tabs-nav {
        padding-left: 0;
        text-align: left;
    }
}