.lab-column-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align:center;
    
    /* Add a dividing line */
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ccc;
    
}

/* Outer Container */
.lab-news-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1rem;
}

.lab-news-events-wrapper {
    display: flex;
    gap: 2rem;   
}

/* Date box */
.lab-news-date-box {
  flex-shrink: 0;
}

.lab-news-date {
  display: flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;

  text-align: center;
  line-height: 1.2;
  font-weight: bold;
  font-size: 1 rem;

  padding: 0.25rem 0.3rem;
  width: 70px;
  height: auto;           /* grow as needed */
  min-height: 70px;       /* keep nice for single dates */
  
  background: #0073aa;
  color: white;
  border-radius: 12px;
  box-sizing: border-box;
}

/* Card Content */
.lab-news-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* spreads items so last item goes to bottom */
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  flex: 1;
  transition: 0.2s ease;
}

.lab-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.lab-news-title {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;

  /* Add a dividing line */
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
}

.lab-news-title-empty {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.lab-news-content {
  font-size: 1rem;
  color: #333;
}

.lab-news-more {
  display: inline-flex;
  align-items: center;      /* vertical centering */
  justify-content: center; /* horizontal centering */
  
  margin: 1rem auto 0 auto;
  padding: 0.5rem 1.25rem; 
  background: #0073aa;
  color: #fff;
  font-weight: bold;
  text-decoration: none !important;
  border-radius: 6px;
  transition: background 0.2s ease;
  width: fit-content;
}
.lab-news-more, 
.lab-news-more:visited {
  color: white;              
  text-decoration: none;          /* removes underline from visited link*/
  background-color: #0073aa;   /* ensures visited link doesn’t change background */
}

.lab-news-more:hover {
  background: #005f87;
}

.lab-news-more:active {
  background-color: #0073aa;
}

.lab-news-list {
  display: flex; 
  flex-direction: column; 
  gap: 1.5rem; 
}

/* Full card content */

.full-news-container {
    display: flex;
    flex-direction: column;
    max-width: 90 0px;
    margin: 200px auto 100px auto;
}

.full-news-wrapper {
    display: flex;
    align-items: stretch;
}

.full-news-card {
  background-color: #ffffff;
  padding: 60px 30px 40px 30px;  /* top, sides, bottom */
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  position: relative;           /* ensures content stays in block */
  flex: 1; 
}

/* Page back button functionality */
.back-button {
  display: inline-block;
  margin-bottom: .5rem;
  padding: 0.5rem 1rem;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s ease;
}

.back-button:hover {
  color: gray;
}


/* Specific event content */
/* calendar */
.lab-event-date-box {
    flex-shrink: 0;
}

/* Outer calendar shape */
.lab-event-date-icon {
    width: 70px;
    border: 2px solid #15d790;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    font-family: sans-serif;
    color: #333;
    background: #fff;
}

/* Top strip */
.date-icon-top {
    background: #15d790;
    color: white;
    padding: 2px 0;
    font-weight: bold;
    font-size: 0.75rem;
    line-height: 1.1;
}

/* Big day number */
.date-icon-day {
    font-size: 0.95rem;
    font-weight: bold;
    padding: 3px 0;
    line-height: 1.1;
}

/* Small month below */
.date-icon-month-text {
    font-size: 0.75rem;
    color: #666;
    padding: 2px 0 3px 0;
    line-height: 1.1;
}

.lab-event-list {
  display: flex; 
  flex-direction: column; 
  gap: 1.5rem; 
  border: #15d790;
}

/* Special mobile only accordion for events */

.lab-event-accordion-item {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}

/* Accordion Header */
.lab-event-accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #15d790;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: left;
}

.lab-event-accordion-header:hover {
  background: #12bd7a;
}

.lab-event-accordion-icon-closed {
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}

.lab-event-accordion-open {
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}

/* Accordion Expanded State */
.lab-event-accordion-item.active .lab-event-accordion-icon {
  transform: rotate(45deg);
}

/* Accordion Content (closed by default) */
.lab-event-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  background: #fff;
}


/* Mobile — stack vertically */
@media (max-width: 600px) {

  .col {
    margin-bottom: 2rem;
  }

  .lab-column-title {
    margin-bottom: 0.75rem;
    font-weight: bold; 

    /* Add a dividing line */
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ccc;

  }


  .lab-news-events-wrapper {
    padding: 0 1rem;
  }

  .lab-news-item {
    padding: 1rem;
    border-radius: 12px;
    background: #fff;
  }

  .lab-news-card {
    padding: 0.75rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    border-radius: 10px;
  }

  .lab-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
  }

  .lab-news-card,
  .lab-news-item {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .lab-news-date-box,
  .lab-event-date-box {
    margin: 0 auto 0.5rem auto; 
  }

  /* Reduce box size, make text smaller, reduce margin*/
  .lab-news-date {
    width: 60px;              
    min-height: 60px;         
    font-size: 0.9rem;        
    padding: 0.2rem 0.25rem;
    margin-bottom: 0.25rem;   
  }

  /* Reduce margin, make title smaller */
  .lab-news-title {
    font-size: 0.9rem;       
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
  }

  .lab-news-title-empty {
    font-size: 0.9rem; 
    margin-bottom: 0.75rem; 
    padding-bottom: 0.4rem; 
  }

  /* Content slightly smaller and easier to scan */
  .lab-news-content {
    font-size: 0.9rem;
  }
  
  /* Reduce margin before button */
  .lab-news-more {
    margin-top: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
  }

  .lab-news-events-wrapper {
    flex-direction: column-reverse;  /* puts right column first */
  }

  .lab-event-date-icon {
    margin: 0 auto 0.5rem;
  }
}


