/* =========================================================
   CIAT PLACEMENTS PAGE
========================================================= */

.placement-page {
    width: 100%;
    min-height: 100vh;

    overflow: hidden;

    background: #ffffff;
}


/* =========================================================
   PLACEMENT BANNER
   Same type as About Page
========================================================= */

.placement-banner {
    position: relative;

    width: 100%;
    height: 360px;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;
}


/* Banner image */

.placement-banner > img {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    z-index: 1;
}


/* Banner overlay */

.placement-banner::after {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.15);

    z-index: 2;

    pointer-events: none;
}


/* =========================================================
   PLACEMENT BANNER TITLE
========================================================= */

.placement-banner-title {
    position: relative;

    z-index: 10;

    padding: 16px 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50px;

    background: linear-gradient(
        135deg,
        #009c27,
        #0864fe
    );

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.18);

    transform: translateY(50%);
}


.placement-banner-title h1 {
    margin: 0;
    padding: 0;

    font-family: "Nunito Sans", sans-serif;

    font-size: 34px;
    font-weight: 800;

    line-height: 1;

    color: #ffffff;

    white-space: nowrap;
}


/* =========================================================
   PLACEMENTS MAIN SECTION
========================================================= */

.placements-section {
    position: relative;

    width: 100%;

    padding: 85px 0 110px;

    background: #ffffff;
}


.placements-container {
    width: 90%;
    max-width: 1400px;

    margin: 0 auto;
}


/* =========================================================
   HEADING
========================================================= */

.placements-heading {
    width: 100%;

    margin: 0 0 45px;

    text-align: left;
}


.section-small-title {
    display: inline-block;

    margin: 0 0 10px;

    font-family: "DM Sans", sans-serif;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: #0864fe;
}


.placements-heading h2 {
    margin: 0;

    font-family: "Nunito Sans", sans-serif;

    font-size: clamp(34px, 4vw, 52px);

    font-weight: 800;

    line-height: 1.15;

    color: #111111;
}


.placements-heading h2 span {
    color: #009c27;
}


.placements-heading p {
    max-width: 720px;

    margin: 16px 0 0;

    font-family: "DM Sans", sans-serif;

    font-size: 16px;

    font-weight: 400;

    line-height: 1.7;

    color: #666666;
}


/* =========================================================
   PLACEMENT GRID
========================================================= */

.placements-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 28px;

    align-items: start;
}


/* =========================================================
   PLACEMENT CARD
========================================================= */

.placements-grid .placement-card {
    position: relative;

    width: 100%;

    height: 650px !important;

    min-height: 650px !important;

    margin: 0;
    padding: 0;

    overflow: hidden;

    border-radius: 17px;

    background: #ffffff;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.10);

    opacity: 0;
    

    transform: translateY(45px);

    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease;
}


/* JS activated */

.placements-grid .placement-card.show {
    opacity: 1;

    transform: translateY(0);
}


/* Hover */

.placements-grid .placement-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   PLACEMENT IMAGE AREA
========================================================= */

.placements-grid .placement-image {
    position: relative;

    width: 100% !important;

    height: 650px !important;

    min-height: 650px !important;

    margin: 0 !important;
    padding: 0 !important;
    
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;

    background: #ffffff;

    line-height: 0;

    border: none;
}


/* =========================================================
   FULL PLACEMENT POSTER
========================================================= */

.placements-grid .placement-image img {
    position: relative;

    width: 100% !important;

    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: 100% !important;
    max-height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    /*
       IMPORTANT:
       Full poster visible.
       No crop.
    */

    object-fit: cover !important;

    object-position: center center !important;

    border: none !important;

    transition:
        transform 0.6s ease;
}


/* Image hover */

.placements-grid .placement-card:hover
.placement-image img {
    transform: scale(1.025);
}


/* =========================================================
   OVERLAY
========================================================= */

.placements-grid .placement-overlay {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 5;

    padding: 20px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0)
    );

    opacity: 0;

    transform: translateY(15px);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}


.placements-grid .placement-card:hover
.placement-overlay {
    opacity: 1;

    transform: translateY(0);
}


.placement-overlay span {
    font-family: "DM Sans", sans-serif;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 1px;

    color: #ffffff;
}


.placement-overlay i {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;

    color: #0864fe;

    font-size: 14px;
}


/* =========================================================
   CARD ANIMATION DELAY
========================================================= */

.placement-card:nth-child(1) {
    transition-delay: 0.05s;
}

.placement-card:nth-child(2) {
    transition-delay: 0.10s;
}

.placement-card:nth-child(3) {
    transition-delay: 0.15s;
}

.placement-card:nth-child(4) {
    transition-delay: 0.20s;
}

.placement-card:nth-child(5) {
    transition-delay: 0.05s;
}

.placement-card:nth-child(6) {
    transition-delay: 0.10s;
}

.placement-card:nth-child(7) {
    transition-delay: 0.15s;
}

.placement-card:nth-child(8) {
    transition-delay: 0.20s;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .placements-container {
        width: 92%;
    }


    .placements-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 22px;
    }


    .placements-grid .placement-card {
        height: 600px !important;

        min-height: 600px !important;
    }


    .placements-grid .placement-image {
        height: 600px !important;

        min-height: 600px !important;
    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 850px) {

    .placement-banner {
        height: 310px;
    }


    .placement-banner-title {
        padding: 14px 38px;
    }


    .placement-banner-title h1 {
        font-size: 30px;
    }


    .placements-section {
        padding: 75px 0 90px;
    }


    .placements-heading {
        margin-bottom: 38px;
    }


    .placements-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 22px;
    }


    .placements-grid .placement-card {
        height: 600px !important;

        min-height: 600px !important;
    }


    .placements-grid .placement-image {
        height: 600px !important;

        min-height: 600px !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .placement-banner {
        height: 250px;
    }


    .placement-banner-title {
        padding: 12px 30px;

        transform: translateY(50%);
    }


    .placement-banner-title h1 {
        font-size: 25px;
    }


    .placements-section {
        padding: 65px 0 75px;
    }


    .placements-container {
        width: 90%;
    }


    .placements-heading {
        margin-bottom: 32px;
    }


    .placements-heading h2 {
        font-size: 33px;
    }


    .placements-heading p {
        font-size: 15px;

        line-height: 1.65;
    }


    .placements-grid {
        grid-template-columns: 1fr;

        gap: 24px;
    }


    /*
       On mobile don't force height.
       Original poster ratio is preserved.
    */

    .placements-grid .placement-card {
        width: 100% !important;

        height: auto !important;

        min-height: 0 !important;

        border-radius: 15px;
    }


    .placements-grid .placement-image {
        width: 100% !important;

        height: auto !important;

        min-height: 0 !important;

        display: block !important;

        background: #ffffff;
    }


    .placements-grid .placement-image img {
        width: 100% !important;

        height: auto !important;

        max-width: 100% !important;

        max-height: none !important;

        object-fit: contain !important;
    }


    /*
       Show overlay on mobile
    */

    .placements-grid .placement-overlay {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .placement-banner {
        height: 220px;
    }


    .placement-banner-title {
        padding: 11px 27px;
    }


    .placement-banner-title h1 {
        font-size: 23px;
    }


    .placements-heading h2 {
        font-size: 29px;
    }


    .placements-grid {
        gap: 20px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .placements-grid .placement-card,
    .placements-grid .placement-image img,
    .placement-overlay {
        transition: none !important;

        animation: none !important;
    }

}



