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: 4;
    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;
}

.landing-section {
    max-width: 100%;
    padding: 60px 40px 50px 40px;
    position: relative;
    background: #9C090E;
    background-image:
      radial-gradient(ellipse at 15% 50%, rgba(160,40,40,0.5) 0%, transparent 55%),
      radial-gradient(ellipse at 85% 50%, rgba(80,5,5,0.6) 0%, transparent 55%);
    overflow: hidden;
}

.landing-section h1 {
    color: white;
    font-family: "WorkSans-SemiBold";
    font-size: clamp(2.3rem, 4vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: 0.04em;
    max-width: 600px;
    animation: fadeUp 0.6s ease both 0.25s;
}

.header-ecg {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 50px;
    opacity: 0.12;
}

.list-section {
    max-width: 100%;
    padding: 70px;
    position: relative;
    overflow: hidden;
}

.list-container {
    max-width: 100%;
    height: 100%;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 50px;
}

.list-cell {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.cell-title {
    font-family: "WorkSans-SemiBold";
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #9C090E;
}

.cell-info {
    max-width: 100%;
    font-family: "WorkSans-Light";
    font-size: 1rem;
    line-height: 1.5;
    color: black;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.read-more-text {
    display: inline;
}

.read-more-btn {
    display: inline;
    background: none;
    border: none;
    cursor: pointer;
    font-family: "WorkSans-Regular";
    font-size: 1rem;
    border-bottom: 1.5px solid #9C090E;
    transition: opacity 0.2s;
    vertical-align: middle;
}

.read-more-btn:hover, .read-less-btn:hover { opacity: 0.65; }

.read-less-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: "WorkSans-Regular";
    font-size: 1rem;
    border-bottom: 1.5px solid #9C090E;
    transition: opacity 0.2s;
    vertical-align: middle;
}

.cell-divider {
    width: 100%;
    background: #C20B11;
    opacity: 0.3;
    height: 1px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
}

.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;
}



/* ── ANIMATIONS ── */

@keyframes fadeUp {
from { opacity: 0; transform: translateY(20px); }
to   { opacity: 1; transform: translateY(0); }
}

@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: 6;
    }
    #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;
    }
    .landing-section { padding: 30px 20px 30px 20px; }
    .landing-section h1 { font-size: 34px; }
    .list-section { padding: 45px 15px 45px 15px; }
    .list-container { padding: 20px; }
    .cell-title { font-size: 1.3rem; }
    .cell-info { font-size: 0.9rem; }
    .read-more-btn { font-size: 0.9rem; }
    .read-less-btn { font-size: 0.9rem; }
}


