/* Content-page components (CTAs, team, features, funding, tables, video) and page-specific tweaks. */

/* ------------------------------------------------------------------
   Call to action
   ------------------------------------------------------------------ */

.cta {
    padding-top: 120px;
    padding-bottom: 120px;
    background-size: cover;
    background-position: center;
    position: relative;

    @media (max-width: 690px) {
        padding: 60px 20px;
    }

    @media (max-width: 600px) {
        text-align: center;
    }

    .overlay {
        position: absolute;
        height: 100%;
        width: 100%;
        left: 0;
        top: 0;
        color: var(--sc-text);
        background-color: var(--sc-color2);
        opacity: 1;
    }

    a.button {
        color: var(--sc-text);
        border: 1px solid var(--sc-dark);
        padding: 20px 100px 20px 40px;
        margin-top: 15px;
        display: inline-block;
        background-color: transparent;
        text-transform: none;
        font-size: 14px;
        line-height: 13px;
        letter-spacing: 1px;
        position: relative;
        transition: all ease 0.3s;

        @media (max-width: 425px) {
            padding: 20px 50px 20px 20px;
        }

        &:hover {
            color: var(--sc-orange700);
            background-color: var(--sc-white) !important;

            /* WooCommerce pages: the theme accent colour (header.css) wins here */
            &:is(.woocommerce *, .woocommerce-page *) {
                background-color: var(--sc-accent) !important;
            }
        }

        &::after {
            content: "";
            background-image: url("../images/icons/black/PwC_icon_arrow-right_rgb_black.svg");
            background-size: contain;
            background-repeat: no-repeat;
            display: inline-block;
            width: 25px;
            height: 15px;
            position: absolute;
            right: 30px;
            top: 50%;
            transform: translateY(-50%);

            @media (max-width: 425px) {
                right: 15px;
            }
        }

        &.dark-color {
            color: var(--sc-grey900);
            border-color: var(--sc-grey900);

            &:hover {
                background-color: var(--sc-accent) !important;
                color: var(--sc-text);
                border-color: var(--sc-dark);
            }
        }
    }

    p {
        max-width: 650px;
        line-height: 1.1;

        @media (max-width: 600px) {
            font-size: 14px;
        }
    }

    h3 {
        font-size: 50px !important;
        line-height: 1 !important;
        margin-bottom: 10px;
        font-family: var(--sc-font-serif) !important;

        @media (max-width: 600px) {
            font-size: 35px !important;
        }
    }

    #the-hub & a.button {
        padding-left: 20px;
        padding-right: 60px;

        &::after {
            right: 20px;
        }
    }
}

span.cta {
    padding: 0;
    display: inline-block;

    a.button {
        font-size: 15px;
    }
}

.cta-style-2 {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;

    .content {
        width: 80%;
        border: 1px solid var(--sc-grey300);

        &.has-icon {
            padding: 30px 100px 30px 180px;
            position: relative;

            @media (max-width: 600px) {
                padding: 80px 15px;
            }
        }

        img {
            position: absolute;
            max-width: 60px;
            left: 60px;
            top: 50%;
            transform: translateY(-50%);

            @media (max-width: 600px) {
                top: 4%;
                left: unset;
                transform: unset;
            }
        }
    }

    h3 {
        font-family: var(--sc-font-serif);
        font-weight: 600;
        color: var(--sc-grey800);
    }

    p {
        padding-bottom: 0;
    }

    .link-wrapper {
        width: 20%;
        position: relative;

        @media (max-width: 600px) {
            width: 35%;
        }
    }

    a {
        position: absolute;
        width: 100%;
        height: 100%;
        display: table;
        text-align: center;
        background-color: var(--sc-accent);
        color: var(--sc-white);
        text-transform: uppercase;
        font-size: 18px;
        font-weight: 500;

        span {
            display: table-cell;
            vertical-align: middle;
        }
    }
}

