html, body {
    scroll-behavior: smooth;
    margin: 0;
    font-size: 18px;
}

@font-face {
    font-family: "WorkSans-SemiBold";
    src: url(fonts/WorkSans/WorkSans-SemiBold.ttf); 
}

@font-face {
    font-family: "WorkSans-Regular";
    src: url(fonts/WorkSans/WorkSans-Regular.ttf); 
}

@font-face {
    font-family: "WorkSans-Bold";
    src: url(fonts/WorkSans/WorkSans-Bold.ttf); 
}

@font-face {
    font-family: "WorkSans-ExtraBold";
    src: url(fonts/WorkSans/WorkSans-ExtraBold.ttf); 
}

@font-face {
    font-family: "WorkSans-Light";
    src: url(fonts/WorkSans/WorkSans-Light.ttf); 
}

.container {
    min-height: 100px;
    padding: 10px;
    overflow: hidden;
}

.navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px 10px 0;
    overflow: hidden;
    height: 100%;
}

a {
    text-decoration: none;
}

.logo-container {
    object-fit: cover;
    width: 20%;
}

.navbar-open-btn {
    display: none;
}

.tabs-container {
    overflow: hidden;
    display: flex;
    justify-content: right;
    flex-direction: row;
    align-self: flex-end;
    max-width: 40%;
}


.tabs-content {
    position: relative;
    font-family: WorkSans-SemiBold;
    padding-bottom: 2px;
    text-decoration: none;
    color: black;
    transition: color 0.3s ease-out;
    overflow: hidden;
    font-size: 1.2vw;
    margin-right: 20px;
}

.tabs-content::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #CC2936;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
}

.tabs-content:hover {
    color:#CC2936;
    cursor: pointer;
}

.tabs-content:hover::after {
    transform: translateX(0);
}

/* SIDE NAVBAR */
.sidenav-container {
    display: none;
    width: 100%;
    position: relative;
    min-height: 100px;
    max-height: 150px;
}

.sidenav-logo-container {
    display: none;
    position: relative;
    overflow: hidden;
}

.sidenav-panel {
    display: none;
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 2;
    top: 0;
    right: 0;
    background-color: rgba(107, 6, 9, 0.95);
    overflow-x: hidden;
    transition: 0.5s;
}

.panel-container {
    width: 80%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    padding-top: 50px;
}

.panel-title-container {
    max-width: 80%;
    overflow: hidden;
    position: relative;
    color: white;
    text-transform: uppercase;
    margin-bottom: 50px;
}

.panel-title-container h1 {
    font-family: "WorkSans-Regular";
    font-size: 40px;
    letter-spacing: 7px;
    line-height: 10px;
}

.panel-title-container h2 {
    font-family: "WorkSans-Light";
    font-size: 10px;
    letter-spacing: 6px;
}

.p-divider {
    width: 100%;
    background-color: white;
    opacity: 0.5;
    height: 1px;
    margin-bottom: 50px;
}

.panel-body-container {
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-sizing: border-box;
    margin-bottom: 20px;
    color: white;
}

.p-row {
    padding-left: 20px;
    width: 100%;
    display: flex;
    flex-direction: row;
    font-size: 26px;
    align-items: center;
}

.p-num {
    font-family: "WorkSans-Light";
    opacity: 0.4;
    letter-spacing: 3px;
    font-size: 22px;
    margin-right: 25px;
}

.p-text {
    font-family: "WorkSans-Regular";
    color: white;
    letter-spacing: 5px;
}

.p-caption {
    position: relative;
    border-left: 1px solid white;
    padding: 10px;
    margin-top: 140px;
    font-family: "WorkSans-Light";
    font-size: 14px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 22px;
    font-style: italic;
}

.img-section {
    position: relative;
    width: 100%;
    padding-bottom: 40%;
    height: 0;
    overflow: hidden;
}

.img-section-container {
    position: absolute;
    display: flex;
    justify-content: left;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../images/main-images/speaker.JPG');
    background-size: cover;
    background-position: center -120px;
    background-repeat: no-repeat;
}

.img-section-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.65);
}

.heading-container {
    position: relative;
    margin-left: 5%;
    display: flex;
    flex-direction: row;
    z-index: 1;
    box-sizing: border-box;
    max-width: 65%;
}

@keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeRight {
from { opacity: 0; transform: translateX(0); }
to   { opacity: 1; transform: translateX(20px); }
}

.heading-left {
    width: 100%;
    font-family: "WorkSans-ExtraBold";
    font-size: 45px;
    line-height: 55px;
    letter-spacing: 6px;
    color: white;
    text-align: right;
    padding-right: 20px;
    animation: fadeUp 0.6s ease both 0.1s;
    border-right: 4px solid #CC2936;
}

.heading-right {
    align-self: center;
    font-family: "WorkSans-Light";
    font-size: 28px;
    letter-spacing: 5px;
    line-height: 45px;
    color: white;
    text-align: left;
    padding-left: 20px;
    text-transform: uppercase;
    animation: fadeRight 0.6s ease both 0.3s;
}

