/*
 * Work With Us (page-templates/workwithus.php, page 42) restyled after the new home page (MILESTONES #20).
 * The intro band, the role tabs (.tabset-ambassadors, as on Contact) and the headquarters are shared blocks
 * (site-components.css); here the affiliates link in the intro, the six advantages ([shortcode_show_workwithus_items],
 * cards of site-components.css in a grid), the "rewarding line of work" statement (ACF
 * rewarding_line_work_field), the role tabs ([shortcode_show_workwithus_jobs]) and the "Join Amerlink Team" call to
 * action. The old rules written for this page only (.work-with-us-page, .id-work-with-us, .page-template-workwithus,
 * .wwu-*, #workwithus-items) were removed from the Divi copies; .tripstousa-post-item, #summary-20-years-company and
 * #wwu-ambassadors-summary stay there (Trips to USA, the old home templates, the affiliates home).
 */

/* ---------- Intro band: the page H1 field is empty on this page (an empty <h1> before the description). */

body.amg-skin #page-container #collage-sports-desc-container .title:empty {
    display: none;
}

body.amg-skin #page-container .work-with-us-page .wwu-dedicated-title {
    display: block;
    margin-bottom: 18px;
    color: #fff;
    font-family: var(--amg-font);
    font-size: 17px;
    line-height: 1.5;
}

/* The description is a flex column (stretched the button to its width). */
body.amg-skin #page-container .work-with-us-page #collage-sports-desc-container .wwu-affiliates-page-bt {
    display: inline-flex;
    align-self: flex-start;
    width: auto;
    padding-inline: 28px;
}

/* ---------- Six advantages: the icon cards (site-components.css) in a grid. */

body.amg-skin #page-container #workwithus-items {
    padding: clamp(40px, 4.6vw, 72px) 0 clamp(8px, 1.6vw, 24px);
    background: linear-gradient(180deg, var(--amg-soft-blue) 0%, var(--amg-soft) 60%, #fff 100%);
}

body.amg-skin #page-container #workwithus-items-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 1.8vw, 26px);
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
}

/* ---------- "This very rewarding line of work…" (ACF field of the page). */

body.amg-skin #page-container .work-with-us-page #summary-20-years-company {
    padding: clamp(56px, 6vw, 96px) 16px clamp(8px, 1vw, 16px);
}

body.amg-skin #page-container .work-with-us-page #summary-20-years-company .summary-company-inner p {
    max-width: 900px;
    margin: 0 auto;
    color: var(--amg-navy);
    font-family: var(--amg-font);
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 800;
    line-height: 1.3;
}

body.amg-skin #page-container .work-with-us-page #summary-20-years-company .summary-company-inner p span {
    color: var(--amg-pink);
}

/* ---------- Role tabs ([shortcode_show_workwithus_jobs]). */

body.amg-skin #page-container #wwu-ambassadors-summary {
    margin: clamp(28px, 3vw, 44px) 0 0;
}

/* The tabs touched the screen edges below the container width. */
body.amg-skin #page-container #wwu-ambassadors-summary-inner {
    width: min(100% - 32px, 1060px);
}

/* style-divi-child.css: .tabset > label span { max-width: 192px; max-height: 43px } — "1. Student / Athlete
   Ambassador" took three lines and stuck out of its tab. */
body.amg-skin #page-container #wwu-ambassadors-summary .tabset-lab {
    height: auto;
    padding: 16px 20px;
}

body.amg-skin #page-container #wwu-ambassadors-summary .tabset-lab span {
    max-width: none;
    height: auto;
    max-height: none;
    font-size: 16px;
    line-height: 1.35;
}

body.amg-skin #page-container #wwu-ambassadors-summary .tab-panels-ambassadors {
    margin-top: 14px;
    padding: clamp(22px, 2.6vw, 36px);
    border: 1px solid var(--amg-line);
    border-radius: var(--amg-radius-lg);
    background: #fff;
    box-shadow: var(--amg-shadow-sm);
}

