﻿

body {
    background-color: #d9d9d9;
}
#statistical-expertise-page{
    height: 100%;
}

section {
    margin-top: 6rem;
    width: 100%;
    position: relative;
    overflow-x: clip;
}
.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;
}
/*edit*/
section .img-div {
    margin-right: -30%;
    max-height: 100%;
    width: 70%;
    border-radius: 15px;
    background-image: url("/images/Filler-Images/statisitcal_expertise.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/statisitcal_expertise.jpeg");
    background-size: cover;
}

.word-content {
    height: 100%;
    width: 100%;
    max-width: 30rem;
    padding-block: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.word-content:not(.active-tab) {
    display: none;
}
.word-content p {
    width: 100%;
    padding-inline: .5rem;
    /*    text-wrap: balance;*/
}

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;
}




#expertise-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*/
#expertise-list:has(:nth-child(1).active-tab) {
    --active: 0;
}
#expertise-list:has(:nth-child(2).active-tab) {
    --active: 1;
}
#expertise-list:has(:nth-child(3).active-tab) {
    --active: 2;
}
#expertise-list:has(:nth-child(4).active-tab) {
    --active: 3;
}
#expertise-list:has(:nth-child(5).active-tab) {
    --active: 4;
}
#expertise-list:has(:nth-child(6).active-tab) {
    --active: 5;
}
#expertise-list:has(:nth-child(7).active-tab) {
    --active: 6;
}

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

#expertise-list .active-tab {
    color: white;
}
#expertise-list > div:hover {
    border-radius: 10px;
}
#expertise-list::after {
    content: "";
    position: absolute;
    inset: .2rem;
    top: calc(var(--active) * var(--tab-spacing) + .25rem);
    right: .5rem;
    height: var(--tab-height);
    /*    height: calc(var(--tab-height) + 10px);*/
    border-radius: 10px;
    /*    background-color: rgb(12, 124, 193);*/
    background-color: var(--blue);
    -webkit-transition: 100ms;
    -moz-transition: 100ms;
    -ms-transition: 100ms;
    -o-transition: 100ms;
    transition: 100ms;
    z-index: 0;
    min-height: 20px;
}
#expertise-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;
}


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