#enquirenow {
    .row-bg {
        background-image: none !important;
        background-color: var(--sc-color2) !important;
    }

    h1 {
        font-weight: normal;
        font-family: var(--sc-font-serif);
        margin-bottom: 20px;
        line-height: 1.4;

        @media (max-width: 768px) {
            line-height: 1.2;
        }
    }

    a.link_text.custom-link {
        color: var(--sc-text);
        border: 1px solid var(--sc-text);
        padding: 20px 30px 20px 50px;
        transition: all ease 0.3s;

        @media (max-width: 768px) {
            margin-top: 25px;
            display: inline-block;
        }

        @media (max-width: 600px) {
            padding: 25px 20px;
        }

        &:hover {
            background-color: var(--sc-white);
        }

        &::after {
            content: "";
            margin-left: 50px;
            background-image: url("../images/icons/black/PwC_icon_arrow-right_rgb_black.svg");
            background-size: contain;
            background-repeat: no-repeat;
            display: inline-block;
            width: 25px;
            height: 15px;
            position: relative;
            vertical-align: middle;
        }
    }
}

/* ------------------------------------------------------------------
   "The hub" tabs with pictogram icons
   ------------------------------------------------------------------ */

div.thehubtabs {
    i::before {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        height: 50px;
        width: 50px;
        position: relative;
        content: "" !important;
        display: inline-block;
        margin: 0 auto;
    }

    i.iconsmind-Coffee::before {
        background-image: url("../images/pictograms/gradient/PwC_pict_food-beverage_rgb_gradient.svg") !important;
    }

    i.iconsmind-Block-Window::before {
        background-image: url("../images/pictograms/gradient/PwC_pict_real-estate_rgb_gradient.svg") !important;
    }

    i.iconsmind-Movie::before {
        background-image: url("../images/pictograms/gradient/PwC_pict_laptop_rgb_gradient.svg") !important;
    }

    i.iconsmind-Info-Window::before {
        background-image: url("../images/pictograms/gradient/PwC_pict_to-do-list_rgb_gradient.svg") !important;
    }

    i.iconsmind-Wink::before {
        background-image: url("../images/pictograms/gradient/PwC_pict_idea_rgb_gradient.svg") !important;
    }

    i.iconsmind-Old-Clock::before {
        background-image: url("../images/pictograms/gradient/PwC_pict_cogs_rgb_gradient.svg") !important;
    }

    i.iconsmind-Maximize-Window::before {
        background-image: url("../images/pictograms/gradient/PwC_pict_news-report_rgb_gradient.svg") !important;
    }

    .tabbed[data-style="minimal_flexible"] .wpb_tabs_nav > li {
        border-bottom: 7px solid rgba(0, 0, 0, 0.1);
    }
}

/* ------------------------------------------------------------------
   Features and funding boxes
   ------------------------------------------------------------------ */

#features {
    h4::before {
        content: "";
        background-size: contain;
        background-repeat: no-repeat;
        width: 50px;
        height: 50px;
        display: block;
        position: relative;
        top: -10px;
    }

    .vc_column-inner {
        padding: 100px 37.5px;
        border: 1px solid var(--sc-grey200);
        border-radius: 5px;
        border-bottom: 5px solid var(--sc-accent);
        transition: all ease 0.3s;

        @media (max-width: 1024px) {
            min-height: 427px;
        }

        a {
            color: var(--sc-text);
            font-family: Georgia, serif;
        }

        p {
            min-height: 80px;
        }

        &:hover p,
        &:hover h4,
        &:hover a {
            color: var(--sc-white) !important;
        }
    }
}

#funding-section {
    @media (max-width: 690px) {
        margin-top: 0;

        .special-heading {
            line-height: 1.2;
            margin: 0;
        }
    }
}

.funding-row {
    display: flex;
    justify-content: center;
    max-width: 1125px;
    margin: 0 auto;
    flex-wrap: wrap;

    .funding-col {
        flex: 1;
        padding: 100px 37.5px;
        border: 1px solid var(--sc-grey200);
        border-radius: 5px;
        border-bottom: 5px solid var(--sc-accent);
        margin: 0 15px;
        position: relative;
        transition: all ease 0.3s;

        @media (max-width: 768px) {
            max-width: 100%;
            width: 100%;
            flex: 1 1 100%;
            margin-top: 10px;
        }

        @media (max-width: 600px) {
            width: 100%;
            min-width: 100%;
            margin-top: 15px;
            flex: 1 100%;
        }

        &:hover {
            background-color: var(--sc-accent);
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
            background-blend-mode: hard-light;
            border-bottom: 5px solid var(--sc-accent);
        }
    }
}