body.amg-skin #page-container #wwu-ambassadors-summary .tab-panels-ambassadors h4 {
    color: var(--amg-navy);
    font-family: var(--amg-font);
    font-weight: 800;
}

body.amg-skin #page-container #wwu-ambassadors-summary .tab-panels-ambassadors li {
    color: var(--amg-text);
    font-family: var(--amg-font);
    font-size: 16px;
    line-height: 1.6;
}

body.amg-skin #page-container #wwu-ambassadors-summary .tab-panels-ambassadors li .fa.fa-circle {
    color: var(--amg-pink);
}

body.amg-skin #page-container #wwu-ambassadors-summary .my-acc-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 16px;
    margin-top: clamp(18px, 2vw, 26px);
}

body.amg-skin #page-container #wwu-ambassadors-summary .my-acc-actions a {
    width: auto;
    min-width: 220px;
    max-width: 100%;
    margin: 0;
    padding-inline: 28px;
}

/* Logged in: "If You would like to register… please log out" instead of the registration. */
body.amg-skin #page-container .wwus-re-register-title {
    max-width: 760px;
    margin: clamp(28px, 3vw, 44px) auto 0;
    padding: 0 16px;
    text-align: center;
}

body.amg-skin #page-container .wwus-re-register-title p {
    color: var(--amg-text);
    font-family: var(--amg-font);
    font-size: 17px;
    line-height: 1.6;
}

body.amg-skin #page-container .wwus-re-register-title p span {
    color: var(--amg-pink);
    font-weight: 700;
}

/* ---------- "Join Amerlink Team now": photo on the left, navy band with the button on the right. */

body.amg-skin #page-container .wwu-affiliates-info-container {
    margin: clamp(56px, 6vw, 96px) 0 clamp(48px, 5vw, 80px);
}

body.amg-skin #page-container .wwu-affiliates-info-container-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 380px;
    background:
        radial-gradient(70% 140% at 88% 120%, rgba(8, 174, 243, .26) 0, rgba(8, 174, 243, 0) 60%),
        var(--amg-band);
}

body.amg-skin #page-container .wwu-affiliates-image-container {
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, calc(100% - 120px) 100%, 0 100%);
}

body.amg-skin #page-container .wwu-affiliates-image-container img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

body.amg-skin #page-container .wwu-affiliates-info-description-container {
    display: flex;
    align-items: center;
    padding: clamp(32px, 4vw, 64px) clamp(24px, 4vw, 72px);
}

body.amg-skin #page-container .wwu-affiliates-info-description-container > .wrapper {
    display: block;
    max-width: 560px;
    height: auto;
    margin: 0;
}

body.amg-skin #page-container .wwu-affiliates-description-box-inner .title p {
    margin: 0 0 28px;
    color: #fff;
    font-family: var(--amg-font);
    font-size: clamp(26px, 2.4vw, 38px);
    font-weight: 800;
    line-height: 1.2;
}

body.amg-skin #page-container .wwu-affiliates-description-box-inner .title p::after {
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 18px;
    border-radius: 2px;
    background: var(--amg-pink);
    content: '';
}

body.amg-skin #page-container .wwu-affiliates-description-box-inner .wwu-affiliates-page-bt {
    display: inline-flex;
    width: auto;
    padding-inline: 32px;
}

/* ---------- Narrower screens. */

@media (max-width: 991px) {
    body.amg-skin #page-container #workwithus-items-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.amg-skin #page-container .wwu-affiliates-info-container-inner {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    body.amg-skin #page-container .wwu-affiliates-image-container {
        height: clamp(200px, 40vw, 320px);
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
    }
}

@media (max-width: 560px) {
    body.amg-skin #page-container #workwithus-items-container {
        grid-template-columns: minmax(0, 1fr);
    }

    body.amg-skin #page-container #wwu-ambassadors-summary .my-acc-actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.amg-skin #page-container #wwu-ambassadors-summary .my-acc-actions a {
        min-width: 0;
    }
}
