﻿
#homepage {
    height: 100%;
    min-height: 100vh;
    position: relative;
    background-color: #eee;
    padding-bottom: 3rem;
    border-bottom: 4px solid #aaa;
    overflow: clip;
}

.hero {
    --hero-height: 55vh;
    --hero-max-height: 675px;
    height: var(--hero-height);
    max-height: var(--hero-max-height);
    display: flex;
    justify-content: end;
    margin-bottom: 1.5rem;
    overflow: clip;
    z-index: 4;
    background-color: rgba(12, 124, 193, 1);
    background: rgba(0,0,0,.55) url('images/Action Shots/hero.JPG');
    background-size: contain;
    background-repeat: no-repeat;
    background: rgba(0,0,0,.55) url('images/Action Shots/hero.JPG');
}
.hero > div {
    height: var(--hero-height);
    max-height: var(--hero-max-height);
    width: max(1000px, 80%);
    max-width: 100%;
    padding: 1rem;
    padding-right: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;
    background: linear-gradient(270deg, rgba(12, 124, 193, 1) 0%, rgba(12, 124, 193, 1) 60%, rgba(12, 124, 193, 0) 100%);
    color: white;
}
.hero > div > div {
    margin-right: 10rem;
    padding: .5rem;
    height: 100%;
    max-width: 66ch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
@media(max-width: 1350px) {
    .hero {
        background-color: rgb(12, 124, 193);
        background-image: unset;
    }
        .hero > div,
        .hero > div > div {
            width: 100%;
            max-width: 100%;
            margin: 0;
            padding: 0;
            background-color: rgb(12, 124, 193);
            background-image: unset;
        }
    .hero > div > div{
        padding: .5rem;
    }
}
@media (max-width: 1050px){
    .hero > div {
        margin-inline: 0;
        padding: 0;
    }
    .hero > div > div {
        margin-inline: auto;
    }
}
.hero h1,
.hero h2 {
    margin-bottom: 1.75rem;
    max-width: 28ch;
    font-size: 40px;
    font-weight: 600;
    text-align: center;
}
.hero h4 {
    margin-bottom: 1.25rem;
    max-width: 40ch;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    color: #e89036;
}
.hero p {
    margin-bottom: 1.25rem;
    max-width: 70ch;
    font-size: 18px;
    text-align: center;
    color: white;
}
.hero a {
    background-color: #7cd63c; /*Green*/
    font-weight: 600;
    margin-bottom: 2rem;
}
.hero a:hover {
    background-color: white;
    color: black;
}

.hero a:hover i {
    color: black;
}

.section-right,
.section-left {
    margin: 50px 0 0 0;
    max-width: 100%;
    position: relative;
}

.section-right .content {
    margin-left: auto;
    border-right: none;
    border-radius: 20px 0 0 20px;
}

.section-left .content {
    margin-right: auto;
    border-left: none;
    border-radius: 0 20px 20px 0;
    padding-left: 5rem;
}

.content {
    position: relative;
    padding: 4rem 3rem 2rem 3rem;
    background: white;
    width: min(70%, calc(100% - 1.5rem)) ;
    max-width: 95%;
    border: 5px solid;
}

@media (max-width: 900px) {
    #homepage{
        padding-bottom: 7px;
    }

    #services-content {
        border-radius: 0;
    }

    .section-right .content,
    .section-left .content {
        margin-inline: 0;
        border-radius: 0 0 0;
        padding: 4rem 3rem 2rem 3rem;
        border-left: none;
        border-right: none;
        max-width: 100%;
        width: 100%;
        margin-top: 100px;
    }

    .section-left div:has(> .section-title), 
    .section-right div:has(> .section-title){
        left: 0;
        right: 0;
        margin: auto;
    }

    #service-pagination{
        left: calc(50% - 30px)
    }
}

.content p {
    text-indent: 1.5em;
}

div:has(> .section-title) {
    position: absolute;
    top: -31px;
    margin-inline: auto;
    padding: .25rem .75rem;
    width: max-content;
    border-radius: 40px;
    border: 5px solid #aaa;
    background: #bbb;
    z-index: 10;
}

.section-right div:has(> .section-title) {
    right: calc(10%);
}

.section-left div:has(> .section-title) {
    left: calc(17.5vw - 9ch);
    z-index: 9;
}

.section-title {
    width: max-content;
    margin: 0;
    font-weight: 600;
    font-size: 2rem;
    display: block;
    color: rgb(12, 124, 193);
    color: white;
}
@media(max-width: 500px){
    .section-title {
        font-size: 1.5rem;
    }
} 



.pagination {
    margin-inline: auto;
    width: max-content;
    padding-bottom: .5rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.pagination .pagination-circle {
    height: 12px;
    width: 12px;
    border: 2px solid #999;
    background: white;
    border-radius: 20px;
    cursor: pointer;
}
.pagination i{
    cursor: pointer;
}
.pagination .pagination-circle.active-tab {
    background-color: #777;
    border-color: #777;
}

/*//-- --//*/
.btn-hover:hover {
    padding-right: 2.5rem;
    color: white;
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -ms-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
}

.btn-hover:hover i {
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -ms-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    right: 1rem;
}

#impact-content {
    padding-right: 3.7rem;
    border-color: #ED8F31;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 3.5rem;
}
@media (max-width: 700px){
    #impact-content{
        flex-direction: column;
    }
}

#impact-content :has(.section-title) {
    border-color: #ED8F31;
    right: calc(15vw - 7ch);
    background: #ED8F31;
}

.impact-words p {
    margin-bottom: 2rem;
}

#expertise-content {
    border-color: #ED8F31;
    z-index: 9;
}
#expertise-content :has(.section-title) {
    border-color: #ED8F31;
    background: #ED8F31;
    left: calc(14vw - 7ch);
}
#expertise-content p:nth-child(3) {
    margin-bottom: 2rem;
}

#research-papers-img {
    height: 200px;
    min-width: 200px;
    object-fit: cover;
    border-radius: 10px;
    background-image: url("/images/Filler-Images/papers.jpeg");
    background-size: cover;
}