.funding-col {
    .funding-title {
        font-size: 1.25rem;
        font-family: var(--sc-font-sans) !important;

        &::before {
            content: "";
            background-size: contain;
            background-repeat: no-repeat;
            width: 50px;
            height: 50px;
            display: block;
            position: relative;
            top: -10px;
        }
    }

    &:nth-child(1) .funding-title::before {
        background-image: url("../images/pictograms/gradient/PwC_pict_employee_rgb_gradient.svg");
    }

    &:nth-child(2) .funding-title::before {
        background-image: url("../images/pictograms/gradient/PwC_pict_handshake_rgb_gradient.svg");
    }

    &:hover {
        .funding-title,
        p {
            color: var(--sc-white);
        }

        &:nth-child(1) .funding-title::before {
            background-image: url("../images/pictograms/white/PwC_pict_employee_rgb_white.svg");
        }

        &:nth-child(2) .funding-title::before {
            background-image: url("../images/pictograms/white/PwC_pict_handshake_rgb_white.svg");
        }
    }
}

/* ------------------------------------------------------------------
   Team
   ------------------------------------------------------------------ */

.team-block {
    width: 25%;
    display: inline-block;
    margin-left: -1.5px;
    margin-right: -1.5px;
    padding-left: 15px;
    padding-right: 15px;
    vertical-align: top;

    @media (max-width: 1024px) {
        width: 50%;
        margin-bottom: 25px;
    }

    @media (max-width: 690px) {
        width: 100%;
        display: block;
        max-width: 320px;
        margin-right: auto;
        margin-left: auto;
    }

    .team-image {
        padding-top: 95%;
        background-size: cover;
        background-position: center;
    }

    .team-description {
        min-height: 250px;
        padding: 30px 20px 20px;
        box-shadow:
            -15px -15px 20px -15px rgba(0, 0, 0, 0.2),
            15px -15px 20px -15px rgba(0, 0, 0, 0.2);
    }

    p {
        @media (max-width: 600px) {
            font-size: 14px;
        }
    }
}

ul.team-selection {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    border-bottom: 7px solid rgba(0, 0, 0, 0.1);
    margin: 25px 0;

    @media (max-width: 1024px) {
        border-bottom: unset;
    }

    @media (max-width: 600px) {
        flex-direction: column;
        border: unset;
    }

    li {
        display: block;
        list-style: none;
        position: relative;

        @media (max-width: 1024px) {
            border-bottom: 7px solid rgba(0, 0, 0, 0.1);
        }

        a {
            display: block;
            color: var(--sc-text);
            font-weight: 600;
            font-size: 1.2em;
            text-align: center;
            padding: 25px 40px;
            position: relative;
            cursor: pointer;

            @media (max-width: 999px) {
                padding: 20px;
            }
        }

        &.active-tab {
            &::after {
                content: "";
                display: block;
                position: relative;
                height: 7px;
                bottom: -7px;
                width: 100%;
                background-color: var(--nectar-extra-color-1);
            }

            a {
                color: var(--nectar-extra-color-1);
            }
        }
    }
}

div.team-container {
    position: relative;
    padding-bottom: 145%;
    margin-bottom: 120px;

    @media (max-width: 1024px) {
        padding-bottom: 0;
    }
}

div.team-wrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    position: absolute;
    opacity: 0;
    left: -99999px;
    visibility: hidden;
    transition:
        opacity 1000ms,
        visibility 1000ms;

    @media (max-width: 1024px) {
        position: relative;
        display: none;
    }

    &.show {
        opacity: 1;
        visibility: visible;
        left: 0;

        @media (max-width: 1024px) {
            display: flex;
        }
    }
}

