/* GENERAL STYLES */
.branded-landing-page-content {
    margin-block: 0;
}
#index {
    padding: 0;
}
section[id^="dtn__"] {
    margin-block-end: min(10vh, 5rem);
    padding-inline: 1rem;
    box-sizing: border-box;
    & h3 {
        font-size: 2rem;
        font-weight: 400;
        font-family: 'Open Sans Light', 'Open Sans', Calibri, Verdana;
    }
}
.dtn__cta {
    display: inline-block;
    border: 2px solid;
    padding: .5em 1rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    color: var(--_cta-secondary-color, white);
    background-color: var(--_cta-primary-color, black);
    transition: .3s;
    &:visited {
        color: var(--_cta-secondary-color, white);
    }
    &:hover {
        background-color: var(--_cta-secondary-color, black);
        border-color: var(--_cta-secondary-color, black);
        color: var(--_cta-primary-color, white);
    }
    &:active {
        scale: .9;
    }
}
/* HERO SECTION */
section.hero {
    background: url(https://www2.deloitte.com/content/dam/html/us/deloitte-talent-network/images/hero.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center right;
    overflow: hidden;
    margin-block: 70px 0;
    margin-inline: auto;
    height: 90dvh;
    max-width: 1920px;
    max-height: 1080px;
    display: grid;
    grid-template-rows: auto minmax(500px, 1fr) auto;
    grid-template-areas:
        "mobile-image"
        "content"
        "footer";
    justify-content: center;
    > * {
        width: min(100%, 1200px);
        padding-inline: 1rem;
        margin-inline: auto;
    }
}
.hero__content {
    grid-area: content;
    display: grid;
    align-items: center;
    > div {
        width: min(100%, 400px);
        padding-block: 5rem 3rem;
        margin: 0;
    }
    & h1 {
        font-weight: 400;
        font-size: 2.7rem;
        font-family: 'Open Sans Light', 'Open Sans', Calibri, Verdana;
        padding-block: 1.5rem;
        margin: 0;
    }
    & h2 {
        color: #86bc25;
        margin-block: 0 1.5rem;
    }
    & span {
        color: initial;
        font-size: 1rem;
        font-weight: normal;
    }
}
.hero__footer {
    text-align: center;
    grid-area: footer;
    justify-self: end;
    & p {
        text-transform: uppercase;
        padding-block-end: 1rem;
    }
    & * {
        margin: 0;
    }
    &::after {
        display: block;
        content: "\f103";
        color: #d0d0ce;
        font-family: 'DCOM-EDE';
        font-size: 2rem;
        font-weight: 400;
        padding-block-end: 2rem;
        animation: .7s pointDown ease alternate infinite;
    }
}
.hero__image--mobile {
    display: none;
    grid-area: mobile-image;
    aspect-ratio: 2/1;
    background-image: url(https://www2.deloitte.com/content/dam/html/us/deloitte-talent-network/images/hero.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right;
}
@media (width <=1400px) {
    section.hero {
        background-size: 90%
    }
}
@media (width <=900px) {
    section.hero {
        background: white;
        grid-template-rows: min-content;
    }
    .hero__content > div {
        width: 100%;
        padding-block-start: 0;
    }
    .hero__image--mobile {
        display: block;
    }
}
@keyframes pointDown {
    to {
        translate: 0 1rem;
    }
}
/* CALLOUT 1 */
.callout-1 {
    padding-block: 5rem;
    margin-block-end: 0 !important;
    text-align: center;
    background-color: #004F59;
    color: white;
    --_cta-primary-color: #004f59;
    --_cta-secondary-color: white;
    & p {
        margin-block-end: 3rem;
        margin-inline: auto;
        width: min(100%, 900px);
    }
}
/* YOUTUBE VIDEO SECTION */
#dtn__youtube-video {
    margin-block-end: 0;
    margin-inline: auto;
    padding-block: min(20vh, 6rem);
    max-width: 1920px;
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    background-image: url(https://www2.deloitte.com/content/dam/html/us/deloitte-talent-network/images/video-bg.png);
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: contain;
    & .ytplayer {
        margin-block-start: 3rem;
        aspect-ratio: 16/9;
        width: min(100%, 800px);
        height: auto;
    }
}
/* QUOTES SECTION */
#dtn__quotes {
    background-color: #A0DCFF;
    padding: 5rem 1rem;
    display: grid;
    grid-template-areas: "quote";
    & blockquote {
        width: min(100%, 1200px);
        border-inline-start: 2px solid;
        padding-inline: 1em;
        margin-inline: auto;
        font-size: 2rem;
        visibility: hidden;
        grid-area: quote;
        & q {
            display: block;
            margin-block-end: .5em;
            font-family: 'Open Sans Light', 'Open Sans', Calibri, Verdana;
            @media (width <= 768px) {
                font-size: 1.5rem;
            }
        }
        & small {
            font-size: .5em;
        }
        &[aria-current="true"] {
            animation: slideIn .5s forwards;
            visibility: visible;
        }
    }
}
@keyframes slideIn {
    from {
        translate: -100%;
        opacity: 0;
    }
    to {
        translate: 0;
        opacity: 1;
    }
}
/* REASONS SECTION */
#dtn__reasons {
    width: 100%;
    overflow: hidden;
    & header {
        padding: 1em;
        width: min(100%, 1200px);
        margin-inline: auto;
        margin-block-end: 2rem;
        box-sizing: border-box;
        counter-reset: headings;
    }
}
.reasons {
    width: min(100%, 1200px);
    margin-inline: auto;
    display: grid;
    gap: 2rem 1rem;
    grid-template-columns: .45fr .55fr;
    grid-template-areas:
        "content images"
        "controls controls";
    & .reasons__content-container {
        grid-area: content;
        display: grid;
        grid-template-areas: "text";
        align-items: center;
        & .reasons__content {
            grid-area: text;
            padding: 1rem;
            opacity: 0;
            pointer-events: none;
            & ul {
                list-style: outside disc;
                margin-inline-start: 3rem;
            }
            & h4 {
                counter-increment: headings;
                font-size: 1.25rem;
                &::before {
                    content: counter(headings, decimal) '. '
                }
            }
            &[aria-current="true"] {
                opacity: 1;
                pointer-events: all;
            }
        }
    }
    & .reasons__images {
        grid-area: images;
        & .swiper-wrapper {
            width: 100%;
            align-items: center;
        }
        & .swiper-slide {
            visibility: hidden;
            aspect-ratio: 4/3;
            scale: .8;
            opacity: 0;
            transition: .3s;
            translate: 0% 10%;
        }
        & .swiper-slide-next {
            opacity: 1;
            visibility: visible;
        }
        & .swiper-slide-active {
            scale: 1;
            opacity: 1;
            visibility: visible;
            translate: 0%;
        }
    }
    & menu {
        grid-area: controls;
        display: flex;
        flex-flow: row nowrap;
        gap: 0 1rem;
        padding-inline: 1rem;
        margin: 0;
        & p {
            margin: 0;
            width: fit-content;
        }
        & .reasons__scrollbar {
            grid-area: controls;
            background: lightgray;
            width: 80%;
            height: 5px;
            align-self: center;
            & .swiper-scrollbar-drag {
                background-color: #86bc25;
            }
        }
        & .reasons__button {
            border: none;
            background: transparent;
            transition: .3s;
            cursor: pointer;
            border-radius: 50%;
            aspect-ratio: 1/1;
            &:active {
                background-color: black;
                color: white;
            }
        }
        & .reasons__button--prev:before {
            font-family: 'DCOM-EDE';
            content: '\f053'
        }
        & .reasons__button--next:before {
            font-family: 'DCOM-EDE';
            content: '\f054'
        }
    }
}
@media (width <=1040px) {
    .reasons {
        gap: 1rem;
        grid-template-columns: auto;
        grid-template-rows: auto;
        grid-template-areas:
            "images"
            "content"
            "controls";
        & .reasons__scrollbar {
            display: none;
        }
        & .reasons__counter,
        .reasons__button {
            font-size: 1.5rem;
        }
        & .reasons__content-container {
            align-items: start;
            & .reasons__content {
                height: 0;
                opacity: 0;
                &[aria-current="true"] {
                    opacity: 1;
                    height: auto;
                }
            }
        }
    }
}
/* CALLOUT 2 */
.callout-2 {
    --_cta-primary-color: #007cb0;
    --_cta-secondary-color: white;
    background-color: var(--_cta-primary-color);
    color: white;
    display: flex;
    flex-flow: column nowrap;
    text-align: center;
    align-items: center;
    padding-block: 5rem;
    & img {
        aspect-ratio: 1/1;
        width: clamp(120px, 30%, 180px);
    }
    & .awards-container {
        display: flex;
        flex-flow: row wrap;
        justify-content: center;
        gap: 1rem;
        padding-block: 2rem;
        width: min(100%, 1200px);
    }
    .awards__cta {
        width: fit-content
    }
    & footer {
        display: flex;
        flex-flow: column nowrap;
        gap: 1rem;
        padding-block-start: 2rem;
        font-size: .75rem;
    }
}
/* JOIN US SECTION */
.join-us {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: 1rem;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    .join-us__image {
        aspect-ratio: 4/3;
        width: clamp(250px, 100%, 600px);
    }
    .join-us__content {
        width: min(100%, 500px);
        --_cta-primary-color: white;
        --_cta-secondary-color: #26890d;
        & h3 {
            margin: 0;
        }
        & p {
            margin-block: 3rem;
        }
    }
    .join-us__cta-container {
        display: flex;
        flex-flow: row wrap;
        gap: 1rem;
    }
}