/*---------------------------------------
  MAIN CASE STUDY
-----------------------------------------*/

:root {
    --accent: #1f9d55;
    --text-main: #1a1a1a;
    --text-secondary: #4a4a4a;
    --sidebar-bg: #f4f5f7;
    --border: #e2e4e8;
    --gap: 64px;
}


/*---------------------------------------
  CASE STUDY — MAIN + SIDEBAR
-----------------------------------------*/

.case-study {
    display: flex;
    flex-wrap: nowrap;
    width: 84%;
    max-width: 1400px;
    margin: 0 auto;
}


/* LEFT — main content */

.case-study__main {
    flex: 0 0 68%;
    width: 68%;
    max-width: 68%;
    padding: 56px 64px 56px 40px;
}

.case-study__main h1 {
    color: var(--accent);
    font-size: 2rem;
    letter-spacing: 0.5px;
    margin: 0 0 6px;
}

.case-study__main .subtitle {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin: 0 0 32px;
    text-transform: uppercase;
}

.case-study__main h2 {
    color: var(--accent);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 32px 0 12px;
}

.case-study__main p,
.case-study__main ul {
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin: 0 0 8px;
}

.case-study__main ul {
    list-style: none;
    padding: 0;
}

.case-study__main ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
}

.case-study__main ul li::before {
    content: "–";
    position: absolute;
    left: 0;
}

.case-study__main strong {
    color: var(--text-main);
}


/* RIGHT — sidebar */

.case-study__sidebar {
    flex: 0 0 32%;
    width: 32%;
    max-width: 32%;
    background: var(--sidebar-bg);
    padding: 56px 40px;
}

.case-study__sidebar > h2 {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px;
}

.case-study__sidebar > .role {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 0 32px;
}


/*---------------------------------------
  SIDEBAR BLOCKS
-----------------------------------------*/

.sidebar-block {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.sidebar-block:last-child {
    margin-bottom: 0;
}

.sidebar-block__icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: var(--text-secondary);
}

.sidebar-block__icon svg {
    width: 100%;
    height: 100%;
}

.sidebar-block__content h3 {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}

.sidebar-block__content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin: 0;
}






/*---------------------------------------
  SECTION IMAGE
-----------------------------------------*/

.sectionImage {
    max-width: 100%;
    position: relative;
    max-height: 200px;
    overflow: hidden;
    margin-bottom: 2.2rem;
    margin-right: 10%;
    margin-left: 10%;
}

.secImg {
    display: block;
    margin: auto;
    width: 100%;
    object-fit: cover;
    z-index: 10;
}

.sectionLabel {
    font-size: 4.2rem;
    font-weight: 600;
    color: #ffffff;
    position: absolute;
    bottom: -67px;
    vertical-align: middle;
    line-height: 5rem;
    font-family: 'gilroy';
    padding-left: 6%;
    text-align: center;
}


/*---------------------------------------
  GENERAL IMAGES
-----------------------------------------*/

.ReImgWide {
    width: 120%;
}

hr {
    width: 100%;
}

.imgCon {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.imgCon2 {
    max-width: 200px;
    text-align: center;
    margin: auto;
}

.shadow {
    box-shadow: rgba(100, 100, 111, 0.2) 0px 4px 4px 0px;
}


/*---------------------------------------
  IMAGE CAPTIONS
-----------------------------------------*/

.dsrptImage::before {
    content: "1";
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: rgb(46, 0, 0);
    padding: 5px 10px;
    border-radius: 4px;
}

.capTxt {
    margin-top: 1em;
    font-size: .8rem;
    font-weight: 300;
    color: #4f4f4f;
    text-align: left;
    display: table-caption;
    caption-side: bottom;
    width: 75%;
    font-style: italic;
}


/*---------------------------------------
  RESEARCH
-----------------------------------------*/

.researchContainer {
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.researchHead {
    text-align: center;
    height: 30px;
    border-bottom: 1px solid rgb(235, 235, 235);
}

.researchHead::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background-size: contain;
    vertical-align: middle;
    border-radius: 30%;
    background-color: #bbe9ff;
    background-image: url(../images/svg/guestion-mark.svg);
    transform: translateY(-2px);
}

.researchAnswers {
    text-align: center;
    height: 30px;
    border-bottom: 1px solid rgb(235, 235, 235);
}

.researchAnswers::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 4px;
    background-size: contain;
    vertical-align: middle;
    border-radius: 30%;
    background-color: #b3ffbd;
    background-image: url(../images/svg/check.svg);
    transform: translateY(-2px);
}


/*---------------------------------------
  QUESTIONS / ANSWERS
-----------------------------------------*/

.questions {
    height: 100%;
    background-color: #f9f9fc;
    flex: 1 1 400px;
    border-radius: 12px;
    margin-right: 5px;
    margin-bottom: 10px;
    padding-right: 10px;
}

.answers {
    height: 100%;
    background-color: #f3f6ff;
    padding-right: 10px;
    flex: 2 1 400px;
    border-radius: 12px;
    margin-left: 5px;
}