div.team-column {
    display: flex;
    flex-direction: column;
    max-width: 25%;
    padding: 25px 15px;
    min-height: 630.58px;

    @media (max-width: 1024px) {
        max-width: 33.33%;
    }

    @media (max-width: 768px) {
        max-width: 50%;
    }

    @media (max-width: 600px) {
        max-width: 100%;
    }

    .team-description {
        padding: 1.25rem;
        flex: 1 1 auto;
        box-shadow:
            -15px -15px 20px -15px rgba(0, 0, 0, 0.2),
            15px -15px 20px -15px rgba(0, 0, 0, 0.2);
    }
}

h6.team-name {
    font-size: 1.125rem;
    font-family: var(--sc-font-sans) !important;
    font-weight: bold;
}

/* Hidden for now, kept so it can be re-enabled later */
.category-lecturers-section {
    padding-top: 80px;
    padding-bottom: 80px;
    display: none;

    h2 {
        margin-bottom: 65px;
    }
}

/* ------------------------------------------------------------------
   Image section, video, tables
   ------------------------------------------------------------------ */

.template-image-section {
    .image {
        padding-top: 30%;
        background-size: cover;
        background-position: center;

        @media (max-width: 600px) {
            padding-top: 100%;
        }
    }

    .container {
        position: relative;
        margin-bottom: 120px;
    }

    .title {
        position: absolute;
        max-width: 695px;
        padding: 30px 55px;
        background-color: var(--sc-accent);
        opacity: 1;
        bottom: 100%;
        margin-bottom: -25px;
        right: 95px;
        border-radius: 3px;

        @media (max-width: 600px) {
            max-width: 300px;
            right: 25px;
            bottom: -70px;
            padding: 30px;
        }
    }

    h2 {
        color: var(--sc-white);
        font-weight: 600;
    }

    p {
        padding-top: 15px;
        color: var(--sc-white);
    }
}

.custom-video-modal {
    padding-top: 60%;
    position: relative;
    background-size: cover;

    .tax-eb_course_cat & {
        margin-top: 15px;
    }

    &::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background-color: rgba(45, 45, 45, 0.3);
    }

    button {
        font-size: 35px;
        padding: 6px 12px;
        background-color: var(--sc-grey900);
        border: 0;
        color: var(--sc-white);
        border-radius: 8px;
        top: 50%;
        left: 50%;
        position: absolute;
        transform: translate(-50%, -50%);
        z-index: 5;
        cursor: pointer;
    }
}

table#formofaid,
table#recognition,
table#undertaking {
    border: solid 1px var(--sc-grey200);

    td,
    th {
        border: 0;
        width: 25%;
        text-align: center;
        padding: 15px;
        font-size: 1.125rem;
        background-color: var(--sc-grey50);
    }
}

table#formofaid,
table#recognition {
    td:nth-child(even),
    th:nth-child(even) {
        background-color: var(--sc-grey100);
    }

    td:nth-child(odd),
    th:nth-child(odd) {
        background-color: var(--sc-grey50);
    }
}

table#formofaid {
    td,
    th {
        @media (max-width: 600px) {
            padding: 5px;
            font-size: 12px;
        }
    }
}

table#undertaking {
    width: 50%;

    th {
        background-color: var(--sc-grey100);
    }
}

/* ------------------------------------------------------------------
   Misc
   ------------------------------------------------------------------ */

.content-wrapper {
    max-width: 540px;
}

.nectar-social.fixed {
    left: 34px;
    bottom: 25px;
}

.wpb_wrapper {
    .bg-colour1 {
        @media (max-width: 1177px) {
            width: max(90%, 344px) !important;
        }

        @media (max-width: 999px) {
            width: 63% !important;
        }

        @media (max-width: 690px) {
            width: 94% !important;
        }

        @media (max-width: 479px) {
            width: 100% !important;
        }
    }

    h2.vc_custom_heading {
        @media (max-width: 690px) {
            line-height: 28px !important;
        }
    }
}

.vc_custom_1656438897618 {
    @media (max-width: 479px) {
        width: max-content;
    }
}

.vc_custom_1590481420508 {
    @media (max-width: 425px) {
        margin-top: 130px !important;
    }
}