.text-container {
    position: relative;
    margin-top: 30px;
    margin-bottom: 30px;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
    font-family: "WorkSans-Regular";
    font-size: 16px;
    color: black;
}

.text-heading {
    position: relative;
    display: inline-block;
    color: #2C3A7A;
    font-family: "WorkSans-SemiBold";
    font-size: 18px;
}

.cards-container {
    margin: 30px auto 30px auto;
    display: grid;
    max-width: 70%;
    grid-template-columns: auto auto;
    column-gap: 30px;
    row-gap: 50px;
    padding: 10px;
    overflow: hidden;
    z-index: 1;
}

.card-box {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 10px;
    max-width: 100%;
    overflow: hidden;
}

.card-img-div {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-img {
    width: 160%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
}

.card-img-div::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

#price-card {
    background-image: url('../images/main-images/price-card.JPG');
    background-position: center -100px;
}

#collab-card {
    background-image: url('../images/main-images/Collaboration.jpeg'); 
    background-position: -80px -125px;
}

#pubs-card {
    background-image: url('../images/main-images/RGrants.jpg'); 
    width: 110%; 
    background-position: center -370px;
}

#soap-card {
    background-image: url('../images/main-images/soap.jpg');
    width: 100%;
    background-position: center -20px;
}

.caption-div {
    position: absolute;
    z-index: 1;
    max-width: inherit;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 50px;
    padding-left: 20px;
    padding-right: 20px;
    overflow: hidden;
    transform: translateY(190px);
    transition: transform 0.3s ease-out;
}

.caption-title {
    font-family: "WorkSans-Bold";
    color: white;
    letter-spacing: 1px;
    font-size: 2.3vw;
    cursor: pointer;
    transition: color 0.3s ease-out;
}

.caption-anim {
    background-color: #CC2936;
    height: 5px;
    border-radius: 3px;
    font-family: "WorkSans-ExtraBold";
    width: 0;
    opacity: 0;
    margin-right: 0;
    flex-shrink: 0;
    transition: width 0.3s ease-out, opacity 0.3s ease-out, margin-right 0.3s ease-out;
}

.caption-div:hover .caption-anim {
    width: 25px;
    opacity: 1;
    margin-right: 10px;
}

.caption-div:hover .caption-title {
    color: #A0C9A5;
}
 
.divider-div {
    position: relative;
    width: 100%;
    background-color: #CC2936;
    height: 2px;
    border-radius: 3px;
}

.footer {
    background-color: #4A4A4A;
    min-height: 100px;
    display: flex;
    flex-direction: row;
    padding: 20px 40px 20px 40px;
}

.pages-container {
    position: relative;
    align-content: end;
    
}

.footer-text {
    font-family: "WorkSans-SemiBold";
    color: white;
    font-size: 16px;
    display: inline-block;
    position: relative;
    margin-right: 8px;
}

@media screen and (max-width: 1025px) {
    .tabs-content {
        font-size: 1.8vw;
        margin-right: 11px;
    }
    .tabs-container { max-width: 50%; }

}

@media screen and (max-width: 576px) {
    .sidenav-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        box-sizing: border-box;
        padding-right: 20px;
    }
    .sidenav-logo-container {
        display: block;
        width: 35%;
    }
    .sidenav-logo-div {
        width: 100%;
        height: 100%;
        background-image: url('../images/reach-logo.jpg');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
    .sidenav-open-btn {
        display: flex;
        flex-direction: column;
        min-height: 20px;
        justify-content: center;
        z-index: 4;
    }
    #bar1, #bar2, #bar3 {
        width: 35px;
        height: 5px;
        background-color: #CC2936;
        margin: 3px 0;
        transition: 0.3s;
    }
    .change #bar1 {
        transform: translate(0, 11px) rotate(-45deg);
        background-color: white;
    }
    .change #bar2 { opacity: 0; }
    .change #bar3 {
        transform: translate(0, -11px) rotate(45deg);
        background-color: white;
    }
    .sidenav-panel { display: block; }
    .navbar { display: none; }
    .container {
        min-height: 0px;
        padding: 0;
    }
    .img-section-container { background-position: center -50px; }   
    .heading-container {
        margin-left: 5%;
        max-width: 90%;
    }
    .heading-left {
        font-size: 12px;
        line-height: 18px;
        letter-spacing: 5px;
        padding-right: 5px;
    }
    .heading-right {
        font-size: 10px;
        letter-spacing: 5px;
        line-height: 15px;
        padding-left: 0;
    }
    .cards-container {
        margin: 30px auto 30px auto;
        max-width: 70%;
        grid-template-columns: repeat(1, 1fr);
    }
    .card-img-div {
        height: 150px;
        margin-bottom: 20px;
    }
    .caption-div {
        max-width: inherit;
        height: 50px;
        padding-left: 20px;
        padding-right: 20px;
        transform: translateY(90px);
    }
    .caption-title {
        letter-spacing: 1px;
        font-size: 20px;
    }
    .caption-anim {
        width: 25px;
        opacity: 1;
        margin-right: 10px;
    }
    #price-card { background-position: center -60px; }
    #collab-card { background-position: -50px -70px; }
    #pubs-card { background-position: center -190px; }
}
