﻿
body {
    background-color: #d9d9d9;
}
.layout-content:has( #commitment-page ) {
    padding-bottom: 0rem;
    overflow: clip;
    min-height: 85vh;
}
#statistical-expertise-page {
    min-height: 83vh;
    overflow: clip;
}

.section-right .img-div {
    margin-left: -30%;
    max-height: 100%;
    width: 70%;
    
}
#commitment-img {
    background-image: url("/images/Filler-Images/papers.jpeg");
    background-image: linear-gradient( 90deg,rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0) 100%), url("/images/Filler-Images/papers.jpeg");
    background-size: cover;
}
.section-right .section-content {
    border-radius: 20px;
    display: flex;
}

section {
    margin-top: 6rem;
    margin-inline: .5rem;
    width: calc(100% - 1rem);
    position: relative;
}
.section-content {
    max-width: 1300px !important;
    margin-block: 1rem;
    position: relative;
    border-width: 5px;
    border-style: solid;
    border-color: var(--orange);
    background-color: white;
}

.section-content h3 {
    padding: 0;
    margin: 0;
    color: var(--blue);
    font-weight: 600;
    text-align: center;
}

.info-display {
    width: 100%;
    position: relative;
}
.display {
    flex-grow: 1;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

section .img-div {
    max-height: 100%;
    width: 70%;
    background-image: url("/images/Filler-Images/hands.jpeg");
    background-image: linear-gradient( -90deg,rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0) 100%), url("/images/Filler-Images/hands.jpeg");
    background-size: cover;
}

.word-content {
    height: 100%;
    width: 100%;
    max-width: 30rem;
    padding-block: 3rem;
    position: relative;
    left: 15%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.word-content:not(.active-tab) {
    display: none;
}
.word-content p {
    width: 100%;
    padding-inline: .5rem;
     z-index: 1;
}

section .section-content {
    margin-inline: auto;
    border-radius: 20px;
    background-clip: padding-box;
    overflow-clip-margin:content-box;
    display: flex;
    gap: 1.5rem;
    flex-direction: row-reverse;
}


.section-list {
    position: relative;
}
.section-list > div {
    margin-inline: auto;
    padding: .15rem;
    height: var(--tab-height);
    width: 100%;
    white-space: nowrap;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: left;
    -webkit-transition: 100ms;
    -moz-transition: 100ms;
    -ms-transition: 100ms;
    -o-transition: 100ms;
    transition: 100ms;
    cursor: pointer;
}
.section-link {
    z-index: 1;
}


/* Pagination */
.pagination {
    padding-bottom: .5rem;
    width: max-content;
    position: absolute;
    left: 50%;
    bottom: .25rem;
    color: #696969;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.pagination .pagination-circle {
    height: 12px;
    width: 12px;
    border: 2px solid #606060;
    background: white;
    border-radius: 20px;
}
.pagination .pagination-circle.active-tab {
    background-color: #696969;
    border-color: #696969;
}
.pagination > * {
    cursor: pointer;
}


#commitment {
    border-color: var(--green)
}


#commitment-list {
    --tab-count: 7;
    --tab-height: 2.3rem;
    --tab-spacing: calc(100% / var(--tab-count));
    min-height: 315px;
    height: 360px;
    max-height: 430px;
    max-width: 60ch;
    padding: .5rem 1rem .5rem .5rem;
    margin: 0;
    font-size: 1.1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    max-width: min(100%, max-content)
}


/*is used to change --active variable according to active tab*/
#commitment-list:has(:nth-child(1).active-tab) {
    --active: 0;
}
#commitment-list:has(:nth-child(2).active-tab) {
    --active: 1;
}
#commitment-list:has(:nth-child(3).active-tab) {
    --active: 2;
}
#commitment-list:has(:nth-child(4).active-tab) {
    --active: 3;
}
#commitment-list:has(:nth-child(5).active-tab) {
    --active: 4;
}
#commitment-list:has(:nth-child(6).active-tab) {
    --active: 5;
}
#commitment-list:has(:nth-child(7).active-tab) {
    --active: 6;
}


/*used to set the --current-hover*/
#commitment-list:has(:nth-child(1):hover) {
    --current-hover: 0;
}
#commitment-list:has(:nth-child(2):hover) {
    --current-hover: 1;
}
#commitment-list:has(:nth-child(3):hover) {
    --current-hover: 2;
}
#commitment-list:has(:nth-child(4):hover) {
    --current-hover: 3;
}
#commitment-list:has(:nth-child(5):hover) {
    --current-hover: 4;
}
#commitment-list:has(:nth-child(6):hover) {
    --current-hover: 5;
}
#commitment-list:has(:nth-child(7):hover) {
    --current-hover: 6;
}


#commitment-list .active-tab {
    color: white;
}
#commitment-list > div:hover {
    border-radius: 10px;
}
#commitment-list::after {
    content: "";
    position: absolute;
    inset: .2rem;
    top: calc(var(--active) * var(--tab-spacing) + .25rem);
    right: .5rem;
    height: var(--tab-height);
    border-radius: 10px;
    background-color: var(--blue);
    -webkit-transition: 100ms;
    -moz-transition: 100ms;
    -ms-transition: 100ms;
    -o-transition: 100ms;
    transition: 100ms;
    z-index: 0;
    min-height: 20px;
}
#commitment-list > div:hover::after {
    content: "";
    position: absolute;
    inset: .2rem;
    top: calc(var(--current-hover) * var(--tab-spacing) + .25rem);
    right: .5rem;
    min-height: 20px;
    height: var(--tab-height);
    border-radius: 10px;
    outline: 2px solid grey;
    z-index: 0;
}


#commitment-display{
    flex-direction: row-reverse;
}
#commitment-pagination{
    z-index: 3;
}


@media (max-width: 1100px) {
    .section-right{
        margin-inline: 0;
        width: 100%;
    }
    #commitment {
        border-radius: unset;
        border-inline: 0px;
    }
    #commitment-list {
        display: none;
    }
    .word-content {
        z-index: 1;
        max-width: unset;
    }
    .word-content p {
        max-width: 30rem;
    }
}
@media (max-width: 380px) {
    #commitment-img {
        display: none;
    }
}