/* ------------------------------------------------------------------
   Page-specific tweaks (by WordPress page ID)
   ------------------------------------------------------------------ */

body {
    &.page-id-8,
    &.page-id-6257 {
        .container-wrap .vc_row-fluid[data-column-margin="90px"] .wpb_column:not(.child_column) {
            padding-left: 60px;
            padding-right: 60px;
        }
    }

    &.page-id-8 {
        .iwt-text {
            line-height: 20px;
            font-weight: normal;
            color: var(--sc-text);
            font-size: 16px;
        }

        #o-title {
            @media (max-width: 600px) {
                transform: translateY(350px) !important;
            }
        }
    }

    &.page-id-6061 {
        a.nectar-button.large.regular.accent-color.regular-button.has-icon {
            border: 1px solid var(--sc-white);
            border-radius: 9px;
            background-color: transparent !important;
            line-height: 13px;
            letter-spacing: 1px;
            font-size: 15px;
            font-weight: normal;

            &:hover {
                background-color: var(--sc-orange700) !important;
                border-color: var(--sc-orange700) !important;
            }
        }
    }

    &.page-id-6167 {
        span.wpcf7-form-control.wpcf7-checkbox.wpcf7-validates-as-required {
            display: inline-grid !important;
            margin-bottom: 10px;
        }

        #wpcf7-f6387-p6167-o1 {
            display: none;
        }
    }

    &.page-id-6257 .wpb_row.vc_row-fluid.vc_row.inner_row.standard_section.second-row {
        @media (max-width: 1280px) {
            transform: translateY(340px) !important;
        }

        @media (max-width: 600px) {
            transform: translateY(350px) !important;
        }
    }

    &.page-id-6270 #o-title {
        @media (max-width: 1024px) {
            transform: translateY(330px) !important;
        }
    }

    &.page-id-6282 {
        #o-title {
            transform: translate(-140px, 150px) !important;

            @media (max-width: 1024px) {
                transform: translateY(280px) !important;
            }

            @media (max-width: 768px) {
                transform: translateY(170px) !important;
            }

            @media (max-width: 600px) {
                transform: translateY(140px) !important;
            }
        }

        .vc_col-sm-6.wpb_column.column_container.vc_column_container.col.child_column.boxed.padding-5-percent.instance-2 {
            @media (max-width: 1024px) {
                width: 70%;
            }

            @media (max-width: 690px) {
                width: 100%;
            }
        }

        .vc_col-sm-7.wpb_column.column_container.vc_column_container.col.no-extra-padding.instance-4 {
            @media (max-width: 768px) {
                padding: calc(100vw * 0.1);
            }
        }

        .mw-350 {
            @media (max-width: 999px) {
                margin: 50px auto 0 auto !important;
                padding: calc(100vw * 0.1);
                max-width: 100%;
            }
        }
    }

    &.page-id-6314 {
        .container-wrap {
            background-color: var(--sc-white);
        }

        ul.wpb_tabs_nav a.active-tab span {
            color: var(--sc-accent);
        }

        .tabbed[data-style="minimal_flexible"] .wpb_tabs_nav > li {
            border-bottom: 7px solid rgba(0, 0, 0, 0.1);
            list-style: none;

            a::after {
                background-color: var(--sc-accent);
            }
        }

        #o-title {
            @media (max-width: 1280px) {
                transform: translateY(250px) !important;
            }

            @media (max-width: 999px) {
                transform: translateY(240px) !important;
            }

            @media (max-width: 600px) {
                transform: translateY(180px) !important;
            }
        }

        .vc_col-sm-6.second-column.wpb_column.column_container.vc_column_container.col.child_column.boxed.padding-5-percent.instance-2 {
            @media (max-width: 999px) {
                width: 85%;
            }

            @media (max-width: 600px) {
                width: 100%;
            }
        }
    }

    &.page-id-6978 #o-title {
        @media (max-width: 1024px) {
            transform: translateY(250px) !important;
        }

        @media (max-width: 690px) {
            transform: translateY(150px) !important;
        }
    }
}
