html, body {
    margin: 0;
    background: var(--off-white);
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
  }

:root {
    --red:       #9C090E;
    --red-dark:  #6B0609;
    --red-light: #C20B11;
    --white:     #ffffff;
    --off-white: #f5f0ec;
    --text:      #1a1a1a;
    --muted:     #777;
    --line:      rgba(139,26,26,0.15);
  }

@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-ExtraLight";
    src: url(fonts/WorkSans/WorkSans-ExtraLight.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;
}

/* ── PAGE HEADER ── */
.page-header {
  background: var(--red);
  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%);
  color: white;
  padding: 80px 60px 70px;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: 'EVENTS';
  position: absolute;
  right: -10px;
  bottom: -50px;
  font-family: "WorkSans-ExtraLight";
  font-size: 18rem;
  font-weight: 600;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  line-height: 1;
  letter-spacing: -0.03em;
}

.page-header-eyebrow {
  font-family: "WorkSans-Light";
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
  animation: fadeUp 0.6s ease both 0.1s;
}

.page-header h1 {
  font-family: "WorkSans-Light";
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.02em;
  max-width: 600px;
  animation: fadeUp 0.6s ease both 0.25s;
}

.page-header h1 em { font-style: italic; }

.header-ecg {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 50px;
  opacity: 0.12;
}

  /* ── EVENTS LIST WRAPPER ── */
  .events-list {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 40px 100px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  /* ── EVENT CARD ── */
  .event-card {
    background: white;
    border-left: 3px solid var(--red);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
  }

  .event-card:hover {
    box-shadow: 0 8px 40px rgba(139,26,26,0.08);
  }

  /* ── CARD SUMMARY (always visible) ── */
  .card-summary {
    padding: 44px 50px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 30px;
  }

  .card-index {
    font-family: "WorkSans-SemiBold";
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
  }

  .card-title {
    font-family: "WorkSans-SemiBold";
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 16px;
  }

  .card-title em { font-style: italic; }

  .card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .card-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .card-meta span::before {
    content: '';
    width: 14px; height: 1px;
    background: var(--red);
    opacity: 0.5;
    display: block;
  }

  /* right side: year badge */
  .card-year {
    font-family: "WorkSans-Bold";
    font-size: 5rem;
    font-weight: 300;
    color: rgba(139,26,26,0.08);
    line-height: 1;
    letter-spacing: -0.03em;
    user-select: none;
    flex-shrink: 0;
  }

  /* ── EXPAND TRIGGER ── */
  .card-trigger {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px 50px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--red);
    transition: color 0.2s;
  }

  .card-trigger:hover { color: var(--red-dark); }

  .trigger-line {
    flex: 1;
    height: 1px;
    background: var(--line);
  }

  /* The chevron arrow */
  .trigger-arrow {
    width: 10px; height: 10px;
    border-right: 1.5px solid var(--red);
    border-bottom: 1.5px solid var(--red);
    transform: rotate(45deg);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    flex-shrink: 0;
  }

  .event-card.open .trigger-arrow {
    transform: rotate(-135deg);
  }

  /* ── EXPANDABLE BODY ── */
  .card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.4,0,0.2,1);
  }

  .card-img-section {
    position: relative;
    width: 100%;
    height: 300px;
    max-height: 300px;
    /* overflow: hidden; */
  }

  .card-img-container {
    position: absolute;
    display: flex;
    justify-content: left;
    align-items: center;
    top: 0;
    left: 0;
    width: 119%;
    height: 100%;
    z-index: 2;
    background-image: url('../images/events-images/DSC03121.JPG');
    background-size: cover;
    background-position: -50px -190px;
    background-repeat: no-repeat;
    filter: contrast(113%);
  }

  .card-img-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.65);
}

  .second-img-banner {
    background-image: url('../images/events-images/FHD_7335.JPG'); 
    background-position: center -440px;
  }

  .event-card.open .card-body {
    max-height: 4000px;
  }

  .card-body-inner {
    padding: 0 50px 60px;
    border-top: 1px solid var(--line);
  }

  /* ── BODY LAYOUT ── */
  .body-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    margin-top: 44px;
  }

  .body-text p {
    font-size: 0.9rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 16px;
  }

  .body-text p:first-child {
    font-family: "WorkSans-Regular";
    font-size: 1.25rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 20px;
  }


  .detail-block {
    border-left: 2px solid var(--red);
    padding: 12px 0 12px 20px;
    margin-bottom: 22px;
  }

  .detail-label {
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 5px;
  }

  .detail-value {
    /* font-family: 'Cormorant Garamond', serif; */
    font-family: "WorkSans-Light";
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.4;
  }

  /* ── STATS ROW ── */
  .stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    margin-top: 44px;
  }

  .stat-cell {
    background: var(--off-white);
    padding: 24px 20px;
    text-align: center;
  }

  .stat-num {
    /* font-family: 'Cormorant Garamond', serif; */
    font-family: "WorkSans-SemiBold";
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--red);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
  }

  .stat-lbl {
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.5;
  }

  /* ── SPEAKERS SECTION ── */
  .speakers-section {
    margin-top: 44px;
  }

  .section-mini-label {
    font-size: 0.60rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 20px;
  }

  .speakers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid white;
    background: white;
    margin-bottom: 50px;
  }

  .sessions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .speaker-cell {
    background: white;
    box-shadow: 1px 0 0 0 var(--line), 
                0 1px 0 0 var(--line);
    padding: 22px 20px;
    transition: background 0.25s;
    display: flex;
    flex-direction: column;
  }

  .speaker-cell:hover { background: var(--off-white); }

  .sp-num {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--red);
    opacity: 0.5;
    margin-bottom: 10px;
  }

  .sp-name {
    font-family: "WorkSans-Regular";
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 5px;
    line-height: 1.2;
    
  }

  .sp-role {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    line-height: 1.5;
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  .sp-topic {
    font-size: 1.1rem;
    line-height: 1.5;
    font-family: "WorkSans-SemiBold";
    opacity: 1;
    margin-bottom: 20px;
    /* text-transform: uppercase; */
  }

  .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: 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;
    }
    .page-header { padding: 40px 30px 35px; }

    .events-list { padding: 45px 30px 60px; }

    .event-card {
      /* border: 1px solid black; */
    }
    .card-summary {
      grid-template-columns: 1fr;
      padding: 25px 35px 0;
    }
    .card-year { display: none; }
    .card-trigger {
      padding: 16px 28px 22px;
    }

    .card-img-section {
      height: 150px;
      /* max-height: 150px; */
    }

    .card-img-container {
      width: 160%;
      background-position: -80px -90px;
    }

    .card-body-inner { 
      padding: 0 20px 14px; 
    }
    .event-card.open .card-body {max-height: 8000px;}
    .body-grid    {
      grid-template-columns: 1fr; gap: 30px;
      margin-top: 20px;
    }
    .stats-row    { grid-template-columns: repeat(2,1fr); }
    .section-mini-label {
      font-size: 0.7rem;
      margin-bottom: 18px;
    }
    .speakers-grid { grid-template-columns: repeat(1,1fr); }
    .sessions-grid { grid-template-columns: repeat(1, 1fr);}

    .second-img-banner { 
      width: 180%;
      background-position: -100px -220px;
    }

  
}

  /* ── RESPONSIVE ── */
  /* @media (max-width: 800px) {
    .page-header { padding: 60px 30px 60px; }
    .events-list  { padding: 50px 20px 80px; }
    .card-summary { padding: 32px 28px 0; grid-template-columns: 1fr; }
    .card-year    { display: none; }
    .card-trigger { padding: 16px 28px 22px; }
    .card-body-inner { padding: 0 28px 44px; }
    .body-grid    { grid-template-columns: 1fr; gap: 30px; }
    .stats-row    { grid-template-columns: repeat(2,1fr); }
    .speakers-grid { grid-template-columns: repeat(2,1fr); }
  }

  @media (max-width: 500px) {
    .speakers-grid { grid-template-columns: 1fr; }
    .stats-row     { grid-template-columns: 1fr 1fr; }
  } */
