// GCC Centered Offerings specific styles
// Custom styles for the GCC page replacing inline HTML styles

// GCC Theme Variables
:root {
    --gcc-theme-orange: #f28c28;
    --gcc-theme-pink: #d00f5c;
    --gcc-theme-green: #2ecc71;
    --gcc-theme-purple: #8e44ad;
}

.rv_partners_wrapper {

    .rv_gcc_banner {
        background-image: url('../qfimgs/GCC_background.png');
        background-size: cover;
        background-position: center;
        width: 108%;
        margin-left: -4%;
        height: 80vh;
        position: relative;

        &::before {
            background: linear-gradient(130deg, rgba(200, 120, 201, 0.7) -10.2%, rgba(127, 10, 129, 0.4) 19.2%, #00000000 46.85%, #00000000 109.01%) !important;
        }

        &::after {
            background: linear-gradient(305deg, rgba(200, 120, 201, 0.7) -10.2%, rgba(127, 10, 129, 0.4) 17.73%, #00000000 50.17%, #00000000 60.9%) !important;
        }
    }

    .rv_partners_banner {
        overflow: visible !important; // allows cards to bleed out below
    }

    .insights_rv_heading {
        margin-bottom: 50px;
        text-align: left;
        background: transparent;

        h1 {
            color: #fff;
            font-size: 36px; // Updated size
            font-weight: 500; // Updated weight
            position: relative;
            width: fit-content;
            margin-bottom: 20px;

            &::after {
                content: "";
                position: absolute;
                left: 0;
                bottom: -10px;
                width: 110%;
                height: 2px;
                background: linear-gradient(90deg, #FBDA39 0%, #F89833 28%, #EA396E 59.5%, #8B3A8C 90%);
                border-radius: 5px;
            }
        }

        p {
            color: rgba(255, 255, 255, 0.8) !important;
            margin-top: 20px;
            max-width: 800px;
            font-size: 16px;
            line-height: 1.6;
        }
    }

    .gcc_hero_banner {
        position: absolute; // sits inside the 80vh banner
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); // perfectly centered
        width: 90%;
        max-width: 1600px;
        background: transparent !important;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 60px;
        z-index: 2;
        padding: 0 0px;

        .gcc_hero_left {
            flex: 0 0 50%;
            max-width: 50%;
            display: flex;
            align-items: center;
            background: transparent;
        }

        .gcc_hero_right {
            flex: 0 0 45%;
            max-width: 45%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
        }

        .gcc_hero_text {
            background: transparent;

            h1 {
                font-size: 52px;
                font-weight: 400;
                color: #fff;
                margin-bottom: 30px;
                background: transparent;
                position: relative;
                width: fit-content;

                &::after {
                    content: "";
                    position: absolute;
                    left: 0;
                    bottom: -10px;
                    width: 110%;
                    height: 2px;
                    background: linear-gradient(90deg, #FBDA39 0%, #F89833 28%, #EA396E 59.5%, #8B3A8C 90%);
                    border-radius: 5px;
                }
            }

            p {
                font-size: 18px;
                color: rgba(255, 255, 255, 0.85);
                line-height: 1.6;
                margin-bottom: 0;
                background: transparent;
            }
        }


        .gcc_hero_image_wrapper {
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            width: 100%;
            background: transparent !important;

            // REPLACE WITH:
            .gcc_hero_image {
                width: 100%;
                height: auto;
                object-fit: cover;
                display: block;
            }
        }
    }

    // Responsive Banner adjustments
    @media (max-width: 991px) {
        .gcc_hero_banner {
            flex-direction: column;
            text-align: center;
            padding-top: 100px;
            padding-bottom: 60px;

            .gcc_hero_left,
            .gcc_hero_right {
                flex: 0 0 100%;
                max-width: 100%;
            }

            .gcc_hero_text {
                margin: 0 auto;

                h1 {
                    margin: 0 auto 30px auto;

                    &::after {
                        left: 50%;
                        transform: translateX(-50%);
                        width: 70%;
                    }
                }
            }
        }
    }

    @media (max-width: 767px) {
        .gcc_hero_banner {
            padding-top: 80px;
            padding-bottom: 40px;
            padding-left: 20px;
            padding-right: 20px;
            gap: 30px;

            .gcc_hero_text h1 {
                font-size: 32px;

                &::after {
                    width: 90%;
                }
            }

            .gcc_hero_text p {
                font-size: 16px;
            }
        }
    }


    .gcc_page_wrapper {
        position: relative;
        z-index: 5;
        background: transparent; // ← transparent so banner shows through
    }

    /* ==========================================================
       PREMIUM CARD SYSTEM
       ========================================================== */
    .gcc_stage_card {
        background: linear-gradient(288.81deg, rgba(49, 48, 48, 0.85) -11.69%, #000000 84.53%) !important;
        border: 1px solid rgba(255, 255, 255, 0.15);
        z-index: 10;
        border-radius: 20px;
        padding: 35px 25px;
        height: 100%;
        min-height: 520px;
        position: relative;
        transition: all 0.4s ease;
        display: flex;
        flex-direction: column;


        &:hover {
            transform: translateY(-5px); // Match advantage card lift
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); // Match advantage card shadow
        }

        // .gcc_card_number removed as requested

        .gcc_stage_image {
            width: 100%;
            height: 220px;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 25px;
            position: relative;
            z-index: 5;
            transition: all 0.4s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.6s ease;
            }
        }

        h3,
        .gcc_stage_subtitle,
        .gcc_stage_list,
        p {
            position: relative;
            z-index: 10;
        }

        &:hover {
            .gcc_stage_image img {
                transform: scale(1.08);
            }
        }

        .gcc_stage_icon {
            width: 60px;
            height: 60px;
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 28px;
            font-size: 24px;
            color: #fff;
            position: relative;
            z-index: 1;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        h3 {
            font-size: 26px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 10px;
            text-align: left;
            position: relative;
            z-index: 10;
        }

        .gcc_stage_subtitle {
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 20px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            text-align: left;
            position: relative;
            z-index: 10;
            background: transparent !important; // Force transparency to remove any dark box
        }

        p {
            color: rgba(255, 255, 255, 0.7);
            font-size: 16px; // Increased from 15px for standard readability
            line-height: 1.6;
            margin-bottom: 25px;
            text-align: left;
            position: relative;
            z-index: 10;
        }

        .gcc_stage_list {
            padding-left: 0 !important;
            list-style: none !important;
            list-style-type: none !important;
            margin-top: auto;
            position: relative;
            z-index: 10;

            li {
                list-style-type: none !important; // DEFINITIVE FIX FOR DOUBLE BULLETS
                position: relative;
                padding-left: 24px;
                margin-bottom: 12px;
                color: rgba(255, 255, 255, 0.85);
                font-size: 16px; // Increased from 14px
                line-height: 1.5;

                &::before {
                    content: "\f058"; // FontAwesome check circle
                    font-family: "Font Awesome 6 Free";
                    font-weight: 900;
                    position: absolute;
                    left: 0;
                    top: 2px;
                    font-size: 16px; // Adjust bullet size to match text
                    opacity: 0.7;
                }
            }
        }

        // Themes for Premium Cards
        &.theme_orange {
            .gcc_stage_icon {
                background: linear-gradient(135deg, #f28c28, #ffb75e);
            }

            .gcc_stage_subtitle {
                color: #f28c28;
            }

            &:hover {
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            }
        }

        &.theme_pink {
            .gcc_stage_icon {
                background: linear-gradient(135deg, #d00f5c, #ff4b8b);
            }

            .gcc_stage_subtitle {
                color: #ff4b8b;
            }

            &:hover {
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            }
        }

        &.theme_green {
            .gcc_stage_icon {
                background: linear-gradient(135deg, #2ecc71, #6dfb8b);
            }

            .gcc_stage_subtitle {
                color: #2ecc71;
            }

            &:hover {
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            }
        }

        &.theme_purple {
            .gcc_stage_icon {
                background: linear-gradient(135deg, #8e44ad, #c878c9);
            }

            .gcc_stage_subtitle {
                color: #c878c9;
            }

            &:hover {
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            }
        }
    }

    /* ==========================================================
       ENGAGEMENT MODELS GRID (REPLACING TABLE)
       ========================================================== */
    .gcc_engagement_grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
        margin-top: 40px;
        background: transparent !important;

        .engagement_card {
            background: linear-gradient(288.81deg, rgba(49, 48, 48, 0.85) -11.69%, #000000 84.53%) !important;
            border: 1px solid rgba(255, 255, 255, 0.15);
            z-index: 10;
            border-radius: 20px;
            padding: 30px;
            display: flex;
            align-items: center;
            gap: 20px;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;

            &::after {
                content: "";
                position: absolute;
                inset: 0;
                background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
                opacity: 0;
                transition: opacity 0.4s ease;
            }

            &:hover {
                transform: translateY(-5px);
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            }

            .engagement_bullet {
                width: 45px;
                height: 45px;
                border-radius: 12px;
                background: linear-gradient(135deg, rgba(228, 17, 101, 0.9) 0%, rgba(228, 17, 101, 0.4) 100%); // Subtle pink glassy gradient
                display: flex;
                align-items: center;
                justify-content: center;
                flex-shrink: 0;
                color: #fff;
                font-weight: 700;
                font-size: 18px;
                transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
                z-index: 1;
            }

            .engagement_info {
                z-index: 1;
                background: transparent !important; // FIX FOR BLACK BOXES

                h4 {
                    font-size: 20px; // Increased from 18px
                    font-weight: 600;
                    color: #fff;
                    margin-bottom: 6px;
                    background: transparent !important;
                }

                p {
                    font-size: 16px; // Increased from 14px
                    color: rgba(255, 255, 255, 0.6);
                    margin: 0;
                    line-height: 1.4;
                    background: transparent !important;
                }
            }
        }
    }

    /* ==========================================================
       LEGACY OVERRIDES (Keeping classes for compatibility while updating look)
       ========================================================== */
    .gcc_stage_cards_section {
        padding: 40px 5% 80px 5%;
        margin-top: -100px;
        background: transparent !important;
    }

    // .gcc_stage_card is now the primary class for premium cards

    .gcc_stage_list {
        padding-left: 0;
        margin: 0;
        list-style: none;
        background: transparent !important;

        li {
            background: transparent !important;
            color: rgba(255, 255, 255, 0.8) !important;
        }
    }

    .gcc_stage_cards_section .mb-4,
    .rv_partners_product_suite_cards_container,
    .rv_partners_product_suite_cards_container .row,
    .rv_partners_product_suite_cards_container [class*="col-"],
    .insights_cards_container,
    .insights_cards_container .row,
    .insights_cards_container [class*="col-"] {
        background: transparent !important;
    }

    .gcc_stage_list {
        padding-left: 20px;
        background: transparent !important;
        margin: 0;

        &_mt {
            margin-top: 15px;
        }

        li {
            background: transparent !important;
            margin-bottom: 8px;
            color: rgba(255, 255, 255, 0.8) !important;
            font-size: 16px; // Increased from 14px
            list-style-type: none !important; // DEFINITIVE FIX FOR DOUBLE BULLETS

            &:last-child {
                margin-bottom: 0;
            }
        }
    }

    // Flexible Engagement Table Styles
    .gcc_engagement_models_section {
        padding: 40px 0px;
        position: relative;
        z-index: 2;
        background: transparent;

        .gcc_engagement_table_wrapper {
            max-width: 100%; // ← full width to match cards
            width: 100%;
            margin: 0; // ← no auto centering
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            background: transparent;
            position: relative;
            z-index: 99;
        }

        // UPDATE inside .gcc_engagement_table:
        .gcc_engagement_table {
            width: 100%;
            border-collapse: collapse;
            border-radius: 12px;
            overflow: hidden;

            thead {
                background: linear-gradient(180deg, #350036 0%, #804881 100%);

                th {
                    color: #fff;
                    padding: 20px 30px;
                    font-size: 18px;
                    font-weight: 600;
                    text-align: left;
                    background: linear-gradient(180deg, #350036 0%, #804881 100%);
                }
            }

            tbody {
                tr {
                    background: transparent;
                    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
                    transition: background 0.3s ease;

                    &:hover {
                        background: rgba(255, 255, 255, 0.05);
                    }

                    &:last-child {
                        border-bottom: none;
                    }

                    td {
                        padding: 20px 30px; // ← slightly more padding
                        color: rgba(255, 255, 255, 0.9); // ← brighter text
                        font-size: 15px;
                        background: transparent;
                        vertical-align: middle; // ← ADD THIS

                        .gcc_bullet {
                            display: inline-block;
                            width: 12px; // ← slightly bigger
                            height: 12px;
                            background: linear-gradient(90deg, #FBDA39 0%, #F89833 28%, #EA396E 59.5%, #8B3A8C 90%);
                            border-radius: 50%;
                            margin-right: 15px;
                            vertical-align: middle; // ← ADD THIS
                        }
                    }
                }
            }
        }
    }

    // Advantages Cards Styling
    .gcc_advantages_section {
        position: relative;
        z-index: 2;
        background: transparent !important;

        // Remove Bootstrap container-fluid padding
        &.container-fluid {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        .gcc_advantages_container {
            background: transparent !important;
            padding: 0px; // ← keep cards aligned with rest of page

            .row {
                background: transparent !important;
                margin: 0 -12px; // ← standard Bootstrap gutter
            }

            [class*="col-"] {
                background: transparent !important;
            }
        }

        .gcc_advantage_card {
            background: linear-gradient(288.81deg, rgba(49, 48, 48, 0.85) -11.69%, #000000 84.53%) !important;
            border: 1px solid rgba(255, 255, 255, 0.15);
            z-index: 10;
            border-radius: 14px;
            padding: 24px 20px;
            text-align: left;
            width: 227.2px;
            height: 229.6px;
            margin: 0 auto;
            opacity: 1;
            transition: all 0.4s ease;

            &:hover {
                transform: translateY(-5px);
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            }

            .gcc_adv_icon {
                margin-bottom: 20px;
                background: transparent !important;
                display: block;
                font-size: 28px;

                .gcc_gradient_icon_adv {
                    background: linear-gradient(135deg, #FBDA39 0%, #EA396E 50%, #8B3A8C 100%);
                    -webkit-background-clip: text;
                    background-clip: text;
                    -webkit-text-fill-color: transparent;
                    display: inline-block;
                }
            }

            h3 {
                font-size: 16px;
                font-weight: 500;
                color: #fff;
                margin-bottom: 12px;
                line-height: 1.4;
                background: transparent !important;
            }

            p {
                font-size: 13px;
                color: rgba(255, 255, 255, 0.6);
                line-height: 1.5;
                margin: 0;
                background: transparent !important;
            }
        }
    }

    .gcc_category_heading {
        margin: 30px 0 15px 0;
        font-size: 22px;

        &.color_yellow {
            color: #F1DD7C;
        }

        &.color_pink {
            color: #E07394;
        }

        &.color_purple {
            color: #C878C9;
        }
    }

    .gcc_card_col {
        padding: 8px;
    }

    .gcc_card_col_mb {
        margin-bottom: 16px;
    }

    .gcc_enabler_subheading {
        font-size: 16px;
        background: transparent;
        margin-bottom: 12px;

        &.color_yellow {
            color: #F1DD7C;
        }

        &.color_pink {
            color: #E07394;
        }

        &.color_purple {
            color: #C878C9;
        }
    }

    .gcc_talent_pool_section {
        padding-bottom: 60px;
    }

    .gcc_enabler_card {
        min-height: 300px;
    }

    .gcc_feature_card {
        min-height: 320px;
    }

    .gcc_talent_card {
        min-height: auto;
        padding: 15px 20px;
    }

    .gcc_talent_role {
        margin: 0;
        font-size: 15px;
    }

    .gcc_rv_wrapper {
        color: #FFFFFF;
        padding-bottom: 0px;
        background: transparent !important; // Global transparency

        .insights_rv_container {
            padding: 60px 0px;
            padding-bottom: 0px;

            .insights_cards_container {
                padding: 50px 0px;
                height: 100%;

                .col-sm-6,
                .col-md-4,
                .col-lg-4 {
                    padding: 20px;
                }
            }
        }
    }

    // ==========================================
    // GLOBAL GCC CARD COMPONENT
    // ==========================================
    .insights_card_hover {
        background: linear-gradient(288.81deg, rgba(49, 48, 48, 0.85) -11.69%, #000000 84.53%) !important;
        display: block;
        position: relative;
        border-radius: 14px;
        overflow: hidden;
        height: 380px; // Default height for Talent Pool
        text-decoration: none;
        color: #fff;
        cursor: pointer;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
        transition: transform 0.4s ease, box-shadow 0.4s ease;

        &:hover {
            transform: translateY(-6px);
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
            text-decoration: none;
            color: #fff;

            .insights_card_img img {
                transform: scale(1.08);
                filter: brightness(0.45);
            }

            .insights_card_title {
                opacity: 0;
                transform: translateY(20px);
            }

            .insights_card_overlay {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .insights_card_img {
            position: absolute;
            inset: 0;
            z-index: 1;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.5s ease, filter 0.5s ease;
            }
        }

        .insights_card_title {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 3;
            padding: 30px;
            padding-right: 90px;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%) !important;
            transition: opacity 0.4s ease, transform 0.4s ease;

            h5 {
                margin: 0;
                font-size: 24px;
                font-weight: 600;
                line-height: 1.3;
                color: #ffffff;
                background: transparent;
                text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
            }

            .gcc_stage_subtitle {
                font-size: 16px;
                text-transform: uppercase;
                letter-spacing: 1px;
                margin-top: 8px;
                font-weight: 600;
                opacity: 0.9;
                background: transparent !important;
                text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
            }
        }

        // --- Theme specific subtitle colors removed per user request ---

        .insights_card_arrow {
            position: absolute;
            bottom: 30px;
            right: 30px;
            z-index: 5;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease;

            svg {
                width: 32px;
                height: 32px;
                fill: #e41165;
                background: transparent !important;
                transition: transform 0.3s ease;
            }

            &:hover {
                transform: scale(1.05);

                svg {
                    transform: translateX(3px);
                }
            }
        }

        .insights_card_overlay {
            position: absolute;
            inset: 0;
            z-index: 4;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 28px 24px;
            background: transparent !important; // FULL TRANSPARENCY
            opacity: 0;
            transform: translateY(15px);
            transition: opacity 0.4s ease, transform 0.4s ease;

            p {
                margin: 0;
                color: #fff;
                font-size: 15px;
                line-height: 1.6;
                text-align: left;
                background: transparent !important;
            }

            ul {
                margin: 0;
                padding: 0;
                list-style: none !important;
                list-style-type: none !important;
                width: 100%;
                background: transparent !important;

                li {
                    position: relative;
                    padding-left: 24px;
                    margin-bottom: 8px;
                    color: #fff;
                    font-size: 14px;
                    line-height: 1.4;
                    text-align: left;
                    background: transparent !important;

                    strong, b {
                        background: transparent !important;
                        color: #fff;
                    }

                    &::before {
                        content: "\f058"; // FontAwesome check circle
                        font-family: "Font Awesome 6 Free";
                        font-weight: 900;
                        position: absolute;
                        left: 0;
                        top: 2px;
                        font-size: 16px;
                        color: #ffffff; // Simple white bullet
                    }
                }
            }
        }

        // --- Theme specific overlay check colors removed per user request ---
    }

    @media screen and (min-width:0px) and (max-width: 576px) {
        .gcc_rv_wrapper {
            .insights_rv_container {
                padding: 30px 0px;
                padding-bottom: 0px;

                .insights_cards_container {
                    padding: 30px 0px;

                    .col-sm-6,
                    .col-md-4,
                    .col-lg-4 {
                        padding: 10px;
                    }
                }
            }
        }

        .insights_card_hover {
            height: 340px;

            .insights_card_title {
                padding: 20px;
                padding-right: 70px;

                h5 {
                    font-size: 20px;
                }
            }

            .insights_card_arrow {
                bottom: 20px;
                right: 20px;
                width: 40px;
                height: 40px;
            }
        }
    }

    @media screen and (min-width:576px) and (max-width: 1150px) {
        .gcc_rv_wrapper {
            .insights_rv_container {
                padding: 0px;
                padding-bottom: 0px;

                .insights_cards_container {
                    padding: 0px 0px;
                }
            }
        }

        .insights_card_hover {
            height: 420px; // Slightly taller for medium screens
        }
    }

    // Specific height for content-heavy card stages (Starting)
    .gcc_stage_cards_section .insights_card_hover {
        height: 380px !important;
    }

    // Specific height for Strategic Enablers
    .insights_rv_container:not(.gcc_talent_pool_section) .insights_card_hover {
        height: 235px !important;
    }

    // Specific height for Talent Pool cards
    .insights_rv_container.gcc_talent_pool_section {
        .insights_cards_container .insights_card_hover {
            height: 380px !important;
        }
    }
}