/*---------------------------------------
  RECOMMENDATIONS
-----------------------------------------*/

.recomList ul li {
    list-style-type: none;
}

.recomList ul li:before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    border-radius: 50%;
    background-color: #ffd45e;
    transform: translateY(-2px);
}

.recomList ul li:first-child:before,
.recomList ul li:nth-child(2):before,
.recomList ul li:nth-child(3):before,
.recomList ul li:nth-child(4):before {
    background-image: url(../images/svg/exclamation-mark.svg);
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center center;
}


/*---------------------------------------
  CONTEXTUAL SIDEBAR
-----------------------------------------*/

.sidebar {
    position: fixed;
    top: 50%;
    left: .5%;
    transform: translateY(-50%);
    z-index: 22;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    display: block;
    padding: 8px;
    color: #363636;
    text-decoration: none;
    background-color: transparent;
    font-weight: 600;
    font-size: 0.9rem;
    mix-blend-mode: exclusion;
}

.sidebar-link.active {
    font-weight: bold;
    color: #b3ffbd;
}

.sidebar a:hover {
    font-weight: 800;
    color: #000000;
}

.section {
    padding: 50px;
    background-color: #fff;
    color: #333;
    font-size: 1.5em;
}

.section.active {
    background-color: #b3ffbd;
}






/*---------------------------------------
  SCROLL TO TOP
-----------------------------------------*/

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    width: 48px;
    height: 48px;
    border: none;
    outline: none;
    background-color: #f0f0f0;
    color: rgb(180, 180, 180);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 400ms ease-in-out forwards;
}

.scroll-to-top::before {
    content: '\2191';
    font-size: 24px;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


/*---------------------------------------
  DESIGN
-----------------------------------------*/

.designContainer {
    display: flex;
    flex-wrap: wrap;
    max-width: 900px;
    margin: auto;
}

.designItem1,
.designItem2 {
    flex: 1 0 calc(50% - 30px);
    min-width: 200px;
    max-width: 450px;
    box-sizing: border-box;
    margin-right: 30px;
    margin-bottom: 30px;
}




/*---------------------------------------
  MOTIONH CONTAINERS
-----------------------------------------*/

.containerMainMh {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    /* padding-left: 16%;
    padding-right: 16%; */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
    max-width: 2100px;
}
.containerMidMh {
    display: block;
}

.dsrptCont {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

.dsrptImage {
    flex: 1;
    max-width: 300px;
    min-width: 460px;
}

.dsrptImageSmall {
    flex: 1;
    max-width: 300px;
    min-width: 200px;
}

.dsrptText {
    flex: 1;
    min-width: 300px;
    margin-left: 30px;
}

.descrSection {
    margin-bottom: 4rem;
}


/*---------------------------------------
  SLIDER
-----------------------------------------*/

.slider {
    position: relative;
    width: 300px;
    height: 100%;
    overflow: hidden;
}

.slider-images {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-images img {
    width: 100%;
    height: auto;
    display: none;
}

.slider-images img.active {
    display: block;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 100px;
    border: none;
    cursor: pointer;
    color: #ffffff;
    padding: 10px;
    z-index: 1;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.shadow {
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-radius: 16px;
}








/*---------------------------------------
  TABLET / MOBILE
-----------------------------------------*/

@media (max-width: 1200px) {

    .sidebar {
        left: 1%;
    }

    .containerMain {
        margin-left: 1vw;
        margin-right: 1vw;
    }

    .parOne {
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
        text-align: justify;
        text-justify: inter-word;
    }
}


@media (max-width: 900px) {

    /* CASE STUDY — stack only here */

    .case-study {
        width: 90%;
        flex-wrap: wrap;
    }

    .case-study__main,
    .case-study__sidebar {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        padding: 40px 24px;
    }

    .sidebar-block {
        margin-bottom: 28px;
    }
}


@media (max-width: 890px) {

    .sectionLabel {
        font-size: 3rem;
        bottom: -40px;
        line-height: 3.5rem;
        color: #ffffff;
        text-align: center;
        width: 100%;
        padding: 0;
    }

    .sectionImage {
        height: 200px;
    }

    .sidebar {
        visibility: hidden;
    }
}


@media (max-width: 860px) {

    .capTxt {
        margin-left: 0;
        margin-right: 0;
        margin-top: 1em;
        font-size: .9rem;
        font-weight: 400;
        color: #4f4f4f;
        display: table-caption;
        caption-side: bottom;
        width: 95%;
        line-height: 1.6rem;
    }

    .mainTxt {
        margin-left: 1vw;
        margin-right: 1vw;
        font-size: 0.9rem;
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
    }

    .headTxt {
        font-size: 2.4rem;
    }

    #headingFive {
        font-size: 2rem;
    }

    .containerMainMh {
        padding-left: 5%;
        padding-right: 5%;
        margin-bottom: 6rem;
    }
}


@media (max-width: 800px) {

    .scroll-to-top {
        visibility: hidden;
    }

    .designContainer {
        flex-direction: column;
    }

    .cntClr {
        margin-left: 5vw;
        margin-right: 5vw;
    }
}