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: "Roboto-Regular";
  src: url(fonts/Roboto/Roboto-Regular.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 10px;
    overflow: hidden;
    height: 100%;
}

a {
    text-decoration: none;
}

.logo-container {
    object-fit: cover;
    width: 10%;
}

.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;
}

.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%;
}

.img-section-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/price-images/shirt_logo.JPG');
    background-size: cover;
    background-position: center -120px;
    background-repeat: no-repeat;
    filter: blur(5px) contrast(105%);
    z-index: 0;
}

.img-section-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.65);
    z-index: 1;
}

.heading-container {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    animation: fadeIn 2s;
    justify-content: space-between;
    z-index: 2;
    box-sizing: border-box;
    width: 80%;
}

@keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

.heading-box {
    align-items: center;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin-right: 10%;
}

.box-img {
    position: relative;
    min-width: 200px;
    height: 150px;
    overflow: hidden;
    z-index: 2;
}

.box-img img {
  min-width: 100%;
  max-width: 100%;
  min-height: auto;
  max-height: auto;
  margin: auto;
  filter: none;
  width: auto;
  height: 100%;
}

.box-count {
    color: white;
    font-family: "WorkSans-Bold";
    font-size: 80px;
    text-align: center;
    padding-top: 0px;
}

.box-caption {
    color: white;
    font-family: "WorkSans-Bold";
    font-size: 30px;
    text-align: center;
    padding-top: 0px;
}

.heading-text {
  position: relative;
  display: inline-block;
  font-size: 30px;
  color: white;
  font-family: "WorkSans-SemiBold";
  letter-spacing: 3px;
}

.label-container {
  max-width: 30%;
  min-height: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-bottom: 50px;
}

.label-right {
  width: 100%;
  height: 40px;
  margin: 0;
  background-color: #9c090e;
  padding: 5px 5px 5px 20%;
  display: flex;
  align-items: center;
}

.label-arrow-right {
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-left: 25px solid #9c090e;
  margin: 0;
}

.label-text {
  font-family: "WorkSans-Bold";
  color: white;
  font-size: 30px;
  letter-spacing: 2px;
}

.text-container {
  width: 75%;
  margin: auto;
  overflow: hidden;
  font-family: "Roboto-Regular";
  font-size: 23px;
  color: black;
  line-height: 33px;
  margin-bottom: 50px;
}

.hyperlink {
  font-family: 'Roboto-Regular'; 
  color: black; 
  text-decoration: underline;
  word-break:break-all;
}

.hyperlink:hover {
  color:#CC2936;
  cursor: pointer;
}


.retreats-container {
  position: relative;
  display: flex;
  flex-direction: column;
  /* justify-content: space-around; */
  min-height: 700px;
  overflow: hidden;
  background-color: #9C090E;
}

.events-heading {
  margin: 50px 40px 50px 40px;
  position: relative;
  font-family: "WorkSans-Bold";
  font-size: 3vw;
  color: white;
}


/* ECG Rows Animation */

/* Row Layout */
.ecg-row {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  height: 60px;
}

/* SVG ECG Lines */
.ecg-svg {
  position: absolute;
  top: 0;
  height: 80px;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

/* TOP ROW: spike on left, line extends to the right on hover */
.ecg-svg.top-left {
  left: 0;
  width: 180px;
}

.ecg-svg.top-right {
  left: 180px;
  /* line extends from spike to text then continues */
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: calc(100% - 740px); /* default: stops before text area */
}

.ecg-row:hover {
  cursor: pointer;
}

.ecg-row:hover .ecg-svg.top-right {
  width: calc(80% - 180px); /* extends fully to the right */
}

.ecg-arrow {
  position: absolute;
  top: 72%;
  transform: translateY(-72%);
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: none;
  z-index: 4;
}

.arrow-right {
  right: 20%;
  border-top: 2px solid white;
  border-right: 2px solid white;
  transform-origin: center center;
  transform: translateY(-72%) rotate(45deg);
}

.arrow-left {
  left: 20%;
  border-top: 2px solid white;
  border-right: 2px solid white;
  transform-origin: center center;
  transform: translateY(-72%) rotate(-135deg);
}

.ecg-row:hover .ecg-arrow {
  transition: opacity 0.3s ease 0.3s;
  opacity: 1;
}


.ecg-text {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
  bottom: 30%;
  margin-bottom: 2px;
}

.ecg-text .label {
  font-family: "WorkSans-Regular";
  font-size: 2rem;
  color: white;
  letter-spacing: 0.03em;
}

.ecg-text .date {
  font-family: "WorkSans-Regular";
  font-size: 0.7rem;
  color: white;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ecg-row.top { margin-top: 50px;}
/* BOTTOM ROW: spoke on the right, line extends to the LEFT on hover */
.ecg-row.bottom { margin-top: 200px; }


.ecg-svg.bottom-right {
  right: 0;
  width: 180px;
}

.ecg-svg.bottom-left {
  right: 180px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: calc(100% - 740px);
}

.ecg-row:hover .ecg-svg.bottom-left {
  width: calc(80% - 180px);
}

/* SVG Path Styling */
.ecg-path {
  fill: none;
  stroke: white;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

/* Top Text: left anchored */
.ecg-text.top {
  left: 200px;
}

/* Bottom text: right anchored */
.ecg-text.bottom {
  right: 200px; 
  left: auto;
}

.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) {
  .logo-container { width: 15%; }
  .tabs-container { max-width: 50%; }
  .tabs-content {
      font-size: 2vw;
      margin-right: 11px;
  }
  .label-text { font-size: 22px; }
  .events-heading { font-size: 46px; }
  .ecg-svg.top-right { width: calc(80% - 180px); }
  .ecg-arrow { opacity: 1; }
  .ecg-svg.bottom-left { width: calc(80% - 180px); }
  .ecg-text { margin-bottom: 15px; }
  .ecg-text.top { left: 130px; }
  .ecg-text.bottom { right: 130px; }
}

@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: 25%;
  }
  .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;
  }
  .img-section { height: 120px; }
  .heading-container {
    width: 80%;
    overflow: hidden;
    flex-wrap: wrap;
  }
  .heading-box { margin-right: 20px; }
  .box-img {
    height: 40px;
    min-width: auto;
  }
  .box-count { font-size: 40px; }
  .box-caption { font-size: 15px; }
  .img-section-container::before {
      background-size: 235%;
      background-position: center -200px;
  }
  .label-container {
    max-width: 50%;
    margin-bottom: 30px;
  }
  .label-right { padding: 3px 3px 3px 10%; }
  .label-arrow-right {
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-left: 22px solid #9c090e;
  }
  .label-text { font-size: 16px; }
  .events-heading {
    margin: 50px 25px 50px 25px;
    font-size: 38px;
    color: white;
  }
  .ecg-svg.top-right { width: calc(90% - 220px); }
  .ecg-arrow { opacity: 1; }
  .ecg-svg.bottom-left { width: calc(90% - 220px); }
  .ecg-text {
    margin-bottom: 10px;
    flex-direction: column;
  }
  .ecg-text .label { font-size: 1.1rem; }
  .ecg-text .date { font-size: 0.6rem; }
  .ecg-text.top { left: 120px; }
  .ecg-text.bottom {
    right: 120px;
    margin-bottom: 20px;
  }
}







